@ronin/compiler 0.18.8 → 0.18.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,8 +4,16 @@ declare const DML_QUERY_TYPES_READ: readonly ["get", "count"];
4
4
  declare const DML_QUERY_TYPES_WRITE: readonly ["set", "add", "remove"];
5
5
  /** Query types used for interacting with data. */
6
6
  declare const DML_QUERY_TYPES: readonly ["get", "count", "set", "add", "remove"];
7
+ /** Query types used for reading the database schema. */
8
+ declare const DDL_QUERY_TYPES_READ: readonly ["list"];
9
+ /** Query types used for writing the database schema. */
10
+ declare const DDL_QUERY_TYPES_WRITE: readonly ["create", "alter", "drop"];
7
11
  /** Query types used for interacting with the database schema. */
8
12
  declare const DDL_QUERY_TYPES: readonly ["list", "create", "alter", "drop"];
13
+ /** All read query types. */
14
+ declare const QUERY_TYPES_READ: readonly ["get", "count", "list"];
15
+ /** All write query types. */
16
+ declare const QUERY_TYPES_WRITE: readonly ["set", "add", "remove", "create", "alter", "drop"];
9
17
  /** All query types. */
10
18
  declare const QUERY_TYPES: readonly ["get", "count", "set", "add", "remove", "list", "create", "alter", "drop"];
11
19
  /**
@@ -466,4 +474,4 @@ declare class Transaction {
466
474
 
467
475
  declare const CLEAN_ROOT_MODEL: PublicModel;
468
476
 
469
- export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, DDL_QUERY_TYPES, DML_QUERY_TYPES, DML_QUERY_TYPES_READ, DML_QUERY_TYPES_WRITE, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type ListQuery, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, QUERY_SYMBOLS, QUERY_TYPES, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RegularResult, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, type ResultRecordBase, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
477
+ export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, DDL_QUERY_TYPES, DDL_QUERY_TYPES_READ, DDL_QUERY_TYPES_WRITE, DML_QUERY_TYPES, DML_QUERY_TYPES_READ, DML_QUERY_TYPES_WRITE, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type ListQuery, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, QUERY_SYMBOLS, QUERY_TYPES, QUERY_TYPES_READ, QUERY_TYPES_WRITE, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RegularResult, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, type ResultRecordBase, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
package/dist/index.js CHANGED
@@ -5,7 +5,20 @@ var DML_QUERY_TYPES = [
5
5
  ...DML_QUERY_TYPES_READ,
6
6
  ...DML_QUERY_TYPES_WRITE
7
7
  ];
8
- var DDL_QUERY_TYPES = ["list", "create", "alter", "drop"];
8
+ var DDL_QUERY_TYPES_READ = ["list"];
9
+ var DDL_QUERY_TYPES_WRITE = ["create", "alter", "drop"];
10
+ var DDL_QUERY_TYPES = [
11
+ ...DDL_QUERY_TYPES_READ,
12
+ ...DDL_QUERY_TYPES_WRITE
13
+ ];
14
+ var QUERY_TYPES_READ = [
15
+ ...DML_QUERY_TYPES_READ,
16
+ ...DDL_QUERY_TYPES_READ
17
+ ];
18
+ var QUERY_TYPES_WRITE = [
19
+ ...DML_QUERY_TYPES_WRITE,
20
+ ...DDL_QUERY_TYPES_WRITE
21
+ ];
9
22
  var QUERY_TYPES = [...DML_QUERY_TYPES, ...DDL_QUERY_TYPES];
10
23
  var QUERY_SYMBOLS = {
11
24
  // Represents a sub query.
@@ -2397,11 +2410,15 @@ var Transaction = class {
2397
2410
  var CLEAN_ROOT_MODEL = omit(ROOT_MODEL, ["system"]);
2398
2411
  export {
2399
2412
  DDL_QUERY_TYPES,
2413
+ DDL_QUERY_TYPES_READ,
2414
+ DDL_QUERY_TYPES_WRITE,
2400
2415
  DML_QUERY_TYPES,
2401
2416
  DML_QUERY_TYPES_READ,
2402
2417
  DML_QUERY_TYPES_WRITE,
2403
2418
  QUERY_SYMBOLS,
2404
2419
  QUERY_TYPES,
2420
+ QUERY_TYPES_READ,
2421
+ QUERY_TYPES_WRITE,
2405
2422
  CLEAN_ROOT_MODEL as ROOT_MODEL,
2406
2423
  RoninError,
2407
2424
  Transaction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {