@dbml/cli 8.3.1 → 8.4.0-alpha.1

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 (56) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +759 -10
  2. package/__tests__/db2dbml/mysql/dbml-error.log +987 -2
  3. package/__tests__/db2dbml/oracle/dbml-error.log +1063 -13
  4. package/__tests__/db2dbml/postgres/dbml-error.log +537 -5
  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 aliased import stdout/dbml-error.log +0 -0
  14. package/__tests__/dbml2sql/multifile circular import stdout/dbml-error.log +0 -0
  15. package/__tests__/dbml2sql/multifile complex stdout/dbml-error.log +0 -0
  16. package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +257 -0
  17. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +27278 -0
  18. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +188 -0
  19. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +156 -0
  20. package/__tests__/dbml2sql/multifile records pulling stdout/dbml-error.log +0 -0
  21. package/__tests__/dbml2sql/multifile refs across files stdout/dbml-error.log +0 -0
  22. package/__tests__/dbml2sql/multifile schema pulling stdout/dbml-error.log +0 -0
  23. package/__tests__/dbml2sql/multifile tablegroup pulling stdout/dbml-error.log +0 -0
  24. package/__tests__/dbml2sql/multifile transitive reuse stdout/dbml-error.log +0 -0
  25. package/__tests__/dbml2sql/multiple_schema_mssql/dbml-error.log +30 -0
  26. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
  27. package/__tests__/dbml2sql/multiple_schema_mysql/dbml-error.log +30 -0
  28. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  29. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  30. package/__tests__/dbml2sql/multiple_schema_pg/dbml-error.log +30 -0
  31. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  32. package/__tests__/dbml2sql/single file stdout/dbml-error.log +0 -0
  33. package/__tests__/dbml2sql/syntax-error/dbml-error.log +400 -2
  34. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +302 -2
  35. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +302 -2
  36. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +302 -2
  37. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +298 -2
  38. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +298 -2
  39. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +298 -2
  40. package/__tests__/sql2dbml/syntax-error/dbml-error.log +277 -2
  41. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +274 -2
  42. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +270 -2
  43. package/dbml-error.log +1 -289
  44. package/lib/index.js +5 -5
  45. package/package.json +5 -5
  46. package/coverage/base.css +0 -224
  47. package/coverage/block-navigation.js +0 -87
  48. package/coverage/coverage-summary.json +0 -3
  49. package/coverage/favicon.png +0 -0
  50. package/coverage/index.html +0 -116
  51. package/coverage/prettify.css +0 -1
  52. package/coverage/prettify.js +0 -2
  53. package/coverage/sort-arrow-sprite.png +0 -0
  54. package/coverage/sorter.js +0 -210
  55. package/coverage/testHelpers.ts.html +0 -109
  56. package/snowflake.log +0 -129
