@dbml/cli 9.0.0-optional-ref.13 → 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.
- package/__tests__/db2dbml/mssql/dbml-error.log +30 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +39 -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 +10 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +892 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +10 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +8 -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 +10 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +8 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +8 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +8 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
|
@@ -211,3 +211,13 @@
|
|
|
211
211
|
./in-files/broken.dbml(4,1): Expect an identifier
|
|
212
212
|
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
213
213
|
|
|
214
|
+
2026-07-30T02:48:53.602Z
|
|
215
|
+
|
|
216
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
217
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
218
|
+
|
|
219
|
+
2026-07-30T02:50:34.372Z
|
|
220
|
+
|
|
221
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
222
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
223
|
+
|
|
@@ -174,3 +174,11 @@
|
|
|
174
174
|
|
|
175
175
|
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
176
176
|
|
|
177
|
+
2026-07-30T02:48:54.909Z
|
|
178
|
+
|
|
179
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
180
|
+
|
|
181
|
+
2026-07-30T02:50:35.660Z
|
|
182
|
+
|
|
183
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
184
|
+
|
|
@@ -427,3 +427,13 @@ undefined
|
|
|
427
427
|
ecommerce.dbml(17,24): Expect an identifier
|
|
428
428
|
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
429
429
|
|
|
430
|
+
2026-07-30T02:49:09.144Z
|
|
431
|
+
|
|
432
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
433
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
434
|
+
|
|
435
|
+
2026-07-30T02:50:49.585Z
|
|
436
|
+
|
|
437
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
438
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
439
|
+
|
package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -344,3 +344,11 @@ undefined
|
|
|
344
344
|
|
|
345
345
|
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
346
346
|
|
|
347
|
+
2026-07-30T02:49:10.550Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
350
|
+
|
|
351
|
+
2026-07-30T02:50:51.060Z
|
|
352
|
+
|
|
353
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
354
|
+
|
|
@@ -344,3 +344,11 @@ undefined
|
|
|
344
344
|
|
|
345
345
|
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
346
346
|
|
|
347
|
+
2026-07-30T02:49:11.902Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
350
|
+
|
|
351
|
+
2026-07-30T02:50:52.498Z
|
|
352
|
+
|
|
353
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
354
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -344,3 +344,11 @@ undefined
|
|
|
344
344
|
|
|
345
345
|
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
346
346
|
|
|
347
|
+
2026-07-30T02:49:13.375Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
350
|
+
|
|
351
|
+
2026-07-30T02:50:54.007Z
|
|
352
|
+
|
|
353
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
354
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -340,3 +340,11 @@ undefined
|
|
|
340
340
|
|
|
341
341
|
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
342
342
|
|
|
343
|
+
2026-07-30T02:49:14.774Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
346
|
+
|
|
347
|
+
2026-07-30T02:50:55.477Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
350
|
+
|
package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -340,3 +340,11 @@ undefined
|
|
|
340
340
|
|
|
341
341
|
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
342
342
|
|
|
343
|
+
2026-07-30T02:49:16.142Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
346
|
+
|
|
347
|
+
2026-07-30T02:50:56.925Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
350
|
+
|
package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -340,3 +340,11 @@ undefined
|
|
|
340
340
|
|
|
341
341
|
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
342
342
|
|
|
343
|
+
2026-07-30T02:49:17.447Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
346
|
+
|
|
347
|
+
2026-07-30T02:50:58.350Z
|
|
348
|
+
|
|
349
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
350
|
+
|
|
@@ -315,3 +315,11 @@ undefined
|
|
|
315
315
|
|
|
316
316
|
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`'
|
|
317
317
|
|
|
318
|
+
2026-07-30T02:49:50.622Z
|
|
319
|
+
|
|
320
|
+
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`'
|
|
321
|
+
|
|
322
|
+
2026-07-30T02:51:29.923Z
|
|
323
|
+
|
|
324
|
+
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`'
|
|
325
|
+
|
|
@@ -312,3 +312,11 @@ undefined
|
|
|
312
312
|
|
|
313
313
|
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")
|
|
314
314
|
|
|
315
|
+
2026-07-30T02:49:52.180Z
|
|
316
|
+
|
|
317
|
+
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")
|
|
318
|
+
|
|
319
|
+
2026-07-30T02:51:31.430Z
|
|
320
|
+
|
|
321
|
+
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")
|
|
322
|
+
|
|
@@ -308,3 +308,11 @@ undefined
|
|
|
308
308
|
|
|
309
309
|
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")
|
|
310
310
|
|
|
311
|
+
2026-07-30T02:49:53.636Z
|
|
312
|
+
|
|
313
|
+
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")
|
|
314
|
+
|
|
315
|
+
2026-07-30T02:51:32.829Z
|
|
316
|
+
|
|
317
|
+
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")
|
|
318
|
+
|
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: "9.0.0
|
|
42
|
+
version: "9.0.0",
|
|
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": "^9.0.0
|
|
69
|
-
"@dbml/core": "^9.0.0
|
|
70
|
-
"@dbml/parse": "^9.0.0
|
|
68
|
+
"@dbml/connector": "^9.0.0",
|
|
69
|
+
"@dbml/core": "^9.0.0",
|
|
70
|
+
"@dbml/parse": "^9.0.0",
|
|
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: "c0daab9d39cb1b43d1ad6280ad07da459a897576",
|
|
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": "9.0.0
|
|
4
|
+
"version": "9.0.0",
|
|
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": "^9.0.0
|
|
36
|
-
"@dbml/core": "^9.0.0
|
|
37
|
-
"@dbml/parse": "^9.0.0
|
|
35
|
+
"@dbml/connector": "^9.0.0",
|
|
36
|
+
"@dbml/core": "^9.0.0",
|
|
37
|
+
"@dbml/parse": "^9.0.0",
|
|
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": "c0daab9d39cb1b43d1ad6280ad07da459a897576",
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
}
|