@dbml/parse 9.0.0-optional-ref.2 → 9.0.0-optional-ref.3
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 +13 -13
- package/dist/dbml-parse.mjs +888 -879
- package/dist/src/core/types/schemaJson/index.d.ts +2 -0
- package/dist/src/core/types/{schemaJson.d.ts → schemaJson/types.d.ts} +4 -4
- package/dist/src/core/types/schemaJson/utils.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NONE_COLOR } from '
|
|
2
|
-
import { Filepath } from '
|
|
3
|
-
import { Position } from '
|
|
4
|
-
import { RelationshipOp, RelationCardinality } from '
|
|
1
|
+
import { NONE_COLOR } from '../../../constants';
|
|
2
|
+
import { Filepath } from '../filepath';
|
|
3
|
+
import { Position } from '../position';
|
|
4
|
+
import { RelationshipOp, RelationCardinality } from '../relation';
|
|
5
5
|
export type Color = `#${string}` | typeof NONE_COLOR;
|
|
6
6
|
export declare enum AliasKind {
|
|
7
7
|
Table = "table"
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Column } from './types';
|
|
2
|
+
import { RelationCardinality } from '../relation';
|
|
3
|
+
export declare function inferMultiplicitiesFromColumns(sourceColumn: Pick<Column, 'pk' | 'unique' | 'not_null'>, targetColumn: Pick<Column, 'pk' | 'unique' | 'not_null'>): [RelationCardinality, RelationCardinality];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type { Position, } from './core/types';
|
|
|
12
12
|
export { ScopeKind, splitQualifiedIdentifier, unescapeString, escapeString, formatRecordValue, isValidIdentifier, addDoubleQuoteIfNeeded, } from './compiler/index';
|
|
13
13
|
export { type Database, type MasterDatabase, type Table, type Note, type Column, type ColumnType, type Index, type Check, type InlineRef, type Ref, type RefEndpointPair, type RefEndpoint, type Enum, type EnumField, type TableGroup, type TableGroupField, type Alias, type AliasKind, type TablePartial, type TablePartialInjection, type RecordValue, type RecordValueType, type TableRecord, type Project, type SchemaElement, type TokenPosition, type ElementRef, type FilterConfig, type DiagramView, } from './core/types/schemaJson';
|
|
14
14
|
export { type RelationCardinality, type RelationshipOp, getRelationshipOp, getMultiplicities, parseCardinality, CARDINALITY_ONE, CARDINALITY_MAYBE, CARDINALITY_SOME, CARDINALITY_MANY, } from './core/types/relation';
|
|
15
|
+
export { inferMultiplicitiesFromColumns } from './core/types/schemaJson';
|
|
15
16
|
export type { DiagramViewSyncOperation, DiagramViewBlock, TextEdit, } from './compiler/queries/transform';
|
|
16
17
|
export { dbmlLanguageConfig, dbmlMonarchTokensProvider, } from './services/monarch';
|
|
17
18
|
export * from './compiler/projectLayout/layout';
|
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-optional-ref.
|
|
4
|
+
"version": "9.0.0-optional-ref.3",
|
|
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": "eee148fa544e4826e635b4173e95fb80159b9ce5"
|
|
54
54
|
}
|