@@ -0,0 +1,188 @@
1
+ 2026-05-14T09:16:42.094Z
2
+
3
+ ./in-files/broken.dbml(4,1): Expect an identifier
4
+
5
+ 2026-05-14T09:17:19.884Z
6
+
7
+ ./in-files/broken.dbml(4,1): Expect an identifier
8
+
9
+ 2026-05-14T09:24:40.738Z
10
+
11
+ ./in-files/broken.dbml(4,1): Expect an identifier
12
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
13
+
14
+ 2026-05-14T09:25:02.688Z
15
+
16
+ ./in-files/broken.dbml(4,1): Expect an identifier
17
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
18
+
19
+ 2026-05-14T09:25:39.977Z
20
+
21
+ ./in-files/broken.dbml(4,1): Expect an identifier
22
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
23
+
24
+ 2026-05-14T15:04:06.027Z
25
+
26
+ ./in-files/broken.dbml(4,1): Expect an identifier
27
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
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
+
49
+ 2026-07-01T10:22:02.256Z
50
+
51
+ ./in-files/broken.dbml(4,1): Expect an identifier
52
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
53
+
54
+ 2026-07-01T10:23:37.487Z
55
+
56
+ ./in-files/broken.dbml(4,1): Expect an identifier
57
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
58
+
59
+ 2026-07-01T10:25:58.662Z
60
+
61
+ ./in-files/broken.dbml(4,1): Expect an identifier
62
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
63
+
64
+ 2026-07-01T10:27:48.785Z
65
+
66
+ ./in-files/broken.dbml(4,1): Expect an identifier
67
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
68
+
69
+ 2026-07-01T10:29:22.546Z
70
+
71
+ ./in-files/broken.dbml(4,1): Expect an identifier
72
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
73
+
74
+ 2026-07-01T10:31:11.443Z
75
+
76
+ ./in-files/broken.dbml(4,1): Expect an identifier
77
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
78
+
79
+ 2026-07-01T10:34:04.675Z
80
+
81
+ ./in-files/broken.dbml(4,1): Expect an identifier
82
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
83
+
84
+ 2026-07-01T10:36:40.740Z
85
+
86
+ ./in-files/broken.dbml(4,1): Expect an identifier
87
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
88
+
89
+ 2026-07-01T10:38:10.503Z
90
+
91
+ ./in-files/broken.dbml(4,1): Expect an identifier
92
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
93
+
94
+ 2026-07-01T10:41:02.600Z
95
+
96
+ ./in-files/broken.dbml(4,1): Expect an identifier
97
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
98
+
99
+ 2026-07-01T10:42:34.077Z
100
+
101
+ ./in-files/broken.dbml(4,1): Expect an identifier
102
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
103
+
104
+ 2026-07-01T10:51:52.332Z
105
+
106
+ ./in-files/broken.dbml(4,1): Expect an identifier
107
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
108
+
109
+ 2026-07-01T10:52:44.070Z
110
+
111
+ ./in-files/broken.dbml(4,1): Expect an identifier
112
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
113
+
114
+ 2026-07-03T05:20:18.114Z
115
+
116
+ ./in-files/broken.dbml(4,1): Expect an identifier
117
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
118
+
119
+ 2026-07-03T08:50:09.741Z
120
+
121
+ ./in-files/broken.dbml(4,1): Expect an identifier
122
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
123
+
124
+ 2026-07-03T08:51:47.153Z
125
+
126
+ ./in-files/broken.dbml(4,1): Expect an identifier
127
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
128
+
129
+ 2026-07-03T10:22:27.136Z
130
+
131
+ ./in-files/broken.dbml(4,1): Expect an identifier
132
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
133
+
134
+ 2026-07-06T02:59:28.772Z
135
+
136
+ ./in-files/broken.dbml(4,1): Expect an identifier
137
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
138
+
139
+ 2026-07-06T03:04:13.320Z
140
+
141
+ ./in-files/broken.dbml(4,1): Expect an identifier
142
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
143
+
144
+ 2026-07-06T03:33:57.832Z
145
+
146
+ ./in-files/broken.dbml(4,1): Expect an identifier
147
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
148
+
149
+ 2026-07-06T03:58:42.728Z
150
+
151
+ ./in-files/broken.dbml(4,1): Expect an identifier
152
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
153
+
154
+ 2026-07-06T04:52:53.560Z
155
+
156
+ ./in-files/broken.dbml(4,1): Expect an identifier
157
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
158
+
159
+ 2026-07-06T05:26:00.898Z
160
+
161
+ ./in-files/broken.dbml(4,1): Expect an identifier
162
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
163
+
164
+ 2026-07-06T05:31:09.160Z
165
+
166
+ ./in-files/broken.dbml(4,1): Expect an identifier
167
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
168
+
169
+ 2026-07-06T09:39:31.409Z
170
+
171
+ ./in-files/broken.dbml(4,1): Expect an identifier
172
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
173
+
174
+ 2026-07-06T09:41:27.128Z
175
+
176
+ ./in-files/broken.dbml(4,1): Expect an identifier
177
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
178
+
179
+ 2026-07-06T09:52:37.942Z
180
+
181
+ ./in-files/broken.dbml(4,1): Expect an identifier
182
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
183
+
184
+ 2026-07-06T10:05:31.959Z
185
+
186
+ ./in-files/broken.dbml(4,1): Expect an identifier
187
+ ./in-files/broken.dbml(2,11): Unknown column setting 'pk name varchar'
188
+
@@ -0,0 +1,156 @@
1
+ 2026-05-14T08:45:11.176Z
2
+
3
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
4
+
5
+ 2026-05-14T08:46:38.829Z
6
+
7
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
8
+
9
+ 2026-05-14T08:47:26.169Z
10
+
11
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
12
+
13
+ 2026-05-14T09:17:21.091Z
14
+
15
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
16
+
17
+ 2026-05-14T09:24:42.002Z
18
+
19
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
20
+
21
+ 2026-05-14T09:25:41.213Z
22
+
23
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
24
+
25
+ 2026-05-14T15:04:07.337Z
26
+
27
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
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
+
45
+ 2026-07-01T10:22:03.387Z
46
+
47
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
48
+
49
+ 2026-07-01T10:23:38.743Z
50
+
51
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
52
+
53
+ 2026-07-01T10:25:59.772Z
54
+
55
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
56
+
57
+ 2026-07-01T10:27:49.952Z
58
+
59
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
60
+
61
+ 2026-07-01T10:29:23.797Z
62
+
63
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
64
+
65
+ 2026-07-01T10:31:12.534Z
66
+
67
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
68
+
69
+ 2026-07-01T10:34:05.791Z
70
+
71
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
72
+
73
+ 2026-07-01T10:36:41.853Z
74
+
75
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
76
+
77
+ 2026-07-01T10:38:11.855Z
78
+
79
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
80
+
81
+ 2026-07-01T10:41:03.695Z
82
+
83
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
84
+
85
+ 2026-07-01T10:42:35.436Z
86
+
87
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
88
+
89
+ 2026-07-01T10:51:53.398Z
90
+
91
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
92
+
93
+ 2026-07-01T10:52:45.213Z
94
+
95
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
96
+
97
+ 2026-07-03T05:20:19.612Z
98
+
99
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
100
+
101
+ 2026-07-03T08:50:10.965Z
102
+
103
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
104
+
105
+ 2026-07-03T08:51:48.393Z
106
+
107
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
108
+
109
+ 2026-07-03T10:22:28.440Z
110
+
111
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
112
+
113
+ 2026-07-06T02:59:30.039Z
114
+
115
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
116
+
117
+ 2026-07-06T03:04:14.581Z
118
+
119
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
120
+
121
+ 2026-07-06T03:33:59.088Z
122
+
123
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
124
+
125
+ 2026-07-06T03:58:44.044Z
126
+
127
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
128
+
129
+ 2026-07-06T04:52:54.839Z
130
+
131
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
132
+
133
+ 2026-07-06T05:26:02.122Z
134
+
135
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
136
+
137
+ 2026-07-06T05:31:10.345Z
138
+
139
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
140
+
141
+ 2026-07-06T09:39:32.704Z
142
+
143
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
144
+
145
+ 2026-07-06T09:41:28.406Z
146
+
147
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
148
+
149
+ 2026-07-06T09:52:39.243Z
150
+
151
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
152
+
153
+ 2026-07-06T10:05:33.296Z
154
+
155
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
156
+
@@ -0,0 +1,30 @@
1
+ 2026-04-11T10:15:16.627Z
2
+ undefined
3
+
4
+ 2026-04-11T10:18:59.095Z
5
+ undefined
6
+
7
+ 2026-04-11T10:52:43.748Z
8
+ undefined
9
+
10
+ 2026-04-11T10:55:14.370Z
11
+ undefined
12
+
13
+ 2026-04-11T11:13:22.522Z
14
+ undefined
15
+
16
+ 2026-04-11T15:32:34.567Z
17
+ undefined
18
+
19
+ 2026-04-17T08:27:23.258Z
20
+ undefined
21
+
22
+ 2026-04-17T08:29:14.938Z
23
+ undefined
24
+
25
+ 2026-04-21T10:02:57.740Z
26
+ undefined
27
+
28
+ 2026-05-04T15:13:15.969Z
29
+ undefined
30
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: SQL Server
3
- -- Generated at: 2026-05-06T10:53:16.754Z
3
+ -- Generated at: 2026-07-06T10:05:41.284Z
4
4
 
