@dbml/parse 9.0.0-alpha.6 → 9.0.0-alpha.8
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/dbml-parse.js +8 -8
- package/dist/dbml-parse.mjs +224 -220
- package/dist/src/compiler/index.d.ts +6 -8
- package/dist/src/compiler/queries/transform/index.d.ts +2 -1
- package/dist/src/compiler/queries/transform/renameTable.d.ts +2 -2
- package/dist/src/compiler/queries/transform/types.d.ts +48 -0
- package/dist/src/compiler/queries/transform/updateElementSetting.d.ts +4 -0
- package/dist/src/compiler/queries/transform/utils.d.ts +6 -10
- package/dist/src/core/types/errors.d.ts +4 -3
- package/dist/src/core/utils/setting.d.ts +6 -2
- package/dist/src/index.d.ts +3 -0
- package/package.json +2 -2
package/dist/dbml-parse.mjs
CHANGED
|
@@ -1494,7 +1494,7 @@ var So = [
|
|
|
1494
1494
|
"true",
|
|
1495
1495
|
"false"
|
|
1496
1496
|
], Co = "none", wo = ".dbml", To = ["-", "+"], v = "public", Eo = bo.from("/main.dbml"), y = /* @__PURE__ */ function(e) {
|
|
1497
|
-
return e[e.UNKNOWN_SYMBOL = 1e3] = "UNKNOWN_SYMBOL", e[e.UNEXPECTED_SYMBOL = 1001] = "UNEXPECTED_SYMBOL", e[e.UNEXPECTED_EOF = 1002] = "UNEXPECTED_EOF", e[e.UNEXPECTED_NEWLINE = 1003] = "UNEXPECTED_NEWLINE", e[e.UNKNOWN_TOKEN = 1004] = "UNKNOWN_TOKEN", e[e.UNEXPECTED_TOKEN = 1005] = "UNEXPECTED_TOKEN", e[e.UNEXPECTED_ELEMENT_DECLARATION = 1006] = "UNEXPECTED_ELEMENT_DECLARATION", e[e.MISSING_SPACES = 1007] = "MISSING_SPACES", e[e.UNKNOWN_PREFIX_OP = 1008] = "UNKNOWN_PREFIX_OP", e[e.INVALID_OPERAND = 1009] = "INVALID_OPERAND", e[e.EMPTY_ATTRIBUTE_NAME = 1010] = "EMPTY_ATTRIBUTE_NAME", e[e.INVALID_ESCAPE_SEQUENCE = 1011] = "INVALID_ESCAPE_SEQUENCE", e[e.INVALID_NAME = 3e3] = "INVALID_NAME", e[e.UNEXPECTED_NAME = 3001] = "UNEXPECTED_NAME", e[e.NAME_NOT_FOUND = 3002] = "NAME_NOT_FOUND", e[e.DUPLICATE_NAME = 3003] = "DUPLICATE_NAME", e[e.INVALID_ALIAS = 3004] = "INVALID_ALIAS", e[e.UNEXPECTED_ALIAS = 3005] = "UNEXPECTED_ALIAS", e[e.UNEXPECTED_SETTINGS = 3006] = "UNEXPECTED_SETTINGS", e[e.INVALID_SETTINGS = 3007] = "INVALID_SETTINGS", e[e.UNEXPECTED_SIMPLE_BODY = 3008] = "UNEXPECTED_SIMPLE_BODY", e[e.UNEXPECTED_COMPLEX_BODY = 3009] = "UNEXPECTED_COMPLEX_BODY", e[e.INVALID_TABLE_CONTEXT = 3010] = "INVALID_TABLE_CONTEXT", e[e.UNKNOWN_TABLE_SETTING = 3011] = "UNKNOWN_TABLE_SETTING", e[e.DUPLICATE_TABLE_SETTING = 3012] = "DUPLICATE_TABLE_SETTING", e[e.INVALID_TABLEGROUP_CONTEXT = 3013] = "INVALID_TABLEGROUP_CONTEXT", e[e.INVALID_TABLEGROUP_ELEMENT_NAME = 3014] = "INVALID_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_ELEMENT_NAME = 3015] = "DUPLICATE_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_FIELD_NAME = 3016] = "DUPLICATE_TABLEGROUP_FIELD_NAME", e[e.INVALID_TABLEGROUP_FIELD = 3017] = "INVALID_TABLEGROUP_FIELD", e[e.EMPTY_TABLE = 3018] = "EMPTY_TABLE", e[e.INVALID_COLUMN = 3019] = "INVALID_COLUMN", e[e.INVALID_COLUMN_NAME = 3020] = "INVALID_COLUMN_NAME", e[e.UNKNOWN_COLUMN_SETTING = 3021] = "UNKNOWN_COLUMN_SETTING", e[e.INVALID_COLUMN_TYPE = 3022] = "INVALID_COLUMN_TYPE", e[e.DUPLICATE_COLUMN_NAME = 3023] = "DUPLICATE_COLUMN_NAME", e[e.DUPLICATE_COLUMN_SETTING = 3024] = "DUPLICATE_COLUMN_SETTING", e[e.INVALID_COLUMN_SETTING_VALUE = 3025] = "INVALID_COLUMN_SETTING_VALUE", e[e.INVALID_ENUM_CONTEXT = 3026] = "INVALID_ENUM_CONTEXT", e[e.INVALID_ENUM_ELEMENT_NAME = 3027] = "INVALID_ENUM_ELEMENT_NAME", e[e.INVALID_ENUM_ELEMENT = 3028] = "INVALID_ENUM_ELEMENT", e[e.DUPLICATE_ENUM_ELEMENT_NAME = 3029] = "DUPLICATE_ENUM_ELEMENT_NAME", e[e.UNKNOWN_ENUM_ELEMENT_SETTING = 3030] = "UNKNOWN_ENUM_ELEMENT_SETTING", e[e.DUPLICATE_ENUM_ELEMENT_SETTING = 3031] = "DUPLICATE_ENUM_ELEMENT_SETTING", e[e.INVALID_ENUM_ELEMENT_SETTING = 3032] = "INVALID_ENUM_ELEMENT_SETTING", e[e.EMPTY_ENUM = 3033] = "EMPTY_ENUM", e[e.INVALID_REF_CONTEXT = 3034] = "INVALID_REF_CONTEXT", e[e.UNKNOWN_REF_SETTING = 3035] = "UNKNOWN_REF_SETTING", e[e.DUPLICATE_REF_SETTING = 3036] = "DUPLICATE_REF_SETTING", e[e.INVALID_REF_SETTING_VALUE = 3037] = "INVALID_REF_SETTING_VALUE", e[e.INVALID_REF_RELATIONSHIP = 3038] = "INVALID_REF_RELATIONSHIP", e[e.INVALID_REF_FIELD = 3039] = "INVALID_REF_FIELD", e[e.EMPTY_REF = 3040] = "EMPTY_REF", e[e.REF_REDEFINED = 3041] = "REF_REDEFINED", e[e.INVALID_DEP_CONTEXT = 3042] = "INVALID_DEP_CONTEXT", e[e.INVALID_DEP_FIELD = 3043] = "INVALID_DEP_FIELD", e[e.INVALID_NOTE_CONTEXT = 3044] = "INVALID_NOTE_CONTEXT", e[e.INVALID_NOTE = 3045] = "INVALID_NOTE", e[e.NOTE_REDEFINED = 3046] = "NOTE_REDEFINED", e[e.NOTE_CONTENT_REDEFINED = 3047] = "NOTE_CONTENT_REDEFINED", e[e.EMPTY_NOTE = 3048] = "EMPTY_NOTE", e[e.UNKNOWN_NOTE_SETTING = 3049] = "UNKNOWN_NOTE_SETTING", e[e.DUPLICATE_NOTE_SETTING = 3050] = "DUPLICATE_NOTE_SETTING", e[e.INVALID_NOTE_SETTING_VALUE = 3051] = "INVALID_NOTE_SETTING_VALUE", e[e.INVALID_INDEXES_CONTEXT = 3052] = "INVALID_INDEXES_CONTEXT", e[e.INVALID_INDEXES_FIELD = 3053] = "INVALID_INDEXES_FIELD", e[e.INVALID_INDEX = 3054] = "INVALID_INDEX", e[e.UNKNOWN_INDEX_SETTING = 3055] = "UNKNOWN_INDEX_SETTING", e[e.DUPLICATE_INDEX_SETTING = 3056] = "DUPLICATE_INDEX_SETTING", e[e.UNEXPECTED_INDEX_SETTING_VALUE = 3057] = "UNEXPECTED_INDEX_SETTING_VALUE", e[e.INVALID_INDEX_SETTING_VALUE = 3058] = "INVALID_INDEX_SETTING_VALUE", e[e.INVALID_PROJECT_CONTEXT = 3059] = "INVALID_PROJECT_CONTEXT", e[e.PROJECT_REDEFINED = 3060] = "PROJECT_REDEFINED", e[e.INVALID_PROJECT_FIELD = 3061] = "INVALID_PROJECT_FIELD", e[e.INVALID_CUSTOM_CONTEXT = 3062] = "INVALID_CUSTOM_CONTEXT", e[e.INVALID_CUSTOM_ELEMENT_VALUE = 3063] = "INVALID_CUSTOM_ELEMENT_VALUE", e[e.INVALID_ELEMENT_IN_SIMPLE_BODY = 3064] = "INVALID_ELEMENT_IN_SIMPLE_BODY", e[e.INVALID_TABLE_PARTIAL_CONTEXT = 3065] = "INVALID_TABLE_PARTIAL_CONTEXT", e[e.INVALID_TABLE_PARTIAL_ELEMENT_NAME = 3066] = "INVALID_TABLE_PARTIAL_ELEMENT_NAME", e[e.INVALID_TABLE_PARTIAL_SETTING_VALUE = 3067] = "INVALID_TABLE_PARTIAL_SETTING_VALUE", e[e.DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME = 3068] = "DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME", e[e.DUPLICATE_TABLE_PARTIAL_SETTING = 3069] = "DUPLICATE_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_PARTIAL_INJECTION = 3070] = "INVALID_TABLE_PARTIAL_INJECTION", e[e.INVALID_TABLE_PARTIAL_INJECTION_OP = 3071] = "INVALID_TABLE_PARTIAL_INJECTION_OP", e[e.INVALID_TABLE_PARTIAL_INJECTION_NAME = 3072] = "INVALID_TABLE_PARTIAL_INJECTION_NAME", e[e.DUPLICATE_TABLE_PARTIAL_INJECTION_NAME = 3073] = "DUPLICATE_TABLE_PARTIAL_INJECTION_NAME", e[e.UNKNOWN_TABLE_PARTIAL_SETTING = 3074] = "UNKNOWN_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_SETTING_VALUE = 3075] = "INVALID_TABLE_SETTING_VALUE", e[e.INVALID_CHECKS_CONTEXT = 3076] = "INVALID_CHECKS_CONTEXT", e[e.INVALID_CHECKS_FIELD = 3077] = "INVALID_CHECKS_FIELD", e[e.INVALID_CHECK = 3078] = "INVALID_CHECK", e[e.UNKNOWN_CHECK_SETTING = 3079] = "UNKNOWN_CHECK_SETTING", e[e.DUPLICATE_CHECK_SETTING = 3080] = "DUPLICATE_CHECK_SETTING", e[e.INVALID_CHECK_SETTING_VALUE = 3081] = "INVALID_CHECK_SETTING_VALUE", e[e.INVALID_RECORDS_CONTEXT = 3082] = "INVALID_RECORDS_CONTEXT", e[e.INVALID_RECORDS_NAME = 3083] = "INVALID_RECORDS_NAME", e[e.INVALID_RECORDS_FIELD = 3084] = "INVALID_RECORDS_FIELD", e[e.DUPLICATE_COLUMN_REFERENCES_IN_RECORDS = 3085] = "DUPLICATE_COLUMN_REFERENCES_IN_RECORDS", e[e.DUPLICATE_RECORDS_FOR_TABLE = 3086] = "DUPLICATE_RECORDS_FOR_TABLE", e[e.INVALID_USE_CONTEXT = 3087] = "INVALID_USE_CONTEXT", e[e.INVALID_USE_SPECIFIER_KIND = 3088] = "INVALID_USE_SPECIFIER_KIND", e[e.INVALID_USE_SPECIFIER_NAME = 3089] = "INVALID_USE_SPECIFIER_NAME", e[e.INVALID_DIAGRAMVIEW_CONTEXT = 3090] = "INVALID_DIAGRAMVIEW_CONTEXT", e[e.DUPLICATE_DIAGRAMVIEW_NAME = 3091] = "DUPLICATE_DIAGRAMVIEW_NAME", e[e.INVALID_DIAGRAMVIEW_FIELD = 3092] = "INVALID_DIAGRAMVIEW_FIELD", e[e.DUPLICATE_DIAGRAMVIEW_FIELD = 3093] = "DUPLICATE_DIAGRAMVIEW_FIELD", e[e.BINDING_ERROR = 4e3] = "BINDING_ERROR", e[e.NONEXISTENT_MODULE = 4001] = "NONEXISTENT_MODULE", e[e.UNSUPPORTED = 5e3] = "UNSUPPORTED", e[e.CIRCULAR_REF = 5001] = "CIRCULAR_REF", e[e.SAME_ENDPOINT = 5002] = "SAME_ENDPOINT", e[e.
|
|
1497
|
+
return e[e.UNKNOWN_SYMBOL = 1e3] = "UNKNOWN_SYMBOL", e[e.UNEXPECTED_SYMBOL = 1001] = "UNEXPECTED_SYMBOL", e[e.UNEXPECTED_EOF = 1002] = "UNEXPECTED_EOF", e[e.UNEXPECTED_NEWLINE = 1003] = "UNEXPECTED_NEWLINE", e[e.UNKNOWN_TOKEN = 1004] = "UNKNOWN_TOKEN", e[e.UNEXPECTED_TOKEN = 1005] = "UNEXPECTED_TOKEN", e[e.UNEXPECTED_ELEMENT_DECLARATION = 1006] = "UNEXPECTED_ELEMENT_DECLARATION", e[e.MISSING_SPACES = 1007] = "MISSING_SPACES", e[e.UNKNOWN_PREFIX_OP = 1008] = "UNKNOWN_PREFIX_OP", e[e.INVALID_OPERAND = 1009] = "INVALID_OPERAND", e[e.EMPTY_ATTRIBUTE_NAME = 1010] = "EMPTY_ATTRIBUTE_NAME", e[e.INVALID_ESCAPE_SEQUENCE = 1011] = "INVALID_ESCAPE_SEQUENCE", e[e.INVALID_NAME = 3e3] = "INVALID_NAME", e[e.UNEXPECTED_NAME = 3001] = "UNEXPECTED_NAME", e[e.NAME_NOT_FOUND = 3002] = "NAME_NOT_FOUND", e[e.DUPLICATE_NAME = 3003] = "DUPLICATE_NAME", e[e.INVALID_ALIAS = 3004] = "INVALID_ALIAS", e[e.UNEXPECTED_ALIAS = 3005] = "UNEXPECTED_ALIAS", e[e.UNEXPECTED_SETTINGS = 3006] = "UNEXPECTED_SETTINGS", e[e.INVALID_SETTINGS = 3007] = "INVALID_SETTINGS", e[e.UNEXPECTED_SIMPLE_BODY = 3008] = "UNEXPECTED_SIMPLE_BODY", e[e.UNEXPECTED_COMPLEX_BODY = 3009] = "UNEXPECTED_COMPLEX_BODY", e[e.INVALID_TABLE_CONTEXT = 3010] = "INVALID_TABLE_CONTEXT", e[e.UNKNOWN_TABLE_SETTING = 3011] = "UNKNOWN_TABLE_SETTING", e[e.DUPLICATE_TABLE_SETTING = 3012] = "DUPLICATE_TABLE_SETTING", e[e.INVALID_TABLEGROUP_CONTEXT = 3013] = "INVALID_TABLEGROUP_CONTEXT", e[e.INVALID_TABLEGROUP_ELEMENT_NAME = 3014] = "INVALID_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_ELEMENT_NAME = 3015] = "DUPLICATE_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_FIELD_NAME = 3016] = "DUPLICATE_TABLEGROUP_FIELD_NAME", e[e.INVALID_TABLEGROUP_FIELD = 3017] = "INVALID_TABLEGROUP_FIELD", e[e.EMPTY_TABLE = 3018] = "EMPTY_TABLE", e[e.INVALID_COLUMN = 3019] = "INVALID_COLUMN", e[e.INVALID_COLUMN_NAME = 3020] = "INVALID_COLUMN_NAME", e[e.UNKNOWN_COLUMN_SETTING = 3021] = "UNKNOWN_COLUMN_SETTING", e[e.INVALID_COLUMN_TYPE = 3022] = "INVALID_COLUMN_TYPE", e[e.DUPLICATE_COLUMN_NAME = 3023] = "DUPLICATE_COLUMN_NAME", e[e.DUPLICATE_COLUMN_SETTING = 3024] = "DUPLICATE_COLUMN_SETTING", e[e.INVALID_COLUMN_SETTING_VALUE = 3025] = "INVALID_COLUMN_SETTING_VALUE", e[e.INVALID_ENUM_CONTEXT = 3026] = "INVALID_ENUM_CONTEXT", e[e.INVALID_ENUM_ELEMENT_NAME = 3027] = "INVALID_ENUM_ELEMENT_NAME", e[e.INVALID_ENUM_ELEMENT = 3028] = "INVALID_ENUM_ELEMENT", e[e.DUPLICATE_ENUM_ELEMENT_NAME = 3029] = "DUPLICATE_ENUM_ELEMENT_NAME", e[e.UNKNOWN_ENUM_ELEMENT_SETTING = 3030] = "UNKNOWN_ENUM_ELEMENT_SETTING", e[e.DUPLICATE_ENUM_ELEMENT_SETTING = 3031] = "DUPLICATE_ENUM_ELEMENT_SETTING", e[e.INVALID_ENUM_ELEMENT_SETTING = 3032] = "INVALID_ENUM_ELEMENT_SETTING", e[e.EMPTY_ENUM = 3033] = "EMPTY_ENUM", e[e.INVALID_REF_CONTEXT = 3034] = "INVALID_REF_CONTEXT", e[e.UNKNOWN_REF_SETTING = 3035] = "UNKNOWN_REF_SETTING", e[e.DUPLICATE_REF_SETTING = 3036] = "DUPLICATE_REF_SETTING", e[e.INVALID_REF_SETTING_VALUE = 3037] = "INVALID_REF_SETTING_VALUE", e[e.INVALID_REF_RELATIONSHIP = 3038] = "INVALID_REF_RELATIONSHIP", e[e.INVALID_REF_FIELD = 3039] = "INVALID_REF_FIELD", e[e.EMPTY_REF = 3040] = "EMPTY_REF", e[e.REF_REDEFINED = 3041] = "REF_REDEFINED", e[e.INVALID_DEP_CONTEXT = 3042] = "INVALID_DEP_CONTEXT", e[e.INVALID_DEP_FIELD = 3043] = "INVALID_DEP_FIELD", e[e.INVALID_NOTE_CONTEXT = 3044] = "INVALID_NOTE_CONTEXT", e[e.INVALID_NOTE = 3045] = "INVALID_NOTE", e[e.NOTE_REDEFINED = 3046] = "NOTE_REDEFINED", e[e.NOTE_CONTENT_REDEFINED = 3047] = "NOTE_CONTENT_REDEFINED", e[e.EMPTY_NOTE = 3048] = "EMPTY_NOTE", e[e.UNKNOWN_NOTE_SETTING = 3049] = "UNKNOWN_NOTE_SETTING", e[e.DUPLICATE_NOTE_SETTING = 3050] = "DUPLICATE_NOTE_SETTING", e[e.INVALID_NOTE_SETTING_VALUE = 3051] = "INVALID_NOTE_SETTING_VALUE", e[e.INVALID_INDEXES_CONTEXT = 3052] = "INVALID_INDEXES_CONTEXT", e[e.INVALID_INDEXES_FIELD = 3053] = "INVALID_INDEXES_FIELD", e[e.INVALID_INDEX = 3054] = "INVALID_INDEX", e[e.UNKNOWN_INDEX_SETTING = 3055] = "UNKNOWN_INDEX_SETTING", e[e.DUPLICATE_INDEX_SETTING = 3056] = "DUPLICATE_INDEX_SETTING", e[e.UNEXPECTED_INDEX_SETTING_VALUE = 3057] = "UNEXPECTED_INDEX_SETTING_VALUE", e[e.INVALID_INDEX_SETTING_VALUE = 3058] = "INVALID_INDEX_SETTING_VALUE", e[e.INVALID_PROJECT_CONTEXT = 3059] = "INVALID_PROJECT_CONTEXT", e[e.PROJECT_REDEFINED = 3060] = "PROJECT_REDEFINED", e[e.INVALID_PROJECT_FIELD = 3061] = "INVALID_PROJECT_FIELD", e[e.INVALID_CUSTOM_CONTEXT = 3062] = "INVALID_CUSTOM_CONTEXT", e[e.INVALID_CUSTOM_ELEMENT_VALUE = 3063] = "INVALID_CUSTOM_ELEMENT_VALUE", e[e.INVALID_ELEMENT_IN_SIMPLE_BODY = 3064] = "INVALID_ELEMENT_IN_SIMPLE_BODY", e[e.INVALID_TABLE_PARTIAL_CONTEXT = 3065] = "INVALID_TABLE_PARTIAL_CONTEXT", e[e.INVALID_TABLE_PARTIAL_ELEMENT_NAME = 3066] = "INVALID_TABLE_PARTIAL_ELEMENT_NAME", e[e.INVALID_TABLE_PARTIAL_SETTING_VALUE = 3067] = "INVALID_TABLE_PARTIAL_SETTING_VALUE", e[e.DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME = 3068] = "DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME", e[e.DUPLICATE_TABLE_PARTIAL_SETTING = 3069] = "DUPLICATE_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_PARTIAL_INJECTION = 3070] = "INVALID_TABLE_PARTIAL_INJECTION", e[e.INVALID_TABLE_PARTIAL_INJECTION_OP = 3071] = "INVALID_TABLE_PARTIAL_INJECTION_OP", e[e.INVALID_TABLE_PARTIAL_INJECTION_NAME = 3072] = "INVALID_TABLE_PARTIAL_INJECTION_NAME", e[e.DUPLICATE_TABLE_PARTIAL_INJECTION_NAME = 3073] = "DUPLICATE_TABLE_PARTIAL_INJECTION_NAME", e[e.UNKNOWN_TABLE_PARTIAL_SETTING = 3074] = "UNKNOWN_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_SETTING_VALUE = 3075] = "INVALID_TABLE_SETTING_VALUE", e[e.INVALID_CHECKS_CONTEXT = 3076] = "INVALID_CHECKS_CONTEXT", e[e.INVALID_CHECKS_FIELD = 3077] = "INVALID_CHECKS_FIELD", e[e.INVALID_CHECK = 3078] = "INVALID_CHECK", e[e.UNKNOWN_CHECK_SETTING = 3079] = "UNKNOWN_CHECK_SETTING", e[e.DUPLICATE_CHECK_SETTING = 3080] = "DUPLICATE_CHECK_SETTING", e[e.INVALID_CHECK_SETTING_VALUE = 3081] = "INVALID_CHECK_SETTING_VALUE", e[e.INVALID_RECORDS_CONTEXT = 3082] = "INVALID_RECORDS_CONTEXT", e[e.INVALID_RECORDS_NAME = 3083] = "INVALID_RECORDS_NAME", e[e.INVALID_RECORDS_FIELD = 3084] = "INVALID_RECORDS_FIELD", e[e.DUPLICATE_COLUMN_REFERENCES_IN_RECORDS = 3085] = "DUPLICATE_COLUMN_REFERENCES_IN_RECORDS", e[e.DUPLICATE_RECORDS_FOR_TABLE = 3086] = "DUPLICATE_RECORDS_FOR_TABLE", e[e.INVALID_USE_CONTEXT = 3087] = "INVALID_USE_CONTEXT", e[e.INVALID_USE_SPECIFIER_KIND = 3088] = "INVALID_USE_SPECIFIER_KIND", e[e.INVALID_USE_SPECIFIER_NAME = 3089] = "INVALID_USE_SPECIFIER_NAME", e[e.INVALID_DIAGRAMVIEW_CONTEXT = 3090] = "INVALID_DIAGRAMVIEW_CONTEXT", e[e.DUPLICATE_DIAGRAMVIEW_NAME = 3091] = "DUPLICATE_DIAGRAMVIEW_NAME", e[e.INVALID_DIAGRAMVIEW_FIELD = 3092] = "INVALID_DIAGRAMVIEW_FIELD", e[e.DUPLICATE_DIAGRAMVIEW_FIELD = 3093] = "DUPLICATE_DIAGRAMVIEW_FIELD", e[e.BINDING_ERROR = 4e3] = "BINDING_ERROR", e[e.NONEXISTENT_MODULE = 4001] = "NONEXISTENT_MODULE", e[e.UNSUPPORTED = 5e3] = "UNSUPPORTED", e[e.CIRCULAR_REF = 5001] = "CIRCULAR_REF", e[e.SAME_ENDPOINT = 5002] = "SAME_ENDPOINT", e[e.DEP_SELF_LOOP = 5003] = "DEP_SELF_LOOP", e[e.UNEQUAL_FIELDS_BINARY_REF = 5004] = "UNEQUAL_FIELDS_BINARY_REF", e[e.CONFLICTING_SETTING = 5005] = "CONFLICTING_SETTING", e[e.TABLE_REAPPEAR_IN_TABLEGROUP = 5006] = "TABLE_REAPPEAR_IN_TABLEGROUP", e;
|
|
1498
1498
|
}({}), b = class e extends Error {
|
|
1499
1499
|
constructor(t, n, r) {
|
|
1500
1500
|
super(n), this.code = t, this.diagnostic = n, this.nodeOrToken = r, this.start = r.start, this.end = r.end, this.name = this.constructor.name, Object.setPrototypeOf(this, e.prototype);
|
|
@@ -3333,26 +3333,30 @@ var Uc = class {
|
|
|
3333
3333
|
return this.dep.name = t.pop() || null, t.length > 1 && e.push(new b(y.UNSUPPORTED, "Nested schema is not supported", this.declarationNode.name)), this.dep.schemaName = t.join(".") || null, e;
|
|
3334
3334
|
}
|
|
3335
3335
|
interpretEdges() {
|
|
3336
|
-
let e = this.metadata.upstreamColumns(this.compiler), t = this.metadata.downstreamColumns(this.compiler), n = this.metadata.upstreamTables(this.compiler), r = this.metadata.downstreamTables(this.compiler), i = [], a = Math.max(n.length, r.length);
|
|
3337
|
-
for (let
|
|
3338
|
-
let
|
|
3336
|
+
let e = this.metadata.upstreamColumns(this.compiler), t = this.metadata.downstreamColumns(this.compiler), n = this.metadata.upstreamTables(this.compiler), r = this.metadata.downstreamTables(this.compiler), i = [], a = [], o = Math.max(n.length, r.length);
|
|
3337
|
+
for (let s = 0; s < o; s++) {
|
|
3338
|
+
let o = n[s], c = r[s], l = e[s] ?? [], u = t[s] ?? [], d = o?.interpretedName(this.compiler, this.filepath), f = c?.interpretedName(this.compiler, this.filepath), p = d?.schema ?? null, m = f?.schema ?? null;
|
|
3339
|
+
if (d?.name && f?.name && d.name === f.name && p === m) {
|
|
3340
|
+
a.push(new b(y.DEP_SELF_LOOP, `Self-loop Dep edge not allowed: "${p ?? "public"}"."${d.name}" cannot depend on itself`, this.declarationNode));
|
|
3341
|
+
continue;
|
|
3342
|
+
}
|
|
3339
3343
|
i.push({
|
|
3340
3344
|
upstream: {
|
|
3341
|
-
schemaName: u?.schema ?? null,
|
|
3342
|
-
tableName: u?.name ?? "",
|
|
3343
|
-
fieldNames: c.map((e) => e.name ?? ""),
|
|
3344
|
-
token: this.dep.token
|
|
3345
|
-
},
|
|
3346
|
-
downstream: {
|
|
3347
3345
|
schemaName: d?.schema ?? null,
|
|
3348
3346
|
tableName: d?.name ?? "",
|
|
3349
3347
|
fieldNames: l.map((e) => e.name ?? ""),
|
|
3350
3348
|
token: this.dep.token
|
|
3351
3349
|
},
|
|
3350
|
+
downstream: {
|
|
3351
|
+
schemaName: f?.schema ?? null,
|
|
3352
|
+
tableName: f?.name ?? "",
|
|
3353
|
+
fieldNames: u.map((e) => e.name ?? ""),
|
|
3354
|
+
token: this.dep.token
|
|
3355
|
+
},
|
|
3352
3356
|
token: this.dep.token
|
|
3353
3357
|
});
|
|
3354
3358
|
}
|
|
3355
|
-
return this.dep.edges = i,
|
|
3359
|
+
return this.dep.edges = i, a;
|
|
3356
3360
|
}
|
|
3357
3361
|
interpretSettings() {
|
|
3358
3362
|
let e = {};
|
|
@@ -15476,12 +15480,12 @@ function Qb(e) {
|
|
|
15476
15480
|
table: n
|
|
15477
15481
|
};
|
|
15478
15482
|
}
|
|
15479
|
-
function $b(e, n, r, i) {
|
|
15480
|
-
let
|
|
15481
|
-
if (!
|
|
15482
|
-
if (r === "public") return e.lookupMembers(
|
|
15483
|
-
let
|
|
15484
|
-
return
|
|
15483
|
+
function $b(e, n, r, i, a = j.Table) {
|
|
15484
|
+
let o = e.parseFile(n).getValue().ast, s = e.nodeSymbol(o).getFiltered(t);
|
|
15485
|
+
if (!s) return null;
|
|
15486
|
+
if (r === "public") return e.lookupMembers(s, a, i) ?? null;
|
|
15487
|
+
let c = e.lookupMembers(s, j.Schema, r);
|
|
15488
|
+
return c ? e.lookupMembers(c, a, i) ?? null : null;
|
|
15485
15489
|
}
|
|
15486
15490
|
function ex(e) {
|
|
15487
15491
|
return e.startsWith("\"") && e.endsWith("\"") && e.length >= 2 ? e.slice(1, -1) : e;
|
|
@@ -15603,8 +15607,120 @@ function lx(e, t, n, r, i, a) {
|
|
|
15603
15607
|
return m;
|
|
15604
15608
|
}
|
|
15605
15609
|
//#endregion
|
|
15610
|
+
//#region src/core/utils/setting.ts
|
|
15611
|
+
function ux(e, t) {
|
|
15612
|
+
let n = px(e);
|
|
15613
|
+
if (n) {
|
|
15614
|
+
let e = n.end - 1;
|
|
15615
|
+
return {
|
|
15616
|
+
start: e,
|
|
15617
|
+
end: e,
|
|
15618
|
+
newText: `, ${t}`
|
|
15619
|
+
};
|
|
15620
|
+
}
|
|
15621
|
+
if (e instanceof P) {
|
|
15622
|
+
let n = e.body;
|
|
15623
|
+
if (n && !(n instanceof R)) return {
|
|
15624
|
+
start: n.start,
|
|
15625
|
+
end: n.start,
|
|
15626
|
+
newText: `[${t}] `
|
|
15627
|
+
};
|
|
15628
|
+
}
|
|
15629
|
+
return {
|
|
15630
|
+
start: e.end,
|
|
15631
|
+
end: e.end,
|
|
15632
|
+
newText: ` [${t}]`
|
|
15633
|
+
};
|
|
15634
|
+
}
|
|
15635
|
+
function dx(e, t, n, r) {
|
|
15636
|
+
if (n === null) return fx(e, t, r);
|
|
15637
|
+
let i = n === void 0 ? t : `${t}: ${n}`, a = hx(e, t);
|
|
15638
|
+
if (a) return {
|
|
15639
|
+
start: a.settingNode.start,
|
|
15640
|
+
end: a.settingNode.end,
|
|
15641
|
+
newText: i
|
|
15642
|
+
};
|
|
15643
|
+
let o = gx(e, t);
|
|
15644
|
+
return o ? {
|
|
15645
|
+
start: o.start,
|
|
15646
|
+
end: o.end,
|
|
15647
|
+
newText: i
|
|
15648
|
+
} : ux(e, i);
|
|
15649
|
+
}
|
|
15650
|
+
function fx(e, t, n) {
|
|
15651
|
+
let r = hx(e, t);
|
|
15652
|
+
if (r) {
|
|
15653
|
+
let { settingsList: e, settingIndex: t } = r, i = e.elementList ?? [];
|
|
15654
|
+
if (i.length === 1) {
|
|
15655
|
+
let t = e.start;
|
|
15656
|
+
for (; t > 0 && n[t - 1] === " ";) t--;
|
|
15657
|
+
return {
|
|
15658
|
+
start: t,
|
|
15659
|
+
end: e.end,
|
|
15660
|
+
newText: ""
|
|
15661
|
+
};
|
|
15662
|
+
}
|
|
15663
|
+
let a = i[t];
|
|
15664
|
+
if (t === 0) {
|
|
15665
|
+
let e = i[t + 1];
|
|
15666
|
+
return {
|
|
15667
|
+
start: a.start,
|
|
15668
|
+
end: e.start,
|
|
15669
|
+
newText: ""
|
|
15670
|
+
};
|
|
15671
|
+
}
|
|
15672
|
+
return {
|
|
15673
|
+
start: i[t - 1].end,
|
|
15674
|
+
end: a.end,
|
|
15675
|
+
newText: ""
|
|
15676
|
+
};
|
|
15677
|
+
}
|
|
15678
|
+
let i = gx(e, t);
|
|
15679
|
+
if (i) return {
|
|
15680
|
+
start: i.start,
|
|
15681
|
+
end: i.end,
|
|
15682
|
+
newText: ""
|
|
15683
|
+
};
|
|
15684
|
+
}
|
|
15685
|
+
function px(e) {
|
|
15686
|
+
if (e instanceof R) return e.args.find((e) => e instanceof B);
|
|
15687
|
+
if (e instanceof P) {
|
|
15688
|
+
if (e.attributeList) return e.attributeList;
|
|
15689
|
+
let t = e.body;
|
|
15690
|
+
if (t instanceof R) return t.args.find((e) => e instanceof B);
|
|
15691
|
+
}
|
|
15692
|
+
}
|
|
15693
|
+
function mx(e) {
|
|
15694
|
+
if (e.name instanceof Zs) return os(e.name)?.toLowerCase();
|
|
15695
|
+
}
|
|
15696
|
+
function hx(e, t) {
|
|
15697
|
+
let n = px(e);
|
|
15698
|
+
if (!n) return;
|
|
15699
|
+
let r = t.toLowerCase(), i = n.elementList ?? [], a = i.findIndex((e) => e instanceof F ? mx(e) === r : !1);
|
|
15700
|
+
if (a !== -1) return {
|
|
15701
|
+
settingsList: n,
|
|
15702
|
+
settingNode: i[a],
|
|
15703
|
+
settingIndex: a
|
|
15704
|
+
};
|
|
15705
|
+
}
|
|
15706
|
+
function gx(e, t) {
|
|
15707
|
+
if (!(e instanceof P)) return;
|
|
15708
|
+
let n = e.body;
|
|
15709
|
+
if (!(!n || n instanceof R)) {
|
|
15710
|
+
for (let e of n.body) if (e instanceof P && e.type?.value?.toLowerCase() === t.toLowerCase() && e.body instanceof R && e.body.callee) return e;
|
|
15711
|
+
}
|
|
15712
|
+
}
|
|
15713
|
+
//#endregion
|
|
15714
|
+
//#region src/compiler/queries/transform/updateElementSetting.ts
|
|
15715
|
+
function _x(e, t, n, r) {
|
|
15716
|
+
let i = this.getSource(e) ?? "", a = t.kind, o = ("schema" in t ? t.schema : void 0) ?? "public", s = "table" in t ? t.table : "name" in t ? t.name : "", c = $b(this, e, o, s, a);
|
|
15717
|
+
if (!c?.declaration) return i;
|
|
15718
|
+
let l = dx(c.declaration, n, r, i);
|
|
15719
|
+
return l ? Zb(i, [l]) : i;
|
|
15720
|
+
}
|
|
15721
|
+
//#endregion
|
|
15606
15722
|
//#region src/compiler/queries/transform/syncDiagramView.ts
|
|
15607
|
-
function
|
|
15723
|
+
function vx(e) {
|
|
15608
15724
|
let t = [], n = new Ab(e, Eo).lex();
|
|
15609
15725
|
if (n.getErrors().length > 0) return t;
|
|
15610
15726
|
let i = new Pb(e, n.getValue(), new Ks(), Eo).parse();
|
|
@@ -15620,36 +15736,36 @@ function ux(e) {
|
|
|
15620
15736
|
}
|
|
15621
15737
|
return t;
|
|
15622
15738
|
}
|
|
15623
|
-
function
|
|
15739
|
+
function yx(e, t, n) {
|
|
15624
15740
|
e.push(` ${t} {`), n.forEach((t) => e.push(` ${t}`)), e.push(" }");
|
|
15625
15741
|
}
|
|
15626
|
-
function
|
|
15742
|
+
function bx(e, t) {
|
|
15627
15743
|
e.push(` ${t} { * }`);
|
|
15628
15744
|
}
|
|
15629
|
-
function
|
|
15745
|
+
function xx(e) {
|
|
15630
15746
|
return e == null ? "null" : e.length === 0 ? "empty" : "items";
|
|
15631
15747
|
}
|
|
15632
|
-
function
|
|
15748
|
+
function Sx(e, t) {
|
|
15633
15749
|
let n = `DiagramView ${gg(e)} {`, r = (e) => gg(e.name), i = t?.tables?.map((e) => {
|
|
15634
15750
|
let t = gg(e.name);
|
|
15635
15751
|
return e.schemaName === "public" ? t : `${gg(e.schemaName)}.${t}`;
|
|
15636
15752
|
}) ?? [], a = t?.tableGroups?.map(r) ?? [], o = t?.schemas?.map(r) ?? [], s = t?.stickyNotes?.map(r) ?? [];
|
|
15637
15753
|
if (!t) return `${n}\n}`;
|
|
15638
15754
|
let c = {
|
|
15639
|
-
tables:
|
|
15640
|
-
tableGroups:
|
|
15641
|
-
schemas:
|
|
15642
|
-
stickyNotes:
|
|
15755
|
+
tables: xx(t.tables),
|
|
15756
|
+
tableGroups: xx(t.tableGroups),
|
|
15757
|
+
schemas: xx(t.schemas),
|
|
15758
|
+
stickyNotes: xx(t.stickyNotes)
|
|
15643
15759
|
};
|
|
15644
15760
|
if (Object.values(c).every((e) => e === "null")) return `${n}\n}`;
|
|
15645
15761
|
if (Object.values(c).every((e) => e === "empty")) return `${n}\n *\n}`;
|
|
15646
15762
|
let l = c.tables === "items" || c.tableGroups === "items" || c.schemas === "items", u = c.tables === "empty" && c.tableGroups === "empty" && c.schemas === "empty", d = [n];
|
|
15647
|
-
return l ? (c.tables === "items" &&
|
|
15763
|
+
return l ? (c.tables === "items" && yx(d, "Tables", i), c.tableGroups === "items" && yx(d, "TableGroups", a), c.schemas === "items" && yx(d, "Schemas", o)) : u && bx(d, "Tables"), c.stickyNotes === "items" ? yx(d, "Notes", s) : c.stickyNotes === "empty" && bx(d, "Notes"), d.push("}"), d.join("\n");
|
|
15648
15764
|
}
|
|
15649
|
-
function
|
|
15650
|
-
let r = this.getSource(e) ?? "", i = n ??
|
|
15765
|
+
function Cx(e, t, n) {
|
|
15766
|
+
let r = this.getSource(e) ?? "", i = n ?? vx(r), a = [];
|
|
15651
15767
|
for (let e of t) {
|
|
15652
|
-
let t =
|
|
15768
|
+
let t = wx(r, e, i);
|
|
15653
15769
|
a.push(...t);
|
|
15654
15770
|
}
|
|
15655
15771
|
return a.sort((e, t) => t.start - e.start), {
|
|
@@ -15657,29 +15773,29 @@ function hx(e, t, n) {
|
|
|
15657
15773
|
edits: a
|
|
15658
15774
|
};
|
|
15659
15775
|
}
|
|
15660
|
-
function
|
|
15776
|
+
function wx(e, t, n) {
|
|
15661
15777
|
switch (t.operation) {
|
|
15662
|
-
case "create": return
|
|
15663
|
-
case "update": return
|
|
15664
|
-
case "delete": return
|
|
15778
|
+
case "create": return Tx(e, t, n);
|
|
15779
|
+
case "update": return Ex(e, t, n);
|
|
15780
|
+
case "delete": return Dx(e, t, n);
|
|
15665
15781
|
default: return [];
|
|
15666
15782
|
}
|
|
15667
15783
|
}
|
|
15668
|
-
function
|
|
15669
|
-
if (n.find((e) => e.name === t.name)) return
|
|
15670
|
-
let r = "\n\n" +
|
|
15784
|
+
function Tx(e, t, n) {
|
|
15785
|
+
if (n.find((e) => e.name === t.name)) return Ex(e, t, n);
|
|
15786
|
+
let r = "\n\n" + Sx(t.name, t.visibleEntities) + "\n";
|
|
15671
15787
|
return [{
|
|
15672
15788
|
start: e.length,
|
|
15673
15789
|
end: e.length,
|
|
15674
15790
|
newText: r
|
|
15675
15791
|
}];
|
|
15676
15792
|
}
|
|
15677
|
-
function
|
|
15793
|
+
function Ex(e, t, n) {
|
|
15678
15794
|
let r = n.find((e) => e.name === t.name);
|
|
15679
15795
|
if (!r) return [];
|
|
15680
15796
|
let i = [];
|
|
15681
15797
|
if (t.newName || t.visibleEntities) {
|
|
15682
|
-
let e =
|
|
15798
|
+
let e = Sx(t.newName || t.name, t.visibleEntities);
|
|
15683
15799
|
i.push({
|
|
15684
15800
|
start: r.startIndex,
|
|
15685
15801
|
end: r.endIndex,
|
|
@@ -15688,7 +15804,7 @@ function vx(e, t, n) {
|
|
|
15688
15804
|
}
|
|
15689
15805
|
return i;
|
|
15690
15806
|
}
|
|
15691
|
-
function
|
|
15807
|
+
function Dx(e, t, n) {
|
|
15692
15808
|
let r = n.find((e) => e.name === t.name);
|
|
15693
15809
|
if (!r) return [];
|
|
15694
15810
|
let i = r.startIndex, a = r.endIndex;
|
|
@@ -15708,25 +15824,25 @@ function yx(e, t, n) {
|
|
|
15708
15824
|
}
|
|
15709
15825
|
//#endregion
|
|
15710
15826
|
//#region src/core/utils/note.ts
|
|
15711
|
-
function
|
|
15712
|
-
let n =
|
|
15827
|
+
function Ox(e, t) {
|
|
15828
|
+
let n = jx(e);
|
|
15713
15829
|
if (n) return {
|
|
15714
15830
|
start: n.noteValueStart,
|
|
15715
15831
|
end: n.noteValueEnd,
|
|
15716
15832
|
newText: Cg(t)
|
|
15717
15833
|
};
|
|
15718
15834
|
}
|
|
15719
|
-
function
|
|
15720
|
-
let t =
|
|
15835
|
+
function kx(e) {
|
|
15836
|
+
let t = jx(e);
|
|
15721
15837
|
if (t) return {
|
|
15722
15838
|
start: t.fullNoteStart,
|
|
15723
15839
|
end: t.fullNoteEnd,
|
|
15724
15840
|
newText: ""
|
|
15725
15841
|
};
|
|
15726
15842
|
}
|
|
15727
|
-
function
|
|
15728
|
-
if (
|
|
15729
|
-
let n =
|
|
15843
|
+
function Ax(e, t) {
|
|
15844
|
+
if (jx(e) || !(e instanceof P)) return;
|
|
15845
|
+
let n = Mx(e);
|
|
15730
15846
|
if (n !== void 0) return {
|
|
15731
15847
|
start: n,
|
|
15732
15848
|
end: n,
|
|
@@ -15750,12 +15866,12 @@ function Sx(e, t) {
|
|
|
15750
15866
|
};
|
|
15751
15867
|
}
|
|
15752
15868
|
}
|
|
15753
|
-
function
|
|
15869
|
+
function jx(e) {
|
|
15754
15870
|
if (!(e instanceof P)) return;
|
|
15755
15871
|
let t = e.body;
|
|
15756
15872
|
if (t && !(t instanceof R)) for (let e of t.body) {
|
|
15757
15873
|
if (!(e instanceof P) || !e.isKind(r.Note)) continue;
|
|
15758
|
-
let t =
|
|
15874
|
+
let t = Nx(e);
|
|
15759
15875
|
if (t) return {
|
|
15760
15876
|
kind: qs.ELEMENT_DECLARATION,
|
|
15761
15877
|
noteValueStart: t.start,
|
|
@@ -15765,18 +15881,18 @@ function Cx(e) {
|
|
|
15765
15881
|
};
|
|
15766
15882
|
}
|
|
15767
15883
|
let n = e.attributeList ?? (t instanceof R ? t.args.find((e) => e instanceof B) : void 0);
|
|
15768
|
-
if (n) return
|
|
15884
|
+
if (n) return Px(n);
|
|
15769
15885
|
}
|
|
15770
|
-
function
|
|
15886
|
+
function Mx(e) {
|
|
15771
15887
|
let t = e.body;
|
|
15772
15888
|
if (!(!t || t instanceof R) && t.blockCloseBrace) return t.blockCloseBrace.start;
|
|
15773
15889
|
}
|
|
15774
|
-
function
|
|
15890
|
+
function Nx(e) {
|
|
15775
15891
|
let t = e.body;
|
|
15776
15892
|
if (t instanceof R) return t.callee ?? void 0;
|
|
15777
15893
|
if (t instanceof z && t.body[0] instanceof R) return t.body[0].callee ?? void 0;
|
|
15778
15894
|
}
|
|
15779
|
-
function
|
|
15895
|
+
function Px(e) {
|
|
15780
15896
|
let t = x(e).getValue()[i.Note];
|
|
15781
15897
|
if (!t?.length) return;
|
|
15782
15898
|
let n = t[0];
|
|
@@ -15791,111 +15907,8 @@ function Ex(e) {
|
|
|
15791
15907
|
};
|
|
15792
15908
|
}
|
|
15793
15909
|
//#endregion
|
|
15794
|
-
//#region src/core/utils/setting.ts
|
|
15795
|
-
function Dx(e, t) {
|
|
15796
|
-
let n = Ax(e);
|
|
15797
|
-
if (n) {
|
|
15798
|
-
let e = n.end - 1;
|
|
15799
|
-
return {
|
|
15800
|
-
start: e,
|
|
15801
|
-
end: e,
|
|
15802
|
-
newText: `, ${t}`
|
|
15803
|
-
};
|
|
15804
|
-
}
|
|
15805
|
-
if (e instanceof P) {
|
|
15806
|
-
let n = e.body;
|
|
15807
|
-
if (n && !(n instanceof R)) return {
|
|
15808
|
-
start: n.start,
|
|
15809
|
-
end: n.start,
|
|
15810
|
-
newText: `[${t}] `
|
|
15811
|
-
};
|
|
15812
|
-
}
|
|
15813
|
-
return {
|
|
15814
|
-
start: e.end,
|
|
15815
|
-
end: e.end,
|
|
15816
|
-
newText: ` [${t}]`
|
|
15817
|
-
};
|
|
15818
|
-
}
|
|
15819
|
-
function Ox(e, t, n, r) {
|
|
15820
|
-
let i = Mx(e, t);
|
|
15821
|
-
if (i) return {
|
|
15822
|
-
start: i.settingNode.start,
|
|
15823
|
-
end: i.settingNode.end,
|
|
15824
|
-
newText: n
|
|
15825
|
-
};
|
|
15826
|
-
let a = Nx(e, t);
|
|
15827
|
-
if (a) return {
|
|
15828
|
-
start: a.start,
|
|
15829
|
-
end: a.end,
|
|
15830
|
-
newText: n
|
|
15831
|
-
};
|
|
15832
|
-
}
|
|
15833
|
-
function kx(e, t, n) {
|
|
15834
|
-
let r = Mx(e, t);
|
|
15835
|
-
if (r) {
|
|
15836
|
-
let { settingsList: e, settingIndex: t } = r, i = e.elementList ?? [];
|
|
15837
|
-
if (i.length === 1) {
|
|
15838
|
-
let t = e.start;
|
|
15839
|
-
for (; t > 0 && n[t - 1] === " ";) t--;
|
|
15840
|
-
return {
|
|
15841
|
-
start: t,
|
|
15842
|
-
end: e.end,
|
|
15843
|
-
newText: ""
|
|
15844
|
-
};
|
|
15845
|
-
}
|
|
15846
|
-
let a = i[t];
|
|
15847
|
-
if (t === 0) {
|
|
15848
|
-
let e = i[t + 1];
|
|
15849
|
-
return {
|
|
15850
|
-
start: a.start,
|
|
15851
|
-
end: e.start,
|
|
15852
|
-
newText: ""
|
|
15853
|
-
};
|
|
15854
|
-
}
|
|
15855
|
-
return {
|
|
15856
|
-
start: i[t - 1].end,
|
|
15857
|
-
end: a.end,
|
|
15858
|
-
newText: ""
|
|
15859
|
-
};
|
|
15860
|
-
}
|
|
15861
|
-
let i = Nx(e, t);
|
|
15862
|
-
if (i) return {
|
|
15863
|
-
start: i.start,
|
|
15864
|
-
end: i.end,
|
|
15865
|
-
newText: ""
|
|
15866
|
-
};
|
|
15867
|
-
}
|
|
15868
|
-
function Ax(e) {
|
|
15869
|
-
if (e instanceof R) return e.args.find((e) => e instanceof B);
|
|
15870
|
-
if (e instanceof P) {
|
|
15871
|
-
if (e.attributeList) return e.attributeList;
|
|
15872
|
-
let t = e.body;
|
|
15873
|
-
if (t instanceof R) return t.args.find((e) => e instanceof B);
|
|
15874
|
-
}
|
|
15875
|
-
}
|
|
15876
|
-
function jx(e) {
|
|
15877
|
-
if (e.name instanceof Zs) return os(e.name)?.toLowerCase();
|
|
15878
|
-
}
|
|
15879
|
-
function Mx(e, t) {
|
|
15880
|
-
let n = Ax(e);
|
|
15881
|
-
if (!n) return;
|
|
15882
|
-
let r = t.toLowerCase(), i = n.elementList ?? [], a = i.findIndex((e) => e instanceof F ? jx(e) === r : !1);
|
|
15883
|
-
if (a !== -1) return {
|
|
15884
|
-
settingsList: n,
|
|
15885
|
-
settingNode: i[a],
|
|
15886
|
-
settingIndex: a
|
|
15887
|
-
};
|
|
15888
|
-
}
|
|
15889
|
-
function Nx(e, t) {
|
|
15890
|
-
if (!(e instanceof P)) return;
|
|
15891
|
-
let n = e.body;
|
|
15892
|
-
if (!(!n || n instanceof R)) {
|
|
15893
|
-
for (let e of n.body) if (e instanceof P && e.type?.value?.toLowerCase() === t.toLowerCase() && e.body instanceof R && e.body.callee) return e;
|
|
15894
|
-
}
|
|
15895
|
-
}
|
|
15896
|
-
//#endregion
|
|
15897
15910
|
//#region src/compiler/queries/transform/syncDep.ts
|
|
15898
|
-
function
|
|
15911
|
+
function Fx(e) {
|
|
15899
15912
|
let t = [], n = new Ab(e, Eo).lex();
|
|
15900
15913
|
if (n.getErrors().length > 0) return t;
|
|
15901
15914
|
let i = new Pb(e, n.getValue(), new Ks(), Eo).parse();
|
|
@@ -15906,12 +15919,12 @@ function Px(e) {
|
|
|
15906
15919
|
let n = [], i = e.body;
|
|
15907
15920
|
if (i instanceof R) {
|
|
15908
15921
|
if (i.callee instanceof L) {
|
|
15909
|
-
let e =
|
|
15922
|
+
let e = Wx(i.callee);
|
|
15910
15923
|
e && n.push(e);
|
|
15911
15924
|
}
|
|
15912
15925
|
} else if (i) {
|
|
15913
15926
|
for (let e of i.body) if (e instanceof R && e.callee instanceof L) {
|
|
15914
|
-
let t =
|
|
15927
|
+
let t = Wx(e.callee);
|
|
15915
15928
|
t && n.push(t);
|
|
15916
15929
|
}
|
|
15917
15930
|
}
|
|
@@ -15924,7 +15937,7 @@ function Px(e) {
|
|
|
15924
15937
|
}
|
|
15925
15938
|
return t;
|
|
15926
15939
|
}
|
|
15927
|
-
function
|
|
15940
|
+
function Ix(e) {
|
|
15928
15941
|
let t = [], n = new Ab(e, Eo).lex();
|
|
15929
15942
|
if (n.getErrors().length > 0) return t;
|
|
15930
15943
|
let a = new Pb(e, n.getValue(), new Ks(), Eo).parse();
|
|
@@ -15943,8 +15956,8 @@ function Fx(e) {
|
|
|
15943
15956
|
schemaName: s,
|
|
15944
15957
|
tableName: o,
|
|
15945
15958
|
fieldNames: [r]
|
|
15946
|
-
}, c =
|
|
15947
|
-
if (c) for (let e of
|
|
15959
|
+
}, c = fx(n, i.Dep, e);
|
|
15960
|
+
if (c) for (let e of Zx(n, a)) t.push({
|
|
15948
15961
|
edge: e,
|
|
15949
15962
|
stripStart: c.start,
|
|
15950
15963
|
stripEnd: c.end
|
|
@@ -15953,21 +15966,21 @@ function Fx(e) {
|
|
|
15953
15966
|
}
|
|
15954
15967
|
return t;
|
|
15955
15968
|
}
|
|
15956
|
-
function
|
|
15957
|
-
return `Dep [color: ${t}] {\n ${
|
|
15969
|
+
function Lx(e, t) {
|
|
15970
|
+
return `Dep [color: ${t}] {\n ${Kx(e.upstream)} -> ${Kx(e.downstream)}\n}`;
|
|
15958
15971
|
}
|
|
15959
|
-
function
|
|
15960
|
-
let r = this.getSource(e) ?? "", i = n ??
|
|
15961
|
-
for (let e of t) o.push(...
|
|
15972
|
+
function Rx(e, t, n) {
|
|
15973
|
+
let r = this.getSource(e) ?? "", i = n ?? Fx(r), a = Ix(r), o = [];
|
|
15974
|
+
for (let e of t) o.push(...Qx(r, e, i, a));
|
|
15962
15975
|
return o.sort((e, t) => t.start - e.start), {
|
|
15963
15976
|
newDbml: Zb(r, o, !0),
|
|
15964
15977
|
edits: o
|
|
15965
15978
|
};
|
|
15966
15979
|
}
|
|
15967
|
-
function
|
|
15980
|
+
function zx(e) {
|
|
15968
15981
|
return e && e.length > 0 ? e : v;
|
|
15969
15982
|
}
|
|
15970
|
-
function
|
|
15983
|
+
function Bx(e, t) {
|
|
15971
15984
|
if (e.length === 0) return;
|
|
15972
15985
|
if (!t) {
|
|
15973
15986
|
let t = e[e.length - 1];
|
|
@@ -15984,94 +15997,91 @@ function zx(e, t) {
|
|
|
15984
15997
|
fieldNames: n
|
|
15985
15998
|
};
|
|
15986
15999
|
}
|
|
15987
|
-
function
|
|
15988
|
-
if (
|
|
16000
|
+
function Vx(e, t) {
|
|
16001
|
+
if (zx(e.schemaName) !== zx(t.schemaName) || e.tableName !== t.tableName) return !1;
|
|
15989
16002
|
let n = e.fieldNames ?? [], r = t.fieldNames ?? [];
|
|
15990
16003
|
return n.length === r.length ? n.every((e, t) => e === r[t]) : !1;
|
|
15991
16004
|
}
|
|
15992
|
-
function Vx(e, t) {
|
|
15993
|
-
return Bx(e.upstream, t.upstream) && Bx(e.downstream, t.downstream);
|
|
15994
|
-
}
|
|
15995
16005
|
function Hx(e, t) {
|
|
15996
|
-
return e.
|
|
16006
|
+
return Vx(e.upstream, t.upstream) && Vx(e.downstream, t.downstream);
|
|
16007
|
+
}
|
|
16008
|
+
function Ux(e, t) {
|
|
16009
|
+
return e.edges.some((e) => Hx(e, t));
|
|
15997
16010
|
}
|
|
15998
|
-
function
|
|
16011
|
+
function Wx(e) {
|
|
15999
16012
|
let t = e.op?.value;
|
|
16000
16013
|
if (t !== "->" && t !== "<-") return;
|
|
16001
16014
|
let n = e.leftExpression, r = e.rightExpression;
|
|
16002
16015
|
if (!n || !r) return;
|
|
16003
16016
|
let i = t === "<-" ? r : n, a = t === "<-" ? n : r, o = D(i), s = D(a);
|
|
16004
16017
|
if (!o || !s) return;
|
|
16005
|
-
let c = o.length > 1 && s.length > 1, l =
|
|
16018
|
+
let c = o.length > 1 && s.length > 1, l = Bx(o, c), u = Bx(s, c);
|
|
16006
16019
|
if (!(!l || !u)) return {
|
|
16007
16020
|
upstream: l,
|
|
16008
16021
|
downstream: u
|
|
16009
16022
|
};
|
|
16010
16023
|
}
|
|
16011
|
-
function
|
|
16024
|
+
function Gx(e) {
|
|
16012
16025
|
if (e.name instanceof Zs) return os(e.name)?.toLowerCase();
|
|
16013
16026
|
}
|
|
16014
|
-
function
|
|
16015
|
-
let t =
|
|
16027
|
+
function Kx(e) {
|
|
16028
|
+
let t = zx(e.schemaName), n = [];
|
|
16016
16029
|
t !== "public" && n.push(gg(t)), n.push(gg(e.tableName));
|
|
16017
16030
|
for (let t of e.fieldNames ?? []) n.push(gg(t));
|
|
16018
16031
|
return n.join(".");
|
|
16019
16032
|
}
|
|
16020
|
-
function
|
|
16021
|
-
return e.find((e) =>
|
|
16033
|
+
function qx(e, t) {
|
|
16034
|
+
return e.find((e) => Ux(e, t));
|
|
16022
16035
|
}
|
|
16023
|
-
function
|
|
16036
|
+
function Jx(e, t, n) {
|
|
16024
16037
|
let r = [];
|
|
16025
|
-
if (e.color
|
|
16026
|
-
let
|
|
16027
|
-
e && r.push(e);
|
|
16028
|
-
} else if (e.color !== void 0) {
|
|
16029
|
-
let a = Ox(t.declaration, i.Color, `${i.Color}: ${e.color}`, n) ?? Dx(t.declaration, `${i.Color}: ${e.color}`);
|
|
16038
|
+
if (e.color !== void 0) {
|
|
16039
|
+
let a = dx(t.declaration, i.Color, e.color, n);
|
|
16030
16040
|
a && r.push(a);
|
|
16031
16041
|
}
|
|
16032
16042
|
if (e.note === null) {
|
|
16033
|
-
let e =
|
|
16043
|
+
let e = kx(t.declaration);
|
|
16034
16044
|
e && r.push(e);
|
|
16035
16045
|
} else if (e.note !== void 0) {
|
|
16036
|
-
let n =
|
|
16046
|
+
let n = Ox(t.declaration, e.note) ?? Ax(t.declaration, e.note);
|
|
16037
16047
|
n && r.push(n);
|
|
16038
16048
|
}
|
|
16039
16049
|
return r;
|
|
16040
16050
|
}
|
|
16041
|
-
function
|
|
16042
|
-
let i =
|
|
16043
|
-
if (i) return
|
|
16044
|
-
let a =
|
|
16051
|
+
function Yx(e, t, n, r) {
|
|
16052
|
+
let i = qx(n, t.edge);
|
|
16053
|
+
if (i) return Jx(t, i, e);
|
|
16054
|
+
let a = Lx(t.edge, t.color ?? ""), o = {
|
|
16045
16055
|
start: e.length,
|
|
16046
16056
|
end: e.length,
|
|
16047
16057
|
newText: "\n\n" + a + "\n"
|
|
16048
|
-
}, s = r.find((e) =>
|
|
16058
|
+
}, s = r.find((e) => Hx(e.edge, t.edge));
|
|
16049
16059
|
return s ? [{
|
|
16050
16060
|
start: s.stripStart,
|
|
16051
16061
|
end: s.stripEnd,
|
|
16052
16062
|
newText: ""
|
|
16053
16063
|
}, o] : [o];
|
|
16054
16064
|
}
|
|
16055
|
-
function
|
|
16065
|
+
function Xx(e, t, n) {
|
|
16056
16066
|
let r = e.color === void 0 && e.note === void 0;
|
|
16057
|
-
return
|
|
16067
|
+
return Jx({
|
|
16058
16068
|
...e,
|
|
16059
16069
|
color: r ? null : e.color
|
|
16060
16070
|
}, t, n);
|
|
16061
16071
|
}
|
|
16062
|
-
function
|
|
16072
|
+
function Zx(e, t) {
|
|
16063
16073
|
let n = e.args.find((e) => e instanceof B);
|
|
16064
16074
|
if (!n) return [];
|
|
16065
16075
|
let r = [];
|
|
16066
16076
|
for (let e of n.elementList) {
|
|
16067
|
-
if (
|
|
16077
|
+
if (Gx(e) !== i.Dep) continue;
|
|
16068
16078
|
let n = e.value;
|
|
16069
16079
|
if (!(n instanceof I) || !n.expression) continue;
|
|
16070
16080
|
let a = n.op?.value;
|
|
16071
16081
|
if (a !== "->" && a !== "<-") continue;
|
|
16072
16082
|
let o = D(n.expression);
|
|
16073
16083
|
if (!o) continue;
|
|
16074
|
-
let s =
|
|
16084
|
+
let s = Bx(o, o.length > 1);
|
|
16075
16085
|
s && r.push(a === "->" ? {
|
|
16076
16086
|
upstream: t,
|
|
16077
16087
|
downstream: s
|
|
@@ -16082,25 +16092,25 @@ function Xx(e, t) {
|
|
|
16082
16092
|
}
|
|
16083
16093
|
return r;
|
|
16084
16094
|
}
|
|
16085
|
-
function
|
|
16095
|
+
function Qx(e, t, n, r) {
|
|
16086
16096
|
switch (t.operation) {
|
|
16087
|
-
case "create": return
|
|
16097
|
+
case "create": return Yx(e, t, n, r);
|
|
16088
16098
|
case "update": {
|
|
16089
|
-
let r =
|
|
16090
|
-
return r ?
|
|
16099
|
+
let r = qx(n, t.edge);
|
|
16100
|
+
return r ? Jx(t, r, e) : [];
|
|
16091
16101
|
}
|
|
16092
16102
|
case "remove": {
|
|
16093
|
-
let r =
|
|
16094
|
-
return r ?
|
|
16103
|
+
let r = qx(n, t.edge);
|
|
16104
|
+
return r ? Xx(t, r, e) : [];
|
|
16095
16105
|
}
|
|
16096
16106
|
default: return [];
|
|
16097
16107
|
}
|
|
16098
16108
|
}
|
|
16099
16109
|
//#endregion
|
|
16100
16110
|
//#region src/compiler/index.ts
|
|
16101
|
-
var
|
|
16111
|
+
var $x = Symbol("COMPUTING"), eS = class {
|
|
16102
16112
|
constructor(e) {
|
|
16103
|
-
this.layout = e, this.nodeIdGenerator = new Ks(), this.symbolIdGenerator = new ws(), this.symbolFactory = new eo(this.symbolIdGenerator), this.sourceSnapshot = /* @__PURE__ */ new Map(), this.globalCache = /* @__PURE__ */ new Map(), this.globallyQuerying = !1, this.localCache = /* @__PURE__ */ new Map(), this.parseFile = this.localQuery(Vb), this.parseProject = this.globalQuery(Hb), this.validateNode = this.localQuery(H_), this.validateFile = this.localQuery(kb), this.nodeFullname = this.localQuery(W_), this.nodeAlias = this.localQuery(G_), this.nodeSettings = this.localQuery(U_), this.canonicalName = this.globalQuery(ub), this.bindNode = this.globalQuery(Qg), this.bindFile = this.globalQuery(Tb), this.bindProject = this.globalQuery(Eb), this.interpretSymbol = this.globalQuery(e_), this.interpretMetadata = this.globalQuery(t_), this.interpretFile = this.globalQuery(Db), this.interpretProject = this.globalQuery(Ob), this.nodeSymbol = this.globalQuery(Yg), this.nodeMetadata = this.globalQuery($g), this.symbolMembers = this.globalQuery(Xg), this.symbolMembersLookupMap = this.globalQuery(Ub), this.lookupMembers = this.globalQuery(Wb), this.nodeReferee = this.globalQuery(Zg), this.resolutionIndex = this.globalQuery(Kb), this.symbolReferences = this.globalQuery(Jb), this.symbolParent = this.globalQuery(qb), this.symbolMetadata = this.globalQuery(Yb), this.symbolAliases = this.globalQuery(Gb), this.symbolUses = this.globalQuery(Xb), this.fileDependencies = this.localQuery(pb), this.reachableFiles = this.globalQuery(hb), this.usableMembers = this.globalQuery(Zh), this.nodeAtPosition = this.localQuery(wb), this.renameTable = sx.bind(this), this.syncDiagramView =
|
|
16113
|
+
this.layout = e, this.nodeIdGenerator = new Ks(), this.symbolIdGenerator = new ws(), this.symbolFactory = new eo(this.symbolIdGenerator), this.sourceSnapshot = /* @__PURE__ */ new Map(), this.globalCache = /* @__PURE__ */ new Map(), this.globallyQuerying = !1, this.localCache = /* @__PURE__ */ new Map(), this.parseFile = this.localQuery(Vb), this.parseProject = this.globalQuery(Hb), this.validateNode = this.localQuery(H_), this.validateFile = this.localQuery(kb), this.nodeFullname = this.localQuery(W_), this.nodeAlias = this.localQuery(G_), this.nodeSettings = this.localQuery(U_), this.canonicalName = this.globalQuery(ub), this.bindNode = this.globalQuery(Qg), this.bindFile = this.globalQuery(Tb), this.bindProject = this.globalQuery(Eb), this.interpretSymbol = this.globalQuery(e_), this.interpretMetadata = this.globalQuery(t_), this.interpretFile = this.globalQuery(Db), this.interpretProject = this.globalQuery(Ob), this.nodeSymbol = this.globalQuery(Yg), this.nodeMetadata = this.globalQuery($g), this.symbolMembers = this.globalQuery(Xg), this.symbolMembersLookupMap = this.globalQuery(Ub), this.lookupMembers = this.globalQuery(Wb), this.nodeReferee = this.globalQuery(Zg), this.resolutionIndex = this.globalQuery(Kb), this.symbolReferences = this.globalQuery(Jb), this.symbolParent = this.globalQuery(qb), this.symbolMetadata = this.globalQuery(Yb), this.symbolAliases = this.globalQuery(Gb), this.symbolUses = this.globalQuery(Xb), this.fileDependencies = this.localQuery(pb), this.reachableFiles = this.globalQuery(hb), this.usableMembers = this.globalQuery(Zh), this.nodeAtPosition = this.localQuery(wb), this.renameTable = sx.bind(this), this.updateElementSetting = _x.bind(this), this.syncDiagramView = Cx.bind(this), this.syncDep = Rx.bind(this), this.token = {
|
|
16104
16114
|
invalidStream: this.localQuery(Cb),
|
|
16105
16115
|
flatStream: this.localQuery(Sb)
|
|
16106
16116
|
}, this.parse = {
|
|
@@ -16142,10 +16152,10 @@ var Qx = Symbol("COMPUTING"), $x = class {
|
|
|
16142
16152
|
r || (r = /* @__PURE__ */ new Map(), this.globalCache.set(t, r));
|
|
16143
16153
|
let i = n.length === 0 ? "" : n.length === 1 ? Ec(n[0]) : n.map((e) => Ec(e)).join("\0"), a = r.get(i);
|
|
16144
16154
|
if (a) {
|
|
16145
|
-
if (a ===
|
|
16155
|
+
if (a === $x) throw Error(`Cycle detected in query: ${e.name}(${i})`);
|
|
16146
16156
|
return a;
|
|
16147
16157
|
}
|
|
16148
|
-
r.set(i,
|
|
16158
|
+
r.set(i, $x);
|
|
16149
16159
|
try {
|
|
16150
16160
|
let t = e.apply(this, n);
|
|
16151
16161
|
return r.set(i, t), t;
|
|
@@ -16167,10 +16177,10 @@ var Qx = Symbol("COMPUTING"), $x = class {
|
|
|
16167
16177
|
let c = s.get(t);
|
|
16168
16178
|
if (c || (c = /* @__PURE__ */ new Map(), s.set(t, c)), c.has(o)) {
|
|
16169
16179
|
let t = c.get(o);
|
|
16170
|
-
if (t ===
|
|
16180
|
+
if (t === $x) throw Error(`Cycle detected in query: ${e.name}(${a}, ${o})`);
|
|
16171
16181
|
return t;
|
|
16172
16182
|
}
|
|
16173
|
-
c.set(o,
|
|
16183
|
+
c.set(o, $x);
|
|
16174
16184
|
try {
|
|
16175
16185
|
let t = e.apply(this, n);
|
|
16176
16186
|
return c.set(o, t), t;
|
|
@@ -16179,12 +16189,6 @@ var Qx = Symbol("COMPUTING"), $x = class {
|
|
|
16179
16189
|
}
|
|
16180
16190
|
});
|
|
16181
16191
|
}
|
|
16182
|
-
findDiagramViewBlocks(e) {
|
|
16183
|
-
return ux(this.getSource(e) ?? "");
|
|
16184
|
-
}
|
|
16185
|
-
findDepBlocks(e) {
|
|
16186
|
-
return Px(this.getSource(e) ?? "");
|
|
16187
|
-
}
|
|
16188
16192
|
initMonacoServices(e) {
|
|
16189
16193
|
let t = e?.autocompletion?.triggerCharacters ?? [];
|
|
16190
16194
|
return {
|
|
@@ -16194,7 +16198,7 @@ var Qx = Symbol("COMPUTING"), $x = class {
|
|
|
16194
16198
|
diagnosticsProvider: new ty(this)
|
|
16195
16199
|
};
|
|
16196
16200
|
}
|
|
16197
|
-
},
|
|
16201
|
+
}, tS = class e {
|
|
16198
16202
|
constructor(e = {}) {
|
|
16199
16203
|
this.files = e instanceof Map ? new Map(e) : new Map(Object.entries(e));
|
|
16200
16204
|
}
|
|
@@ -16238,4 +16242,4 @@ var Qx = Symbol("COMPUTING"), $x = class {
|
|
|
16238
16242
|
}
|
|
16239
16243
|
};
|
|
16240
16244
|
//#endregion
|
|
16241
|
-
export { cc as ArrayNode, F as AttributeNode, z as BlockExpressionNode, V as CallExpressionNode, tc as CommaExpressionNode, b as CompileError, y as CompileErrorCode,
|
|
16245
|
+
export { cc as ArrayNode, F as AttributeNode, z as BlockExpressionNode, V as CallExpressionNode, tc as CommaExpressionNode, b as CompileError, y as CompileErrorCode, eS as Compiler, X as CompletionItemInsertTextRule, Y as CompletionItemKind, ky as DBMLCompletionItemProvider, ey as DBMLDefinitionProvider, ty as DBMLDiagnosticsProvider, ny as DBMLReferencesProvider, Eo as DEFAULT_ENTRY, P as ElementDeclarationNode, r as ElementKind, sc as EmptyNode, Zm as FALSY_VALUES, bo as Filepath, R as FunctionApplicationNode, $s as FunctionExpressionNode, nc as GroupExpressionNode, Zs as IdentifierStreamNode, L as InfixExpressionNode, B as ListExpressionNode, rc as LiteralNode, Zv as MarkerSeverity, tS as MemoryProjectLayout, dc as MetadataKind, Qs as PostfixExpressionNode, I as PrefixExpressionNode, oc as PrimaryExpressionNode, N as ProgramNode, Q as ScopeKind, j as SymbolKind, M as SyntaxNode, Ks as SyntaxNodeIdGenerator, qs as SyntaxNodeKind, Ha as SyntaxToken, _ as SyntaxTokenKind, Xm as TRUTHY_VALUES, ec as TupleExpressionNode, t as UNHANDLED, Bv as Uri, Js as UseDeclarationNode, Xs as UseSpecifierListNode, Ys as UseSpecifierNode, ac as VariableNode, ic as WildcardNode, gg as addDoubleQuoteIfNeeded, rb as dbmlLanguageConfig, ib as dbmlMonarchTokensProvider, vg as escapeString, ps as extractNumericLiteral, qm as extractSignedNumber, Fx as findDepBlocks, vx as findDiagramViewBlocks, yg as formatRecordValue, Al as getRecordValueType, Dl as isBinaryType, Tl as isBooleanType, Ol as isDateTimeType, Gm as isEmptyStringLiteral, Cl as isFloatType, Km as isFunctionExpression, Sl as isIntegerType, Wm as isNullish, wl as isNumericType, Ba as isOp, Va as isOpToken, kl as isSerialType, El as isStringType, za as isTriviaToken, hg as isValidIdentifier, xl as normalizeTypeName, bg as splitQualifiedIdentifier, Qm as tryExtractBoolean, ih as tryExtractDateTime, $m as tryExtractEnum, Ym as tryExtractInteger, Jm as tryExtractNumeric, eh as tryExtractString, _g as unescapeString, Dh as validateForeignKeys, gh as validatePrimaryKey, Ch as validateUnique };
|