@dbml/cli 9.0.0-optional-ref.5 → 9.0.0-optional-ref.7
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/mssql/expect-out-files/schema.dbml +5 -5
- package/__tests__/db2dbml/mysql/dbml-error.log +39 -0
- package/__tests__/db2dbml/mysql/expect-out-files/schema.dbml +4 -4
- package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
- package/__tests__/db2dbml/oracle/expect-out-files/schema.dbml +9 -9
- package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
- package/__tests__/db2dbml/postgres/expect-out-files/schema.dbml +4 -4
- 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
|
+
|
|
@@ -215,12 +215,12 @@ Table "dbo"."TestDescriptionTable" {
|
|
|
215
215
|
Note: 'This is the custom comment name on table.'
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
Ref "FK_AuthorNationality":"dbo"."Authors".("AuthorID", "NationalityID")
|
|
218
|
+
Ref "FK_AuthorNationality":"dbo"."Authors".("AuthorID", "NationalityID") ?<? "dbo"."Books".("AuthorID", "NationalityID")
|
|
219
219
|
|
|
220
|
-
Ref "fk_product":"dbo"."products"."product_id"
|
|
220
|
+
Ref "fk_product":"dbo"."products"."product_id" <? "dbo"."order_items"."product_id" [update: cascade]
|
|
221
221
|
|
|
222
|
-
Ref "fk_order":"dbo"."orders"."order_id"
|
|
222
|
+
Ref "fk_order":"dbo"."orders"."order_id" <? "dbo"."order_items"."order_id" [update: cascade, delete: cascade]
|
|
223
223
|
|
|
224
|
-
Ref "fk_user":"dbo"."users"."user_id"
|
|
224
|
+
Ref "fk_user":"dbo"."users"."user_id" <? "dbo"."orders"."user_id" [update: cascade, delete: cascade]
|
|
225
225
|
|
|
226
|
-
Ref "fk_gender":"dbo"."gender_reference"."value"
|
|
226
|
+
Ref "fk_gender":"dbo"."gender_reference"."value" ?<? "dbo"."user_define_data_types"."gender"
|
|
@@ -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
|
+
|
|
@@ -191,10 +191,10 @@ Table "users" {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
Ref "fk_test_composite":"composite_key_2".("id2_1", "id2_2")
|
|
194
|
+
Ref "fk_test_composite":"composite_key_2".("id2_1", "id2_2") <? "composite_key_1".("id1_1", "id1_2")
|
|
195
195
|
|
|
196
|
-
Ref "fk_detail_items_orders":"orders"."order_id"
|
|
196
|
+
Ref "fk_detail_items_orders":"orders"."order_id" <? "order_items"."order_id" [delete: cascade]
|
|
197
197
|
|
|
198
|
-
Ref "fk_detail_items_products":"products"."id"
|
|
198
|
+
Ref "fk_detail_items_products":"products"."id" <? "order_items"."product_id"
|
|
199
199
|
|
|
200
|
-
Ref "fk_order_user":"users"."user_id"
|
|
200
|
+
Ref "fk_order_user":"users"."user_id" ?<? "orders"."user_id" [delete: set null]
|
|
@@ -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
|
+
|
|
@@ -400,20 +400,20 @@ Table "SPECIAL_DATA_TYPES" {
|
|
|
400
400
|
"UROWID_SIZED" urowid(100)
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
Ref "FK_SELF_REF":"SELF_REF_FK"."ID"
|
|
403
|
+
Ref "FK_SELF_REF":"SELF_REF_FK"."ID" ?<? "SELF_REF_FK"."PARENT_ID" [delete: set null]
|
|
404
404
|
|
|
405
|
-
Ref "FK_CHILD_PARENT":"FK_PARENT"."ID"
|
|
405
|
+
Ref "FK_CHILD_PARENT":"FK_PARENT"."ID" <? "FK_CHILD"."PARENT_ID" [delete: cascade]
|
|
406
406
|
|
|
407
|
-
Ref "FK_COMPOSITE_SELF":"COMPOSITE_SELF_REF".("DEPT_ID", "EMP_ID")
|
|
407
|
+
Ref "FK_COMPOSITE_SELF":"COMPOSITE_SELF_REF".("DEPT_ID", "EMP_ID") ?<? "COMPOSITE_SELF_REF".("PARENT_DEPT_ID", "PARENT_EMP_ID") [delete: set null]
|
|
408
408
|
|
|
409
|
-
Ref "FK_ALTER_PARENT":"ALTER_FK_PARENT"."ID"
|
|
409
|
+
Ref "FK_ALTER_PARENT":"ALTER_FK_PARENT"."ID" ?<? "ALTER_FK_CHILD"."PARENT_ID" [delete: cascade]
|
|
410
410
|
|
|
411
|
-
Ref "FK_ALTER_SELF":"ALTER_SELF_REF"."ID"
|
|
411
|
+
Ref "FK_ALTER_SELF":"ALTER_SELF_REF"."ID" ?<? "ALTER_SELF_REF"."PARENT_ID" [delete: set null]
|
|
412
412
|
|
|
413
|
-
Ref "FK_ALTER_COMPOSITE":"ALTER_COMPOSITE_FK_PARENT".("DEPT_ID", "EMP_ID")
|
|
413
|
+
Ref "FK_ALTER_COMPOSITE":"ALTER_COMPOSITE_FK_PARENT".("DEPT_ID", "EMP_ID") ?<? "ALTER_COMPOSITE_FK_CHILD".("REF_DEPT_ID", "REF_EMP_ID")
|
|
414
414
|
|
|
415
|
-
Ref "FK_REF_SIMPLE":"REF_SIMPLE_PARENT"."ID"
|
|
415
|
+
Ref "FK_REF_SIMPLE":"REF_SIMPLE_PARENT"."ID" ?<? "REF_SIMPLE_CHILD"."PARENT_ID"
|
|
416
416
|
|
|
417
|
-
Ref "FK_REF_COMPOSITE":"REF_COMPOSITE_PARENT".("KEY1", "KEY2")
|
|
417
|
+
Ref "FK_REF_COMPOSITE":"REF_COMPOSITE_PARENT".("KEY1", "KEY2") ?<? "REF_COMPOSITE_CHILD".("FK1", "FK2")
|
|
418
418
|
|
|
419
|
-
Ref "FK_ALTER_COMP_SELF":"ALTER_COMP_SELF_REF".("DEPT_ID", "EMP_ID")
|
|
419
|
+
Ref "FK_ALTER_COMP_SELF":"ALTER_COMP_SELF_REF".("DEPT_ID", "EMP_ID") ?<? "ALTER_COMP_SELF_REF".("PARENT_DEPT_ID", "PARENT_EMP_ID")
|
|
@@ -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
|
+
|
|
@@ -187,10 +187,10 @@ 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
|
-
Ref "fk_order":"orders"."order_id"
|
|
192
|
+
Ref "fk_order":"orders"."order_id" <? "order_items"."order_id" [delete: cascade]
|
|
193
193
|
|
|
194
|
-
Ref "fk_product":"products"."product_id"
|
|
194
|
+
Ref "fk_product":"products"."product_id" <? "order_items"."product_id" [delete: cascade]
|
|
195
195
|
|
|
196
|
-
Ref "fk_user":"users"."user_id"
|
|
196
|
+
Ref "fk_user":"users"."user_id" <? "orders"."user_id" [delete: cascade]
|
|
@@ -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
|
+
|