@dbml/cli 8.2.3 → 8.2.4

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 (32) 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 +20 -0
  14. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +7608 -0
  15. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +20 -0
  16. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +16 -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/syntax-error/dbml-error.log +12 -0
  29. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +12 -0
  30. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +12 -0
  31. package/lib/index.js +5 -5
  32. package/package.json +5 -5
@@ -26,3 +26,23 @@
26
26
  ./in-files/broken.dbml(4,1): Expect an identifier
27
27
  ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
28
28
 
29
+ 2026-06-01T03:37:09.836Z
30
+
31
+ ./in-files/broken.dbml(4,1): Expect an identifier
32
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
33
+
34
+ 2026-06-01T03:38:22.235Z
35
+
36
+ ./in-files/broken.dbml(4,1): Expect an identifier
37
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
38
+
39
+ 2026-06-01T04:50:48.683Z
40
+
41
+ ./in-files/broken.dbml(4,1): Expect an identifier
42
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
43
+
44
+ 2026-06-01T04:53:20.669Z
45
+
46
+ ./in-files/broken.dbml(4,1): Expect an identifier
47
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
48
+
@@ -26,3 +26,19 @@
26
26
 
27
27
  ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
28
28
 
29
+ 2026-06-01T03:37:11.169Z
30
+
31
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
32
+
33
+ 2026-06-01T03:38:23.709Z
34
+
35
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
36
+
37
+ 2026-06-01T04:50:50.080Z
38
+
39
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
40
+
41
+ 2026-06-01T04:53:22.064Z
42
+
43
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
44
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: SQL Server
3
- -- Generated at: 2026-05-14T15:04:15.037Z
3
+ -- Generated at: 2026-06-01T04:53:31.086Z
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-05-14T15:04:16.331Z
3
+ -- Generated at: 2026-06-01T04:53:32.572Z
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-05-14T15:04:17.612Z
3
+ -- Generated at: 2026-06-01T04:53:34.075Z
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-05-14T15:04:18.901Z
3
+ -- Generated at: 2026-06-01T04:53:35.467Z
4
4
 
5
5
  CREATE SCHEMA "schemaB";
6
6
 
@@ -247,3 +247,18 @@ undefined
247
247
  ecommerce.dbml(17,24): Expect an identifier
248
248
  ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
249
249
 
250
+ 2026-06-01T03:37:25.799Z
251
+
252
+ ecommerce.dbml(17,24): Expect an identifier
253
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
254
+
255
+ 2026-06-01T03:38:39.133Z
256
+
257
+ ecommerce.dbml(17,24): Expect an identifier
258
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
259
+
260
+ 2026-06-01T04:53:38.454Z
261
+
262
+ ecommerce.dbml(17,24): Expect an identifier
263
+ ecommerce.dbml(16,11): Unknown column setting 'pk manager_staff_id int'
264
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
178
178
 
179
+ 2026-06-01T03:37:27.387Z
180
+
181
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
182
+
183
+ 2026-06-01T03:38:40.646Z
184
+
185
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
186
+
187
+ 2026-06-01T04:53:40.185Z
188
+
189
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
190
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
178
178
 
179
+ 2026-06-01T03:37:29.012Z
180
+
181
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
182
+
183
+ 2026-06-01T03:38:42.136Z
184
+
185
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
186
+
187
+ 2026-06-01T04:53:41.775Z
188
+
189
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
190
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
178
178
 
179
+ 2026-06-01T03:37:30.816Z
180
+
181
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
182
+
183
+ 2026-06-01T03:38:43.629Z
184
+
185
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
186
+
187
+ 2026-06-01T04:53:43.415Z
188
+
189
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
190
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
178
178
 
179
+ 2026-06-01T03:37:32.414Z
180
+
181
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
182
+
183
+ 2026-06-01T03:38:45.136Z
184
+
185
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
186
+
187
+ 2026-06-01T04:53:45.086Z
188
+
189
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
190
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
178
178
 
