@dbml/core 6.5.0 → 7.0.0-alpha.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.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/lib/index.cjs +71 -65
- package/lib/index.mjs +708 -28
- package/package.json +3 -3
- package/types/export/DbmlExporter.d.ts +0 -0
- package/types/export/JsonExporter.d.ts +0 -0
- package/types/export/ModelExporter.d.ts +0 -0
- package/types/export/index.d.ts +0 -0
- package/types/import/index.d.ts +0 -0
- package/types/index.d.ts +2 -0
- package/types/model_structure/check.d.ts +1 -1
- package/types/model_structure/database.d.ts +0 -1
- package/types/model_structure/dbState.d.ts +1 -1
- package/types/model_structure/element.d.ts +0 -0
- package/types/model_structure/endpoint.d.ts +0 -0
- package/types/model_structure/enum.d.ts +1 -1
- package/types/model_structure/enumValue.d.ts +1 -1
- package/types/model_structure/field.d.ts +0 -0
- package/types/model_structure/index.d.ts +0 -0
- package/types/model_structure/indexColumn.d.ts +1 -9
- package/types/model_structure/indexes.d.ts +1 -1
- package/types/model_structure/ref.d.ts +1 -1
- package/types/model_structure/schema.d.ts +0 -0
- package/types/model_structure/stickyNote.d.ts +0 -0
- package/types/model_structure/table.d.ts +2 -5
- package/types/model_structure/tableGroup.d.ts +1 -1
- package/types/model_structure/tablePartial.d.ts +1 -1
- package/types/parse/Parser.d.ts +0 -0
- package/types/parse/error.d.ts +0 -0
- package/types/transform/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@dbml/core",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0-alpha.0",
|
|
5
5
|
"description": "> TODO: description",
|
|
6
6
|
"author": "Holistics <dev@holistics.io>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "eslint --fix ."
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@dbml/parse": "^
|
|
49
|
+
"@dbml/parse": "^7.0.0-alpha.0",
|
|
50
50
|
"antlr4": "^4.13.1",
|
|
51
51
|
"lodash": "^4.17.15",
|
|
52
52
|
"lodash-es": "^4.17.15",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"bluebird": "^3.5.5"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "cb925c52bc255aa63688dc04db48f2ad5d7129c9",
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=16"
|
|
63
63
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/export/index.d.ts
CHANGED
|
File without changes
|
package/types/import/index.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import { NormalizedModel } from './database';
|
|
|
2
2
|
import DbState from './dbState';
|
|
3
3
|
import Element, { Token, RawNote } from './element';
|
|
4
4
|
import Enum from './enum';
|
|
5
|
-
|
|
5
|
+
interface RawEnumValue {
|
|
6
6
|
name: string;
|
|
7
7
|
token: Token;
|
|
8
8
|
note: RawNote;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { NormalizedModel } from './database';
|
|
2
2
|
import DbState from './dbState';
|
|
3
|
-
import Element
|
|
3
|
+
import Element from './element';
|
|
4
4
|
import Index from './indexes';
|
|
5
|
-
|
|
6
|
-
export interface RawIndexColumn {
|
|
7
|
-
type: any;
|
|
8
|
-
value: any;
|
|
9
|
-
index: Index;
|
|
10
|
-
token: Token;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
5
|
declare class IndexColumn extends Element {
|
|
14
6
|
type: any;
|
|
15
7
|
value: any;
|
|
@@ -4,7 +4,7 @@ import Element, { RawNote, Token } from './element';
|
|
|
4
4
|
import IndexColumn from './indexColumn';
|
|
5
5
|
import Table from './table';
|
|
6
6
|
import TablePartial from './tablePartial';
|
|
7
|
-
|
|
7
|
+
interface RawIndex {
|
|
8
8
|
columns: IndexColumn;
|
|
9
9
|
type: any;
|
|
10
10
|
unique: boolean;
|
|
@@ -4,7 +4,7 @@ import Schema from './schema';
|
|
|
4
4
|
import DbState from './dbState';
|
|
5
5
|
import Database, { NormalizedModel } from './database';
|
|
6
6
|
import TablePartial from './tablePartial';
|
|
7
|
-
|
|
7
|
+
interface RawRef {
|
|
8
8
|
name: string;
|
|
9
9
|
color?: string;
|
|
10
10
|
endpoints: Endpoint[];
|
|
File without changes
|
|
File without changes
|
|
@@ -6,9 +6,9 @@ import Schema from './schema';
|
|
|
6
6
|
import DbState from './dbState';
|
|
7
7
|
import TableGroup from './tableGroup';
|
|
8
8
|
import TablePartial from './tablePartial';
|
|
9
|
-
import { NormalizedModel
|
|
9
|
+
import { NormalizedModel } from './database';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface RawTable {
|
|
12
12
|
name: string;
|
|
13
13
|
alias: string;
|
|
14
14
|
note: RawNote;
|
|
@@ -35,7 +35,6 @@ declare class Table extends Element {
|
|
|
35
35
|
id: number;
|
|
36
36
|
group: TableGroup;
|
|
37
37
|
partials: TablePartial[];
|
|
38
|
-
records: TableRecord[];
|
|
39
38
|
|
|
40
39
|
constructor({ name, alias, note, fields, indexes, checks, schema, token, headerColor }: RawTable);
|
|
41
40
|
generateId(): void;
|
|
@@ -116,7 +115,6 @@ declare class Table extends Element {
|
|
|
116
115
|
note: string;
|
|
117
116
|
headerColor: string;
|
|
118
117
|
partials: TablePartial[];
|
|
119
|
-
recordIds: number[];
|
|
120
118
|
};
|
|
121
119
|
normalize(model: NormalizedModel): void;
|
|
122
120
|
}
|
|
@@ -130,7 +128,6 @@ export interface NormalizedTable {
|
|
|
130
128
|
fieldIds: number[];
|
|
131
129
|
indexIds: number[];
|
|
132
130
|
checkIds: number[];
|
|
133
|
-
recordIds: number[];
|
|
134
131
|
schemaId: number;
|
|
135
132
|
groupId: number | null;
|
|
136
133
|
partials: TablePartial[];
|
package/types/parse/Parser.d.ts
CHANGED
|
File without changes
|
package/types/parse/error.d.ts
CHANGED
|
File without changes
|
|
File without changes
|