@dbml/cli 9.0.0-optional-ref.1 → 9.0.0-optional-ref.3
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 +140 -0
- package/__tests__/db2dbml/mssql/expect-out-files/schema.dbml +1 -1
- package/__tests__/db2dbml/mysql/dbml-error.log +182 -0
- package/__tests__/db2dbml/mysql/expect-out-files/schema.dbml +1 -1
- package/__tests__/db2dbml/oracle/dbml-error.log +196 -0
- package/__tests__/db2dbml/oracle/expect-out-files/schema.dbml +8 -8
- package/__tests__/db2dbml/postgres/dbml-error.log +98 -0
- package/__tests__/db2dbml/postgres/expect-out-files/schema.dbml +1 -1
- 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 +75 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +6690 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +75 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +60 -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 +75 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +60 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +2 -2
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +5 -5
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
- package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +5 -5
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +5 -5
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +5 -5
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +5 -5
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +56 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +56 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +56 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
|
@@ -439,3 +439,101 @@ Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
|
439
439
|
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
440
440
|
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
441
441
|
|
|
442
|
+
2026-07-03T05:21:32.063Z
|
|
443
|
+
Error: PostgreSQL connection error: AggregateError
|
|
444
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
445
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
446
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
447
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
448
|
+
|
|
449
|
+
2026-07-03T08:51:13.369Z
|
|
450
|
+
Error: PostgreSQL connection error: AggregateError
|
|
451
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
452
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
|
|
453
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
454
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
455
|
+
|
|
456
|
+
2026-07-03T08:52:50.919Z
|
|
457
|
+
Error: PostgreSQL connection error: AggregateError
|
|
458
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
459
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
|
|
460
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
461
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
462
|
+
|
|
463
|
+
2026-07-03T10:23:35.806Z
|
|
464
|
+
Error: PostgreSQL connection error: AggregateError
|
|
465
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
466
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
|
|
467
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
468
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
469
|
+
|
|
470
|
+
2026-07-06T03:00:32.827Z
|
|
471
|
+
Error: PostgreSQL connection error: AggregateError
|
|
472
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
473
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
474
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
475
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
476
|
+
|
|
477
|
+
2026-07-06T03:05:18.768Z
|
|
478
|
+
Error: PostgreSQL connection error: AggregateError
|
|
479
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
480
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
481
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
482
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
483
|
+
|
|
484
|
+
2026-07-06T03:35:00.455Z
|
|
485
|
+
Error: PostgreSQL connection error: AggregateError
|
|
486
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
487
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
488
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
489
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
490
|
+
|
|
491
|
+
2026-07-06T03:59:48.628Z
|
|
492
|
+
Error: PostgreSQL connection error: AggregateError
|
|
493
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
494
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
495
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
496
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
497
|
+
|
|
498
|
+
2026-07-06T04:53:56.914Z
|
|
499
|
+
Error: PostgreSQL connection error: AggregateError
|
|
500
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
501
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
502
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
503
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
504
|
+
|
|
505
|
+
2026-07-06T05:27:02.956Z
|
|
506
|
+
Error: PostgreSQL connection error: AggregateError
|
|
507
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
508
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
509
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
510
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
511
|
+
|
|
512
|
+
2026-07-06T05:32:10.368Z
|
|
513
|
+
Error: PostgreSQL connection error: AggregateError
|
|
514
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
515
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
516
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
517
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
518
|
+
|
|
519
|
+
2026-07-06T09:40:35.674Z
|
|
520
|
+
Error: PostgreSQL connection error: AggregateError
|
|
521
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
522
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
523
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
524
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
525
|
+
|
|
526
|
+
2026-07-06T09:53:45.166Z
|
|
527
|
+
Error: PostgreSQL connection error: AggregateError
|
|
528
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
529
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
530
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
531
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
532
|
+
|
|
533
|
+
2026-07-06T10:06:38.223Z
|
|
534
|
+
Error: PostgreSQL connection error: AggregateError
|
|
535
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
536
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
537
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
538
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
539
|
+
|
|
@@ -187,7 +187,7 @@ Table "table_with_composite_primary_and_unique_indexes" {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
Ref "fk_authornationality":"authors".("authorid", "nationalityid")
|
|
190
|
+
Ref "fk_authornationality":"authors".("authorid", "nationalityid") <? "books".("authorid", "nationalityid") [delete: cascade]
|
|
191
191
|
|
|
192
192
|
Ref "fk_order":"orders"."order_id" < "order_items"."order_id" [delete: cascade]
|
|
193
193
|
|
|
@@ -180,3 +180,78 @@
|
|
|
180
180
|
./in-files/main.dbml(5,15): Expect an identifier
|
|
181
181
|
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
182
182
|
|
|
183
|
+
2026-07-03T05:20:15.132Z
|
|
184
|
+
|
|
185
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
186
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
187
|
+
|
|
188
|
+
2026-07-03T08:50:07.229Z
|
|
189
|
+
|
|
190
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
191
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
192
|
+
|
|
193
|
+
2026-07-03T08:51:44.693Z
|
|
194
|
+
|
|
195
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
196
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
197
|
+
|
|
198
|
+
2026-07-03T10:22:24.459Z
|
|
199
|
+
|
|
200
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
201
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
202
|
+
|
|
203
|
+
2026-07-06T02:59:26.305Z
|
|
204
|
+
|
|
205
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
206
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
207
|
+
|
|
208
|
+
2026-07-06T03:04:10.886Z
|
|
209
|
+
|
|
210
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
211
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
212
|
+
|
|
213
|
+
2026-07-06T03:33:55.389Z
|
|
214
|
+
|
|
215
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
216
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
217
|
+
|
|
218
|
+
2026-07-06T03:58:40.275Z
|
|
219
|
+
|
|
220
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
221
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
222
|
+
|
|
223
|
+
2026-07-06T04:52:51.129Z
|
|
224
|
+
|
|
225
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
226
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
227
|
+
|
|
228
|
+
2026-07-06T05:25:58.466Z
|
|
229
|
+
|
|
230
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
231
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
232
|
+
|
|
233
|
+
2026-07-06T05:31:06.742Z
|
|
234
|
+
|
|
235
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
236
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
237
|
+
|
|
238
|
+
2026-07-06T09:39:28.848Z
|
|
239
|
+
|
|
240
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
241
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
242
|
+
|
|
243
|
+
2026-07-06T09:41:24.578Z
|
|
244
|
+
|
|
245
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
246
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
247
|
+
|
|
248
|
+
2026-07-06T09:52:35.248Z
|
|
249
|
+
|
|
250
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
251
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
252
|
+
|
|
253
|
+
2026-07-06T10:05:29.244Z
|
|
254
|
+
|
|
255
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
256
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
257
|
+
|