179
+ 2026-06-01T03:37:34.017Z
180
+
181
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
182
+
183
+ 2026-06-01T03:38:46.676Z
184
+
185
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
186
+
187
+ 2026-06-01T04:53:46.690Z
188
+
189
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
190
+
@@ -176,3 +176,15 @@ undefined
176
176
 
177
177
  You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
178
178
 
179
+ 2026-06-01T03:37:35.552Z
180
+
181
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
182
+
183
+ 2026-06-01T03:38:48.915Z
184
+
185
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
186
+
187
+ 2026-06-01T04:53:48.291Z
188
+
189
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
190
+
@@ -163,3 +163,15 @@ undefined
163
163
 
164
164
  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`'
165
165
 
166
+ 2026-06-01T03:38:18.434Z
167
+
168
+ 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`'
169
+
170
+ 2026-06-01T03:39:33.469Z
171
+
172
+ 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`'
173
+
174
+ 2026-06-01T04:54:19.153Z
175
+
176
+ 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`'
177
+
@@ -160,3 +160,15 @@ undefined
160
160
 
161
161
  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")
162
162
 
163
+ 2026-06-01T03:38:20.292Z
164
+
165
+ 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")
166
+
167
+ 2026-06-01T03:39:37.224Z
168
+
169
+ 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")
170
+
171
+ 2026-06-01T04:54:20.645Z
172
+
173
+ 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")
174
+
@@ -156,3 +156,15 @@ undefined
156
156
 
157
157
  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")
158
158
 
159
+ 2026-06-01T03:38:22.087Z
160
+
161
+ 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")
162
+
163
+ 2026-06-01T03:39:40.845Z
164
+
165
+ 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")
166
+
167
+ 2026-06-01T04:54:22.032Z
168
+
169
+ 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")
170
+
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ let __dbml_parse = require("@dbml/parse");
36
36
  let node_fs = require("node:fs");
37
37
  const $schema = "https://json.schemastore.org/package";
38
38
  const name = "@dbml/cli";
39
- const version = "8.2.3";
39
+ const version = "8.2.4";
40
40
  const description = "";
41
41
  const main = "lib/index.js";
42
42
  const license = "Apache-2.0";
@@ -62,9 +62,9 @@ const repository = "https://github.com/holistics/dbml/tree/master/packages/dbml-
62
62
  const keywords = ["dbml", "dbml-cli"];
63
63
  const dependencies = {
64
64
  "@babel/cli": "^7.21.0",
65
- "@dbml/connector": "^8.2.3",
66
- "@dbml/core": "^8.2.3",
67
- "@dbml/parse": "^8.2.3",
65
+ "@dbml/connector": "^8.2.4",
66
+ "@dbml/core": "^8.2.4",
67
+ "@dbml/parse": "^8.2.4",
68
68
  "bluebird": "^3.5.5",
69
69
  "chalk": "^2.4.2",
70
70
  "commander": "^2.20.0",
@@ -75,7 +75,7 @@ const dependencies = {
75
75
  "strip-ansi": "^5.2.0",
76
76
  "winston": "^3.2.1"
77
77
  };
78
- const gitHead = "8f21d6ac8a8f9a3715e825afca97d8c79e55d2de";
78
+ const gitHead = "a8358e7ca39ab47272ee59a1915709d8f0f82f06";
79
79
  const engines = { "node": ">=18" };
80
80
  var package_default = {
81
81
  $schema,
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": "8.2.3",
4
+ "version": "8.2.4",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "license": "Apache-2.0",
@@ -32,9 +32,9 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@babel/cli": "^7.21.0",
35
- "@dbml/connector": "^8.2.3",
36
- "@dbml/core": "^8.2.3",
37
- "@dbml/parse": "^8.2.3",
35
+ "@dbml/connector": "^8.2.4",
36
+ "@dbml/core": "^8.2.4",
37
+ "@dbml/parse": "^8.2.4",
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": "8f21d6ac8a8f9a3715e825afca97d8c79e55d2de",
48
+ "gitHead": "a8358e7ca39ab47272ee59a1915709d8f0f82f06",
49
49
  "engines": {
50
50
  "node": ">=18"
51
51
  }