@dbml/cli 9.0.0-optional-ref.4 → 9.0.0-optional-ref.6
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 +5 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +446 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +5 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +4 -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 +5 -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/filename --mssql --out-file/expect-out-files/schema.dbml +2 -2
- package/__tests__/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --mysql stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filename --oracle --out-file/expect-out-files/schema.dbml +11 -11
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
- package/__tests__/sql2dbml/filename --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filename --snowflake stdout/stdout.txt +13 -13
- package/__tests__/sql2dbml/filename stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --mysql stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/filenames stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +5 -5
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
- package/__tests__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
- package/__tests__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +20 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +20 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +20 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
|
@@ -758,3 +758,33 @@ ConnectionError: Login failed for user 'SA'.
|
|
|
758
758
|
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
759
759
|
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
760
760
|
|
|
761
|
+
2026-07-08T04:47:05.776Z
|
|
762
|
+
ConnectionError: Login failed for user 'SA'.
|
|
763
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
764
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
765
|
+
at Object.onceWrapper (node:events:634:26)
|
|
766
|
+
at Connection.emit (node:events:519:28)
|
|
767
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
768
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
769
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
770
|
+
|
|
771
|
+
2026-07-08T04:54:01.909Z
|
|
772
|
+
ConnectionError: Login failed for user 'SA'.
|
|
773
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
774
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
775
|
+
at Object.onceWrapper (node:events:634:26)
|
|
776
|
+
at Connection.emit (node:events:519:28)
|
|
777
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
778
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
779
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
780
|
+
|
|
781
|
+
2026-07-08T04:54:23.406Z
|
|
782
|
+
ConnectionError: Login failed for user 'SA'.
|
|
783
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
784
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
785
|
+
at Object.onceWrapper (node:events:634:26)
|
|
786
|
+
at Connection.emit (node:events:519:28)
|
|
787
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
788
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
789
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
790
|
+
|
|
@@ -986,3 +986,42 @@ Error: Unknown database 'dbml_test'
|
|
|
986
986
|
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
987
987
|
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
988
988
|
|
|
989
|
+
2026-07-08T04:47:06.893Z
|
|
990
|
+
Error: Unknown database 'dbml_test'
|
|
991
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47763)
|
|
992
|
+
at yr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52059)
|
|
993
|
+
at Pr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
994
|
+
at Module.Ei (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1080)
|
|
995
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:54)
|
|
996
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2841:2)
|
|
997
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
998
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
999
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
1000
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
1001
|
+
|
|
1002
|
+
2026-07-08T04:54:03.181Z
|
|
1003
|
+
Error: Unknown database 'dbml_test'
|
|
1004
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47763)
|
|
1005
|
+
at yr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52059)
|
|
1006
|
+
at Pr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
1007
|
+
at Module.Ei (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1080)
|
|
1008
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:54)
|
|
1009
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2841:2)
|
|
1010
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
1011
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
1012
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
1013
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
1014
|
+
|
|
1015
|
+
2026-07-08T04:54:24.711Z
|
|
1016
|
+
Error: Unknown database 'dbml_test'
|
|
1017
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:47763)
|
|
1018
|
+
at yr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3241:52059)
|
|
1019
|
+
at Pr (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3360:500)
|
|
1020
|
+
at Module.Ei (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1080)
|
|
1021
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:54)
|
|
1022
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2841:2)
|
|
1023
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
1024
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
1025
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
1026
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
1027
|
+
|
|
@@ -1062,3 +1062,45 @@ connect ECONNREFUSED 127.0.0.1:1521
|
|
|
1062
1062
|
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
1063
1063
|
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
1064
1064
|
|
|
1065
|
+
2026-07-08T04:47:08.056Z
|
|
1066
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=hnh4cmqcPUEjV907y9y5Rg==)
|
|
1067
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
1068
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
1069
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
1070
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
1071
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
1072
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
1073
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
1074
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
1075
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
1076
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
1077
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
1078
|
+
|
|
1079
|
+
2026-07-08T04:54:04.471Z
|
|
1080
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=tnndnbKFbUmmmIaugBlLRg==)
|
|
1081
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
1082
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
1083
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
1084
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
1085
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
1086
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
1087
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
1088
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
1089
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
1090
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
1091
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
1092
|
+
|
|
1093
|
+
2026-07-08T04:54:25.977Z
|
|
1094
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=HHdFlP2TSYksCZZA5ZKk2Q==)
|
|
1095
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
1096
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
1097
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
1098
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
1099
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
1100
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
1101
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
1102
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
1103
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
1104
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
1105
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
1106
|
+
|
|
@@ -537,3 +537,24 @@ Error: PostgreSQL connection error: AggregateError
|
|
|
537
537
|
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
538
538
|
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
539
539
|
|
|
540
|
+
2026-07-08T04:47:09.215Z
|
|
541
|
+
Error: PostgreSQL connection error: AggregateError
|
|
542
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
543
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
544
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
545
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
546
|
+
|
|
547
|
+
2026-07-08T04:54:05.744Z
|
|
548
|
+
Error: PostgreSQL connection error: AggregateError
|
|
549
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
550
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
551
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
552
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
553
|
+
|
|
554
|
+
2026-07-08T04:54:27.215Z
|
|
555
|
+
Error: PostgreSQL connection error: AggregateError
|
|
556
|
+
at ni (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3484:2977)
|
|
557
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
558
|
+
at async di (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3701:279)
|
|
559
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:2630:22)
|
|
560
|
+
|
|
@@ -255,3 +255,8 @@
|
|
|
255
255
|
./in-files/main.dbml(5,15): Expect an identifier
|
|
256
256
|
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
257
257
|
|
|
258
|
+
2026-07-08T04:46:09.240Z
|
|
259
|
+
|
|
260
|
+
./in-files/main.dbml(5,15): Expect an identifier
|
|
261
|
+
./in-files/main.dbml(4,11): Unknown column setting 'pk user_id int'
|
|
262
|
+
|