@breautek/storm 3.1.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/docs/classes/Application.Application-1.md +54 -24
  3. package/docs/classes/BackendAuthenticationMiddleware.BackendAuthenticationMiddleware-1.md +3 -4
  4. package/docs/classes/CORSMiddleware.CORSMiddleware-1.md +6 -6
  5. package/docs/classes/ConfigLoader.ConfigLoader-1.md +1 -1
  6. package/docs/classes/Database.Database-1.md +40 -10
  7. package/docs/classes/DatabaseConnection.DatabaseConnection-1.md +19 -19
  8. package/docs/classes/DatabaseQueryError.DatabaseQueryError-1.md +8 -8
  9. package/docs/classes/DiskSpaceError.DiskSpaceError-1.md +8 -8
  10. package/docs/classes/DropTemporaryTableQuery.DropTemporaryTableQuery-1.md +8 -8
  11. package/docs/classes/DumpStream.DumpStream-1.md +1 -1
  12. package/docs/classes/DuplicateEntryError.DuplicateEntryError-1.md +8 -8
  13. package/docs/classes/EntityNotFoundError.EntityNotFoundError-1.md +8 -8
  14. package/docs/classes/ExpiredTokenError.ExpiredTokenError-1.md +8 -8
  15. package/docs/classes/Handler.Handler-1.md +13 -13
  16. package/docs/classes/InternalError.InternalError-1.md +8 -8
  17. package/docs/classes/InvalidConfigError.InvalidConfigError-1.md +8 -8
  18. package/docs/classes/InvalidCredentialsError.InvalidCredentialsError-1.md +8 -8
  19. package/docs/classes/InvalidValueError.InvalidValueError-1.md +8 -8
  20. package/docs/classes/JWTVerifyOptionsParser.JWTVerifyOptionsParser-1.md +2 -2
  21. package/docs/classes/ManagedDatabaseConnection.ManagedDatabaseConnection-1.md +19 -19
  22. package/docs/classes/Middleware.Middleware-1.md +3 -3
  23. package/docs/classes/MissingConfigError.MissingConfigError-1.md +8 -8
  24. package/docs/classes/MissingParameterError.MissingParameterError-1.md +8 -8
  25. package/docs/classes/MySQLConnection.MySQLConnection-1.md +20 -20
  26. package/docs/classes/MySQLDatabase.MySQLDatabase-1.md +49 -11
  27. package/docs/classes/Query.Query-1.md +8 -8
  28. package/docs/classes/RawQuery.RawQuery-1.md +8 -8
  29. package/docs/classes/Request.Request-1.md +18 -18
  30. package/docs/classes/Response.Response-1.md +11 -11
  31. package/docs/classes/ResponseData.ResponseData-1.md +7 -7
  32. package/docs/classes/ServiceProvider.ServiceProvider-1.md +15 -15
  33. package/docs/classes/ServiceResponse.ServiceResponse-1.md +4 -4
  34. package/docs/classes/StormError.StormError-1.md +8 -8
  35. package/docs/classes/TemporaryTableQuery.TemporaryTableQuery-1.md +8 -8
  36. package/docs/classes/Token.Token-1.md +2 -2
  37. package/docs/classes/TokenManager.TokenManager-1.md +4 -4
  38. package/docs/classes/UnauthorizedAccessError.UnauthorizedAccessError-1.md +8 -8
  39. package/docs/classes/private_CommitQuery.CommitQuery.md +8 -8
  40. package/docs/classes/private_RollbackQuery.RollbackQuery.md +8 -8
  41. package/docs/classes/private_StartTransactionQuery.StartTransactionQuery.md +8 -8
  42. package/docs/enums/ApplicationEvent.ApplicationEvent-1.md +1 -1
  43. package/docs/enums/ErrorCode.ErrorCode-1.md +9 -9
  44. package/docs/enums/ExitCode.ExitCode-1.md +2 -2
  45. package/docs/enums/HTTPMethod.HTTPMethod-1.md +4 -4
  46. package/docs/enums/JWTError.JWTError-1.md +2 -2
  47. package/docs/enums/StatusCode.StatusCode-1.md +48 -48
  48. package/docs/interfaces/DropTemporaryTableQuery.IDropTemporaryTableQueryInput.md +1 -1
  49. package/docs/interfaces/IConfig.IConfig-1.md +8 -8
  50. package/docs/interfaces/IDatabaseConfig.IDatabaseConfig-1.md +6 -6
  51. package/docs/interfaces/IDatabaseConnection.IDatabaseConnection-1.md +14 -14
  52. package/docs/interfaces/IFormData.IFormData-1.md +2 -2
  53. package/docs/interfaces/IHandler.IHandler-1.md +1 -1
  54. package/docs/interfaces/IInsertQueryResult.IInsertQueryResult-1.md +3 -3
  55. package/docs/interfaces/IJWTVerifyOptions.IJWTVerifyOptions-1.md +1 -1
  56. package/docs/interfaces/IRequestResponse.IRequestResponse-1.md +2 -2
  57. package/docs/interfaces/IUpdateQueryResult.IUpdateQueryResult-1.md +2 -2
  58. package/docs/interfaces/StormError.IErrorResponse.md +4 -4
  59. package/docs/interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md +2 -2
  60. package/docs/modules/DatabaseConnection.md +2 -2
  61. package/docs/modules/Handler.md +2 -2
  62. package/docs/modules/IDeleteQueryResult.md +1 -1
  63. package/docs/modules/Response.md +1 -1
  64. package/docs/modules/instance.md +2 -2
  65. package/lib/Application.d.ts +2 -0
  66. package/lib/Application.js +9 -1
  67. package/lib/Application.js.map +1 -1
  68. package/lib/BackendAuthenticationMiddleware.d.ts +1 -2
  69. package/lib/BackendAuthenticationMiddleware.js +1 -1
  70. package/lib/BackendAuthenticationMiddleware.js.map +1 -1
  71. package/lib/ConfigLoader.js +1 -1
  72. package/lib/ConfigLoader.js.map +1 -1
  73. package/lib/Database.d.ts +2 -0
  74. package/lib/Database.js +3 -0
  75. package/lib/Database.js.map +1 -1
  76. package/lib/Handler.js +1 -3
  77. package/lib/Handler.js.map +1 -1
  78. package/lib/MySQLDatabase.d.ts +1 -0
  79. package/lib/MySQLDatabase.js +11 -0
  80. package/lib/MySQLDatabase.js.map +1 -1
  81. package/package.json +17 -17
  82. package/src/Application.ts +11 -1
  83. package/src/BackendAuthenticationMiddleware.ts +1 -2
  84. package/src/ConfigLoader.ts +1 -1
  85. package/src/Database.ts +5 -0
  86. package/src/Handler.ts +1 -3
  87. package/src/MySQLDatabase.ts +13 -0
  88. package/src/defs/merge-change.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -4,8 +4,36 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v3.2.1](https://github.com/breautek/storm/compare/v3.2.0...v3.2.1)
8
+
9
+ - deproll [`8a65682`](https://github.com/breautek/storm/commit/8a656821743454af66978aae441d61242b8adb15)
10
+ - replaced merge-change with my own fork that contains vulnerability patches [`72412c9`](https://github.com/breautek/storm/commit/72412c9d391e4728bbd3af10ed5108cb2373b64e)
11
+
12
+ #### [v3.2.0](https://github.com/breautek/storm/compare/v3.1.2...v3.2.0)
13
+
14
+ > 3 October 2021
15
+
16
+ - deproll [`477d756`](https://github.com/breautek/storm/commit/477d7569db92758cec31c8a80a6ae53c5198d33a)
17
+ - breaking: Added _destroy abstract api to Database, intended for destroying connection pools [`a5c8a97`](https://github.com/breautek/storm/commit/a5c8a9708bc469a7191eb06d7a68289b1372543a)
18
+
19
+ #### [v3.1.2](https://github.com/breautek/storm/compare/v3.1.1...v3.1.2)
20
+
21
+ > 8 September 2021
22
+
23
+ - deproll [`012dd73`](https://github.com/breautek/storm/commit/012dd73e505c0ffaa91a18f2575c411fe7ed8579)
24
+ - Breaking changes docs [`824e19f`](https://github.com/breautek/storm/commit/824e19f1c6e50aadd7a4974c89892300b180b008)
25
+ - fix: BackendAuthenticationMiddleware from requiring the Request object, it was never actually used anyway [`6b087c5`](https://github.com/breautek/storm/commit/6b087c59033c9b8e607ea0e6e37d06f13c7ae28e)
26
+
27
+ #### [v3.1.1](https://github.com/breautek/storm/compare/v3.1.0...v3.1.1)
28
+
29
+ > 3 September 2021
30
+
31
+ - fix: middleware rejection handling (it was being handled twice) [`3845ece`](https://github.com/breautek/storm/commit/3845ecefe5bedef8b20d704e16ba88a866335e90)
32
+
7
33
  #### [v3.1.0](https://github.com/breautek/storm/compare/v3.0.3...v3.1.0)
8
34
 
35
+ > 2 September 2021
36
+
9
37
  - eslint upgrade and fix some tests [`3449719`](https://github.com/breautek/storm/commit/3449719984b8e7eda4fc27313e2cc7040532342e)
10
38
  - feat: Query.onPreQuery hook [`e62d8fa`](https://github.com/breautek/storm/commit/e62d8faea5111d22e3a8d1b05e246788ee180f99)
11
39
 
@@ -38,6 +38,8 @@ Main entry point for the Application. Should be extended and have the abstract m
38
38
 
39
39
  - [\_attachHandlers](Application.Application-1.md#_attachhandlers)
40
40
  - [\_buildArgOptions](Application.Application-1.md#_buildargoptions)
41
+ - [\_closeDatabase](Application.Application-1.md#_closedatabase)
42
+ - [\_closeSocket](Application.Application-1.md#_closesocket)
41
43
  - [\_initDB](Application.Application-1.md#_initdb)
42
44
  - [\_initLogger](Application.Application-1.md#_initlogger)
43
45
  - [\_initialize](Application.Application-1.md#_initialize)
@@ -106,7 +108,7 @@ EventEmitter.constructor
106
108
 
107
109
  #### Defined in
108
110
 
109
- [src/Application.ts:64](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L64)
111
+ [src/Application.ts:64](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L64)
110
112
 
111
113
  ## Properties
112
114
 
@@ -190,7 +192,7 @@ Promise<void>
190
192
 
191
193
  #### Defined in
192
194
 
193
- [src/Application.ts:258](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L258)
195
+ [src/Application.ts:268](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L268)
194
196
 
195
197
  ___
196
198
 
@@ -210,7 +212,35 @@ ___
210
212
 
211
213
  #### Defined in
212
214
 
213
- [src/Application.ts:202](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L202)
215
+ [src/Application.ts:202](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L202)
216
+
217
+ ___
218
+
219
+ ### \_closeDatabase
220
+
221
+ ▸ `Protected` **_closeDatabase**(): `Promise`<`void`\>
222
+
223
+ #### Returns
224
+
225
+ `Promise`<`void`\>
226
+
227
+ #### Defined in
228
+
229
+ [src/Application.ts:245](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L245)
230
+
231
+ ___
232
+
233
+ ### \_closeSocket
234
+
235
+ ▸ `Protected` **_closeSocket**(): `Promise`<`void`\>
236
+
237
+ #### Returns
238
+
239
+ `Promise`<`void`\>
240
+
241
+ #### Defined in
242
+
243
+ [src/Application.ts:251](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L251)
214
244
 
215
245
  ___
216
246
 
@@ -232,7 +262,7 @@ Subclasses are expected to override this to configure their database setup, if t
232
262
 
233
263
  #### Defined in
234
264
 
235
- [src/Application.ts:367](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L367)
265
+ [src/Application.ts:377](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L377)
236
266
 
237
267
  ___
238
268
 
@@ -252,7 +282,7 @@ ___
252
282
 
253
283
  #### Defined in
254
284
 
255
- [src/Application.ts:165](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L165)
285
+ [src/Application.ts:165](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L165)
256
286
 
257
287
  ___
258
288
 
@@ -272,7 +302,7 @@ ___
272
302
 
273
303
  #### Defined in
274
304
 
275
- [src/Application.ts:161](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L161)
305
+ [src/Application.ts:161](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L161)
276
306
 
277
307
  ___
278
308
 
@@ -286,7 +316,7 @@ ___
286
316
 
287
317
  #### Defined in
288
318
 
289
- [src/Application.ts:371](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L371)
319
+ [src/Application.ts:381](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L381)
290
320
 
291
321
  ___
292
322
 
@@ -308,7 +338,7 @@ Invoked once the config has been loaded and ready to be used.
308
338
 
309
339
  #### Defined in
310
340
 
311
- [src/Application.ts:311](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L311)
341
+ [src/Application.ts:321](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L321)
312
342
 
313
343
  ___
314
344
 
@@ -324,7 +354,7 @@ Invoked when the application is considered ready for operation.
324
354
 
325
355
  #### Defined in
326
356
 
327
- [src/Application.ts:376](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L376)
357
+ [src/Application.ts:386](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L386)
328
358
 
329
359
  ___
330
360
 
@@ -374,7 +404,7 @@ ___
374
404
 
375
405
  #### Defined in
376
406
 
377
- [src/Application.ts:221](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L221)
407
+ [src/Application.ts:221](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L221)
378
408
 
379
409
  ___
380
410
 
@@ -388,7 +418,7 @@ ___
388
418
 
389
419
  #### Defined in
390
420
 
391
- [src/Application.ts:241](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L241)
421
+ [src/Application.ts:241](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L241)
392
422
 
393
423
  ___
394
424
 
@@ -505,7 +535,7 @@ command line arguments
505
535
 
506
536
  #### Defined in
507
537
 
508
- [src/Application.ts:338](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L338)
538
+ [src/Application.ts:348](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L348)
509
539
 
510
540
  ___
511
541
 
@@ -521,7 +551,7 @@ the config object.
521
551
 
522
552
  #### Defined in
523
553
 
524
- [src/Application.ts:295](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L295)
554
+ [src/Application.ts:305](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L305)
525
555
 
526
556
  ___
527
557
 
@@ -537,7 +567,7 @@ the database pool. This will need to be casted based on your preferred database
537
567
 
538
568
  #### Defined in
539
569
 
540
- [src/Application.ts:331](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L331)
570
+ [src/Application.ts:341](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L341)
541
571
 
542
572
  ___
543
573
 
@@ -551,7 +581,7 @@ ___
551
581
 
552
582
  #### Defined in
553
583
 
554
- [src/Application.ts:169](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L169)
584
+ [src/Application.ts:169](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L169)
555
585
 
556
586
  ___
557
587
 
@@ -590,7 +620,7 @@ the application name
590
620
 
591
621
  #### Defined in
592
622
 
593
- [src/Application.ts:284](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L284)
623
+ [src/Application.ts:294](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L294)
594
624
 
595
625
  ___
596
626
 
@@ -604,7 +634,7 @@ ___
604
634
 
605
635
  #### Defined in
606
636
 
607
- [src/Application.ts:173](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L173)
637
+ [src/Application.ts:173](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L173)
608
638
 
609
639
  ___
610
640
 
@@ -618,7 +648,7 @@ ___
618
648
 
619
649
  #### Defined in
620
650
 
621
- [src/Application.ts:204](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L204)
651
+ [src/Application.ts:204](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L204)
622
652
 
623
653
  ___
624
654
 
@@ -634,7 +664,7 @@ The maximum size limit for incoming requests that this service needs to handle.
634
664
 
635
665
  #### Defined in
636
666
 
637
- [src/Application.ts:211](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L211)
667
+ [src/Application.ts:211](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L211)
638
668
 
639
669
  ___
640
670
 
@@ -650,7 +680,7 @@ the token manager
650
680
 
651
681
  #### Defined in
652
682
 
653
- [src/Application.ts:324](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L324)
683
+ [src/Application.ts:334](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L334)
654
684
 
655
685
  ___
656
686
 
@@ -734,7 +764,7 @@ ___
734
764
 
735
765
  #### Defined in
736
766
 
737
- [src/Application.ts:264](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L264)
767
+ [src/Application.ts:274](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L274)
738
768
 
739
769
  ___
740
770
 
@@ -1191,7 +1221,7 @@ Sets the TokenManager to be used for authentication.
1191
1221
 
1192
1222
  #### Defined in
1193
1223
 
1194
- [src/Application.ts:317](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L317)
1224
+ [src/Application.ts:327](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L327)
1195
1225
 
1196
1226
  ___
1197
1227
 
@@ -1207,7 +1237,7 @@ true if the Application should bind to an IP address
1207
1237
 
1208
1238
  #### Defined in
1209
1239
 
1210
- [src/Application.ts:302](https://github.com/breautek/storm/blob/3449719/src/Application.ts#L302)
1240
+ [src/Application.ts:312](https://github.com/breautek/storm/blob/72412c9/src/Application.ts#L312)
1211
1241
 
1212
1242
  ___
1213
1243
 
@@ -1396,7 +1426,7 @@ event or that is rejected if the `EventEmitter` emits `'error'` while waiting.
1396
1426
  The `Promise` will resolve with an array of all the arguments emitted to the
1397
1427
  given event.
1398
1428
 
1399
- This method is intentionally generic and works with the web platform[EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
1429
+ This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
1400
1430
  semantics and does not listen to the `'error'` event.
1401
1431
 
1402
1432
  ```js
@@ -27,20 +27,19 @@ for their specific use cases.
27
27
 
28
28
  #### Defined in
29
29
 
30
- [src/BackendAuthenticationMiddleware.ts:36](https://github.com/breautek/storm/blob/3449719/src/BackendAuthenticationMiddleware.ts#L36)
30
+ [src/BackendAuthenticationMiddleware.ts:35](https://github.com/breautek/storm/blob/72412c9/src/BackendAuthenticationMiddleware.ts#L35)
31
31
 
32
32
  ## Methods
33
33
 
34
34
  ### execute
35
35
 
36
- ▸ **execute**(`request`, `response`, `options?`): `Promise`<`any`\>
36
+ ▸ **execute**(`request`, `options?`): `Promise`<`any`\>
37
37
 
38
38
  #### Parameters
39
39
 
40
40
  | Name | Type | Description |
41
41
  | :------ | :------ | :------ |
42
42
  | `request` | [`Request`](Request.Request-1.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.IAuthTokenData-1.md)\> | |
43
- | `response` | [`Response`](Response.Response-1.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/StormError.IErrorResponse.md)\> | |
44
43
  | `options?` | `any` | Arbituary object containing any relevant information used for authentication. |
45
44
 
46
45
  #### Returns
@@ -49,4 +48,4 @@ for their specific use cases.
49
48
 
50
49
  #### Defined in
51
50
 
52
- [src/BackendAuthenticationMiddleware.ts:47](https://github.com/breautek/storm/blob/3449719/src/BackendAuthenticationMiddleware.ts#L47)
51
+ [src/BackendAuthenticationMiddleware.ts:46](https://github.com/breautek/storm/blob/72412c9/src/BackendAuthenticationMiddleware.ts#L46)
@@ -48,7 +48,7 @@ communicate with CORS enabled clients.
48
48
 
49
49
  #### Defined in
50
50
 
51
- [src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/3449719/src/CORSMiddleware.ts#L39)
51
+ [src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/72412c9/src/CORSMiddleware.ts#L39)
52
52
 
53
53
  ## Methods
54
54
 
@@ -73,7 +73,7 @@ communicate with CORS enabled clients.
73
73
 
74
74
  #### Defined in
75
75
 
76
- [src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/3449719/src/CORSMiddleware.ts#L75)
76
+ [src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/72412c9/src/CORSMiddleware.ts#L75)
77
77
 
78
78
  ___
79
79
 
@@ -98,7 +98,7 @@ ___
98
98
 
99
99
  #### Defined in
100
100
 
101
- [src/Middleware.ts:27](https://github.com/breautek/storm/blob/3449719/src/Middleware.ts#L27)
101
+ [src/Middleware.ts:27](https://github.com/breautek/storm/blob/72412c9/src/Middleware.ts#L27)
102
102
 
103
103
  ___
104
104
 
@@ -112,7 +112,7 @@ ___
112
112
 
113
113
  #### Defined in
114
114
 
115
- [src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/3449719/src/CORSMiddleware.ts#L54)
115
+ [src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/72412c9/src/CORSMiddleware.ts#L54)
116
116
 
117
117
  ___
118
118
 
@@ -126,7 +126,7 @@ ___
126
126
 
127
127
  #### Defined in
128
128
 
129
- [src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/3449719/src/CORSMiddleware.ts#L64)
129
+ [src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/72412c9/src/CORSMiddleware.ts#L64)
130
130
 
131
131
  ___
132
132
 
@@ -142,4 +142,4 @@ Sets the allowed origin. By default,
142
142
 
143
143
  #### Defined in
144
144
 
145
- [src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/3449719/src/CORSMiddleware.ts#L50)
145
+ [src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/72412c9/src/CORSMiddleware.ts#L50)
@@ -28,4 +28,4 @@
28
28
 
29
29
  #### Defined in
30
30
 
31
- [src/ConfigLoader.ts:34](https://github.com/breautek/storm/blob/3449719/src/ConfigLoader.ts#L34)
31
+ [src/ConfigLoader.ts:34](https://github.com/breautek/storm/blob/72412c9/src/ConfigLoader.ts#L34)
@@ -26,10 +26,12 @@
26
26
  ### Methods
27
27
 
28
28
  - [\_addNode](Database.Database-1.md#_addnode)
29
+ - [\_destroy](Database.Database-1.md#_destroy)
29
30
  - [\_getConnection](Database.Database-1.md#_getconnection)
30
31
  - [\_removeNode](Database.Database-1.md#_removenode)
31
32
  - [addMaster](Database.Database-1.md#addmaster)
32
33
  - [addSlave](Database.Database-1.md#addslave)
34
+ - [destroy](Database.Database-1.md#destroy)
33
35
  - [escape](Database.Database-1.md#escape)
34
36
  - [getConnection](Database.Database-1.md#getconnection)
35
37
  - [removeMaster](Database.Database-1.md#removemaster)
@@ -50,7 +52,7 @@
50
52
 
51
53
  #### Defined in
52
54
 
53
- [src/Database.ts:28](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L28)
55
+ [src/Database.ts:28](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L28)
54
56
 
55
57
  ## Methods
56
58
 
@@ -71,7 +73,21 @@
71
73
 
72
74
  #### Defined in
73
75
 
74
- [src/Database.ts:78](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L78)
76
+ [src/Database.ts:83](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L83)
77
+
78
+ ___
79
+
80
+ ### \_destroy
81
+
82
+ ▸ `Protected` `Abstract` **_destroy**(): `Promise`<`void`\>
83
+
84
+ #### Returns
85
+
86
+ `Promise`<`void`\>
87
+
88
+ #### Defined in
89
+
90
+ [src/Database.ts:82](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L82)
75
91
 
76
92
  ___
77
93
 
@@ -92,7 +108,7 @@ ___
92
108
 
93
109
  #### Defined in
94
110
 
95
- [src/Database.ts:80](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L80)
111
+ [src/Database.ts:85](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L85)
96
112
 
97
113
  ___
98
114
 
@@ -112,7 +128,7 @@ ___
112
128
 
113
129
  #### Defined in
114
130
 
115
- [src/Database.ts:79](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L79)
131
+ [src/Database.ts:84](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L84)
116
132
 
117
133
  ___
118
134
 
@@ -132,7 +148,7 @@ ___
132
148
 
133
149
  #### Defined in
134
150
 
135
- [src/Database.ts:32](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L32)
151
+ [src/Database.ts:32](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L32)
136
152
 
137
153
  ___
138
154
 
@@ -153,7 +169,21 @@ ___
153
169
 
154
170
  #### Defined in
155
171
 
156
- [src/Database.ts:46](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L46)
172
+ [src/Database.ts:46](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L46)
173
+
174
+ ___
175
+
176
+ ### destroy
177
+
178
+ ▸ **destroy**(): `Promise`<`void`\>
179
+
180
+ #### Returns
181
+
182
+ `Promise`<`void`\>
183
+
184
+ #### Defined in
185
+
186
+ [src/Database.ts:78](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L78)
157
187
 
158
188
  ___
159
189
 
@@ -173,7 +203,7 @@ ___
173
203
 
174
204
  #### Defined in
175
205
 
176
- [src/Database.ts:81](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L81)
206
+ [src/Database.ts:86](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L86)
177
207
 
178
208
  ___
179
209
 
@@ -194,7 +224,7 @@ ___
194
224
 
195
225
  #### Defined in
196
226
 
197
- [src/Database.ts:65](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L65)
227
+ [src/Database.ts:65](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L65)
198
228
 
199
229
  ___
200
230
 
@@ -208,7 +238,7 @@ ___
208
238
 
209
239
  #### Defined in
210
240
 
211
- [src/Database.ts:41](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L41)
241
+ [src/Database.ts:41](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L41)
212
242
 
213
243
  ___
214
244
 
@@ -228,4 +258,4 @@ ___
228
258
 
229
259
  #### Defined in
230
260
 
231
- [src/Database.ts:55](https://github.com/breautek/storm/blob/3449719/src/Database.ts#L55)
261
+ [src/Database.ts:55](https://github.com/breautek/storm/blob/72412c9/src/Database.ts#L55)
@@ -75,7 +75,7 @@ Do not call `new Database` directly. Use `Database.getConnection` to create a `D
75
75
 
76
76
  #### Defined in
77
77
 
78
- [src/DatabaseConnection.ts:44](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L44)
78
+ [src/DatabaseConnection.ts:44](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L44)
79
79
 
80
80
  ## Methods
81
81
 
@@ -102,7 +102,7 @@ Promise<void>
102
102
 
103
103
  #### Defined in
104
104
 
105
- [src/DatabaseConnection.ts:239](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L239)
105
+ [src/DatabaseConnection.ts:239](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L239)
106
106
 
107
107
  ___
108
108
 
@@ -135,7 +135,7 @@ Promise
135
135
 
136
136
  #### Defined in
137
137
 
138
- [src/DatabaseConnection.ts:250](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L250)
138
+ [src/DatabaseConnection.ts:250](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L250)
139
139
 
140
140
  ___
141
141
 
@@ -162,7 +162,7 @@ but returns a `Readable` stream instead.
162
162
 
163
163
  #### Defined in
164
164
 
165
- [src/DatabaseConnection.ts:262](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L262)
165
+ [src/DatabaseConnection.ts:262](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L262)
166
166
 
167
167
  ___
168
168
 
@@ -194,7 +194,7 @@ Promise<void>
194
194
 
195
195
  #### Defined in
196
196
 
197
- [src/DatabaseConnection.ts:169](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L169)
197
+ [src/DatabaseConnection.ts:169](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L169)
198
198
 
199
199
  ___
200
200
 
@@ -220,7 +220,7 @@ Promise<void>
220
220
 
221
221
  #### Defined in
222
222
 
223
- [src/DatabaseConnection.ts:220](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L220)
223
+ [src/DatabaseConnection.ts:220](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L220)
224
224
 
225
225
  ___
226
226
 
@@ -248,7 +248,7 @@ Promise<void>
248
248
 
249
249
  #### Defined in
250
250
 
251
- [src/DatabaseConnection.ts:211](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L211)
251
+ [src/DatabaseConnection.ts:211](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L211)
252
252
 
253
253
  ___
254
254
 
@@ -270,7 +270,7 @@ any
270
270
 
271
271
  #### Defined in
272
272
 
273
- [src/DatabaseConnection.ts:91](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L91)
273
+ [src/DatabaseConnection.ts:91](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L91)
274
274
 
275
275
  ___
276
276
 
@@ -293,7 +293,7 @@ string - A stacktrace
293
293
 
294
294
  #### Defined in
295
295
 
296
- [src/DatabaseConnection.ts:73](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L73)
296
+ [src/DatabaseConnection.ts:73](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L73)
297
297
 
298
298
  ___
299
299
 
@@ -315,7 +315,7 @@ number in milliseconds
315
315
 
316
316
  #### Defined in
317
317
 
318
- [src/DatabaseConnection.ts:121](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L121)
318
+ [src/DatabaseConnection.ts:121](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L121)
319
319
 
320
320
  ___
321
321
 
@@ -335,7 +335,7 @@ Returns true if the connection has been closed.
335
335
 
336
336
  #### Defined in
337
337
 
338
- [src/DatabaseConnection.ts:182](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L182)
338
+ [src/DatabaseConnection.ts:182](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L182)
339
339
 
340
340
  ___
341
341
 
@@ -358,7 +358,7 @@ boolean
358
358
 
359
359
  #### Defined in
360
360
 
361
- [src/DatabaseConnection.ts:100](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L100)
361
+ [src/DatabaseConnection.ts:100](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L100)
362
362
 
363
363
  ___
364
364
 
@@ -382,7 +382,7 @@ boolean
382
382
 
383
383
  #### Defined in
384
384
 
385
- [src/DatabaseConnection.ts:201](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L201)
385
+ [src/DatabaseConnection.ts:201](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L201)
386
386
 
387
387
  ___
388
388
 
@@ -418,7 +418,7 @@ Promise<TQueryResult>
418
418
 
419
419
  #### Defined in
420
420
 
421
- [src/DatabaseConnection.ts:132](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L132)
421
+ [src/DatabaseConnection.ts:132](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L132)
422
422
 
423
423
  ___
424
424
 
@@ -444,7 +444,7 @@ Promise<void>
444
444
 
445
445
  #### Defined in
446
446
 
447
- [src/DatabaseConnection.ts:229](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L229)
447
+ [src/DatabaseConnection.ts:229](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L229)
448
448
 
449
449
  ___
450
450
 
@@ -468,7 +468,7 @@ ___
468
468
 
469
469
  #### Defined in
470
470
 
471
- [src/DatabaseConnection.ts:64](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L64)
471
+ [src/DatabaseConnection.ts:64](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L64)
472
472
 
473
473
  ___
474
474
 
@@ -494,7 +494,7 @@ Sets the timeout of this connectino
494
494
 
495
495
  #### Defined in
496
496
 
497
- [src/DatabaseConnection.ts:109](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L109)
497
+ [src/DatabaseConnection.ts:109](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L109)
498
498
 
499
499
  ___
500
500
 
@@ -520,7 +520,7 @@ Promise<void>
520
520
 
521
521
  #### Defined in
522
522
 
523
- [src/DatabaseConnection.ts:193](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L193)
523
+ [src/DatabaseConnection.ts:193](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L193)
524
524
 
525
525
  ___
526
526
 
@@ -547,4 +547,4 @@ Readable
547
547
 
548
548
  #### Defined in
549
549
 
550
- [src/DatabaseConnection.ts:152](https://github.com/breautek/storm/blob/3449719/src/DatabaseConnection.ts#L152)
550
+ [src/DatabaseConnection.ts:152](https://github.com/breautek/storm/blob/72412c9/src/DatabaseConnection.ts#L152)