@ronin/compiler 0.17.22-leo-ron-1140-experimental-433 → 0.17.22-leo-ron-1140-experimental-435
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 +2 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -5,9 +5,9 @@ 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. */
|
8
|
-
declare const DDL_QUERY_TYPES: readonly ["create", "alter", "drop"];
|
8
|
+
declare const DDL_QUERY_TYPES: readonly ["list", "create", "alter", "drop"];
|
9
9
|
/** All query types. */
|
10
|
-
declare const QUERY_TYPES: readonly ["get", "count", "set", "add", "remove", "create", "alter", "drop"];
|
10
|
+
declare const QUERY_TYPES: readonly ["get", "count", "set", "add", "remove", "list", "create", "alter", "drop"];
|
11
11
|
/**
|
12
12
|
* A list of placeholders that can be located inside queries after those queries were
|
13
13
|
* serialized into JSON objects.
|
package/dist/index.js
CHANGED
@@ -5,7 +5,7 @@ var DML_QUERY_TYPES = [
|
|
5
5
|
...DML_QUERY_TYPES_READ,
|
6
6
|
...DML_QUERY_TYPES_WRITE
|
7
7
|
];
|
8
|
-
var DDL_QUERY_TYPES = ["create", "alter", "drop"];
|
8
|
+
var DDL_QUERY_TYPES = ["list", "create", "alter", "drop"];
|
9
9
|
var QUERY_TYPES = [...DML_QUERY_TYPES, ...DDL_QUERY_TYPES];
|
10
10
|
var QUERY_SYMBOLS = {
|
11
11
|
// Represents a sub query.
|
@@ -2209,7 +2209,7 @@ var Transaction = class {
|
|
2209
2209
|
}
|
2210
2210
|
return { query, index };
|
2211
2211
|
});
|
2212
|
-
for (const { query, index,
|
2212
|
+
for (const { query, index, expansion } of expandedQueries) {
|
2213
2213
|
const { dependencies, main, selectedFields, model, updatedQuery } = compileQueryInput(
|
2214
2214
|
query,
|
2215
2215
|
modelsWithPresets,
|
@@ -2223,7 +2223,7 @@ var Transaction = class {
|
|
2223
2223
|
this.statements.push(...subStatements);
|
2224
2224
|
this.#internalQueries[index].selectedFields.push(selectedFields);
|
2225
2225
|
this.#internalQueries[index].models.push(model);
|
2226
|
-
if (!
|
2226
|
+
if (!expansion) this.#internalQueries[index].query = updatedQuery;
|
2227
2227
|
}
|
2228
2228
|
this.models = modelsWithPresets;
|
2229
2229
|
return statements;
|
package/package.json
CHANGED