@dbml/cli 2.3.1 → 2.4.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/__test__/cli.test.js +3 -1
- package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +36 -0
- package/__test__/dbml2sql/filename --mysql --out-file/expect-out-files/schema.sql +4 -4
- package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +65 -0
- package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --mysql stdout/stdout.txt +4 -4
- package/__test__/dbml2sql/filename --out-file/dbml-error.log +36 -0
- package/__test__/dbml2sql/filename --out-file/expect-out-files/schema.sql +4 -4
- package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +77 -0
- package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +4 -4
- package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +77 -0
- package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --postgres stdout/stdout.txt +4 -4
- package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename stdout/stdout.txt +4 -4
- package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/expect-out-files/schema.sql +2 -2
- package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +172 -0
- package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/stdout.txt +2 -2
- package/__test__/dbml2sql/filenames --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --out-file/expect-out-files/schema.sql +2 -2
- package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +172 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +2 -2
- package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +172 -0
- package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/stdout.txt +2 -2
- package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames stdout/stdout.txt +2 -2
- package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_mssql/expect-out-files/multiple_schema.out.sql +58 -0
- package/__test__/dbml2sql/multiple_schema_mssql/in-files/multiple_schema.in.dbml +62 -0
- package/__test__/dbml2sql/multiple_schema_mssql/options.json +8 -0
- package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +62 -0
- package/__test__/dbml2sql/multiple_schema_mssql/stdout.txt +1 -0
- package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_mysql/expect-out-files/multiple_schema.out.sql +46 -0
- package/__test__/dbml2sql/multiple_schema_mysql/in-files/multiple_schema.in.dbml +62 -0
- package/__test__/dbml2sql/multiple_schema_mysql/options.json +8 -0
- package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +50 -0
- package/__test__/dbml2sql/multiple_schema_mysql/stdout.txt +1 -0
- package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +63 -0
- package/__test__/dbml2sql/multiple_schema_pg/in-files/multiple_schema.in.dbml +62 -0
- package/__test__/dbml2sql/multiple_schema_pg/options.json +8 -0
- package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +67 -0
- package/__test__/dbml2sql/multiple_schema_pg/stdout.txt +1 -0
- package/__test__/dbml2sql/syntax-error/dbml-error.log +1647 -0
- package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +51 -0
- package/__test__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +25 -0
- package/__test__/sql2dbml/filename --mssql --out-file/in-files/schema.sql +20 -0
- package/__test__/sql2dbml/filename --mssql --out-file/options.json +8 -0
- package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +25 -0
- package/__test__/sql2dbml/filename --mssql --out-file/stdout.txt +1 -0
- package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +74 -0
- package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +74 -0
- package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +74 -0
- package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +170 -0
- package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +170 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +170 -0
- package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +104 -0
- package/__test__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +103 -0
- package/__test__/sql2dbml/multiple_schema_mssql/in-files/multiple_schema.in.sql +71 -0
- package/__test__/sql2dbml/multiple_schema_mssql/options.json +8 -0
- package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +103 -0
- package/__test__/sql2dbml/multiple_schema_mssql/stdout.txt +1 -0
- package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +104 -0
- package/__test__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +91 -0
- package/__test__/sql2dbml/multiple_schema_mysql/in-files/multiple_schema.in.sql +48 -0
- package/__test__/sql2dbml/multiple_schema_mysql/options.json +8 -0
- package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +91 -0
- package/__test__/sql2dbml/multiple_schema_mysql/stdout.txt +1 -0
- package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +104 -0
- package/__test__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +68 -0
- package/__test__/sql2dbml/multiple_schema_pg/in-files/multiple_schema.in.sql +71 -0
- package/__test__/sql2dbml/multiple_schema_pg/options.json +8 -0
- package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +68 -0
- package/__test__/sql2dbml/multiple_schema_pg/stdout.txt +1 -0
- package/__test__/sql2dbml/syntax-error/dbml-error.log +1620 -0
- package/bin/dbml2sql.js +0 -0
- package/bin/sql2dbml.js +0 -0
- package/dbml-error.log +980 -0
- package/lib/cli/export.js +1 -1
- package/lib/cli/import.js +1 -1
- package/lib/cli/index.js +1 -1
- package/package.json +4 -4
- package/src/cli/export.js +1 -1
- package/src/cli/import.js +1 -1
- package/src/cli/index.js +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
2021-07-13T12:37:57.392Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:34.528Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|
|
25
|
+
2021-09-20T04:46:55.482Z
|
|
26
|
+
SyntaxError: You have a syntax error at "schema.sql" line 1 column 14. Expected IF NOT EXISTS or valid table name but "[" found.
|
|
27
|
+
at C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\utils.js:42:13
|
|
28
|
+
at Array.forEach (<anonymous>)
|
|
29
|
+
at generate (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\utils.js:36:14)
|
|
30
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:28:7)
|
|
31
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:35:3)
|
|
32
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
33
|
+
at Module._compile (internal/modules/cjs/loader.js:1158:30)
|
|
34
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
|
|
35
|
+
at Module.load (internal/modules/cjs/loader.js:1002:32)
|
|
36
|
+
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
|
|
37
|
+
|
|
38
|
+
ROOT_ERROR:
|
|
39
|
+
SyntaxError: Expected IF NOT EXISTS or valid table name but "[" found.
|
|
40
|
+
at peg$buildStructuredError (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\node_modules\@dbml\core\lib\parse\mysqlParser.js:1093:12)
|
|
41
|
+
at Object.peg$parse [as parse] (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\node_modules\@dbml\core\lib\parse\mysqlParser.js:10123:11)
|
|
42
|
+
at Function.parseMySQLToJSON (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\node_modules\@dbml\core\lib\parse\Parser.js:44:38)
|
|
43
|
+
at Function.parse (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\node_modules\@dbml\core\lib\parse\Parser.js:73:32)
|
|
44
|
+
at Object._import [as import] (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\node_modules\@dbml\core\lib\import\index.js:15:37)
|
|
45
|
+
at C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:28:52
|
|
46
|
+
at C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\utils.js:39:23
|
|
47
|
+
at Array.forEach (<anonymous>)
|
|
48
|
+
at generate (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\utils.js:36:14)
|
|
49
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:28:7)
|
|
50
|
+
{"start":{"offset":13,"line":1,"column":14},"end":{"offset":14,"line":1,"column":15}}
|
|
51
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Table "UserMaster" {
|
|
2
|
+
"UserMasterKey" BIGINT [not null, increment]
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
Table "CodeDef" {
|
|
6
|
+
"CdKey" BIGINT [not null, increment]
|
|
7
|
+
"Category" NVARCHAR(50) [not null]
|
|
8
|
+
"Description" NVARCHAR(100)
|
|
9
|
+
"Code" NVARCHAR(50) [not null]
|
|
10
|
+
"ParentCdKey" BIGINT
|
|
11
|
+
"UserMasterKeyAddedBy" BIGINT [not null]
|
|
12
|
+
"UserMasterKeyLastEditedBy" BIGINT
|
|
13
|
+
"AddedDtTm" DATETIMEOFFSET(7) [not null]
|
|
14
|
+
"LastEditedDtTm" DATETIMEOFFSET(7)
|
|
15
|
+
"EffectiveFromDtTm" DATETIMEOFFSET(7) [not null]
|
|
16
|
+
"EffectiveThruDtTm" DATETIMEOFFSET(7)
|
|
17
|
+
|
|
18
|
+
Indexes {
|
|
19
|
+
CdKey [pk]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Ref "fk__CodeDef__ParentCdKey__CodeDef__CdKey":"CodeDef"."CdKey" < "CodeDef"."ParentCdKey"
|
|
24
|
+
|
|
25
|
+
Ref "fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey":"UserMaster"."UserMasterKey" < "CodeDef"."UserMasterKeyLastEditedBy"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
CREATE TABLE [UserMaster] (
|
|
2
|
+
[UserMasterKey] BIGINT IDENTITY (1, 1) NOT NULL
|
|
3
|
+
);
|
|
4
|
+
|
|
5
|
+
CREATE TABLE [CodeDef] (
|
|
6
|
+
[CdKey] BIGINT IDENTITY (1, 1) NOT NULL,
|
|
7
|
+
[Category] NVARCHAR (50) NOT NULL,
|
|
8
|
+
[Description] NVARCHAR (100) NULL,
|
|
9
|
+
[Code] NVARCHAR (50) NOT NULL,
|
|
10
|
+
[ParentCdKey] BIGINT NULL,
|
|
11
|
+
[UserMasterKeyAddedBy] BIGINT NOT NULL,
|
|
12
|
+
[UserMasterKeyLastEditedBy] BIGINT NULL,
|
|
13
|
+
[AddedDtTm] DATETIMEOFFSET (7) NOT NULL,
|
|
14
|
+
[LastEditedDtTm] DATETIMEOFFSET (7) NULL,
|
|
15
|
+
[EffectiveFromDtTm] DATETIMEOFFSET (7) NOT NULL,
|
|
16
|
+
[EffectiveThruDtTm] DATETIMEOFFSET (7) NULL,
|
|
17
|
+
CONSTRAINT [PK__CodeDef__4922449ECDD244C3] PRIMARY KEY CLUSTERED ([CdKey] ASC),
|
|
18
|
+
CONSTRAINT [fk__CodeDef__ParentCdKey__CodeDef__CdKey] FOREIGN KEY ([ParentCdKey]) REFERENCES [CodeDef] ([CdKey]),
|
|
19
|
+
CONSTRAINT [fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey] FOREIGN KEY ([UserMasterKeyLastEditedBy]) REFERENCES [UserMaster] ([UserMasterKey])
|
|
20
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Table "UserMaster" {
|
|
2
|
+
"UserMasterKey" BIGINT [not null, increment]
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
Table "CodeDef" {
|
|
6
|
+
"CdKey" BIGINT [not null, increment]
|
|
7
|
+
"Category" NVARCHAR(50) [not null]
|
|
8
|
+
"Description" NVARCHAR(100)
|
|
9
|
+
"Code" NVARCHAR(50) [not null]
|
|
10
|
+
"ParentCdKey" BIGINT
|
|
11
|
+
"UserMasterKeyAddedBy" BIGINT [not null]
|
|
12
|
+
"UserMasterKeyLastEditedBy" BIGINT
|
|
13
|
+
"AddedDtTm" DATETIMEOFFSET(7) [not null]
|
|
14
|
+
"LastEditedDtTm" DATETIMEOFFSET(7)
|
|
15
|
+
"EffectiveFromDtTm" DATETIMEOFFSET(7) [not null]
|
|
16
|
+
"EffectiveThruDtTm" DATETIMEOFFSET(7)
|
|
17
|
+
|
|
18
|
+
Indexes {
|
|
19
|
+
CdKey [pk]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Ref "fk__CodeDef__ParentCdKey__CodeDef__CdKey":"CodeDef"."CdKey" < "CodeDef"."ParentCdKey"
|
|
24
|
+
|
|
25
|
+
Ref "fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey":"UserMaster"."UserMasterKey" < "CodeDef"."UserMasterKeyLastEditedBy"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
✔ Generated DBML file from SQL file (SQL Server): schema.dbml
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
2021-07-13T12:37:57.392Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:34.528Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Enum "orders_status_enum" {
|
|
2
|
+
"created"
|
|
3
|
+
"running"
|
|
4
|
+
"done"
|
|
5
|
+
"failure"
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
Enum "products_status_enum" {
|
|
9
|
+
"Out of Stock"
|
|
10
|
+
"In Stock"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
Table "orders" {
|
|
14
|
+
"id" int [pk, increment]
|
|
15
|
+
"user_id" int [unique, not null]
|
|
16
|
+
"status" orders_status_enum
|
|
17
|
+
"created_at" varchar(255)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Table "order_items" {
|
|
21
|
+
"order_id" int
|
|
22
|
+
"product_id" int
|
|
23
|
+
"quantity" int [default: 1]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Table "products" {
|
|
27
|
+
"id" int [pk]
|
|
28
|
+
"name" varchar(255)
|
|
29
|
+
"merchant_id" int [not null]
|
|
30
|
+
"price" int
|
|
31
|
+
"status" products_status_enum
|
|
32
|
+
"created_at" datetime [default: `now()`]
|
|
33
|
+
|
|
34
|
+
Indexes {
|
|
35
|
+
(merchant_id, status) [name: "product_status"]
|
|
36
|
+
id [type: hash, unique, name: "products_index_1"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
Table "users" {
|
|
41
|
+
"id" int [pk]
|
|
42
|
+
"full_name" varchar(255)
|
|
43
|
+
"email" varchar(255) [unique]
|
|
44
|
+
"gender" varchar(255)
|
|
45
|
+
"date_of_birth" varchar(255)
|
|
46
|
+
"created_at" varchar(255)
|
|
47
|
+
"country_code" int
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
Table "merchants" {
|
|
51
|
+
"id" int [pk]
|
|
52
|
+
"merchant_name" varchar(255)
|
|
53
|
+
"country_code" int
|
|
54
|
+
"created_at" varchar(255)
|
|
55
|
+
"admin_id" int
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
Table "countries" {
|
|
59
|
+
"code" int [pk]
|
|
60
|
+
"name" varchar(255)
|
|
61
|
+
"continent_name" varchar(255)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
|
+
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
|
+
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
|
+
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
|
+
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
|
+
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
2021-07-13T12:38:01.349Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:36.545Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Enum "orders_status" {
|
|
2
|
+
"created"
|
|
3
|
+
"running"
|
|
4
|
+
"done"
|
|
5
|
+
"failure"
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
Enum "product status" {
|
|
9
|
+
"Out of Stock"
|
|
10
|
+
"In Stock"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
Table "orders" {
|
|
14
|
+
"id" int [pk, increment]
|
|
15
|
+
"user_id" int [unique, not null]
|
|
16
|
+
"status" orders_status
|
|
17
|
+
"created_at" varchar
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Table "order_items" {
|
|
21
|
+
"order_id" int
|
|
22
|
+
"product_id" int
|
|
23
|
+
"quantity" int [default: 1]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Table "products" {
|
|
27
|
+
"id" int [pk]
|
|
28
|
+
"name" varchar
|
|
29
|
+
"merchant_id" int [not null]
|
|
30
|
+
"price" int
|
|
31
|
+
"status" "product status"
|
|
32
|
+
"created_at" datetime [default: `now()`]
|
|
33
|
+
|
|
34
|
+
Indexes {
|
|
35
|
+
(merchant_id, status) [name: "product_status"]
|
|
36
|
+
id [type: hash, unique]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
Table "users" {
|
|
41
|
+
"id" int [pk]
|
|
42
|
+
"full_name" varchar
|
|
43
|
+
"email" varchar [unique]
|
|
44
|
+
"gender" varchar
|
|
45
|
+
"date_of_birth" varchar
|
|
46
|
+
"created_at" varchar
|
|
47
|
+
"country_code" int
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
Table "merchants" {
|
|
51
|
+
"id" int [pk]
|
|
52
|
+
"merchant_name" varchar
|
|
53
|
+
"country_code" int
|
|
54
|
+
"created_at" varchar
|
|
55
|
+
"admin_id" int
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
Table "countries" {
|
|
59
|
+
"code" int [pk]
|
|
60
|
+
"name" varchar
|
|
61
|
+
"continent_name" varchar
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
|
+
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
|
+
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
|
+
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
|
+
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
|
+
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
2021-07-13T12:38:03.040Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:37.527Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Enum "orders_status" {
|
|
2
|
+
"created"
|
|
3
|
+
"running"
|
|
4
|
+
"done"
|
|
5
|
+
"failure"
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
Enum "product status" {
|
|
9
|
+
"Out of Stock"
|
|
10
|
+
"In Stock"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
Table "orders" {
|
|
14
|
+
"id" int [pk, increment]
|
|
15
|
+
"user_id" int [unique, not null]
|
|
16
|
+
"status" orders_status
|
|
17
|
+
"created_at" varchar
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Table "order_items" {
|
|
21
|
+
"order_id" int
|
|
22
|
+
"product_id" int
|
|
23
|
+
"quantity" int [default: 1]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Table "products" {
|
|
27
|
+
"id" int [pk]
|
|
28
|
+
"name" varchar
|
|
29
|
+
"merchant_id" int [not null]
|
|
30
|
+
"price" int
|
|
31
|
+
"status" "product status"
|
|
32
|
+
"created_at" datetime [default: `now()`]
|
|
33
|
+
|
|
34
|
+
Indexes {
|
|
35
|
+
(merchant_id, status) [name: "product_status"]
|
|
36
|
+
id [type: hash, unique]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
Table "users" {
|
|
41
|
+
"id" int [pk]
|
|
42
|
+
"full_name" varchar
|
|
43
|
+
"email" varchar [unique]
|
|
44
|
+
"gender" varchar
|
|
45
|
+
"date_of_birth" varchar
|
|
46
|
+
"created_at" varchar
|
|
47
|
+
"country_code" int
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
Table "merchants" {
|
|
51
|
+
"id" int [pk]
|
|
52
|
+
"merchant_name" varchar
|
|
53
|
+
"country_code" int
|
|
54
|
+
"created_at" varchar
|
|
55
|
+
"admin_id" int
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
Table "countries" {
|
|
59
|
+
"code" int [pk]
|
|
60
|
+
"name" varchar
|
|
61
|
+
"continent_name" varchar
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
|
+
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
|
+
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
|
+
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
|
+
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
|
+
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
2021-07-13T12:38:07.505Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:40.697Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
Table "staff" {
|
|
2
|
+
"id" int [pk]
|
|
3
|
+
"first_name" varchar(255)
|
|
4
|
+
"last_name" varchar(255)
|
|
5
|
+
"address_id" int
|
|
6
|
+
"picture" blob
|
|
7
|
+
"email" varchar(255)
|
|
8
|
+
"store_id" int
|
|
9
|
+
"active" boolean
|
|
10
|
+
"user_name" varchar(255)
|
|
11
|
+
"password" varchar(255)
|
|
12
|
+
"last_update" timestamp
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
Table "store" {
|
|
16
|
+
"id" int [pk]
|
|
17
|
+
"manager_staff_id" int
|
|
18
|
+
"address_id" int
|
|
19
|
+
"last_update" timestamp
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
Table "payment" {
|
|
23
|
+
"id" int [pk]
|
|
24
|
+
"customer_id" int
|
|
25
|
+
"staff_id" int
|
|
26
|
+
"rental_id" int
|
|
27
|
+
"amount" decimal
|
|
28
|
+
"payment_date" datetime
|
|
29
|
+
"last_update" timestamp
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Table "rental" {
|
|
33
|
+
"id" int [pk]
|
|
34
|
+
"rental_date" datetime
|
|
35
|
+
"inventory_id" int
|
|
36
|
+
"customer_id" int
|
|
37
|
+
"return_date" ddatetime
|
|
38
|
+
"staff_id" int
|
|
39
|
+
"last_update" timestamp
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
|
+
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
|
+
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
|
+
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
|
+
|
|
50
|
+
Ref:"staff"."id" < "rental"."staff_id"
|
|
51
|
+
Table "country" {
|
|
52
|
+
"id" int [pk]
|
|
53
|
+
"country" varchar(255)
|
|
54
|
+
"last_update" timestamp
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Table "city" {
|
|
58
|
+
"id" int [pk]
|
|
59
|
+
"city" varchar(255)
|
|
60
|
+
"country_id" int
|
|
61
|
+
"last_update" timestamp
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Table "address" {
|
|
65
|
+
"id" int [pk]
|
|
66
|
+
"address" varchar(255)
|
|
67
|
+
"address2" varchar(255)
|
|
68
|
+
"district" varchar(255)
|
|
69
|
+
"city_id" int
|
|
70
|
+
"postal_code" varchar(255)
|
|
71
|
+
"phone" varchar(255)
|
|
72
|
+
"last_update" timestamp
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
Table "customer" {
|
|
76
|
+
"id" int [pk]
|
|
77
|
+
"store_id" int
|
|
78
|
+
"first_name" varchar(255)
|
|
79
|
+
"last_name" varchar(255)
|
|
80
|
+
"email" varchar(255)
|
|
81
|
+
"address_id" int
|
|
82
|
+
"active" boolean
|
|
83
|
+
"create_Date" timestamp
|
|
84
|
+
"last_update" timestamp
|
|
85
|
+
|
|
86
|
+
Indexes {
|
|
87
|
+
(id, first_name) [type: btree, name: "customer_index_0"]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
|
+
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
|
+
|
|
95
|
+
Ref:"address"."id" < "customer"."address_id"
|
|
96
|
+
Table "category" {
|
|
97
|
+
"id" int [pk]
|
|
98
|
+
"name" varchar(255)
|
|
99
|
+
"last_update" timestamp
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
Table "film_category" {
|
|
103
|
+
"id" int [pk]
|
|
104
|
+
"category_id" int
|
|
105
|
+
"last_update" timestamp
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
Table "language" {
|
|
109
|
+
"id" int [pk]
|
|
110
|
+
"name" varchar(255)
|
|
111
|
+
"last_update" timestamp
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Table "film_text" {
|
|
115
|
+
"id" int [pk]
|
|
116
|
+
"film_id" int
|
|
117
|
+
"title" varchar(255)
|
|
118
|
+
"description" text
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
Table "actor" {
|
|
122
|
+
"id" int [pk]
|
|
123
|
+
"first_name" varchar(255)
|
|
124
|
+
"last_name" varchar(255)
|
|
125
|
+
"last_update" timestamp
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
Table "film" {
|
|
129
|
+
"id" int [pk]
|
|
130
|
+
"title" varchar(255)
|
|
131
|
+
"description" text
|
|
132
|
+
"releaase_year" int
|
|
133
|
+
"language_id" int
|
|
134
|
+
"original_language_id" int
|
|
135
|
+
"rental_duration" int
|
|
136
|
+
"rental_rate" decimal
|
|
137
|
+
"length" int
|
|
138
|
+
"replacement_cost" decimal
|
|
139
|
+
"rating" varchar(255)
|
|
140
|
+
"special_feature" varchar(255)
|
|
141
|
+
"last_update" timestamp
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
Table "film_actor" {
|
|
145
|
+
"id" int [pk]
|
|
146
|
+
"film_id" int
|
|
147
|
+
"actor_id" int
|
|
148
|
+
"last_update" timestamp
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
Table "inventory" {
|
|
152
|
+
"id" int [pk]
|
|
153
|
+
"film_id" int
|
|
154
|
+
"store_id" int
|
|
155
|
+
"last_update" timestamp
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
|
+
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
|
+
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
|
+
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
|
+
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
|
+
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
|
+
|
|
170
|
+
Ref:"film"."id" < "inventory"."film_id"
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
2021-07-13T12:38:11.270Z
|
|
2
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
3
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:56)
|
|
4
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
5
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
6
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
7
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
8
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
9
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
10
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
11
|
+
at internal/main/run_main_module.js:17:47
|
|
12
|
+
|
|
13
|
+
2021-07-13T12:58:42.728Z
|
|
14
|
+
TypeError: Cannot read property 'tick' of undefined
|
|
15
|
+
at importHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\import.js:31:49)
|
|
16
|
+
at sql2dbml (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:34:3)
|
|
17
|
+
at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\sql2dbml_bin.js:5:1)
|
|
18
|
+
at Module._compile (internal/modules/cjs/loader.js:1085:14)
|
|
19
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
|
|
20
|
+
at Module.load (internal/modules/cjs/loader.js:950:32)
|
|
21
|
+
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
|
|
22
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
|
|
23
|
+
at internal/main/run_main_module.js:17:47
|
|
24
|
+
|