@dbml/cli 9.0.0-optional-ref.7 → 9.0.0-optional-ref.9
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 +20 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1784 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +20 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +16 -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 +20 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +16 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +16 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +16 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
|
@@ -191,3 +191,23 @@
|
|
|
191
191
|
./in-files/broken.dbml(4,1): Expect an identifier
|
|
192
192
|
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
193
193
|
|
|
194
|
+
2026-07-15T09:00:19.133Z
|
|
195
|
+
|
|
196
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
197
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
198
|
+
|
|
199
|
+
2026-07-15T09:02:03.246Z
|
|
200
|
+
|
|
201
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
202
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
203
|
+
|
|
204
|
+
2026-07-15T11:08:26.198Z
|
|
205
|
+
|
|
206
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
207
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
208
|
+
|
|
209
|
+
2026-07-17T09:12:45.556Z
|
|
210
|
+
|
|
211
|
+
./in-files/broken.dbml(4,1): Expect an identifier
|
|
212
|
+
./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
|
|
213
|
+
|
|
@@ -158,3 +158,19 @@
|
|
|
158
158
|
|
|
159
159
|
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
160
160
|
|
|
161
|
+
2026-07-15T09:00:20.354Z
|
|
162
|
+
|
|
163
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
164
|
+
|
|
165
|
+
2026-07-15T09:02:04.482Z
|
|
166
|
+
|
|
167
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
168
|
+
|
|
169
|
+
2026-07-15T11:08:27.424Z
|
|
170
|
+
|
|
171
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
172
|
+
|
|
173
|
+
2026-07-17T09:12:46.845Z
|
|
174
|
+
|
|
175
|
+
./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
|
|
176
|
+
|
|
@@ -407,3 +407,23 @@ undefined
|
|
|
407
407
|
ecommerce.dbml(17,24): Expect an identifier
|
|
408
408
|
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
409
409
|
|
|
410
|
+
2026-07-15T09:00:33.993Z
|
|
411
|
+
|
|
412
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
413
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
414
|
+
|
|
415
|
+
2026-07-15T09:02:18.187Z
|
|
416
|
+
|
|
417
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
418
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
419
|
+
|
|
420
|
+
2026-07-15T11:08:41.277Z
|
|
421
|
+
|
|
422
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
423
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
424
|
+
|
|
425
|
+
2026-07-17T09:13:01.021Z
|
|
426
|
+
|
|
427
|
+
ecommerce.dbml(17,24): Expect an identifier
|
|
428
|
+
ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
|
|
429
|
+
|
package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -324,3 +324,23 @@ undefined
|
|
|
324
324
|
|
|
325
325
|
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
326
326
|
|
|
327
|
+
2026-07-13T09:29:45.763Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:00:35.492Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
334
|
+
|
|
335
|
+
2026-07-15T09:02:19.704Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
338
|
+
|
|
339
|
+
2026-07-15T11:08:42.798Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
342
|
+
|
|
343
|
+
2026-07-17T09:13:02.559Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
|
|
346
|
+
|
|
@@ -324,3 +324,23 @@ undefined
|
|
|
324
324
|
|
|
325
325
|
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
326
326
|
|
|
327
|
+
2026-07-13T09:29:47.114Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:00:36.913Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
334
|
+
|
|
335
|
+
2026-07-15T09:02:21.215Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
338
|
+
|
|
339
|
+
2026-07-15T11:08:44.224Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
342
|
+
|
|
343
|
+
2026-07-17T09:13:04.037Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
|
|
346
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -324,3 +324,23 @@ undefined
|
|
|
324
324
|
|
|
325
325
|
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
326
326
|
|
|
327
|
+
2026-07-13T09:29:48.497Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:00:38.359Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
334
|
+
|
|
335
|
+
2026-07-15T09:02:22.660Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
338
|
+
|
|
339
|
+
2026-07-15T11:08:45.705Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
342
|
+
|
|
343
|
+
2026-07-17T09:13:05.513Z
|
|
344
|
+
|
|
345
|
+
You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
|
|
346
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -320,3 +320,23 @@ undefined
|
|
|
320
320
|
|
|
321
321
|
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
322
322
|
|
|
323
|
+
2026-07-13T09:29:49.899Z
|
|
324
|
+
|
|
325
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
326
|
+
|
|
327
|
+
2026-07-15T09:00:39.784Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:02:24.195Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
334
|
+
|
|
335
|
+
2026-07-15T11:08:47.187Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
338
|
+
|
|
339
|
+
2026-07-17T09:13:06.983Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
342
|
+
|
package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -320,3 +320,23 @@ undefined
|
|
|
320
320
|
|
|
321
321
|
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
322
322
|
|
|
323
|
+
2026-07-13T09:29:51.285Z
|
|
324
|
+
|
|
325
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
326
|
+
|
|
327
|
+
2026-07-15T09:00:41.185Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:02:26.440Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
334
|
+
|
|
335
|
+
2026-07-15T11:08:48.605Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
338
|
+
|
|
339
|
+
2026-07-17T09:13:08.460Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
342
|
+
|
package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -320,3 +320,23 @@ undefined
|
|
|
320
320
|
|
|
321
321
|
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
322
322
|
|
|
323
|
+
2026-07-13T09:29:52.676Z
|
|
324
|
+
|
|
325
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
326
|
+
|
|
327
|
+
2026-07-15T09:00:42.581Z
|
|
328
|
+
|
|
329
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
330
|
+
|
|
331
|
+
2026-07-15T09:02:29.718Z
|
|
332
|
+
|
|
333
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
334
|
+
|
|
335
|
+
2026-07-15T11:08:50.068Z
|
|
336
|
+
|
|
337
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
338
|
+
|
|
339
|
+
2026-07-17T09:13:09.950Z
|
|
340
|
+
|
|
341
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
342
|
+
|
|
@@ -299,3 +299,19 @@ undefined
|
|
|
299
299
|
|
|
300
300
|
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`'
|
|
301
301
|
|
|
302
|
+
2026-07-13T09:30:23.523Z
|
|
303
|
+
|
|
304
|
+
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`'
|
|
305
|
+
|
|
306
|
+
2026-07-15T09:01:13.199Z
|
|
307
|
+
|
|
308
|
+
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`'
|
|
309
|
+
|
|
310
|
+
2026-07-15T11:09:20.562Z
|
|
311
|
+
|
|
312
|
+
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`'
|
|
313
|
+
|
|
314
|
+
2026-07-17T09:13:40.975Z
|
|
315
|
+
|
|
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
|
+
|
|
@@ -296,3 +296,19 @@ undefined
|
|
|
296
296
|
|
|
297
297
|
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")
|
|
298
298
|
|
|
299
|
+
2026-07-13T09:30:25.134Z
|
|
300
|
+
|
|
301
|
+
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")
|
|
302
|
+
|
|
303
|
+
2026-07-15T09:01:14.709Z
|
|
304
|
+
|
|
305
|
+
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")
|
|
306
|
+
|
|
307
|
+
2026-07-15T11:09:22.007Z
|
|
308
|
+
|
|
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
|
+
|
|
311
|
+
2026-07-17T09:13:42.492Z
|
|
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
|
+
|
|
@@ -292,3 +292,19 @@ undefined
|
|
|
292
292
|
|
|
293
293
|
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")
|
|
294
294
|
|
|
295
|
+
2026-07-13T09:30:26.602Z
|
|
296
|
+
|
|
297
|
+
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")
|
|
298
|
+
|
|
299
|
+
2026-07-15T09:01:16.118Z
|
|
300
|
+
|
|
301
|
+
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")
|
|
302
|
+
|
|
303
|
+
2026-07-15T11:09:23.348Z
|
|
304
|
+
|
|
305
|
+
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")
|
|
306
|
+
|
|
307
|
+
2026-07-17T09:13:43.886Z
|
|
308
|
+
|
|
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
|
+
|
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-optional-ref.
|
|
42
|
+
version: "9.0.0-optional-ref.9",
|
|
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-optional-ref.
|
|
69
|
-
"@dbml/core": "^9.0.0-optional-ref.
|
|
70
|
-
"@dbml/parse": "^9.0.0-optional-ref.
|
|
68
|
+
"@dbml/connector": "^9.0.0-optional-ref.8",
|
|
69
|
+
"@dbml/core": "^9.0.0-optional-ref.9",
|
|
70
|
+
"@dbml/parse": "^9.0.0-optional-ref.9",
|
|
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: "82bae04b9e29d46f9169cab3c4bfce4e12e49edc",
|
|
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-optional-ref.
|
|
4
|
+
"version": "9.0.0-optional-ref.9",
|
|
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-optional-ref.
|
|
36
|
-
"@dbml/core": "^9.0.0-optional-ref.
|
|
37
|
-
"@dbml/parse": "^9.0.0-optional-ref.
|
|
35
|
+
"@dbml/connector": "^9.0.0-optional-ref.8",
|
|
36
|
+
"@dbml/core": "^9.0.0-optional-ref.9",
|
|
37
|
+
"@dbml/parse": "^9.0.0-optional-ref.9",
|
|
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": "82bae04b9e29d46f9169cab3c4bfce4e12e49edc",
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
}
|