@dbml/cli 9.0.0-optional-ref.6 → 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/expect-out-files/schema.dbml +5 -5
- package/__tests__/db2dbml/mysql/expect-out-files/schema.dbml +4 -4
- package/__tests__/db2dbml/oracle/expect-out-files/schema.dbml +9 -9
- package/__tests__/db2dbml/postgres/expect-out-files/schema.dbml +4 -4
- package/lib/index.js +3 -3
- package/package.json +3 -3
|
@@ -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"
|
|
@@ -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]
|
|
@@ -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")
|
|
@@ -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]
|
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.7",
|
|
43
43
|
description: "",
|
|
44
44
|
main: "lib/index.js",
|
|
45
45
|
license: "Apache-2.0",
|
|
@@ -66,7 +66,7 @@ var package_default = {
|
|
|
66
66
|
dependencies: {
|
|
67
67
|
"@babel/cli": "^7.21.0",
|
|
68
68
|
"@dbml/connector": "^9.0.0-optional-ref.6",
|
|
69
|
-
"@dbml/core": "^9.0.0-optional-ref.
|
|
69
|
+
"@dbml/core": "^9.0.0-optional-ref.7",
|
|
70
70
|
"@dbml/parse": "^9.0.0-optional-ref.6",
|
|
71
71
|
"bluebird": "^3.5.5",
|
|
72
72
|
"chalk": "^2.4.2",
|
|
@@ -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: "cdf4dac65e90716d6644a2c8247fffb72bedc0fa",
|
|
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.7",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/cli": "^7.21.0",
|
|
35
35
|
"@dbml/connector": "^9.0.0-optional-ref.6",
|
|
36
|
-
"@dbml/core": "^9.0.0-optional-ref.
|
|
36
|
+
"@dbml/core": "^9.0.0-optional-ref.7",
|
|
37
37
|
"@dbml/parse": "^9.0.0-optional-ref.6",
|
|
38
38
|
"bluebird": "^3.5.5",
|
|
39
39
|
"chalk": "^2.4.2",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"strip-ansi": "^5.2.0",
|
|
46
46
|
"winston": "^3.2.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "cdf4dac65e90716d6644a2c8247fffb72bedc0fa",
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
}
|