@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.
Files changed (78) hide show
  1. package/__test__/cli.test.js +4 -3
  2. package/__test__/db2dbml/mssql/expect-out-files/schema.dbml +28 -51
  3. package/__test__/db2dbml/mssql/schema.sql +2 -1
  4. package/__test__/db2dbml/mysql/expect-out-files/schema.dbml +10 -2
  5. package/__test__/db2dbml/mysql/schema.sql +9 -3
  6. package/__test__/db2dbml/postgres/expect-out-files/schema.dbml +14 -10
  7. package/__test__/db2dbml/postgres/schema.sql +4 -3
  8. package/package.json +4 -4
  9. package/__test__/db2dbml/mssql/dbml-error.log +0 -337
  10. package/__test__/db2dbml/mssql/out-files/schema.dbml +0 -219
  11. package/__test__/db2dbml/mysql/dbml-error.log +0 -230
  12. package/__test__/db2dbml/mysql/out-files/schema.dbml +0 -188
  13. package/__test__/db2dbml/postgres/dbml-error.log +0 -63
  14. package/__test__/db2dbml/postgres/out-files/schema.dbml +0 -184
  15. package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
  16. package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
  17. package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
  18. package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
  19. package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
  20. package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
  21. package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -0
  22. package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
  23. package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
  24. package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
  25. package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
  26. package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
  27. package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
  28. package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
  29. package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
  30. package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
  31. package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
  32. package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
  33. package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
  34. package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
  35. package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
  36. package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
  37. package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
  38. package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
  39. package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
  40. package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
  41. package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
  42. package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
  43. package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
  44. package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
  45. package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
  46. package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
  47. package/__test__/dbml2sql/syntax-error/dbml-error.log +0 -342
  48. package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
  49. package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
  50. package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
  51. package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
  52. package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
  53. package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -0
  54. package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
  55. package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
  56. package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
  57. package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
  58. package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
  59. package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
  60. package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
  61. package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
  62. package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
  63. package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
  64. package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
  65. package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
  66. package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
  67. package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
  68. package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
  69. package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
  70. package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -58
  71. package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
  72. package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
  73. package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
  74. package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
  75. package/__test__/sql2dbml/syntax-error/dbml-error.log +0 -339
  76. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -339
  77. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -336
  78. package/dbml-error.log +0 -0
