@dbml/parse 9.0.0-optional-ref.11 → 9.0.0
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.
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
type BaseRelationshipOp = '>' | '<' | '-' | '<>';
|
|
2
2
|
export type RelationshipOp = `${'?' | ''}${BaseRelationshipOp}${'?' | ''}`;
|
|
3
3
|
export type RelationCardinality = `${number}` | '*' | `${number}..${number | '*'}`;
|
|
4
|
-
export declare function normalizeCardinality(c: RelationCardinality): RelationCardinality;
|
|
5
4
|
export declare function parseCardinality(c: RelationCardinality): {
|
|
6
5
|
min: number;
|
|
7
6
|
max: number | '*';
|
|
8
7
|
};
|
|
9
|
-
export declare const RELATIONSHIP_OPS: ReadonlySet<RelationshipOp>;
|
|
10
8
|
export declare const CARDINALITY_ONE: RelationCardinality;
|
|
11
9
|
export declare const CARDINALITY_MAYBE: RelationCardinality;
|
|
12
10
|
export declare const CARDINALITY_SOME: RelationCardinality;
|
|
13
11
|
export declare const CARDINALITY_MANY: RelationCardinality;
|
|
12
|
+
export declare const RELATIONSHIP_OPS: ReadonlyMap<RelationshipOp, [RelationCardinality, RelationCardinality]>;
|
|
14
13
|
export declare function getMultiplicities(op: string): [RelationCardinality, RelationCardinality] | undefined;
|
|
15
14
|
export declare function isEndpointOneSide(relation: RelationCardinality): boolean;
|
|
16
15
|
export declare function isEndpointManySide(relation: RelationCardinality): boolean;
|
|
@@ -65,14 +65,6 @@ export declare class PartialRefMetadata extends NodeMetadata {
|
|
|
65
65
|
op(_compiler: Compiler): RelationshipOp | undefined;
|
|
66
66
|
opToken(): SyntaxToken | undefined;
|
|
67
67
|
cardinalities(compiler: Compiler): [RelationCardinality, RelationCardinality] | undefined;
|
|
68
|
-
leftCardinality(compiler: Compiler): {
|
|
69
|
-
min: number;
|
|
70
|
-
max: number | '*';
|
|
71
|
-
} | undefined;
|
|
72
|
-
rightCardinality(compiler: Compiler): {
|
|
73
|
-
min: number;
|
|
74
|
-
max: number | '*';
|
|
75
|
-
} | undefined;
|
|
76
68
|
leftToken(): SyntaxNode;
|
|
77
69
|
rightToken(): SyntaxNode;
|
|
78
70
|
owners(compiler: Compiler): NodeSymbol[];
|
|
@@ -147,7 +147,7 @@ export declare class ColumnSymbol extends NodeSymbol {
|
|
|
147
147
|
}, id: NodeSymbolId, filepath: Filepath);
|
|
148
148
|
get canBeImported(): boolean;
|
|
149
149
|
get originalSymbol(): NodeSymbol;
|
|
150
|
-
qualifiedName(compiler: Compiler): string;
|
|
150
|
+
qualifiedName(compiler: Compiler): string[];
|
|
151
151
|
pk(compiler: Compiler): boolean;
|
|
152
152
|
isUniqueSet(compiler: Compiler): boolean;
|
|
153
153
|
unique(compiler: Compiler): boolean;
|
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
|
|
4
|
+
"version": "9.0.0",
|
|
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": "c0daab9d39cb1b43d1ad6280ad07da459a897576"
|
|
54
54
|
}
|