@dbml/cli 9.0.0-alpha.12 → 9.0.0-alpha.14

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 (42) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +20 -0
  2. package/__tests__/db2dbml/mysql/dbml-error.log +26 -0
  3. package/__tests__/db2dbml/oracle/dbml-error.log +28 -0
  4. package/__tests__/db2dbml/postgres/dbml-error.log +14 -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 +15 -0
  14. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1338 -0
  15. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +15 -0
  16. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +12 -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 +15 -0
  22. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +12 -0
  23. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +12 -0
  24. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +12 -0
  25. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +12 -0
  26. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +12 -0
  27. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +12 -0
  28. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
  29. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
  30. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
  31. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
  32. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
  33. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
  34. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
  35. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
  36. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
  37. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
  38. package/__tests__/sql2dbml/syntax-error/dbml-error.log +8 -0
  39. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +8 -0
  40. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +8 -0
  41. package/lib/index.js +4 -4
  42. package/package.json +4 -4
@@ -191,3 +191,18 @@
191
191
  ./in-files/broken.dbml(4,1): Expect an identifier
192
192
  ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
193
193
 
194
+ 2026-07-15T09:00:19.133Z
195
+
196
+ ./in-files/broken.dbml(4,1): Expect an identifier
197
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
198
+
199
+ 2026-07-15T09:02:03.246Z
200
+
201
+ ./in-files/broken.dbml(4,1): Expect an identifier
202
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
203
+
204
+ 2026-07-15T11:08:26.198Z
205
+
206
+ ./in-files/broken.dbml(4,1): Expect an identifier
207
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
208
+
@@ -158,3 +158,15 @@
158
158
 
159
159
  ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
160
160
 
161
+ 2026-07-15T09:00:20.354Z
162
+
163
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
164
+
165
+ 2026-07-15T09:02:04.482Z
166
+
167
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
168
+
169
+ 2026-07-15T11:08:27.424Z
170
+
171
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
172
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: SQL Server
3
- -- Generated at: 2026-07-08T04:46:19.472Z
3
+ -- Generated at: 2026-07-15T11:08:34.804Z
4
4
 
5
5
  CREATE SCHEMA [schemaB]
6
6
  GO
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2026-07-08T04:46:20.641Z
3
+ -- Generated at: 2026-07-15T11:08:36.044Z
4
4
 
5
5
  CREATE SCHEMA `schemaB`;
6
6
 
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: Oracle
3
- -- Generated at: 2026-07-08T04:46:21.782Z
3
+ -- Generated at: 2026-07-15T11:08:37.333Z
4
4
 
5
5
  CREATE USER "C##test01"
6
6
  NO AUTHENTICATION
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-08T04:46:22.904Z
3
+ -- Generated at: 2026-07-15T11:08:38.629Z
4
4
 
5
5
  CREATE SCHEMA "schemaB";
6
6
 
@@ -407,3 +407,18 @@ undefined
407
407
  ecommerce.dbml(17,24): Expect an identifier
408
408
  ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
409
409
 
410
+ 2026-07-15T09:00:33.993Z
411
+
412
+ ecommerce.dbml(17,24): Expect an identifier
413
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
414
+
415
+ 2026-07-15T09:02:18.187Z
416
+
417
+ ecommerce.dbml(17,24): Expect an identifier
418
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
419
+
420
+ 2026-07-15T11:08:41.277Z
421
+
422
+ ecommerce.dbml(17,24): Expect an identifier
423
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
424
+
@@ -328,3 +328,15 @@ undefined
328
328
 
329
329
  You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
330
330
 
331
+ 2026-07-15T09:00:35.492Z
332
+
333
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
334
+
335
+ 2026-07-15T09:02:19.704Z
336
+
337
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
338
+
339
+ 2026-07-15T11:08:42.798Z
340
+
341
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
342
+
@@ -328,3 +328,15 @@ undefined
328
328
 
329
329
  You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
330
330
 
