@dbml/cli 9.0.0-alpha.12 → 9.0.0-alpha.13
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 +10 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +13 -0
- package/__tests__/db2dbml/oracle/dbml-error.log +14 -0
- package/__tests__/db2dbml/postgres/dbml-error.log +7 -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 +10 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +892 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +10 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +8 -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 +10 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +8 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
- package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +4 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +4 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +4 -0
- package/lib/index.js +4 -4
- package/package.json +4 -4
|
@@ -191,3 +191,13 @@
|
|
|
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
|
+
|
|
@@ -158,3 +158,11 @@
|
|
|
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
|
+
|
|
@@ -407,3 +407,13 @@ 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
|
+
|
package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -328,3 +328,11 @@ 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
|
+
|
|
@@ -328,3 +328,11 @@ 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
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log
CHANGED
|
@@ -328,3 +328,11 @@ 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
|
+
|
package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -324,3 +324,11 @@ 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
|
+
|
package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -324,3 +324,11 @@ 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
|
+
|
package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -324,3 +324,11 @@ 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
|
+
|
|
@@ -61,14 +61,14 @@ Table "countries" {
|
|
|
61
61
|
"continent_name" varchar(255)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
Ref:"orders"."id"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."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"
|
|
61
|
+
Ref "fk_emp_dept":"departments"."dept_id" < "employees"."department_id"
|
|
62
62
|
|
|
63
|
-
Ref "fk_dept_location":"locations"."location_id"
|
|
63
|
+
Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
|
|
64
64
|
|
|
65
|
-
Ref "fk_loc_country":"countries"."country_code"
|
|
65
|
+
Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
|
|
66
66
|
|
|
67
|
-
Ref "fk_emp_manager":"employees"."emp_id"
|
|
67
|
+
Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
|
|
68
68
|
|
|
69
|
-
Ref "fk_dept_manager":"employees"."emp_id"
|
|
69
|
+
Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
|
|
70
70
|
|
|
71
|
-
Ref:"departments"."dept_id"
|
|
71
|
+
Ref:"departments"."dept_id" < "projects"."dept_id"
|
|
72
72
|
|
|
73
|
-
Ref:"employees"."emp_id"
|
|
73
|
+
Ref:"employees"."emp_id" < "assignments"."emp_id"
|
|
74
74
|
|
|
75
|
-
Ref:"projects"."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")
|
|
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"
|
|
79
|
+
Ref "fk_proj_lead_emp":"employees"."emp_id" < "projects"."lead_emp_id"
|
|
80
80
|
|
|
81
|
-
Ref "fk_proj_backup_emp":"employees"."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"
|
|
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"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."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"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."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"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"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"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"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"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"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"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"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"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"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"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"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"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"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"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"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"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"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"
|
|
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"
|
|
73
|
+
Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid" [delete: cascade]
|
|
74
74
|
|
|
75
|
-
Ref:"schemaA"."products"."id"
|
|
75
|
+
Ref:"schemaA"."products"."id" < "orders"."pid"
|
|
76
76
|
|
|
77
|
-
Ref:"schemaA"."products"."id"
|
|
77
|
+
Ref:"schemaA"."products"."id" < "orders2"."pid"
|
|
78
78
|
|
|
79
|
-
Ref "CFK_1":"orders".("id1", "id2")
|
|
79
|
+
Ref "CFK_1":"orders".("id1", "id2") < "orders2".("id1", "id2") [update: set null, delete: cascade]
|
|
80
80
|
|
|
81
|
-
Ref:"users"."id"
|
|
81
|
+
Ref:"users"."id" < "ecommerce"."users"."id"
|
|
82
82
|
|
|
83
|
-
Ref "name_optional":"users"."name"
|
|
83
|
+
Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
|
|
84
84
|
|
|
85
|
-
Ref:"ecommerce"."users"."id"
|
|
85
|
+
Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
|
|
86
86
|
|
|
87
|
-
Ref:"users"."id"
|
|
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"
|
|
59
|
+
Ref "fk_1":"schemaA"."locations"."id" < "schemaA"."products"."lid"
|
|
60
60
|
|
|
61
|
-
Ref:"users"."id"
|
|
61
|
+
Ref:"users"."id" < "ecommerce"."users"."id"
|
|
62
62
|
|
|
63
|
-
Ref "name_optional":"users"."name"
|
|
63
|
+
Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
|
|
64
64
|
|
|
65
|
-
Ref:"ecommerce"."users"."id"
|
|
65
|
+
Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
|
|
66
66
|
|
|
67
|
-
Ref:"users"."id"
|
|
67
|
+
Ref:"users"."id" < "schemaA"."locations"."name"
|
|
68
68
|
|
|
69
|
-
Ref "fk_composite":"booking_reference".("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"
|
|
71
|
+
Ref "fk_country_code":"countries"."code" < "users"."country_code"
|
|
72
72
|
|
|
73
73
|
Enum "schemaB"."gender" {
|
|
74
74
|
"male"
|
|
@@ -303,3 +303,7 @@ 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
|
+
|
|
@@ -300,3 +300,7 @@ 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
|
+
|
|
@@ -296,3 +296,7 @@ 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
|
+
|
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.
|
|
42
|
+
version: "9.0.0-alpha.13",
|
|
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.
|
|
70
|
-
"@dbml/parse": "^9.0.0-alpha.
|
|
69
|
+
"@dbml/core": "^9.0.0-alpha.13",
|
|
70
|
+
"@dbml/parse": "^9.0.0-alpha.13",
|
|
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: "
|
|
81
|
+
gitHead: "aad3f5808c07679bd201d4da15561beb8abf05f1",
|
|
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-alpha.
|
|
4
|
+
"version": "9.0.0-alpha.13",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/cli": "^7.21.0",
|
|
35
35
|
"@dbml/connector": "^9.0.0-alpha.3",
|
|
36
|
-
"@dbml/core": "^9.0.0-alpha.
|
|
37
|
-
"@dbml/parse": "^9.0.0-alpha.
|
|
36
|
+
"@dbml/core": "^9.0.0-alpha.13",
|
|
37
|
+
"@dbml/parse": "^9.0.0-alpha.13",
|
|
38
38
|
"bluebird": "^3.5.5",
|
|
39
39
|
"chalk": "^2.4.2",
|
|
40
40
|
"commander": "^2.20.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"strip-ansi": "^5.2.0",
|
|
46
46
|
"winston": "^3.2.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "aad3f5808c07679bd201d4da15561beb8abf05f1",
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
}
|