5
5
  CREATE SCHEMA [schemaB]
6
6
  GO
@@ -0,0 +1,30 @@
1
+ 2026-04-11T10:15:17.810Z
2
+ undefined
3
+
4
+ 2026-04-11T10:19:00.335Z
5
+ undefined
6
+
7
+ 2026-04-11T10:52:45.039Z
8
+ undefined
9
+
10
+ 2026-04-11T10:55:15.518Z
11
+ undefined
12
+
13
+ 2026-04-11T11:13:23.728Z
14
+ undefined
15
+
16
+ 2026-04-11T15:32:35.913Z
17
+ undefined
18
+
19
+ 2026-04-17T08:27:24.527Z
20
+ undefined
21
+
22
+ 2026-04-17T08:29:16.236Z
23
+ undefined
24
+
25
+ 2026-04-21T10:02:59.081Z
26
+ undefined
27
+
28
+ 2026-05-04T15:13:17.419Z
29
+ undefined
30
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2026-05-06T10:53:17.359Z
3
+ -- Generated at: 2026-07-06T10:05:42.612Z
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-06T10:53:17.980Z
3
+ -- Generated at: 2026-07-06T10:05:43.935Z
4
4
 
5
5
  CREATE USER "C##test01"
6
6
  NO AUTHENTICATION
@@ -0,0 +1,30 @@
1
+ 2026-04-11T10:15:20.050Z
2
+ undefined
3
+
4
+ 2026-04-11T10:19:02.842Z
5
+ undefined
6
+
7
+ 2026-04-11T10:52:47.567Z
8
+ undefined
9
+
10
+ 2026-04-11T10:55:17.827Z
11
+ undefined
12
+
13
+ 2026-04-11T11:13:26.087Z
14
+ undefined
15
+
16
+ 2026-04-11T15:32:38.543Z
17
+ undefined
18
+
19
+ 2026-04-17T08:27:27.060Z
20
+ undefined
21
+
22
+ 2026-04-17T08:29:18.855Z
23
+ undefined
24
+
25
+ 2026-04-21T10:03:01.862Z
26
+ undefined
27
+
28
+ 2026-05-04T15:13:20.230Z
29
+ undefined
30
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-05-06T10:53:18.582Z
3
+ -- Generated at: 2026-07-06T10:05:45.286Z
4
4
 
5
5
  CREATE SCHEMA "schemaB";
6
6