331
+ 2026-07-15T09:00:36.913Z
332
+
333
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
334
+
335
+ 2026-07-15T09:02:21.215Z
336
+
337
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
338
+
339
+ 2026-07-15T11:08:44.224Z
340
+
341
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
342
+
@@ -328,3 +328,15 @@ undefined
328
328
 
329
329
  You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
330
330
 
331
+ 2026-07-15T09:00:38.359Z
332
+
333
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
334
+
335
+ 2026-07-15T09:02:22.660Z
336
+
337
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
338
+
339
+ 2026-07-15T11:08:45.705Z
340
+
341
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
342
+
@@ -324,3 +324,15 @@ undefined
324
324
 
325
325
  You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
326
326
 
327
+ 2026-07-15T09:00:39.784Z
328
+
329
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
330
+
331
+ 2026-07-15T09:02:24.195Z
332
+
333
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
334
+
335
+ 2026-07-15T11:08:47.187Z
336
+
337
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
338
+
@@ -324,3 +324,15 @@ undefined
324
324
 
325
325
  You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
326
326
 
327
+ 2026-07-15T09:00:41.185Z
328
+
329
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
330
+
331
+ 2026-07-15T09:02:26.440Z
332
+
333
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
334
+
335
+ 2026-07-15T11:08:48.605Z
336
+
337
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
338
+
@@ -324,3 +324,15 @@ undefined
324
324
 
325
325
  You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
326
326
 
327
+ 2026-07-15T09:00:42.581Z
328
+
329
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
330
+
331
+ 2026-07-15T09:02:29.718Z
332
+
333
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
334
+
335
+ 2026-07-15T11:08:50.068Z
336
+
337
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
338
+
@@ -61,14 +61,14 @@ Table "countries" {
61
61
  "continent_name" varchar(255)
62
62
  }
63
63
 
64
- Ref:"orders"."id" ?<? "order_items"."order_id"
64
+ Ref:"orders"."id" < "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" ?<? "order_items"."product_id"
66
+ Ref:"products"."id" < "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" ?<? "users"."country_code"
68
+ Ref:"countries"."code" < "users"."country_code"
69
69
 
70
- Ref:"countries"."code" ?<? "merchants"."country_code"
70
+ Ref:"countries"."code" < "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" <? "products"."merchant_id"
72
+ Ref:"merchants"."id" < "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" ?<? "merchants"."admin_id"
74
+ Ref:"users"."id" < "merchants"."admin_id"
@@ -58,26 +58,26 @@ Table "task_hours" {
58
58
  "hours_worked" NUMBER(5,2)
59
59
  }
60
60
 
61
- Ref "fk_emp_dept":"departments"."dept_id" ?<? "employees"."department_id"
61
+ Ref "fk_emp_dept":"departments"."dept_id" < "employees"."department_id"
62
62
 
63
- Ref "fk_dept_location":"locations"."location_id" ?<? "departments"."location_id"
63
+ Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
64
64
 
65
- Ref "fk_loc_country":"countries"."country_code" ?<? "locations"."country_code"
65
+ Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
66
66
 
67
- Ref "fk_emp_manager":"employees"."emp_id" ?<? "employees"."manager_id"
67
+ Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
68
68
 
69
- Ref "fk_dept_manager":"employees"."emp_id" ?<? "departments"."manager_id"
69
+ Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
70
70
 
71
- Ref:"departments"."dept_id" ?<? "projects"."dept_id"
71
+ Ref:"departments"."dept_id" < "projects"."dept_id"
72
72
 
73
- Ref:"employees"."emp_id" ?<? "assignments"."emp_id"
73
+ Ref:"employees"."emp_id" < "assignments"."emp_id"
74
74
 
75
- Ref:"projects"."project_id" ?<? "assignments"."project_id"
75
+ Ref:"projects"."project_id" < "assignments"."project_id"
76
76
 
77
- Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id") ?<? "task_hours".("project_id", "task_id")
77
+ Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id") < "task_hours".("project_id", "task_id")
78
78
 
79
- Ref "fk_proj_lead_emp":"employees"."emp_id" ?<? "projects"."lead_emp_id"
79
+ Ref "fk_proj_lead_emp":"employees"."emp_id" < "projects"."lead_emp_id"
80
80
 
