@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.
Files changed (60) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +30 -0
  2. package/__tests__/db2dbml/mysql/dbml-error.log +39 -0
  3. package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
  4. package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
  5. package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  6. package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
  7. package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  8. package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  9. package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  10. package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
  11. package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  12. package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  13. package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +5 -0
  14. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +446 -0
  15. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +5 -0
  16. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +4 -0
  17. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
  18. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  19. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  20. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  21. package/__tests__/dbml2sql/syntax-error/dbml-error.log +5 -0
  22. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +20 -0
  23. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +20 -0
  24. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +20 -0
  25. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +20 -0
  26. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +20 -0
  27. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +20 -0
  28. package/__tests__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +2 -2
  29. package/__tests__/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +6 -6
  30. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
  31. package/__tests__/sql2dbml/filename --mysql stdout/stdout.txt +6 -6
  32. package/__tests__/sql2dbml/filename --oracle --out-file/expect-out-files/schema.dbml +11 -11
  33. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
  34. package/__tests__/sql2dbml/filename --out-file/expect-out-files/schema.dbml +6 -6
  35. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
  36. package/__tests__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +6 -6
  37. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
  38. package/__tests__/sql2dbml/filename --postgres stdout/stdout.txt +6 -6
  39. package/__tests__/sql2dbml/filename --snowflake stdout/stdout.txt +13 -13
  40. package/__tests__/sql2dbml/filename stdout/stdout.txt +6 -6
  41. package/__tests__/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +14 -14
  42. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
  43. package/__tests__/sql2dbml/filenames --mysql stdout/stdout.txt +14 -14
  44. package/__tests__/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +14 -14
  45. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
  46. package/__tests__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +14 -14
  47. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
  48. package/__tests__/sql2dbml/filenames --postgres stdout/stdout.txt +14 -14
  49. package/__tests__/sql2dbml/filenames stdout/stdout.txt +14 -14
  50. package/__tests__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +5 -5
  51. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
  52. package/__tests__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +7 -7
  53. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
  54. package/__tests__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +7 -7
  55. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
  56. package/__tests__/sql2dbml/syntax-error/dbml-error.log +20 -0
  57. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +20 -0
  58. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +20 -0
  59. package/lib/index.js +5 -5
  60. package/package.json +5 -5
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" <? "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" <? "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" <? "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" <? "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" <? "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
  Table "country" {
52
52
  "id" int [pk]
53
53
  "country" varchar
@@ -88,11 +88,11 @@ Table "customer" {
88
88
  }
89
89
  }
90
90
 