@@ -1,337 +0,0 @@
1
- 2025-10-21T09:12:52.843Z
2
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
3
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
4
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
5
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
6
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
7
-
8
- 2025-10-21T09:16:04.421Z
9
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
10
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
11
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
12
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
13
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
14
-
15
- 2025-10-21T09:17:58.949Z
16
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
17
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
18
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
19
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
20
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
21
-
22
- 2025-10-21T09:20:22.303Z
23
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
24
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
25
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
26
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
27
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
28
-
29
- 2025-10-21T09:21:31.866Z
30
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
31
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
32
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
33
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
34
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
35
-
36
- 2025-10-21T09:23:10.860Z
37
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
38
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
39
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
40
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
41
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
42
-
43
- 2025-10-21T10:57:10.471Z
44
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
45
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:118:11)
46
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
47
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
48
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
49
-
50
- 2025-10-21T10:59:58.669Z
51
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
52
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:128:11)
53
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
54
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
55
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
56
-
57
- 2025-10-21T11:01:55.031Z
58
- Error: TypeError: Cannot read properties of undefined (reading 'dbo.users')
59
- at generateDatabase (/home/huydna/projects/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:129:11)
60
- at Object.generateDbml (/home/huydna/projects/dbml/packages/dbml-core/lib/import/index.js:17:58)
61
- at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
62
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
63
-
64
- 2025-10-22T02:42:47.970Z
65
- ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
66
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
67
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
68
- at Object.onceWrapper (node:events:633:26)
69
- at Connection.emit (node:events:518:28)
70
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
71
- at Connection.socketError (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1351:12)
72
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1144:14
73
- at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
74
-
75
- 2025-10-22T02:46:10.542Z
76
- ConnectionError: Login failed for user 'sa'.
77
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
78
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
79
- at Object.onceWrapper (node:events:633:26)
80
- at Connection.emit (node:events:518:28)
81
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
82
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
83
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
84
-
85
- 2025-10-23T02:28:31.881Z
86
- TypeError: The "config.server" property is required and must be of type string.
87
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
88
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
89
- at new Promise (<anonymous>)
90
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
91
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
92
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
93
- at new Promise (<anonymous>)
94
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
95
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
96
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
97
-
98
- 2025-10-23T02:34:51.556Z
99
- TypeError: The "config.server" property is required and must be of type string.
100
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
101
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
102
- at new Promise (<anonymous>)
103
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
104
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
105
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
106
- at new Promise (<anonymous>)
107
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
108
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
109
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
110
-
111
- 2025-10-23T03:17:36.709Z
112
- TypeError: The "config.server" property is required and must be of type string.
113
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
114
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
115
- at new Promise (<anonymous>)
116
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
117
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
118
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
119
- at new Promise (<anonymous>)
120
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
121
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
122
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
123
-
124
- 2025-10-23T03:18:50.727Z
125
- TypeError: The "config.server" property is required and must be of type string.
126
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
127
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
128
- at new Promise (<anonymous>)
129
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
130
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
131
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
132
- at new Promise (<anonymous>)
133
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
134
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
135
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
136
-
137
- 2025-10-23T05:09:25.994Z
138
- TypeError: The "config.server" property is required and must be of type string.
139
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
140
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
141
- at new Promise (<anonymous>)
142
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
143
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
144
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
145
- at new Promise (<anonymous>)
146
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
147
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
148
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
149
-
150
- 2025-10-23T05:12:49.990Z
151
- TypeError: The "config.server" property is required and must be of type string.
152
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
153
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
154
- at new Promise (<anonymous>)
155
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
156
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
157
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
158
- at new Promise (<anonymous>)
159
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
160
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
161
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
162
-
163
- 2025-10-23T09:09:22.272Z
164
- TypeError: The "config.server" property is required and must be of type string.
165
- at new Connection (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:276:13)
166
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:78:19
167
- at new Promise (<anonymous>)
168
- at ConnectionPool._poolCreate (/home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:67:12)
169
- at ConnectionPool._connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:446:10)
170
- at /home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:418:19
171
- at new Promise (<anonymous>)
172
- at ConnectionPool.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/base/connection-pool.js:417:12)
173
- at Object.connect (/home/huydna/projects/dbml/node_modules/mssql/lib/global-connection.js:59:27)
174
- at getValidatedClient (/home/huydna/projects/dbml/packages/dbml-connector/dist/connectors/mssqlConnector.js:20:40)
175
-
176
- 2025-10-24T00:23:29.521Z
177
- ConnectionError: Login failed for user 'sa'.
178
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
179
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
180
- at Object.onceWrapper (node:events:633:26)
181
- at Connection.emit (node:events:518:28)
182
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
183
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
184
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
185
-
186
- 2025-10-24T00:31:34.789Z
187
- ConnectionError: Login failed for user 'sa'.
188
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
189
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
190
- at Object.onceWrapper (node:events:633:26)
191
- at Connection.emit (node:events:518:28)
192
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
193
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
194
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
195
-
196
- 2025-10-24T00:39:04.865Z
197
- ConnectionError: Login failed for user 'sa'.
198
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
199
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
200
- at Object.onceWrapper (node:events:633:26)
201
- at Connection.emit (node:events:518:28)
202
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
203
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
204
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
205
-
206
- 2025-10-24T01:22:51.565Z
207
- ConnectionError: Login failed for user 'sa'.
208
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
209
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
210
- at Object.onceWrapper (node:events:633:26)
211
- at Connection.emit (node:events:518:28)
212
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
213
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
214
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
215
-
216
- 2025-10-24T02:43:29.276Z
217
- ConnectionError: Login failed for user 'sa'.
218
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
219
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
220
- at Object.onceWrapper (node:events:633:26)
221
- at Connection.emit (node:events:518:28)
222
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
223
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
224
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
225
-
226
- 2025-10-24T02:49:11.475Z
227
- ConnectionError: Login failed for user 'sa'.
228
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
229
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
230
- at Object.onceWrapper (node:events:633:26)
231
- at Connection.emit (node:events:518:28)
232
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
233
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
234
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
235
-
236
- 2025-10-24T02:53:27.824Z
237
- ConnectionError: Login failed for user 'sa'.
238
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
239
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
240
- at Object.onceWrapper (node:events:633:26)
241
- at Connection.emit (node:events:518:28)
242
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
243
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
244
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
245
-
246
- 2025-10-24T02:55:15.381Z
247
- ConnectionError: Login failed for user 'sa'.
248
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
249
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
250
- at Object.onceWrapper (node:events:633:26)
251
- at Connection.emit (node:events:518:28)
252
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
253
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
254
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
255
-
256
- 2025-10-24T03:03:37.289Z
257
- ConnectionError: Login failed for user 'sa'.
258
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
259
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
260
- at Object.onceWrapper (node:events:633:26)
261
- at Connection.emit (node:events:518:28)
262
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
263
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
264
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
265
-
266
- 2025-10-24T03:27:12.815Z
267
- ConnectionError: Login failed for user 'sa'.
268
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
269
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
270
- at Object.onceWrapper (node:events:633:26)
271
- at Connection.emit (node:events:518:28)
272
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
273
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
274
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
275
-
276
- 2025-10-24T04:06:05.218Z
277
- ConnectionError: Login failed for user 'sa'.
278
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
279
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
280
- at Object.onceWrapper (node:events:633:26)
281
- at Connection.emit (node:events:518:28)
282
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
283
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
284
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
285
-
286
- 2025-10-24T04:11:26.797Z
287
- ConnectionError: Login failed for user 'sa'.
288
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
289
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
290
- at Object.onceWrapper (node:events:633:26)
291
- at Connection.emit (node:events:518:28)
292
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
293
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
294
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
295
-
296
- 2025-10-24T04:16:16.859Z
297
- ConnectionError: Login failed for user 'sa'.
298
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
299
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
300
- at Object.onceWrapper (node:events:633:26)
301
- at Connection.emit (node:events:518:28)
302
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
303
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
304
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
305
-
306
- 2025-10-24T04:21:52.170Z
307
- ConnectionError: Login failed for user 'sa'.
308
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
309
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
310
- at Object.onceWrapper (node:events:633:26)
311
- at Connection.emit (node:events:518:28)
312
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
313
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
314
- at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
315
-
316
- 2025-10-28T04:23:12.445Z
317
- ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
318
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
319
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
320
- at Object.onceWrapper (node:events:633:26)
321
- at Connection.emit (node:events:518:28)
322
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
323
- at Connection.socketError (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1351:12)
324
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1144:14
325
- at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
326
-
327
- 2025-10-28T04:25:30.551Z
328
- ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
329
- at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
330
- at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
331
- at Object.onceWrapper (node:events:633:26)
332
- at Connection.emit (node:events:518:28)
333
- at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
334
- at Connection.socketError (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1351:12)
335
- at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1144:14
336
- at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
337
-
@@ -1,219 +0,0 @@
1
- Table "dbo"."users" {
2
- "user_id" int(10) [pk, not null, increment]
3
- "username" varchar(50) [unique, not null]
4
- "email" varchar(100) [unique, not null, constraint: `[email] like '%_@_%._%'`]
5
- "password_hash" varchar(255) [not null]
6
- "first_name" varchar(50)
7
- "last_name" varchar(50)
8
- "full_name" varchar(100)
9
- "full_name_lower" varchar(100)
10
- "date_of_birth" date [constraint: `[date_of_birth]<=dateadd(year,(-13),getdate())`]
11
- "created_at" datetime2 [default: `getdate()`]
12
- "last_login" datetime2
13
- "is_active" bit [default: 1]
14
-
15
- Indexes {
16
- email [type: nonclustered, name: "idx_users_email"]
17
- full_name [type: nonclustered, name: "idx_users_full_name"]
18
- (is_active, full_name_lower) [type: nonclustered, name: "idx_users_is_active_full_name"]
19
- }
20
- }
21
-
22
- Table "dbo"."products" {
23
- "product_id" int(10) [pk, not null, increment]
24
- "name" varchar(100) [not null]
25
- "description" text
26
- "price" decimal(10,2) [not null, constraint: `[price]>(0)`]
27
- "stock_quantity" int(10) [not null, constraint: `[stock_quantity]>=(0)`, default: 0]
28
- "category" varchar(50)
29
- "created_at" datetime2 [default: `getdate()`]
30
- "updated_at" datetime2 [default: `getdate()`]
31
- "is_available" bit [default: 1]
32
-
33
- Indexes {
34
- category [type: nonclustered, name: "idx_products_category"]
35
- }
36
- }
37
-
38
- Table "dbo"."orders" {
39
- "order_id" int(10) [pk, not null, increment]
40
- "user_id" int(10) [not null]
41
- "order_date" datetime2 [default: `getdate()`]
42
- "total_amount" decimal(12,2) [not null, constraint: `[total_amount]>(0)`]
43
- "status" varchar(20) [constraint: `[status]='cancelled' OR [status]='delivered' OR [status]='shipped' OR [status]='processing' OR [status]='pending'`, default: 'pending']
44
- "shipping_address" text [not null]
45
- "billing_address" text [not null]
46
-
47
- Indexes {
48
- (user_id, order_date) [type: nonclustered, name: "idx_orders_user_date"]
49
- }
50
- }
51
-
52
- Table "dbo"."order_items" {
53
- "order_item_id" int(10) [pk, not null, increment]
54
- "order_id" int(10) [unique, not null]
55
- "product_id" int(10) [unique, not null]
56
- "quantity" int(10) [not null, constraint: `[quantity]>(0)`]
57
- "unit_price" decimal(10,2) [not null, constraint: `[unit_price]>(0)`]
58
-
59
- Indexes {
60
- (order_id, product_id) [type: nonclustered, name: "idx_order_items_order_product"]
61
- }
62
- }
63
-
64
- Table "dbo"."StringTypes" {
65
- "Id" int(10) [pk, not null, increment]
66
- "CharField" char(10) [default: 'N/A']
67
- "VarcharField" varchar(50) [default: '{"default_key": "default_value"}']
68
- "VarcharMaxField" varchar(MAX) [default: 'N/A']
69
- "TextField" text [default: 'N/A']
70
- "NCharField" nchar(10) [default: `N'N/A'`]
71
- "NVarCharField" nvarchar(50) [default: `N'N/A'`]
72
- "NVarCharMaxField" nvarchar(MAX) [default: `N'N/A'`]
73
- "NTextField" ntext [default: `N'N/A'`]
74
- }
75
-
76
- Table "dbo"."NumberTypes" {
77
- "ID" int(10) [pk, not null, increment]
78
- "TINYINTCol" tinyint(3) [default: 0]
79
- "SMALLINTCol" smallint(5) [default: 0]
80
- "INTCol" int(10) [default: 0]
81
- "BIGINTCol" bigint(19) [default: 0]
82
- "DECIMALCol" decimal(10,2) [default: 0.00]
83
- "NUMERICCol" numeric(10,2) [default: 0.00]
84
- "FLOATCol" float(53) [default: 0.0]
85
- "REALCol" real(24) [default: 0.0]
86
- "BITCol" bit [default: 0]
87
- }
88
-
89
- Table "dbo"."NumberTypesNoDefault" {
90
- "ID" int(10) [pk, not null, increment]
91
- "TINYINTCol" tinyint(3)
92
- "SMALLINTCol" smallint(5)
93
- "INTCol" int(10)
94
- "BIGINTCol" bigint(19)
95
- "DECIMALCol" decimal(10,2)
96
- "NUMERICCol" numeric(10,2)
97
- "FLOATCol" float(53)
98
- "REALCol" real(24)
99
- "BITCol" bit
100
- }
101
-
102
- Table "dbo"."DatetimeTypes" {
103
- "ID" int(10) [pk, not null, increment]
104
- "DATECol" date [default: `getdate()`]
105
- "TIMECol" time [default: `CONVERT([time],getdate())`]
106
- "DATETIMECol" datetime [default: `getdate()`]
107
- "DATETIME2Col" datetime2 [default: `sysdatetime()`]
108
- "SMALLDATETIMECol" smalldatetime [default: `getdate()`]
109
- "ROWVERSIONCol" timestamp [not null]
110
- "DATETIMEOFFSETCol" datetimeoffset [default: `sysdatetimeoffset()`]
111
- }
112
-
113
- Table "dbo"."ObjectTypes" {
114
- "Id" int(10) [pk, not null, increment]
115
- "XmlField" xml [default: '''<Books>
116
- <Book>
117
- <Title>The Great Gatsby</Title>
118
- <Author>F. Scott Fitzgerald</Author>
119
- <Year>1925</Year>
120
- <Price>10.99</Price>
121
- <Publisher>Scribner</Publisher>
122
- <Location>New York</Location>
123
- <Genre>Fiction</Genre>
124
- <Subgenre>Classic</Subgenre>
125
- </Book>
126
- <Book>
127
- <Title>1984</Title>
128
- <Author>George Orwell</Author>
129
- <Year>1949</Year>
130
- <Price>8.99</Price>
131
- <Publisher>Secker & Warburg</Publisher>
132
- <Location>London</Location>
133
- <Genre>Dystopian</Genre>
134
- <Subgenre>Political Fiction</Subgenre>
135
- </Book>
136
- </Books>''']
137
- "JsonField" nvarchar(MAX) [default: `N'{"defaultKey": "defaultValue", "status": "active", "count": 0}'`]
138
- "BinaryField" binary(50) [default: `0x00`]
139
- "VarBinaryField" varbinary(50) [default: `0x00`]
140
- "VarBinaryMaxField" varbinary(MAX) [default: `0x00`]
141
- "ImageField" image [default: `0x00`]
142
- }
143
-
144
- Table "dbo"."gender_reference" {
145
- "value" nvarchar(10) [pk, not null]
146
- }
147
-
148
- Table "dbo"."user_define_data_types" {
149
- "id" int(10) [pk, not null, increment]
150
- "name" nvarchar(50)
151
- "gender" nvarchar(10) [constraint: `[gender]='Other' OR [gender]='Female' OR [gender]='Male'`]
152
- "age_start" int(10)
153
- "age_end" int(10)
154
- "height" float(53)
155
- "weight" float(53)
156
-
157
- Constraints {
158
- `[age_start]<=[age_end]` [name: 'chk_age_range']
159
- }
160
- }
161
-
162
- Table "dbo"."table_with_comments" {
163
- "id" int(10) [pk, not null, increment, note: 'Unique identifier for each item.']
164
- "name" varchar(100) [note: 'Name of the item.']
165
- "description" text [note: '''Item\'s description''']
166
- "created_at" datetime2 [default: `getdate()`, note: 'Timestamp when the item was created.']
167
- Note: 'This table stores information about various items.'
168
- }
169
-
170
- Table "dbo"."Authors" {
171
- "AuthorID" int(10) [pk, not null]
172
- "NationalityID" int(10) [pk, not null]
173
- "AuthorName" nvarchar(100) [unique]
174
- "BirthYear" int(10) [unique]
175
- }
176
-
177
- Table "dbo"."Books" {
178
- "BookID" int(10) [pk, not null]
179
- "AuthorID" int(10) [pk, not null]
180
- "NationalityID" int(10)
181
- "ISBN" nvarchar(20) [unique]
182
- "Title" nvarchar(200)
183
- }
184
-
185
- Table "dbo"."AddressInfo" {
186
- "AddressID" uniqueidentifier(16) [not null]
187
- "AddressFormatID" uniqueidentifier(16) [not null]
188
-
189
- Constraints {
190
- `([AddressID]='176029FA-D6D3-49E1-A48C-000000000002' OR [AddressID]='176029FA-D6D3-49E1-A48C-000000000001') AND ([AddressFormatID]='176029FA-D6D3-49E1-A48C-000000000002' OR [AddressFormatID]='176029FA-D6D3-49E1-A48C-000000000001')` [name: 'CK_Address_Valid']
191
- }
192
- }
193
-
194
- Table "dbo"."AddressInfo2" {
195
- "A1" uniqueidentifier(16) [not null]
196
- "A2" uniqueidentifier(16) [not null]
197
- "A3" uniqueidentifier(16) [not null]
198
- "A4" uniqueidentifier(16) [not null]
199
-
200
- Constraints {
201
- `([A1]='333' OR [A1]='2222' OR [A1]='1111') AND ([A2]='2222' OR [A2]='1111') AND ([A3]='1111' OR [A3]='2222') AND ([A4]='3333' OR [A4]='2222')` [name: 'CK_Address_Valid2']
202
- }
203
- }
204
-
205
- Table "dbo"."TestDescriptionTable" {
206
- "Id" int(10) [note: 'Primary key identifier.']
207
- "Name" nvarchar(100) [constraint: `len([Name])>(6)`, note: 'Name of the entity.']
208
- Note: 'This is the custom comment name on table.'
209
- }
210
-
211
- Ref "FK_AuthorNationality":"dbo"."Authors".("AuthorID", "NationalityID") < "dbo"."Books".("AuthorID", "NationalityID")
212
-
213
- Ref "fk_product":"dbo"."products"."product_id" < "dbo"."order_items"."product_id" [update: cascade]
214
-
215
- Ref "fk_order":"dbo"."orders"."order_id" < "dbo"."order_items"."order_id" [update: cascade, delete: cascade]
216
-
217
- Ref "fk_user":"dbo"."users"."user_id" < "dbo"."orders"."user_id" [update: cascade, delete: cascade]
218
-
219
- Ref "fk_gender":"dbo"."gender_reference"."value" < "dbo"."user_define_data_types"."gender"