@dbml/cli 10.4.0-alpha.1 → 10.4.0-metadata-ref-type.0

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 (48) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +44 -0
  2. package/__tests__/db2dbml/mysql/dbml-error.log +12 -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 +3 -3
  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 entry-syntax-error/stdout.txt +1 -1
  15. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1784 -0
  16. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +20 -0
  17. package/__tests__/dbml2sql/multifile error imported-syntax-error/stdout.txt +1 -1
  18. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +16 -0
  19. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +9 -9
  20. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  21. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  22. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  23. package/__tests__/dbml2sql/syntax-error/dbml-error.log +20 -0
  24. package/__tests__/dbml2sql/syntax-error/stdout.txt +1 -1
  25. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +16 -0
  26. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/stdout.txt +1 -1
  27. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +16 -0
  28. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +16 -0
  29. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +16 -0
  30. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +16 -0
  31. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +16 -0
  32. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
  33. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
  34. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
  35. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
  36. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
  37. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
  38. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
  39. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +9 -9
  40. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
  41. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
  42. package/__tests__/sql2dbml/syntax-error/dbml-error.log +16 -0
  43. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +16 -0
  44. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +1 -1
  45. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +16 -0
  46. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +1 -1
  47. package/lib/index.js +5 -5
  48. package/package.json +5 -5
@@ -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"
@@ -18,3 +18,19 @@
18
18
 
19
19
  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`'
20
20
 
21
+ 2026-10-19T04:22:24.215Z
22
+
23
+ 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`'
24
+
25
+ 2026-10-19T04:25:33.331Z
26
+
27
+ 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`'
28
+
29
+ 2026-10-19T08:38:05.172Z
30
+
31
+ 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`'
32
+
33
+ 2026-10-20T03:59:42.784Z
34
+
35
+ 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`'
36
+
@@ -18,3 +18,19 @@
18
18
 
19
19
  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")
20
20
 
21
+ 2026-10-19T04:22:24.950Z
22
+
23
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
24
+
25
+ 2026-10-19T04:25:34.066Z
26
+
27
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
28
+
29
+ 2026-10-19T08:38:05.917Z
30
+
31
+ 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")
32
+
33
+ 2026-10-20T03:59:43.596Z
34
+
35
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
36
+
@@ -1,4 +1,4 @@
1
1
  ERROR:
2
- 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")
2
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
3
3
 
4
4
  A complete log can be found in:
@@ -18,3 +18,19 @@
18
18
 
19
19
  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")
20
20
 
21
+ 2026-10-19T04:22:25.649Z
22
+
23
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
24
+
25
+ 2026-10-19T04:25:34.792Z
26
+
27
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
28
+
29
+ 2026-10-19T08:38:06.607Z
30
+
31
+ 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")
32
+
33
+ 2026-10-20T03:59:44.342Z
34
+
35
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
36
+
@@ -1,4 +1,4 @@
1
1
  ERROR:
2
- 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")
2
+ You have a syntax error at "schema.sql". Reference with the same endpoints already exists: "student"("subject_id", "score_id") references "score_subject"("subject_id", "score_id")
3
3
 
4
4
  A complete log can be found in:
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: "10.4.0-alpha.1",
42
+ version: "10.4.0-metadata-ref-type.0",
43
43
  description: "",
44
44
  main: "lib/index.js",
45
45
  license: "Apache-2.0",
@@ -66,9 +66,9 @@ var package_default = {
66
66
  keywords: ["dbml", "dbml-cli"],
67
67
  dependencies: {
68
68
  "@babel/cli": "^7.21.0",
69
- "@dbml/connector": "^10.4.0-alpha.1",
70
- "@dbml/core": "^10.4.0-alpha.1",
71
- "@dbml/parse": "^10.4.0-alpha.1",
69
+ "@dbml/connector": "^10.4.0-metadata-ref-type.0",
70
+ "@dbml/core": "^10.4.0-metadata-ref-type.0",
71
+ "@dbml/parse": "^10.4.0-metadata-ref-type.0",
72
72
  "bluebird": "^3.5.5",
73
73
  "chalk": "^2.4.2",
74
74
  "commander": "^2.20.0",
@@ -79,7 +79,7 @@ var package_default = {
79
79
  "strip-ansi": "^5.2.0",
80
80
  "winston": "^3.2.1"
81
81
  },
82
- gitHead: "2abacb40597047ca589b2c18117f57f8fe3978e6",
82
+ gitHead: "f2806cfb089ae685523e444dd409fd1e4514962b",
83
83
  engines: { "node": ">=18" }
84
84
  };
85
85
  //#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": "10.4.0-alpha.1",
4
+ "version": "10.4.0-metadata-ref-type.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "license": "Apache-2.0",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@babel/cli": "^7.21.0",
36
- "@dbml/connector": "^10.4.0-alpha.1",
37
- "@dbml/core": "^10.4.0-alpha.1",
38
- "@dbml/parse": "^10.4.0-alpha.1",
36
+ "@dbml/connector": "^10.4.0-metadata-ref-type.0",
37
+ "@dbml/core": "^10.4.0-metadata-ref-type.0",
38
+ "@dbml/parse": "^10.4.0-metadata-ref-type.0",
39
39
  "bluebird": "^3.5.5",
40
40
  "chalk": "^2.4.2",
41
41
  "commander": "^2.20.0",
@@ -46,7 +46,7 @@
46
46
  "strip-ansi": "^5.2.0",
47
47
  "winston": "^3.2.1"
48
48
  },
49
- "gitHead": "2abacb40597047ca589b2c18117f57f8fe3978e6",
49
+ "gitHead": "f2806cfb089ae685523e444dd409fd1e4514962b",
50
50
  "engines": {
51
51
  "node": ">=18"
52
52
  }