91
- Ref:"country"."id" <? "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" <? "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" <? "customer"."address_id"
95
+ Ref:"address"."id" ?<? "customer"."address_id"
96
96
  Table "category" {
97
97
  "id" int [pk]
98
98
  "name" varchar
@@ -155,16 +155,16 @@ Table "inventory" {
155
155
  "last_update" timestamp
156
156
  }
157
157
 
158
- Ref:"category"."id" <? "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
160
  Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" <? "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" <? "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" <? "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" <? "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" <? "inventory"."film_id"
170
+ Ref:"film"."id" ?<? "inventory"."film_id"
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" < "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" < "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" < "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" < "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" < "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
  Table "country" {
52
52
  "id" int [pk]
53
53
  "country" varchar
@@ -88,11 +88,11 @@ Table "customer" {
88
88
  }
89
89
  }
90
90
 
91
- Ref:"country"."id" < "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" < "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" < "customer"."address_id"
95
+ Ref:"address"."id" ?<? "customer"."address_id"
96
96
  Table "category" {
97
97
  "id" int [pk]
98
98
  "name" varchar
@@ -155,16 +155,16 @@ Table "inventory" {
155
155
  "last_update" timestamp
156
156
  }
157
157
 
158
- Ref:"category"."id" < "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
160
+ Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" < "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" < "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" < "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" < "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" < "inventory"."film_id"
170
+ Ref:"film"."id" ?<? "inventory"."film_id"
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" <? "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" <? "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" <? "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" <? "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" <? "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
  Table "country" {
52
52
  "id" int [pk]
53
53
  "country" varchar
@@ -88,11 +88,11 @@ Table "customer" {
88
88
  }
89
89
  }
90
90
 
91
- Ref:"country"."id" <? "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" <? "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" <? "customer"."address_id"
95
+ Ref:"address"."id" ?<? "customer"."address_id"
96
96
  Table "category" {
97
97
  "id" int [pk]
98
98
  "name" varchar
@@ -155,16 +155,16 @@ Table "inventory" {
155
155
  "last_update" timestamp
156
156
  }
157
157
 
158
- Ref:"category"."id" <? "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
160
  Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" <? "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" <? "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" <? "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" <? "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" <? "inventory"."film_id"
170
+ Ref:"film"."id" ?<? "inventory"."film_id"
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" < "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" < "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" < "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" < "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" < "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
  Table "country" {
52
52
  "id" int [pk]
53
53
  "country" varchar
@@ -88,11 +88,11 @@ Table "customer" {
88
88
  }
89
89
  }
90
90
 
91
- Ref:"country"."id" < "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" < "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" < "customer"."address_id"
95
+ Ref:"address"."id" ?<? "customer"."address_id"
96
96
  Table "category" {
97
97
  "id" int [pk]
98
98
  "name" varchar
@@ -155,16 +155,16 @@ Table "inventory" {
155
155
  "last_update" timestamp
156
156
  }
157
157
 
158
- Ref:"category"."id" < "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
160
+ Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" < "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" < "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" < "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" < "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" < "inventory"."film_id"
170
+ Ref:"film"."id" ?<? "inventory"."film_id"
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" <? "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" <? "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" <? "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" <? "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" <? "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
 
52
52
  Table "country" {
53
53
  "id" int [pk]
@@ -89,11 +89,11 @@ Table "customer" {
89
89
  }
90
90
  }
91
91
 
92
- Ref:"country"."id" <? "city"."country_id"
92
+ Ref:"country"."id" ?<? "city"."country_id"
93
93
 
94
- Ref:"city"."id" <? "address"."city_id"
94
+ Ref:"city"."id" ?<? "address"."city_id"
95
95
 
96
- Ref:"address"."id" <? "customer"."address_id"
96
+ Ref:"address"."id" ?<? "customer"."address_id"
97
97
 
98
98
  Table "category" {
99
99
  "id" int [pk]
@@ -157,17 +157,17 @@ Table "inventory" {
157
157
  "last_update" timestamp
158
158
  }
159
159
 
160
- Ref:"category"."id" <? "film_category"."category_id"
160
+ Ref:"category"."id" ?<? "film_category"."category_id"
161
161
 
162
162
  Ref:"inventory"."film_id" ?<? "film_text"."film_id"
163
163
 
164
- Ref:"language"."id" <? "film"."language_id"
164
+ Ref:"language"."id" ?<? "film"."language_id"
165
165
 
166
- Ref:"language"."id" <? "film"."original_language_id"
166
+ Ref:"language"."id" ?<? "film"."original_language_id"
167
167
 
168
- Ref:"film"."id" <? "film_actor"."film_id"
168
+ Ref:"film"."id" ?<? "film_actor"."film_id"
169
169
 
170
- Ref:"actor"."id" <? "film_actor"."actor_id"
170
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
171
171
 
172
- Ref:"film"."id" <? "inventory"."film_id"
172
+ Ref:"film"."id" ?<? "inventory"."film_id"
173
173
 
@@ -39,15 +39,15 @@ Table "rental" {
39
39
  "last_update" timestamp
40
40
  }
41
41
 
42
- Ref:"store"."id" <? "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" <? "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" <? "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" <? "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" <? "rental"."staff_id"
50
+ Ref:"staff"."id" ?<? "rental"."staff_id"
51
51
 
52
52
  Table "country" {
53
53
  "id" int [pk]
@@ -89,11 +89,11 @@ Table "customer" {
89
89
  }
90
90
  }
91
91
 
92
- Ref:"country"."id" <? "city"."country_id"
92
+ Ref:"country"."id" ?<? "city"."country_id"
93
93
 
94
- Ref:"city"."id" <? "address"."city_id"
94
+ Ref:"city"."id" ?<? "address"."city_id"
95
95
 
96
- Ref:"address"."id" <? "customer"."address_id"
96
+ Ref:"address"."id" ?<? "customer"."address_id"
97
97
 
98
98
  Table "category" {
99
99
  "id" int [pk]
@@ -157,17 +157,17 @@ Table "inventory" {
157
157
  "last_update" timestamp
158
158
  }
159
159
 
160
- Ref:"category"."id" <? "film_category"."category_id"
160
+ Ref:"category"."id" ?<? "film_category"."category_id"
161
161
 
162
162
  Ref:"inventory"."film_id" ?<? "film_text"."film_id"
163
163
 
164
- Ref:"language"."id" <? "film"."language_id"
164
+ Ref:"language"."id" ?<? "film"."language_id"
165
165
 
166
- Ref:"language"."id" <? "film"."original_language_id"
166
+ Ref:"language"."id" ?<? "film"."original_language_id"
167
167
 
168
- Ref:"film"."id" <? "film_actor"."film_id"
168
+ Ref:"film"."id" ?<? "film_actor"."film_id"
169
169
 
170
- Ref:"actor"."id" <? "film_actor"."actor_id"
170
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
171
171
 
172
- Ref:"film"."id" <? "inventory"."film_id"
172
+ Ref:"film"."id" ?<? "inventory"."film_id"
173
173
 
@@ -12,17 +12,17 @@ Table "products" {
12
12
  "name" nvarchar(255) [note: 'Product name']
13
13
  }
14
14
 
15
- Ref:"schemaA"."locations"."id" <? "schemaA"."products"."lid"
15
+ Ref:"schemaA"."locations"."id" ?<? "schemaA"."products"."lid"
16
16
 
17
- Ref "FK_1":"schemaA"."locations"."id" <? "schemaA"."products"."lid2"
17
+ Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid2"
18
18
 
19
19
  Ref:"users"."id" < "ecommerce"."users"."id"
20
20
 
21
- Ref "name_optional":"users"."name" ?< "ecommerce"."users"."id"
21
+ Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
22
22
 
23
- Ref:"ecommerce"."users"."id" <? "schemaA"."products"."name"
23
+ Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
24
24
 
25
- Ref:"users"."id" <? "schemaA"."locations"."name"
25
+ Ref:"users"."id" < "schemaA"."locations"."name"
26
26
 
27
27
  Table "ecommerce"."users" {
28
28
  "id" int [pk]
@@ -12,7 +12,7 @@ Table "products" {
12
12
  "name" nvarchar(255) [note: 'Product name']
13
13
  }
14
14
 
15
- Ref:"schemaA"."locations"."id" < "schemaA"."products"."lid"
15
+ Ref:"schemaA"."locations"."id" ?<? "schemaA"."products"."lid"
16
16
 
17
17
  Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid2"
18
18
 
@@ -70,21 +70,21 @@ Table "orders4" {
70
70
  }
71
71
  }
72
72
 
73
- Ref "FK_1":"schemaA"."locations"."id" <? "schemaA"."products"."lid" [delete: cascade]
73
+ Ref "FK_1":"schemaA"."locations"."id" ?<? "schemaA"."products"."lid" [delete: cascade]
74
74
 
75
- Ref:"schemaA"."products"."id" <? "orders"."pid"
75
+ Ref:"schemaA"."products"."id" ?<? "orders"."pid"
76
76
 
77
- Ref:"schemaA"."products"."id" <? "orders2"."pid"
77
+ Ref:"schemaA"."products"."id" ?<? "orders2"."pid"
78
78
 
79
79
  Ref "CFK_1":"orders".("id1", "id2") ?<? "orders2".("id1", "id2") [update: set null, delete: cascade]
80
80
 
81
- Ref:"users"."id" < "ecommerce"."users"."id"
81
+ Ref:"users"."id" <? "ecommerce"."users"."id"
82
82
 
83
- Ref "name_optional":"users"."name" ?< "ecommerce"."users"."id"
83
+ Ref "name_optional":"users"."name" <? "ecommerce"."users"."id"
84
84
 
85
- Ref:"ecommerce"."users"."id" <? "schemaA"."products"."name"
85
+ Ref:"ecommerce"."users"."id" ?<? "schemaA"."products"."name"
86
86
 
87
- Ref:"users"."id" <? "schemaA"."locations"."name"
87
+ Ref:"users"."id" ?<? "schemaA"."locations"."name"
88
88
 
89
89
  Enum "ecommerce"."users_ejs_enum" {
90
90
  "created2"
@@ -70,21 +70,21 @@ Table "orders4" {
70
70
  }
71
71
  }
72
72
 
73
- Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid" [delete: cascade]
73
+ Ref "FK_1":"schemaA"."locations"."id" ?<? "schemaA"."products"."lid" [delete: cascade]
74
74
 
75
- Ref:"schemaA"."products"."id" < "orders"."pid"
75
+ Ref:"schemaA"."products"."id" ?<? "orders"."pid"
76
76
 
77
- Ref:"schemaA"."products"."id" < "orders2"."pid"
77
+ Ref:"schemaA"."products"."id" ?<? "orders2"."pid"
78
78
 
79
- Ref "CFK_1":"orders".("id1", "id2") < "orders2".("id1", "id2") [update: set null, delete: cascade]
79
+ Ref "CFK_1":"orders".("id1", "id2") ?<? "orders2".("id1", "id2") [update: set null, delete: cascade]
80
80
 
81
- Ref:"users"."id" < "ecommerce"."users"."id"
81
+ Ref:"users"."id" <? "ecommerce"."users"."id"
82
82
 
83
- Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
83
+ Ref "name_optional":"users"."name" <? "ecommerce"."users"."id"
84
84
 
85
- Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
85
+ Ref:"ecommerce"."users"."id" ?<? "schemaA"."products"."name"
86
86
 
87
- Ref:"users"."id" < "schemaA"."locations"."name"
87
+ Ref:"users"."id" ?<? "schemaA"."locations"."name"
88
88
 
89
89
  Enum "ecommerce"."users_ejs_enum" {
90
90
  "created2"
@@ -56,19 +56,19 @@ Table "br_flight" {
56
56
  }
57
57
  }
58
58
 
59
- Ref "fk_1":"schemaA"."locations"."id" <? "schemaA"."products"."lid"
59
+ Ref "fk_1":"schemaA"."locations"."id" ?<? "schemaA"."products"."lid"
60
60
 
61
- Ref:"users"."id" < "ecommerce"."users"."id"
61
+ Ref:"users"."id" <? "ecommerce"."users"."id"
62
62
 
63
- Ref "name_optional":"users"."name" ?< "ecommerce"."users"."id"
63
+ Ref "name_optional":"users"."name" <? "ecommerce"."users"."id"
64
64
 
65
- Ref:"ecommerce"."users"."id" <? "schemaA"."products"."name"
65
+ Ref:"ecommerce"."users"."id" ?<? "schemaA"."products"."name"
66
66
 
67
- Ref:"users"."id" <? "schemaA"."locations"."name"
67
+ Ref:"users"."id" ?<? "schemaA"."locations"."name"
68
68
 
69
- Ref "fk_composite":"booking_reference".("reference_id", "cust_id") < "br_flight".("reference_id", "cust_id")
69
+ Ref "fk_composite":"booking_reference".("reference_id", "cust_id") <? "br_flight".("reference_id", "cust_id")
70
70
 
71
- Ref "fk_country_code":"countries"."code" <? "users"."country_code"
71
+ Ref "fk_country_code":"countries"."code" ?<? "users"."country_code"
72
72
 
73
73
  Enum "schemaB"."gender" {
74
74
  "male"
@@ -56,19 +56,19 @@ Table "br_flight" {
56
56
  }
57
57
  }
58
58
 
59
- Ref "fk_1":"schemaA"."locations"."id" < "schemaA"."products"."lid"
59
+ Ref "fk_1":"schemaA"."locations"."id" ?<? "schemaA"."products"."lid"
60
60
 
61
- Ref:"users"."id" < "ecommerce"."users"."id"
61
+ Ref:"users"."id" <? "ecommerce"."users"."id"
62
62
 
63
- Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
63
+ Ref "name_optional":"users"."name" <? "ecommerce"."users"."id"
64
64
 
65
- Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
65
+ Ref:"ecommerce"."users"."id" ?<? "schemaA"."products"."name"
66
66
 
67
- Ref:"users"."id" < "schemaA"."locations"."name"
67
+ Ref:"users"."id" ?<? "schemaA"."locations"."name"
68
68
 
69
- Ref "fk_composite":"booking_reference".("reference_id", "cust_id") < "br_flight".("reference_id", "cust_id")
69
+ Ref "fk_composite":"booking_reference".("reference_id", "cust_id") <? "br_flight".("reference_id", "cust_id")
70
70
 
71
- Ref "fk_country_code":"countries"."code" < "users"."country_code"
71
+ Ref "fk_country_code":"countries"."code" ?<? "users"."country_code"
72
72
 
73
73
  Enum "schemaB"."gender" {
74
74
  "male"
@@ -279,3 +279,23 @@ undefined
279
279
 
280
280
  You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
281
281
 
282
+ 2026-07-08T04:47:01.836Z
283
+
284
+ You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
285
+
286
+ 2026-07-08T04:47:51.343Z
287
+
288
+ You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
289
+
290
+ 2026-07-08T04:48:45.034Z
291
+
292
+ You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
293
+
294
+ 2026-07-08T04:51:11.058Z
295
+
296
+ You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
297
+
298
+ 2026-07-08T04:51:59.161Z
299
+
300
+ You have a syntax error at "business.sql" line 6 column 2. no viable alternative at input 'CREATE TABLE `staff` (\n `id` int PRIMARY KEY,\n `first_name` varchar(255),\n `last_name` varchar(255),\n `address_id` int\n `picture`'
301
+
@@ -276,3 +276,23 @@ undefined
276
276
 
277
277
  You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
278
278
 
279
+ 2026-07-08T04:47:03.284Z
280
+
281
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
282
+
283
+ 2026-07-08T04:47:52.742Z
284
+
285
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
286
+
287
+ 2026-07-08T04:48:46.497Z
288
+
289
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
290
+
291
+ 2026-07-08T04:51:12.497Z
292
+
293
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
294
+
295
+ 2026-07-08T04:52:00.574Z
296
+
297
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
298
+
@@ -272,3 +272,23 @@ undefined
272
272
 
273
273
  You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
274
274
 
275
+ 2026-07-08T04:47:04.595Z
276
+
277
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
278
+
279
+ 2026-07-08T04:47:54.063Z
280
+
281
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
282
+
283
+ 2026-07-08T04:48:47.816Z
284
+
285
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
286
+
287
+ 2026-07-08T04:51:13.801Z
288
+
289
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
290
+
291
+ 2026-07-08T04:52:01.871Z
292
+
293
+ You have a syntax error at "schema.sql" line 1 column 1. Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
294
+
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.4",
42
+ version: "9.0.0-optional-ref.6",
43
43
  description: "",
44
44
  main: "lib/index.js",
45
45
  license: "Apache-2.0",
@@ -65,9 +65,9 @@ var package_default = {
65
65
  keywords: ["dbml", "dbml-cli"],
66
66
  dependencies: {
67
67
  "@babel/cli": "^7.21.0",
68
- "@dbml/connector": "^9.0.0-optional-ref.2",
69
- "@dbml/core": "^9.0.0-optional-ref.4",
70
- "@dbml/parse": "^9.0.0-optional-ref.4",
68
+ "@dbml/connector": "^9.0.0-optional-ref.6",
69
+ "@dbml/core": "^9.0.0-optional-ref.6",
70
+ "@dbml/parse": "^9.0.0-optional-ref.6",
71
71
  "bluebird": "^3.5.5",
72
72
  "chalk": "^2.4.2",
73
73
  "commander": "^2.20.0",
@@ -78,7 +78,7 @@ var package_default = {
78
78
  "strip-ansi": "^5.2.0",
79
79
  "winston": "^3.2.1"
80
80
  },
81
- gitHead: "14171e298fb3503fc9c703da67d3102a7272e3ce",
81
+ gitHead: "9d8aa4b58c6ceae262252ea590e05e3e966c10e6",
82
82
  engines: { "node": ">=18" }
83
83
  };
84
84
  //#endregion