@dbml/cli 5.0.0-alpha.0 → 5.1.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.
- package/__test__/cli.test.js +4 -3
- package/__test__/db2dbml/mssql/expect-out-files/schema.dbml +28 -51
- package/__test__/db2dbml/mssql/schema.sql +2 -1
- package/__test__/db2dbml/mysql/expect-out-files/schema.dbml +10 -2
- package/__test__/db2dbml/mysql/schema.sql +9 -3
- package/__test__/db2dbml/postgres/expect-out-files/schema.dbml +14 -10
- package/__test__/db2dbml/postgres/schema.sql +4 -3
- package/package.json +4 -4
- package/__test__/db2dbml/mssql/dbml-error.log +0 -337
- package/__test__/db2dbml/mssql/out-files/schema.dbml +0 -219
- package/__test__/db2dbml/mysql/dbml-error.log +0 -230
- package/__test__/db2dbml/mysql/out-files/schema.dbml +0 -188
- package/__test__/db2dbml/postgres/dbml-error.log +0 -63
- package/__test__/db2dbml/postgres/out-files/schema.dbml +0 -184
- package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
- package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
- package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
- package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
- package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
- package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
- package/__test__/dbml2sql/syntax-error/dbml-error.log +0 -342
- package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
- package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -58
- package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
- package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
- package/__test__/sql2dbml/syntax-error/dbml-error.log +0 -339
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -339
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -336
- package/dbml-error.log +0 -0
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
2025-10-23T09:33:13.416Z
|
|
2
|
-
undefined
|
|
3
|
-
|
|
4
|
-
2025-10-23T09:37:54.099Z
|
|
5
|
-
undefined
|
|
6
|
-
|
|
7
|
-
2025-10-23T09:45:33.578Z
|
|
8
|
-
undefined
|
|
9
|
-
|
|
10
|
-
2025-10-23T09:49:44.923Z
|
|
11
|
-
undefined
|
|
12
|
-
|
|
13
|
-
2025-10-23T09:52:41.501Z
|
|
14
|
-
undefined
|
|
15
|
-
|
|
16
|
-
2025-10-23T09:54:36.288Z
|
|
17
|
-
undefined
|
|
18
|
-
|
|
19
|
-
2025-10-23T10:06:15.339Z
|
|
20
|
-
undefined
|
|
21
|
-
|
|
22
|
-
2025-10-23T10:21:20.721Z
|
|
23
|
-
undefined
|
|
24
|
-
|
|
25
|
-
2025-10-23T10:27:17.732Z
|
|
26
|
-
undefined
|
|
27
|
-
|
|
28
|
-
2025-10-23T10:32:07.484Z
|
|
29
|
-
undefined
|
|
30
|
-
|
|
31
|
-
2025-10-23T10:35:52.690Z
|
|
32
|
-
undefined
|
|
33
|
-
|
|
34
|
-
2025-10-23T10:42:35.000Z
|
|
35
|
-
undefined
|
|
36
|
-
|
|
37
|
-
2025-10-23T10:45:43.267Z
|
|
38
|
-
undefined
|
|
39
|
-
|
|
40
|
-
2025-10-23T10:49:54.509Z
|
|
41
|
-
undefined
|
|
42
|
-
|
|
43
|
-
2025-10-24T00:23:30.214Z
|
|
44
|
-
Error: Unknown database 'dbml_test'
|
|
45
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
46
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
47
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
48
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
49
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
50
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
51
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
52
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
53
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
54
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
55
|
-
|
|
56
|
-
2025-10-24T00:31:35.494Z
|
|
57
|
-
Error: Unknown database 'dbml_test'
|
|
58
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
59
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
60
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
61
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
62
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
63
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
64
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
65
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
66
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
67
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
68
|
-
|
|
69
|
-
2025-10-24T00:39:05.562Z
|
|
70
|
-
Error: Unknown database 'dbml_test'
|
|
71
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
72
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
73
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
74
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
75
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
76
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
77
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
78
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
79
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
80
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
81
|
-
|
|
82
|
-
2025-10-24T01:22:52.324Z
|
|
83
|
-
Error: Unknown database 'dbml_test'
|
|
84
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
85
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
86
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
87
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
88
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
89
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
90
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
91
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
92
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
93
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
94
|
-
|
|
95
|
-
2025-10-24T02:43:30.033Z
|
|
96
|
-
Error: Unknown database 'dbml_test'
|
|
97
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
98
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
99
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
100
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
101
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
102
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
103
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
104
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
105
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
106
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
107
|
-
|
|
108
|
-
2025-10-24T02:49:12.246Z
|
|
109
|
-
Error: Unknown database 'dbml_test'
|
|
110
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
111
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
112
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
113
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
114
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
115
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
116
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
117
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
118
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
119
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
120
|
-
|
|
121
|
-
2025-10-24T02:53:28.578Z
|
|
122
|
-
Error: Unknown database 'dbml_test'
|
|
123
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
124
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
125
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
126
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
127
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
128
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
129
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
130
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
131
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
132
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
133
|
-
|
|
134
|
-
2025-10-24T02:55:16.149Z
|
|
135
|
-
Error: Unknown database 'dbml_test'
|
|
136
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
137
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
138
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
139
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
140
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
141
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
142
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
143
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
144
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
145
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
146
|
-
|
|
147
|
-
2025-10-24T03:03:38.054Z
|
|
148
|
-
Error: Unknown database 'dbml_test'
|
|
149
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
150
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
151
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
152
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
153
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
154
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
155
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
156
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
157
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
158
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
159
|
-
|
|
160
|
-
2025-10-24T03:27:13.613Z
|
|
161
|
-
Error: Unknown database 'dbml_test'
|
|
162
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
163
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
164
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
165
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
166
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
167
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
168
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
169
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
170
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
171
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
172
|
-
|
|
173
|
-
2025-10-24T04:06:05.978Z
|
|
174
|
-
Error: Unknown database 'dbml_test'
|
|
175
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
176
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
177
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
178
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
179
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
180
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
181
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
182
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
183
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
184
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
185
|
-
|
|
186
|
-
2025-10-24T04:11:27.581Z
|
|
187
|
-
Error: Unknown database 'dbml_test'
|
|
188
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
189
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
190
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
191
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
192
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
193
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
194
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
195
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
196
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
197
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
198
|
-
|
|
199
|
-
2025-10-24T04:16:17.617Z
|
|
200
|
-
Error: Unknown database 'dbml_test'
|
|
201
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
202
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
203
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
204
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
205
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
206
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
207
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
208
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
209
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
210
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
211
|
-
|
|
212
|
-
2025-10-24T04:21:52.871Z
|
|
213
|
-
Error: Unknown database 'dbml_test'
|
|
214
|
-
at createConnection (/home/huydna/projects/dbml/node_modules/mysql2/promise.js:253:31)
|
|
215
|
-
at connectMySQL (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:8:57)
|
|
216
|
-
at fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mysqlConnector.js:409:26)
|
|
217
|
-
at Object.fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/connector.js:16:57)
|
|
218
|
-
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
219
|
-
at Object.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
220
|
-
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
221
|
-
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
222
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
223
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
224
|
-
|
|
225
|
-
2025-10-28T04:23:13.174Z
|
|
226
|
-
undefined
|
|
227
|
-
|
|
228
|
-
2025-10-28T04:25:31.309Z
|
|
229
|
-
undefined
|
|
230
|
-
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
Enum "status_example_2_s1_enum" {
|
|
2
|
-
"active"
|
|
3
|
-
"inactive"
|
|
4
|
-
"pending"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
Enum "status_example_2_s2_enum" {
|
|
8
|
-
"active"
|
|
9
|
-
"inactive"
|
|
10
|
-
"pending"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
Enum "status_example_2_s3_enum" {
|
|
14
|
-
"active"
|
|
15
|
-
"inactive"
|
|
16
|
-
"pending"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
Enum "status_example_2_s4_enum" {
|
|
20
|
-
"active"
|
|
21
|
-
"inactive"
|
|
22
|
-
"pending"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
Enum "status_example_2_s5_enum" {
|
|
26
|
-
"0"
|
|
27
|
-
"1"
|
|
28
|
-
"2"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Enum "status_example_2_s6_enum" {
|
|
32
|
-
"0"
|
|
33
|
-
"1"
|
|
34
|
-
"2"
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Enum "status_example_2_s7_enum" {
|
|
38
|
-
"0"
|
|
39
|
-
"1"
|
|
40
|
-
"2"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
Enum "status_example_2_s8_enum" {
|
|
44
|
-
"0"
|
|
45
|
-
"1"
|
|
46
|
-
"2"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
Table "categories" {
|
|
50
|
-
"cat_id" "int unsigned" [pk, not null, increment]
|
|
51
|
-
"cat_name" varchar(50) [not null]
|
|
52
|
-
"super_cat_id" "int unsigned"
|
|
53
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
Table "composite_key_1" {
|
|
57
|
-
"id1_1" "int unsigned" [not null]
|
|
58
|
-
"id1_2" "int unsigned" [not null]
|
|
59
|
-
"email" varchar(255)
|
|
60
|
-
"name" varchar(50)
|
|
61
|
-
|
|
62
|
-
Indexes {
|
|
63
|
-
(id1_1, id1_2) [pk, name: "PRIMARY"]
|
|
64
|
-
(email, name) [unique, name: "uc_unique_composite"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
Table "composite_key_2" {
|
|
69
|
-
"id2_1" "int unsigned" [not null]
|
|
70
|
-
"id2_2" "int unsigned" [not null]
|
|
71
|
-
|
|
72
|
-
Indexes {
|
|
73
|
-
(id2_1, id2_2) [pk, name: "PRIMARY"]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
Table "date_time_example" {
|
|
78
|
-
"default_now" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
79
|
-
"default_local" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
80
|
-
"date_plus_7_days" date [default: `(curdate() + interval 7 day)`]
|
|
81
|
-
"date_minus_30_days" date [default: `(curdate() - interval 30 day)`]
|
|
82
|
-
"timestamp_plus_1_hour" timestamp [default: `(now() + interval 1 hour)`]
|
|
83
|
-
"timestamp_minus_15_minutes" timestamp [default: `(now() - interval 15 minute)`]
|
|
84
|
-
"on_update_1" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
85
|
-
"on_update_2" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Table "default_example" {
|
|
89
|
-
"id" int [pk, not null, increment]
|
|
90
|
-
"column1" varchar(255) [default: `concat(_utf8mb4\'default \',uuid())`]
|
|
91
|
-
"column2" varchar(255) [default: `concat(_utf8mb4\'random \',floor((rand() * 100)))`]
|
|
92
|
-
"column3" varchar(255) [default: '_utf8mb4']
|
|
93
|
-
"column4" double [default: 0.5]
|
|
94
|
-
"created_date" date [default: `curdate()`]
|
|
95
|
-
"first_date" date [default: '2023-01-01']
|
|
96
|
-
"event_time" timestamp [default: '2024-01-01 00:00:00']
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
Table "hash_index_example" {
|
|
100
|
-
"id" int [pk, not null, note: 'unique identifier for each record']
|
|
101
|
-
"name" varchar(100) [note: '''first name\'s of the individual''']
|
|
102
|
-
"name1" varchar(100) [note: '''last name\'s of the individual''']
|
|
103
|
-
|
|
104
|
-
Indexes {
|
|
105
|
-
(name, name1) [type: hash, name: "idx_name_name1"]
|
|
106
|
-
}
|
|
107
|
-
Note: 'table for storing names with a hash index'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
Table "index_example" {
|
|
111
|
-
"id" int [pk, not null, increment]
|
|
112
|
-
"name_lower" varchar(100) [not null]
|
|
113
|
-
"name_inline" varchar(100) [not null]
|
|
114
|
-
"email" varchar(100) [unique, not null]
|
|
115
|
-
"age" int
|
|
116
|
-
"city" varchar(50)
|
|
117
|
-
|
|
118
|
-
Indexes {
|
|
119
|
-
(city, age) [type: btree, name: "idx_city_age"]
|
|
120
|
-
`city(5)` [type: btree, name: "idx_city_part"]
|
|
121
|
-
name_inline [type: btree, name: "idx_name"]
|
|
122
|
-
`lower(name_lower)` [type: btree, name: "idx_name_lower"]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
Table "order_items" {
|
|
127
|
-
"order_id" "int unsigned" [not null]
|
|
128
|
-
"product_id" "int unsigned" [not null]
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
Table "orders" {
|
|
132
|
-
"order_id" "int unsigned" [pk, not null, increment]
|
|
133
|
-
"user_id" "int unsigned"
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
Table "products" {
|
|
137
|
-
"id" "int unsigned" [pk, not null, increment]
|
|
138
|
-
"price" decimal(10,2) [not null]
|
|
139
|
-
"quantity" int [not null, constraint: ``quantity` < 10000`]
|
|
140
|
-
"total_value" "decimal(10,2) GENERATED ALWAYS AS ((`price` * `quantity`)) STORED" [constraint: ``total_value` > 0`]
|
|
141
|
-
"updated_at" "timestamp on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
142
|
-
|
|
143
|
-
Constraints {
|
|
144
|
-
`(`price` > 0) and (`price` < 1000000)` [name: 'products_chk_1']
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
Table "sqrt_triangle" {
|
|
149
|
-
"side_a" double
|
|
150
|
-
"side_b" double
|
|
151
|
-
"side_c" "double GENERATED ALWAYS AS (sqrt(((`side_a` * `side_a`) + (`side_b` * `side_b`)))) VIRTUAL"
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
Table "status_example_2" {
|
|
155
|
-
"s1" status_example_2_s1_enum [not null]
|
|
156
|
-
"s2" status_example_2_s2_enum
|
|
157
|
-
"s3" status_example_2_s3_enum [default: 'active']
|
|
158
|
-
"s4" status_example_2_s4_enum [default: 'pending']
|
|
159
|
-
"s5" status_example_2_s5_enum
|
|
160
|
-
"s6" status_example_2_s6_enum [not null]
|
|
161
|
-
"s7" status_example_2_s7_enum [default: '1']
|
|
162
|
-
"s8" status_example_2_s8_enum [default: '0']
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
Table "users" {
|
|
166
|
-
"user_id" "int unsigned" [pk, not null, increment]
|
|
167
|
-
"username" varchar(50) [unique, not null]
|
|
168
|
-
"email" varchar(100) [unique, not null]
|
|
169
|
-
"password_hash" varchar(255) [not null]
|
|
170
|
-
"first_name" varchar(50)
|
|
171
|
-
"last_name" varchar(50)
|
|
172
|
-
"date_of_birth" date
|
|
173
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
174
|
-
"last_login" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
175
|
-
"is_active" tinyint(1) [default: 1]
|
|
176
|
-
|
|
177
|
-
Constraints {
|
|
178
|
-
``created_at` <= `last_login`` [name: 'chk_last_login']
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
Ref "fk_test_composite":"composite_key_2".("id2_1", "id2_2") < "composite_key_1".("id1_1", "id1_2")
|
|
183
|
-
|
|
184
|
-
Ref "fk_detail_items_orders":"orders"."order_id" < "order_items"."order_id" [delete: cascade]
|
|
185
|
-
|
|
186
|
-
Ref "fk_detail_items_products":"products"."id" < "order_items"."product_id"
|
|
187
|
-
|
|
188
|
-
Ref "fk_order_user":"users"."user_id" < "orders"."user_id" [delete: set null]
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
2025-10-23T09:33:14.119Z
|
|
2
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
3
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
4
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
5
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
6
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
7
|
-
|
|
8
|
-
2025-10-23T09:37:54.881Z
|
|
9
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
10
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
11
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
12
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
13
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
14
|
-
|
|
15
|
-
2025-10-23T09:45:34.264Z
|
|
16
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
17
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
18
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
19
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
20
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
21
|
-
|
|
22
|
-
2025-10-23T09:49:45.616Z
|
|
23
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
24
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
25
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
26
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
27
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
28
|
-
|
|
29
|
-
2025-10-23T09:52:42.195Z
|
|
30
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
31
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
32
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
33
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
34
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
35
|
-
|
|
36
|
-
2025-10-23T09:54:37.024Z
|
|
37
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
38
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
39
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
40
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
41
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
42
|
-
|
|
43
|
-
2025-10-23T10:06:16.072Z
|
|
44
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
45
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
46
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
47
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:460:20)
|
|
48
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
49
|
-
|
|
50
|
-
2025-10-28T04:23:13.897Z
|
|
51
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
52
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
53
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
54
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
55
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
56
|
-
|
|
57
|
-
2025-10-28T04:25:32.056Z
|
|
58
|
-
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
59
|
-
at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
60
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
61
|
-
at async fetchSchemaJson (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
62
|
-
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
63
|
-
|