@dbml/cli 8.3.1-custom-metadata.2 → 8.3.1-custom-metadata.5
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/__tests__/db2dbml/mssql/dbml-error.log +33 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +9 -0
- package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
- package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +15 -0
- package/__tests__/dbml2sql/multifile error entry-syntax-error/stdout.txt +1 -1
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1338 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +15 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/stdout.txt +1 -1
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +12 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/syntax-error/dbml-error.log +15 -0
- package/__tests__/dbml2sql/syntax-error/stdout.txt +1 -1
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +12 -0
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +12 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +12 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +12 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
|
@@ -8,3 +8,18 @@
|
|
|
8
8
|
./in-files/broken.dbml(4,1): Expect an identifier
|
|
9
9
|
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
10
10
|
|
|
11
|
+
2026-07-22T11:03:37.719Z
|
|
12
|
+
|
|
13
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
14
|
+
./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
|
|
15
|
+
|
|
16
|
+
2026-07-22T11:07:10.314Z
|
|
17
|
+
|
|
18
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
19
|
+
./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
|
|
20
|
+
|
|
21
|
+
2026-07-22T11:09:52.085Z
|
|
22
|
+
|
|
23
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
24
|
+
./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
|
|
25
|
+
|
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:38.305Z
|
|
10
|
+
|
|
11
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:10.911Z
|
|
14
|
+
|
|
15
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:09:52.678Z
|
|
18
|
+
|
|
19
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
20
|
+
|
|
@@ -8,3 +8,18 @@
|
|
|
8
8
|
ecommerce.dbml(17,24): Expect an identifier
|
|
9
9
|
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
10
10
|
|
|
11
|
+
2026-07-22T11:03:44.850Z
|
|
12
|
+
|
|
13
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
14
|
+
ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
|
|
15
|
+
|
|
16
|
+
2026-07-22T11:07:17.627Z
|
|
17
|
+
|
|
18
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
19
|
+
ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
|
|
20
|
+
|
|
21
|
+
2026-07-22T11:09:59.265Z
|
|
22
|
+
|
|
23
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
24
|
+
ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
|
|
25
|
+
|
package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:45.565Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:18.369Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:09:59.964Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
20
|
+
|
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:46.249Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:19.062Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:00.633Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
20
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:46.950Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:19.781Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:01.330Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
20
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:47.703Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:20.484Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:02.028Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
20
|
+
|
package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:48.395Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:21.181Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:02.726Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
20
|
+
|
package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:03:49.135Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:21.886Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:03.411Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
20
|
+
|
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:04:05.189Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:37.957Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:19.754Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
|
|
20
|
+
|
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:04:05.946Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:38.718Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:20.550Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
20
|
+
|
|
@@ -6,3 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
8
8
|
|
|
9
|
+
2026-07-22T11:04:06.639Z
|
|
10
|
+
|
|
11
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
12
|
+
|
|
13
|
+
2026-07-22T11:07:39.465Z
|
|
14
|
+
|
|
15
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
16
|
+
|
|
17
|
+
2026-07-22T11:10:21.392Z
|
|
18
|
+
|
|
19
|
+
You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
|
|
20
|
+
|
package/lib/index.js
CHANGED
|
@@ -39,7 +39,7 @@ let node_fs = require("node:fs");
|
|
|
39
39
|
var package_default = {
|
|
40
40
|
$schema: "https://json.schemastore.org/package",
|
|
41
41
|
name: "@dbml/cli",
|
|
42
|
-
version: "8.3.1-custom-metadata.
|
|
42
|
+
version: "8.3.1-custom-metadata.5",
|
|
43
43
|
description: "",
|
|
44
44
|
main: "lib/index.js",
|
|
45
45
|
license: "Apache-2.0",
|
|
@@ -65,9 +65,9 @@ var package_default = {
|
|
|
65
65
|
keywords: ["dbml", "dbml-cli"],
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@babel/cli": "^7.21.0",
|
|
68
|
-
"@dbml/connector": "^8.3.1-custom-metadata.
|
|
69
|
-
"@dbml/core": "^8.3.1-custom-metadata.
|
|
70
|
-
"@dbml/parse": "^8.3.1-custom-metadata.
|
|
68
|
+
"@dbml/connector": "^8.3.1-custom-metadata.4",
|
|
69
|
+
"@dbml/core": "^8.3.1-custom-metadata.5",
|
|
70
|
+
"@dbml/parse": "^8.3.1-custom-metadata.4",
|
|
71
71
|
"bluebird": "^3.5.5",
|
|
72
72
|
"chalk": "^2.4.2",
|
|
73
73
|
"commander": "^2.20.0",
|
|
@@ -78,7 +78,7 @@ var package_default = {
|
|
|
78
78
|
"strip-ansi": "^5.2.0",
|
|
79
79
|
"winston": "^3.2.1"
|
|
80
80
|
},
|
|
81
|
-
gitHead: "
|
|
81
|
+
gitHead: "9b5601daf1b79ff7c96bc5766027447d1901c280",
|
|
82
82
|
engines: { "node": ">=18" }
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@dbml/cli",
|
|
4
|
-
"version": "8.3.1-custom-metadata.
|
|
4
|
+
"version": "8.3.1-custom-metadata.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/cli": "^7.21.0",
|
|
35
|
-
"@dbml/connector": "^8.3.1-custom-metadata.
|
|
36
|
-
"@dbml/core": "^8.3.1-custom-metadata.
|
|
37
|
-
"@dbml/parse": "^8.3.1-custom-metadata.
|
|
35
|
+
"@dbml/connector": "^8.3.1-custom-metadata.4",
|
|
36
|
+
"@dbml/core": "^8.3.1-custom-metadata.5",
|
|
37
|
+
"@dbml/parse": "^8.3.1-custom-metadata.4",
|
|
38
38
|
"bluebird": "^3.5.5",
|
|
39
39
|
"chalk": "^2.4.2",
|
|
40
40
|
"commander": "^2.20.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"strip-ansi": "^5.2.0",
|
|
46
46
|
"winston": "^3.2.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9b5601daf1b79ff7c96bc5766027447d1901c280",
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
}
|