@dbml/cli 8.2.2 → 8.2.4
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 +7608 -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 +15 -0
- 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
|
@@ -478,3 +478,33 @@ ConnectionError: Login failed for user 'SA'.
|
|
|
478
478
|
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
479
479
|
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
480
480
|
|
|
481
|
+
2026-06-01T03:38:23.627Z
|
|
482
|
+
ConnectionError: Login failed for user 'SA'.
|
|
483
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
484
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
485
|
+
at Object.onceWrapper (node:events:634:26)
|
|
486
|
+
at Connection.emit (node:events:519:28)
|
|
487
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
488
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
489
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
490
|
+
|
|
491
|
+
2026-06-01T03:39:42.811Z
|
|
492
|
+
ConnectionError: Login failed for user 'SA'.
|
|
493
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
494
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
495
|
+
at Object.onceWrapper (node:events:634:26)
|
|
496
|
+
at Connection.emit (node:events:519:28)
|
|
497
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
498
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
499
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
500
|
+
|
|
501
|
+
2026-06-01T04:54:23.301Z
|
|
502
|
+
ConnectionError: Login failed for user 'SA'.
|
|
503
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
504
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
505
|
+
at Object.onceWrapper (node:events:634:26)
|
|
506
|
+
at Connection.emit (node:events:519:28)
|
|
507
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
508
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
509
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
510
|
+
|
|
@@ -622,3 +622,42 @@ Error: Unknown database 'dbml_test'
|
|
|
622
622
|
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
623
623
|
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
624
624
|
|
|
625
|
+
2026-06-01T03:38:25.109Z
|
|
626
|
+
Error: Unknown database 'dbml_test'
|
|
627
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47740)
|
|
628
|
+
at Fr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52036)
|
|
629
|
+
at Xr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
630
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1082)
|
|
631
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:55)
|
|
632
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1347:2)
|
|
633
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
634
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
635
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
636
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
637
|
+
|
|
638
|
+
2026-06-01T03:39:44.443Z
|
|
639
|
+
Error: Unknown database 'dbml_test'
|
|
640
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47740)
|
|
641
|
+
at Fr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52036)
|
|
642
|
+
at Xr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
643
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1082)
|
|
644
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:55)
|
|
645
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1347:2)
|
|
646
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
647
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
648
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
649
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
650
|
+
|
|
651
|
+
2026-06-01T04:54:24.537Z
|
|
652
|
+
Error: Unknown database 'dbml_test'
|
|
653
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47740)
|
|
654
|
+
at Fr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52036)
|
|
655
|
+
at Xr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
656
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1082)
|
|
657
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:55)
|
|
658
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1347:2)
|
|
659
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
660
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
661
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
662
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
663
|
+
|
|
@@ -670,3 +670,45 @@ connect ECONNREFUSED 127.0.0.1:1521
|
|
|
670
670
|
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
671
671
|
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
672
672
|
|
|
673
|
+
2026-06-01T03:38:26.621Z
|
|
674
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=hVt5VVMLQqcHCC3k7eJLmQ==)
|
|
675
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
676
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
677
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
678
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
679
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
680
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
681
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
682
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
683
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
684
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
685
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
686
|
+
|
|
687
|
+
2026-06-01T03:39:45.947Z
|
|
688
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=cMibEbJOZzzcJYNpxaoNfw==)
|
|
689
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
690
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
691
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
692
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
693
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
694
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
695
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
696
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
697
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
698
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
699
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
700
|
+
|
|
701
|
+
2026-06-01T04:54:25.752Z
|
|
702
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=I0bjJShhkTw9yG/16BvjqA==)
|
|
703
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
704
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
705
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
706
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
707
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
708
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
709
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
710
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
711
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
712
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
713
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
714
|
+
|
|
@@ -341,3 +341,24 @@ Error: PostgreSQL connection error: AggregateError
|
|
|
341
341
|
at async Di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
342
342
|
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1171:22)
|
|
343
343
|
|
|
344
|
+
2026-06-01T03:38:28.102Z
|
|
345
|
+
Error: PostgreSQL connection error: AggregateError
|
|
346
|
+
at vi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
347
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
348
|
+
at async Di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
349
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:22)
|
|
350
|
+
|
|
351
|
+
2026-06-01T03:39:47.274Z
|
|
352
|
+
Error: PostgreSQL connection error: AggregateError
|
|
353
|
+
at vi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
354
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
355
|
+
at async Di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
356
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:22)
|
|
357
|
+
|
|
358
|
+
2026-06-01T04:54:26.958Z
|
|
359
|
+
Error: PostgreSQL connection error: AggregateError
|
|
360
|
+
at vi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
361
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
362
|
+
at async Di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
363
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1152:22)
|
|
364
|
+
|
|
@@ -95,3 +95,23 @@
|
|
|
95
95
|
./in-files/main.dbml(5,15): Expect an identifier
|
|
96
96
|
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
97
97
|
|
|
98
|
+
2026-06-01T03:37:07.185Z
|
|
99
|
+
|
|
100
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
101
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
102
|
+
|
|
103
|
+
2026-06-01T03:38:19.200Z
|
|
104
|
+
|
|
105
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
106
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
107
|
+
|
|
108
|
+
2026-06-01T04:50:45.797Z
|
|
109
|
+
|
|
110
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
111
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
112
|
+
|
|
113
|
+
2026-06-01T04:53:17.724Z
|
|
114
|
+
|
|
115
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
116
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
117
|
+
|