@breautek/storm 4.2.0 → 4.4.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/CHANGELOG.md +14 -0
- package/docs/README.md +28 -20
- package/docs/classes/Application.md +158 -76
- package/docs/classes/BackendAuthenticationMiddleware.md +3 -3
- package/docs/classes/CORSMiddleware.md +8 -8
- package/docs/classes/ConfigLoader.md +1 -1
- package/docs/classes/Database.md +12 -12
- package/docs/classes/DatabaseConnection.md +42 -40
- package/docs/classes/DatabaseQueryError.md +58 -16
- package/docs/classes/DeadLockError.md +349 -0
- package/docs/classes/DiskSpaceError.md +56 -16
- package/docs/classes/DropTemporaryTableQuery.md +8 -8
- package/docs/classes/DumpStream.md +1 -1
- package/docs/classes/DuplicateEntryError.md +56 -16
- package/docs/classes/EntityNotFoundError.md +56 -16
- package/docs/classes/ExpiredTokenError.md +56 -16
- package/docs/classes/Handler.md +14 -14
- package/docs/classes/InternalError.md +56 -16
- package/docs/classes/InvalidCredentialsError.md +56 -16
- package/docs/classes/InvalidValueError.md +56 -16
- package/docs/classes/ManagedDatabaseConnection.md +19 -19
- package/docs/classes/Middleware.md +3 -3
- package/docs/classes/MissingConfigError.md +56 -16
- package/docs/classes/MissingParameterError.md +56 -16
- package/docs/classes/MySQLConnection.md +73 -43
- package/docs/classes/MySQLDatabase.md +13 -13
- package/docs/classes/NotImplementedError.md +56 -16
- package/docs/classes/Query.md +8 -8
- package/docs/classes/RawError.md +56 -18
- package/docs/classes/RawQuery.md +8 -8
- package/docs/classes/Request.md +18 -18
- package/docs/classes/Response.md +11 -11
- package/docs/classes/ResponseData.md +7 -7
- package/docs/classes/ServiceProvider.md +15 -15
- package/docs/classes/ServiceResponse.md +4 -4
- package/docs/classes/SetSessionVariableQuery.md +8 -8
- package/docs/classes/StormError.md +48 -16
- package/docs/classes/TemporaryTableQuery.md +8 -8
- package/docs/classes/Token.md +2 -2
- package/docs/classes/TokenManager.md +4 -4
- package/docs/classes/UnauthorizedAccessError.md +56 -16
- package/docs/enums/ErrorCode.md +18 -18
- package/docs/enums/ExitCode.md +4 -4
- package/docs/enums/HTTPMethod.md +8 -8
- package/docs/enums/JWTError.md +4 -4
- package/docs/enums/StatusCode.md +96 -96
- package/docs/interfaces/IConfig.md +8 -8
- package/docs/interfaces/IDatabaseConfig.md +6 -6
- package/docs/interfaces/IDatabaseConnection.md +14 -14
- package/docs/interfaces/IErrorResponse.md +15 -4
- package/docs/interfaces/IFormData.md +2 -2
- package/docs/interfaces/IHandler.md +1 -1
- package/docs/interfaces/IInsertQueryResult.md +3 -3
- package/docs/interfaces/IJWTVerifyOptions.md +1 -1
- package/docs/interfaces/IRequestResponse.md +2 -2
- package/docs/interfaces/ISetSessionVariableQueryInput.md +2 -2
- package/docs/interfaces/ITemporaryTableQueryInput.md +2 -2
- package/docs/interfaces/IUpdateQueryResult.md +2 -2
- package/docs/interfaces/formidable.File.md +3 -1
- package/docs/interfaces/formidable.FileJSON.md +3 -1
- package/docs/interfaces/formidable.Options.md +33 -11
- package/docs/interfaces/formidable.Part.md +65 -35
- package/lib/DatabaseQueryError.d.ts +1 -0
- package/lib/DatabaseQueryError.js +3 -0
- package/lib/DatabaseQueryError.js.map +1 -1
- package/lib/DeadLockError.d.ts +6 -0
- package/lib/DeadLockError.js +26 -0
- package/lib/DeadLockError.js.map +1 -0
- package/lib/DiskSpaceError.d.ts +1 -0
- package/lib/DiskSpaceError.js +3 -0
- package/lib/DiskSpaceError.js.map +1 -1
- package/lib/DuplicateEntryError.d.ts +2 -0
- package/lib/DuplicateEntryError.js +11 -0
- package/lib/DuplicateEntryError.js.map +1 -1
- package/lib/EntityNotFoundError.d.ts +2 -0
- package/lib/EntityNotFoundError.js +8 -0
- package/lib/EntityNotFoundError.js.map +1 -1
- package/lib/ExpiredTokenError.d.ts +1 -0
- package/lib/ExpiredTokenError.js +3 -0
- package/lib/ExpiredTokenError.js.map +1 -1
- package/lib/InternalError.d.ts +1 -0
- package/lib/InternalError.js +3 -0
- package/lib/InternalError.js.map +1 -1
- package/lib/InvalidCredentialsError.d.ts +1 -0
- package/lib/InvalidCredentialsError.js +3 -0
- package/lib/InvalidCredentialsError.js.map +1 -1
- package/lib/InvalidValueError.d.ts +2 -0
- package/lib/InvalidValueError.js +11 -0
- package/lib/InvalidValueError.js.map +1 -1
- package/lib/MissingConfigError.d.ts +2 -0
- package/lib/MissingConfigError.js +8 -0
- package/lib/MissingConfigError.js.map +1 -1
- package/lib/MissingParameterError.d.ts +2 -0
- package/lib/MissingParameterError.js +8 -0
- package/lib/MissingParameterError.js.map +1 -1
- package/lib/MySQLConnection.js +9 -1
- package/lib/MySQLConnection.js.map +1 -1
- package/lib/NotImplementedError.d.ts +2 -0
- package/lib/NotImplementedError.js +8 -0
- package/lib/NotImplementedError.js.map +1 -1
- package/lib/StormError.d.ts +7 -0
- package/lib/StormError.js +10 -0
- package/lib/StormError.js.map +1 -1
- package/lib/UnauthorizedAccessError.d.ts +1 -0
- package/lib/UnauthorizedAccessError.js +3 -0
- package/lib/UnauthorizedAccessError.js.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.js +3 -1
- package/lib/api.js.map +1 -1
- package/package.json +19 -18
- package/src/DatabaseQueryError.ts +4 -0
- package/src/DeadLockError.ts +22 -0
- package/src/DiskSpaceError.ts +4 -0
- package/src/DuplicateEntryError.ts +13 -0
- package/src/EntityNotFoundError.ts +10 -0
- package/src/ExpiredTokenError.ts +4 -0
- package/src/InternalError.ts +4 -0
- package/src/InvalidCredentialsError.ts +4 -0
- package/src/InvalidValueError.ts +13 -0
- package/src/MissingConfigError.ts +10 -0
- package/src/MissingParameterError.ts +10 -0
- package/src/MySQLConnection.ts +11 -1
- package/src/NotImplementedError.ts +10 -0
- package/src/StormError.ts +18 -0
- package/src/UnauthorizedAccessError.ts +4 -0
- package/src/api.ts +1 -0
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: MySQLConnection
|
|
4
4
|
|
|
5
|
+
Do not call `new Database` directly. Use `Database.getConnection` to create a `DatabaseConnection` object.
|
|
6
|
+
|
|
7
|
+
**`Abstract`**
|
|
8
|
+
|
|
9
|
+
**`Implements`**
|
|
10
|
+
|
|
11
|
+
`IDatabaseConnection`
|
|
12
|
+
|
|
5
13
|
## Hierarchy
|
|
6
14
|
|
|
7
15
|
- [`DatabaseConnection`](DatabaseConnection.md)<`MySQL.PoolConnection`\>
|
|
@@ -56,7 +64,7 @@
|
|
|
56
64
|
|
|
57
65
|
#### Defined in
|
|
58
66
|
|
|
59
|
-
[src/MySQLConnection.ts:
|
|
67
|
+
[src/MySQLConnection.ts:48](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L48)
|
|
60
68
|
|
|
61
69
|
## Methods
|
|
62
70
|
|
|
@@ -64,14 +72,16 @@
|
|
|
64
72
|
|
|
65
73
|
▸ `Protected` **_close**(`forceClose`): `Promise`<`void`\>
|
|
66
74
|
|
|
67
|
-
Implementation to close the connection, if `forceClose` is true, close the connection no matter what.
|
|
75
|
+
Implementation to close the connection, if `forceClose` is true, close the connection no matter what.
|
|
68
76
|
Silently error if it means the connection is closed.
|
|
69
77
|
|
|
78
|
+
**`Async`**
|
|
79
|
+
|
|
70
80
|
#### Parameters
|
|
71
81
|
|
|
72
|
-
| Name | Type |
|
|
73
|
-
| :------ | :------ |
|
|
74
|
-
| `forceClose` | `boolean` |
|
|
82
|
+
| Name | Type | Description |
|
|
83
|
+
| :------ | :------ | :------ |
|
|
84
|
+
| `forceClose` | `boolean` | boolean, if `true`, should close the connection no matter what. |
|
|
75
85
|
|
|
76
86
|
#### Returns
|
|
77
87
|
|
|
@@ -85,7 +95,7 @@ Promise<void>
|
|
|
85
95
|
|
|
86
96
|
#### Defined in
|
|
87
97
|
|
|
88
|
-
[src/MySQLConnection.ts:
|
|
98
|
+
[src/MySQLConnection.ts:200](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L200)
|
|
89
99
|
|
|
90
100
|
___
|
|
91
101
|
|
|
@@ -95,12 +105,14 @@ ___
|
|
|
95
105
|
|
|
96
106
|
Implementation method to return a dataset from the database
|
|
97
107
|
|
|
108
|
+
**`Async`**
|
|
109
|
+
|
|
98
110
|
#### Parameters
|
|
99
111
|
|
|
100
|
-
| Name | Type |
|
|
101
|
-
| :------ | :------ |
|
|
102
|
-
| `query` | `string` |
|
|
103
|
-
| `params?` | `any` |
|
|
112
|
+
| Name | Type | Description |
|
|
113
|
+
| :------ | :------ | :------ |
|
|
114
|
+
| `query` | `string` | The database query |
|
|
115
|
+
| `params?` | `any` | The query parameters |
|
|
104
116
|
|
|
105
117
|
#### Returns
|
|
106
118
|
|
|
@@ -114,7 +126,7 @@ Promise
|
|
|
114
126
|
|
|
115
127
|
#### Defined in
|
|
116
128
|
|
|
117
|
-
[src/MySQLConnection.ts:
|
|
129
|
+
[src/MySQLConnection.ts:76](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L76)
|
|
118
130
|
|
|
119
131
|
___
|
|
120
132
|
|
|
@@ -122,16 +134,16 @@ ___
|
|
|
122
134
|
|
|
123
135
|
▸ `Protected` **_stream**(`query`, `params?`, `streamOptions?`): `Readable`
|
|
124
136
|
|
|
125
|
-
Implementation method to return a dataset from the database like `query()`,
|
|
137
|
+
Implementation method to return a dataset from the database like `query()`,
|
|
126
138
|
but returns a `Readable` stream instead.
|
|
127
139
|
|
|
128
140
|
#### Parameters
|
|
129
141
|
|
|
130
|
-
| Name | Type |
|
|
131
|
-
| :------ | :------ |
|
|
132
|
-
| `query` | `string` |
|
|
133
|
-
| `params?` | `any` |
|
|
134
|
-
| `streamOptions?` | `any` |
|
|
142
|
+
| Name | Type | Description |
|
|
143
|
+
| :------ | :------ | :------ |
|
|
144
|
+
| `query` | `string` | The database query |
|
|
145
|
+
| `params?` | `any` | The query parameters |
|
|
146
|
+
| `streamOptions?` | `any` | `Readable` stream options |
|
|
135
147
|
|
|
136
148
|
#### Returns
|
|
137
149
|
|
|
@@ -145,7 +157,7 @@ but returns a `Readable` stream instead.
|
|
|
145
157
|
|
|
146
158
|
#### Defined in
|
|
147
159
|
|
|
148
|
-
[src/MySQLConnection.ts:
|
|
160
|
+
[src/MySQLConnection.ts:123](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L123)
|
|
149
161
|
|
|
150
162
|
___
|
|
151
163
|
|
|
@@ -153,11 +165,11 @@ ___
|
|
|
153
165
|
|
|
154
166
|
▸ **close**(`forceClose?`): `Promise`<`void`\>
|
|
155
167
|
|
|
156
|
-
Closes the connection. May error if connection has an active transaction.
|
|
157
|
-
if `forceClose` boolean is true, it will force close the connection, regardless
|
|
168
|
+
Closes the connection. May error if connection has an active transaction.
|
|
169
|
+
if `forceClose` boolean is true, it will force close the connection, regardless
|
|
158
170
|
of transaction state.
|
|
159
171
|
|
|
160
|
-
**`
|
|
172
|
+
**`Async`**
|
|
161
173
|
|
|
162
174
|
#### Parameters
|
|
163
175
|
|
|
@@ -177,7 +189,7 @@ Promise<void>
|
|
|
177
189
|
|
|
178
190
|
#### Defined in
|
|
179
191
|
|
|
180
|
-
[src/DatabaseConnection.ts:168](https://github.com/breautek/storm/blob/
|
|
192
|
+
[src/DatabaseConnection.ts:168](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L168)
|
|
181
193
|
|
|
182
194
|
___
|
|
183
195
|
|
|
@@ -187,6 +199,10 @@ ___
|
|
|
187
199
|
|
|
188
200
|
Commits a transaction. This will end a transaction.
|
|
189
201
|
|
|
202
|
+
**`Abstract`**
|
|
203
|
+
|
|
204
|
+
**`Async`**
|
|
205
|
+
|
|
190
206
|
#### Returns
|
|
191
207
|
|
|
192
208
|
`Promise`<`void`\>
|
|
@@ -199,7 +215,7 @@ Promise<void>
|
|
|
199
215
|
|
|
200
216
|
#### Defined in
|
|
201
217
|
|
|
202
|
-
[src/MySQLConnection.ts:
|
|
218
|
+
[src/MySQLConnection.ts:184](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L184)
|
|
203
219
|
|
|
204
220
|
___
|
|
205
221
|
|
|
@@ -209,11 +225,15 @@ ___
|
|
|
209
225
|
|
|
210
226
|
Ends a transaction. if `requiresRollback` is `true`, then `rollback()` is invoked. Otherwise, `commit()` is invoked.
|
|
211
227
|
|
|
228
|
+
**`Abstract`**
|
|
229
|
+
|
|
230
|
+
**`Async`**
|
|
231
|
+
|
|
212
232
|
#### Parameters
|
|
213
233
|
|
|
214
|
-
| Name | Type | Default value |
|
|
215
|
-
| :------ | :------ | :------ |
|
|
216
|
-
| `requiresRollback` | `boolean` | `false` |
|
|
234
|
+
| Name | Type | Default value | Description |
|
|
235
|
+
| :------ | :------ | :------ | :------ |
|
|
236
|
+
| `requiresRollback` | `boolean` | `false` | optional boolean |
|
|
217
237
|
|
|
218
238
|
#### Returns
|
|
219
239
|
|
|
@@ -227,7 +247,7 @@ Promise<void>
|
|
|
227
247
|
|
|
228
248
|
#### Defined in
|
|
229
249
|
|
|
230
|
-
[src/MySQLConnection.ts:
|
|
250
|
+
[src/MySQLConnection.ts:164](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L164)
|
|
231
251
|
|
|
232
252
|
___
|
|
233
253
|
|
|
@@ -249,7 +269,7 @@ any
|
|
|
249
269
|
|
|
250
270
|
#### Defined in
|
|
251
271
|
|
|
252
|
-
[src/DatabaseConnection.ts:90](https://github.com/breautek/storm/blob/
|
|
272
|
+
[src/DatabaseConnection.ts:90](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L90)
|
|
253
273
|
|
|
254
274
|
___
|
|
255
275
|
|
|
@@ -257,7 +277,7 @@ ___
|
|
|
257
277
|
|
|
258
278
|
▸ **getInstantiationStack**(): `string`
|
|
259
279
|
|
|
260
|
-
Gets the callback stacktrace to determine what opened
|
|
280
|
+
Gets the callback stacktrace to determine what opened
|
|
261
281
|
this connection. Useful for debugging lingering connections.
|
|
262
282
|
|
|
263
283
|
#### Returns
|
|
@@ -272,7 +292,7 @@ string - A stacktrace
|
|
|
272
292
|
|
|
273
293
|
#### Defined in
|
|
274
294
|
|
|
275
|
-
[src/DatabaseConnection.ts:72](https://github.com/breautek/storm/blob/
|
|
295
|
+
[src/DatabaseConnection.ts:72](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L72)
|
|
276
296
|
|
|
277
297
|
___
|
|
278
298
|
|
|
@@ -294,7 +314,7 @@ number in milliseconds
|
|
|
294
314
|
|
|
295
315
|
#### Defined in
|
|
296
316
|
|
|
297
|
-
[src/DatabaseConnection.ts:120](https://github.com/breautek/storm/blob/
|
|
317
|
+
[src/DatabaseConnection.ts:120](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L120)
|
|
298
318
|
|
|
299
319
|
___
|
|
300
320
|
|
|
@@ -314,7 +334,7 @@ Returns true if the connection has been closed.
|
|
|
314
334
|
|
|
315
335
|
#### Defined in
|
|
316
336
|
|
|
317
|
-
[src/DatabaseConnection.ts:181](https://github.com/breautek/storm/blob/
|
|
337
|
+
[src/DatabaseConnection.ts:181](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L181)
|
|
318
338
|
|
|
319
339
|
___
|
|
320
340
|
|
|
@@ -328,7 +348,7 @@ ___
|
|
|
328
348
|
|
|
329
349
|
#### Defined in
|
|
330
350
|
|
|
331
|
-
[src/MySQLConnection.ts:
|
|
351
|
+
[src/MySQLConnection.ts:71](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L71)
|
|
332
352
|
|
|
333
353
|
___
|
|
334
354
|
|
|
@@ -336,7 +356,7 @@ ___
|
|
|
336
356
|
|
|
337
357
|
▸ **isReadOnly**(): `boolean`
|
|
338
358
|
|
|
339
|
-
Returns true if connection was created without
|
|
359
|
+
Returns true if connection was created without
|
|
340
360
|
write access
|
|
341
361
|
|
|
342
362
|
#### Returns
|
|
@@ -351,7 +371,7 @@ boolean
|
|
|
351
371
|
|
|
352
372
|
#### Defined in
|
|
353
373
|
|
|
354
|
-
[src/DatabaseConnection.ts:99](https://github.com/breautek/storm/blob/
|
|
374
|
+
[src/DatabaseConnection.ts:99](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L99)
|
|
355
375
|
|
|
356
376
|
___
|
|
357
377
|
|
|
@@ -361,6 +381,8 @@ ___
|
|
|
361
381
|
|
|
362
382
|
Implementation method to determine if the connection is in an active transaction.
|
|
363
383
|
|
|
384
|
+
**`Abstract`**
|
|
385
|
+
|
|
364
386
|
#### Returns
|
|
365
387
|
|
|
366
388
|
`boolean`
|
|
@@ -373,7 +395,7 @@ boolean
|
|
|
373
395
|
|
|
374
396
|
#### Defined in
|
|
375
397
|
|
|
376
|
-
[src/MySQLConnection.ts:
|
|
398
|
+
[src/MySQLConnection.ts:67](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L67)
|
|
377
399
|
|
|
378
400
|
___
|
|
379
401
|
|
|
@@ -383,7 +405,7 @@ ___
|
|
|
383
405
|
|
|
384
406
|
Queries the database for a dataset.
|
|
385
407
|
|
|
386
|
-
**`
|
|
408
|
+
**`Async`**
|
|
387
409
|
|
|
388
410
|
#### Type parameters
|
|
389
411
|
|
|
@@ -409,7 +431,7 @@ Promise<TQueryResult>
|
|
|
409
431
|
|
|
410
432
|
#### Defined in
|
|
411
433
|
|
|
412
|
-
[src/DatabaseConnection.ts:131](https://github.com/breautek/storm/blob/
|
|
434
|
+
[src/DatabaseConnection.ts:131](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L131)
|
|
413
435
|
|
|
414
436
|
___
|
|
415
437
|
|
|
@@ -419,6 +441,10 @@ ___
|
|
|
419
441
|
|
|
420
442
|
Rollsback a transaction. This will end a transaction.
|
|
421
443
|
|
|
444
|
+
**`Abstract`**
|
|
445
|
+
|
|
446
|
+
**`Async`**
|
|
447
|
+
|
|
422
448
|
#### Returns
|
|
423
449
|
|
|
424
450
|
`Promise`<`void`\>
|
|
@@ -431,7 +457,7 @@ Promise<void>
|
|
|
431
457
|
|
|
432
458
|
#### Defined in
|
|
433
459
|
|
|
434
|
-
[src/MySQLConnection.ts:
|
|
460
|
+
[src/MySQLConnection.ts:168](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L168)
|
|
435
461
|
|
|
436
462
|
___
|
|
437
463
|
|
|
@@ -455,7 +481,7 @@ ___
|
|
|
455
481
|
|
|
456
482
|
#### Defined in
|
|
457
483
|
|
|
458
|
-
[src/DatabaseConnection.ts:63](https://github.com/breautek/storm/blob/
|
|
484
|
+
[src/DatabaseConnection.ts:63](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L63)
|
|
459
485
|
|
|
460
486
|
___
|
|
461
487
|
|
|
@@ -481,7 +507,7 @@ Sets the timeout of this connectino
|
|
|
481
507
|
|
|
482
508
|
#### Defined in
|
|
483
509
|
|
|
484
|
-
[src/DatabaseConnection.ts:108](https://github.com/breautek/storm/blob/
|
|
510
|
+
[src/DatabaseConnection.ts:108](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L108)
|
|
485
511
|
|
|
486
512
|
___
|
|
487
513
|
|
|
@@ -491,6 +517,10 @@ ___
|
|
|
491
517
|
|
|
492
518
|
Implementation method to start a transaction.
|
|
493
519
|
|
|
520
|
+
**`Abstract`**
|
|
521
|
+
|
|
522
|
+
**`Async`**
|
|
523
|
+
|
|
494
524
|
#### Returns
|
|
495
525
|
|
|
496
526
|
`Promise`<`void`\>
|
|
@@ -503,7 +533,7 @@ Promise<void>
|
|
|
503
533
|
|
|
504
534
|
#### Defined in
|
|
505
535
|
|
|
506
|
-
[src/MySQLConnection.ts:
|
|
536
|
+
[src/MySQLConnection.ts:142](https://github.com/breautek/storm/blob/0875c73/src/MySQLConnection.ts#L142)
|
|
507
537
|
|
|
508
538
|
___
|
|
509
539
|
|
|
@@ -530,4 +560,4 @@ Readable
|
|
|
530
560
|
|
|
531
561
|
#### Defined in
|
|
532
562
|
|
|
533
|
-
[src/DatabaseConnection.ts:151](https://github.com/breautek/storm/blob/
|
|
563
|
+
[src/DatabaseConnection.ts:151](https://github.com/breautek/storm/blob/0875c73/src/DatabaseConnection.ts#L151)
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
#### Defined in
|
|
43
43
|
|
|
44
|
-
[src/MySQLDatabase.ts:27](https://github.com/breautek/storm/blob/
|
|
44
|
+
[src/MySQLDatabase.ts:27](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L27)
|
|
45
45
|
|
|
46
46
|
## Methods
|
|
47
47
|
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
#### Defined in
|
|
68
68
|
|
|
69
|
-
[src/MySQLDatabase.ts:49](https://github.com/breautek/storm/blob/
|
|
69
|
+
[src/MySQLDatabase.ts:49](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L49)
|
|
70
70
|
|
|
71
71
|
___
|
|
72
72
|
|
|
@@ -84,7 +84,7 @@ ___
|
|
|
84
84
|
|
|
85
85
|
#### Defined in
|
|
86
86
|
|
|
87
|
-
[src/MySQLDatabase.ts:59](https://github.com/breautek/storm/blob/
|
|
87
|
+
[src/MySQLDatabase.ts:59](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L59)
|
|
88
88
|
|
|
89
89
|
___
|
|
90
90
|
|
|
@@ -109,7 +109,7 @@ ___
|
|
|
109
109
|
|
|
110
110
|
#### Defined in
|
|
111
111
|
|
|
112
|
-
[src/MySQLDatabase.ts:72](https://github.com/breautek/storm/blob/
|
|
112
|
+
[src/MySQLDatabase.ts:72](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L72)
|
|
113
113
|
|
|
114
114
|
___
|
|
115
115
|
|
|
@@ -133,7 +133,7 @@ ___
|
|
|
133
133
|
|
|
134
134
|
#### Defined in
|
|
135
135
|
|
|
136
|
-
[src/MySQLDatabase.ts:54](https://github.com/breautek/storm/blob/
|
|
136
|
+
[src/MySQLDatabase.ts:54](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L54)
|
|
137
137
|
|
|
138
138
|
___
|
|
139
139
|
|
|
@@ -157,7 +157,7 @@ ___
|
|
|
157
157
|
|
|
158
158
|
#### Defined in
|
|
159
159
|
|
|
160
|
-
[src/Database.ts:31](https://github.com/breautek/storm/blob/
|
|
160
|
+
[src/Database.ts:31](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L31)
|
|
161
161
|
|
|
162
162
|
___
|
|
163
163
|
|
|
@@ -182,7 +182,7 @@ ___
|
|
|
182
182
|
|
|
183
183
|
#### Defined in
|
|
184
184
|
|
|
185
|
-
[src/Database.ts:45](https://github.com/breautek/storm/blob/
|
|
185
|
+
[src/Database.ts:45](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L45)
|
|
186
186
|
|
|
187
187
|
___
|
|
188
188
|
|
|
@@ -200,7 +200,7 @@ ___
|
|
|
200
200
|
|
|
201
201
|
#### Defined in
|
|
202
202
|
|
|
203
|
-
[src/Database.ts:77](https://github.com/breautek/storm/blob/
|
|
203
|
+
[src/Database.ts:77](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L77)
|
|
204
204
|
|
|
205
205
|
___
|
|
206
206
|
|
|
@@ -224,7 +224,7 @@ ___
|
|
|
224
224
|
|
|
225
225
|
#### Defined in
|
|
226
226
|
|
|
227
|
-
[src/MySQLDatabase.ts:40](https://github.com/breautek/storm/blob/
|
|
227
|
+
[src/MySQLDatabase.ts:40](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L40)
|
|
228
228
|
|
|
229
229
|
___
|
|
230
230
|
|
|
@@ -249,7 +249,7 @@ ___
|
|
|
249
249
|
|
|
250
250
|
#### Defined in
|
|
251
251
|
|
|
252
|
-
[src/Database.ts:64](https://github.com/breautek/storm/blob/
|
|
252
|
+
[src/Database.ts:64](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L64)
|
|
253
253
|
|
|
254
254
|
___
|
|
255
255
|
|
|
@@ -267,7 +267,7 @@ ___
|
|
|
267
267
|
|
|
268
268
|
#### Defined in
|
|
269
269
|
|
|
270
|
-
[src/Database.ts:40](https://github.com/breautek/storm/blob/
|
|
270
|
+
[src/Database.ts:40](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L40)
|
|
271
271
|
|
|
272
272
|
___
|
|
273
273
|
|
|
@@ -291,7 +291,7 @@ ___
|
|
|
291
291
|
|
|
292
292
|
#### Defined in
|
|
293
293
|
|
|
294
|
-
[src/Database.ts:54](https://github.com/breautek/storm/blob/
|
|
294
|
+
[src/Database.ts:54](https://github.com/breautek/storm/blob/0875c73/src/Database.ts#L54)
|
|
295
295
|
|
|
296
296
|
___
|
|
297
297
|
|
|
@@ -311,4 +311,4 @@ ___
|
|
|
311
311
|
|
|
312
312
|
#### Defined in
|
|
313
313
|
|
|
314
|
-
[src/MySQLDatabase.ts:45](https://github.com/breautek/storm/blob/
|
|
314
|
+
[src/MySQLDatabase.ts:45](https://github.com/breautek/storm/blob/0875c73/src/MySQLDatabase.ts#L45)
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
- [getErrorResponse](NotImplementedError.md#geterrorresponse)
|
|
29
29
|
- [getExitCode](NotImplementedError.md#getexitcode)
|
|
30
30
|
- [getHTTPCode](NotImplementedError.md#gethttpcode)
|
|
31
|
+
- [getLocaleCode](NotImplementedError.md#getlocalecode)
|
|
32
|
+
- [getLocaleParameters](NotImplementedError.md#getlocaleparameters)
|
|
31
33
|
- [getMessage](NotImplementedError.md#getmessage)
|
|
32
34
|
- [getPrivateDetails](NotImplementedError.md#getprivatedetails)
|
|
33
35
|
- [getPublicDetails](NotImplementedError.md#getpublicdetails)
|
|
@@ -51,7 +53,7 @@
|
|
|
51
53
|
|
|
52
54
|
#### Defined in
|
|
53
55
|
|
|
54
|
-
[src/NotImplementedError.ts:27](https://github.com/breautek/storm/blob/
|
|
56
|
+
[src/NotImplementedError.ts:27](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L27)
|
|
55
57
|
|
|
56
58
|
## Properties
|
|
57
59
|
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
|
|
66
68
|
#### Defined in
|
|
67
69
|
|
|
68
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
70
|
+
node_modules/typescript/lib/lib.es5.d.ts:1041
|
|
69
71
|
|
|
70
72
|
___
|
|
71
73
|
|
|
@@ -79,7 +81,7 @@ ___
|
|
|
79
81
|
|
|
80
82
|
#### Defined in
|
|
81
83
|
|
|
82
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
84
|
+
node_modules/typescript/lib/lib.es5.d.ts:1040
|
|
83
85
|
|
|
84
86
|
___
|
|
85
87
|
|
|
@@ -93,7 +95,7 @@ ___
|
|
|
93
95
|
|
|
94
96
|
#### Defined in
|
|
95
97
|
|
|
96
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
98
|
+
node_modules/typescript/lib/lib.es5.d.ts:1042
|
|
97
99
|
|
|
98
100
|
___
|
|
99
101
|
|
|
@@ -107,7 +109,9 @@ ___
|
|
|
107
109
|
|
|
108
110
|
Optional override for formatting stack traces
|
|
109
111
|
|
|
110
|
-
**`
|
|
112
|
+
**`See`**
|
|
113
|
+
|
|
114
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
111
115
|
|
|
112
116
|
##### Parameters
|
|
113
117
|
|
|
@@ -126,7 +130,7 @@ Optional override for formatting stack traces
|
|
|
126
130
|
|
|
127
131
|
#### Defined in
|
|
128
132
|
|
|
129
|
-
node_modules/@types/node/globals.d.ts:11
|
|
133
|
+
node_modules/@types/node/ts4.8/globals.d.ts:11
|
|
130
134
|
|
|
131
135
|
___
|
|
132
136
|
|
|
@@ -140,7 +144,7 @@ ___
|
|
|
140
144
|
|
|
141
145
|
#### Defined in
|
|
142
146
|
|
|
143
|
-
node_modules/@types/node/globals.d.ts:13
|
|
147
|
+
node_modules/@types/node/ts4.8/globals.d.ts:13
|
|
144
148
|
|
|
145
149
|
## Methods
|
|
146
150
|
|
|
@@ -158,7 +162,7 @@ node_modules/@types/node/globals.d.ts:13
|
|
|
158
162
|
|
|
159
163
|
#### Defined in
|
|
160
164
|
|
|
161
|
-
[src/NotImplementedError.ts:38](https://github.com/breautek/storm/blob/
|
|
165
|
+
[src/NotImplementedError.ts:38](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L38)
|
|
162
166
|
|
|
163
167
|
___
|
|
164
168
|
|
|
@@ -176,7 +180,7 @@ ___
|
|
|
176
180
|
|
|
177
181
|
#### Defined in
|
|
178
182
|
|
|
179
|
-
[src/StormError.ts:
|
|
183
|
+
[src/StormError.ts:76](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L76)
|
|
180
184
|
|
|
181
185
|
___
|
|
182
186
|
|
|
@@ -194,7 +198,7 @@ ___
|
|
|
194
198
|
|
|
195
199
|
#### Defined in
|
|
196
200
|
|
|
197
|
-
[src/StormError.ts:
|
|
201
|
+
[src/StormError.ts:97](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L97)
|
|
198
202
|
|
|
199
203
|
___
|
|
200
204
|
|
|
@@ -212,7 +216,43 @@ ___
|
|
|
212
216
|
|
|
213
217
|
#### Defined in
|
|
214
218
|
|
|
215
|
-
[src/NotImplementedError.ts:42](https://github.com/breautek/storm/blob/
|
|
219
|
+
[src/NotImplementedError.ts:42](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L42)
|
|
220
|
+
|
|
221
|
+
___
|
|
222
|
+
|
|
223
|
+
### getLocaleCode
|
|
224
|
+
|
|
225
|
+
▸ **getLocaleCode**(): `string`
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`string`
|
|
230
|
+
|
|
231
|
+
#### Overrides
|
|
232
|
+
|
|
233
|
+
[StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
|
|
234
|
+
|
|
235
|
+
#### Defined in
|
|
236
|
+
|
|
237
|
+
[src/NotImplementedError.ts:46](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L46)
|
|
238
|
+
|
|
239
|
+
___
|
|
240
|
+
|
|
241
|
+
### getLocaleParameters
|
|
242
|
+
|
|
243
|
+
▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
|
|
244
|
+
|
|
245
|
+
#### Returns
|
|
246
|
+
|
|
247
|
+
`Record`<`string`, `string`\>
|
|
248
|
+
|
|
249
|
+
#### Overrides
|
|
250
|
+
|
|
251
|
+
[StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
|
|
252
|
+
|
|
253
|
+
#### Defined in
|
|
254
|
+
|
|
255
|
+
[src/NotImplementedError.ts:50](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L50)
|
|
216
256
|
|
|
217
257
|
___
|
|
218
258
|
|
|
@@ -230,7 +270,7 @@ ___
|
|
|
230
270
|
|
|
231
271
|
#### Defined in
|
|
232
272
|
|
|
233
|
-
[src/NotImplementedError.ts:33](https://github.com/breautek/storm/blob/
|
|
273
|
+
[src/NotImplementedError.ts:33](https://github.com/breautek/storm/blob/0875c73/src/NotImplementedError.ts#L33)
|
|
234
274
|
|
|
235
275
|
___
|
|
236
276
|
|
|
@@ -238,7 +278,7 @@ ___
|
|
|
238
278
|
|
|
239
279
|
▸ **getPrivateDetails**(): `INotImplementedErrorOptions`
|
|
240
280
|
|
|
241
|
-
Private details are only logged to the server log.
|
|
281
|
+
Private details are only logged to the server log.
|
|
242
282
|
They are kept secret from the client.
|
|
243
283
|
|
|
244
284
|
#### Returns
|
|
@@ -251,7 +291,7 @@ They are kept secret from the client.
|
|
|
251
291
|
|
|
252
292
|
#### Defined in
|
|
253
293
|
|
|
254
|
-
[src/StormError.ts:
|
|
294
|
+
[src/StormError.ts:68](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L68)
|
|
255
295
|
|
|
256
296
|
___
|
|
257
297
|
|
|
@@ -271,7 +311,7 @@ Sends details to the client.
|
|
|
271
311
|
|
|
272
312
|
#### Defined in
|
|
273
313
|
|
|
274
|
-
[src/StormError.ts:
|
|
314
|
+
[src/StormError.ts:60](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L60)
|
|
275
315
|
|
|
276
316
|
___
|
|
277
317
|
|
|
@@ -298,4 +338,4 @@ Create .stack property on a target object
|
|
|
298
338
|
|
|
299
339
|
#### Defined in
|
|
300
340
|
|
|
301
|
-
node_modules/@types/node/globals.d.ts:4
|
|
341
|
+
node_modules/@types/node/ts4.8/globals.d.ts:4
|