81
- Ref "fk_proj_backup_emp":"employees"."emp_id" ?<? "projects"."backup_emp_id"
81
+ Ref "fk_proj_backup_emp":"employees"."emp_id" < "projects"."backup_emp_id"
82
82
 
83
- Ref "fk_task_assigned_emp":"employees"."emp_id" ?<? "project_tasks"."assigned_emp_id"
83
+ Ref "fk_task_assigned_emp":"employees"."emp_id" < "project_tasks"."assigned_emp_id"
@@ -61,14 +61,14 @@ Table "countries" {
61
61
  "continent_name" varchar
62
62
  }
63
63
 
64
- Ref:"orders"."id" ?<? "order_items"."order_id"
64
+ Ref:"orders"."id" < "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" ?<? "order_items"."product_id"
66
+ Ref:"products"."id" < "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" ?<? "users"."country_code"
68
+ Ref:"countries"."code" < "users"."country_code"
69
69
 
70
- Ref:"countries"."code" ?<? "merchants"."country_code"
70
+ Ref:"countries"."code" < "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" <? "products"."merchant_id"
72
+ Ref:"merchants"."id" < "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" ?<? "merchants"."admin_id"
74
+ Ref:"users"."id" < "merchants"."admin_id"
@@ -61,14 +61,14 @@ Table "countries" {
61
61
  "continent_name" varchar
62
62
  }
63
63
 
64
- Ref:"orders"."id" ?<? "order_items"."order_id"
64
+ Ref:"orders"."id" < "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" ?<? "order_items"."product_id"
66
+ Ref:"products"."id" < "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" ?<? "users"."country_code"
68
+ Ref:"countries"."code" < "users"."country_code"
69
69
 
70
- Ref:"countries"."code" ?<? "merchants"."country_code"
70
+ Ref:"countries"."code" < "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" <? "products"."merchant_id"
72
+ Ref:"merchants"."id" < "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" ?<? "merchants"."admin_id"
74
+ Ref:"users"."id" < "merchants"."admin_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(255)
@@ -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(255)
@@ -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
- 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
- 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"
@@ -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
- 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"
@@ -303,3 +303,11 @@ undefined
303
303
 
304
304
  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`'
305
305
 
306
+ 2026-07-15T09:01:13.199Z
307
+
308
+ 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`'
309
+
310
+ 2026-07-15T11:09:20.562Z
311
+
312
+ 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`'
313
+
@@ -300,3 +300,11 @@ undefined
300
300
 
301
301
  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")
302
302
 
303
+ 2026-07-15T09:01:14.709Z
304
+
305
+ 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")
306
+
307
+ 2026-07-15T11:09:22.007Z
308
+
309
+ 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")
310
+
@@ -296,3 +296,11 @@ undefined
296
296
 
297
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
298
 
299
+ 2026-07-15T09:01:16.118Z
300
+
301
+ 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")
302
+
303
+ 2026-07-15T11:09:23.348Z
304
+
305
+ 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")
306
+
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-alpha.12",
42
+ version: "9.0.0-alpha.14",
43
43
  description: "",
44
44
  main: "lib/index.js",
45
45
  license: "Apache-2.0",
@@ -66,8 +66,8 @@ var package_default = {
66
66
  dependencies: {
67
67
  "@babel/cli": "^7.21.0",
68
68
  "@dbml/connector": "^9.0.0-alpha.3",
69
- "@dbml/core": "^9.0.0-alpha.12",
70
- "@dbml/parse": "^9.0.0-alpha.12",
69
+ "@dbml/core": "^9.0.0-alpha.14",
70
+ "@dbml/parse": "^9.0.0-alpha.14",
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: "b6a2cb98415baec85a1b29a694b45cd96121c242",
81
+ gitHead: "d78ea32614a1f5a459e7dcb86a51fe25eff6ff3f",
82
82
  engines: { "node": ">=18" }
83
83
  };
84
84
  //#endregion