@dbml/parse 9.0.0-alpha.4 → 9.0.0-alpha.6
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.
|
@@ -13,7 +13,7 @@ export declare class DepInterpreter {
|
|
|
13
13
|
private interpretName;
|
|
14
14
|
private interpretEdges;
|
|
15
15
|
/**
|
|
16
|
-
* Read settings into `dep.note` and `dep.
|
|
16
|
+
* Read settings into `dep.note` and `dep.metadata`.
|
|
17
17
|
*
|
|
18
18
|
* Settings come from THREE sources, in this order:
|
|
19
19
|
* 1. The top-level attribute list on the Dep header
|
|
@@ -23,7 +23,7 @@ export declare class DepInterpreter {
|
|
|
23
23
|
* 3. Sub-element declarations inside the body
|
|
24
24
|
* (e.g. `Dep { a -> b; note: 'x'; materialized: 'view' }`).
|
|
25
25
|
*
|
|
26
|
-
* All three sources write into the same `
|
|
26
|
+
* All three sources write into the same `metadata` object (with `note`
|
|
27
27
|
* routed to the typed slot instead). Precedence is last-write-wins by
|
|
28
28
|
* virtue of plain object assignment — settings later in the source
|
|
29
29
|
* file overwrite earlier ones with the same key.
|
|
@@ -8,6 +8,7 @@ export default class DepValidator {
|
|
|
8
8
|
private compiler;
|
|
9
9
|
constructor(compiler: Compiler, declarationNode: ElementDeclarationNode);
|
|
10
10
|
validate(): CompileError[];
|
|
11
|
+
private validateSettings;
|
|
11
12
|
private validateContext;
|
|
12
13
|
private validateName;
|
|
13
14
|
private validateAlias;
|
|
@@ -182,7 +182,7 @@ export interface Dep {
|
|
|
182
182
|
value: string;
|
|
183
183
|
token: TokenPosition;
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
metadata?: Record<string, string | number | boolean | null>;
|
|
186
186
|
token: TokenPosition;
|
|
187
187
|
}
|
|
188
188
|
export interface DepEdge {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@dbml/parse",
|
|
4
|
-
"version": "9.0.0-alpha.
|
|
4
|
+
"version": "9.0.0-alpha.6",
|
|
5
5
|
"description": "DBML parser v2",
|
|
6
6
|
"author": "Holistics <dev@holistics.io>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "38fc78211bdc6770247065c223adec37cf70d8c4"
|
|
54
54
|
}
|