@ronin/compiler 0.17.14-leo-ron-1113-experimental-404 → 0.17.14-leo-ron-1113-experimental-405

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
@@ -1,7 +1,7 @@
1
1
  /** Query types used for reading data. */
2
- declare const DML_READ_QUERY_TYPES: readonly ["get", "count"];
2
+ declare const DML_QUERY_TYPES_READ: readonly ["get", "count"];
3
3
  /** Query types used for writing data. */
4
- declare const DML_WRITE_QUERY_TYPES: readonly ["set", "add", "remove"];
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
7
  /** Query types used for interacting with the database schema. */
@@ -475,4 +475,4 @@ declare class Transaction {
475
475
 
476
476
  declare const CLEAN_ROOT_MODEL: PublicModel;
477
477
 
478
- 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_READ_QUERY_TYPES, DML_WRITE_QUERY_TYPES, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, 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, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
478
+ 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 PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, 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, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // src/utils/constants.ts
2
- var DML_READ_QUERY_TYPES = ["get", "count"];
3
- var DML_WRITE_QUERY_TYPES = ["set", "add", "remove"];
2
+ var DML_QUERY_TYPES_READ = ["get", "count"];
3
+ var DML_QUERY_TYPES_WRITE = ["set", "add", "remove"];
4
4
  var DML_QUERY_TYPES = [
5
- ...DML_READ_QUERY_TYPES,
6
- ...DML_WRITE_QUERY_TYPES
5
+ ...DML_QUERY_TYPES_READ,
6
+ ...DML_QUERY_TYPES_WRITE
7
7
  ];
8
8
  var DDL_QUERY_TYPES = ["create", "alter", "drop"];
9
9
  var QUERY_TYPES = [...DML_QUERY_TYPES, ...DDL_QUERY_TYPES];
@@ -1202,7 +1202,7 @@ var compileQueryInput = (defaultQuery, models, statementParams, options) => {
1202
1202
  if (queryType === "get" && !isJoiningMultipleRows && (single || instructions?.limitedTo)) {
1203
1203
  statement += handleLimitedTo(single, instructions?.limitedTo);
1204
1204
  }
1205
- if (DML_WRITE_QUERY_TYPES.includes(queryType) && returning) {
1205
+ if (DML_QUERY_TYPES_WRITE.includes(queryType) && returning) {
1206
1206
  statement += `RETURNING ${columns}`;
1207
1207
  }
1208
1208
  const mainStatement = {
@@ -2379,8 +2379,8 @@ var CLEAN_ROOT_MODEL = omit(ROOT_MODEL, ["system"]);
2379
2379
  export {
2380
2380
  DDL_QUERY_TYPES,
2381
2381
  DML_QUERY_TYPES,
2382
- DML_READ_QUERY_TYPES,
2383
- DML_WRITE_QUERY_TYPES,
2382
+ DML_QUERY_TYPES_READ,
2383
+ DML_QUERY_TYPES_WRITE,
2384
2384
  QUERY_SYMBOLS,
2385
2385
  QUERY_TYPES,
2386
2386
  CLEAN_ROOT_MODEL as ROOT_MODEL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.14-leo-ron-1113-experimental-404",
3
+ "version": "0.17.14-leo-ron-1113-experimental-405",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {