@breautek/storm 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/bt-config-sample.jsonc +1 -1
- package/docs/README.md +6 -6
- package/docs/classes/Application.md +30 -30
- package/docs/classes/BackendAuthenticationMiddleware.md +2 -2
- package/docs/classes/CORSMiddleware.md +6 -6
- package/docs/classes/ConfigLoader.md +1 -1
- package/docs/classes/Database.md +12 -12
- package/docs/classes/DatabaseConnection.md +19 -19
- package/docs/classes/DatabaseQueryError.md +11 -11
- package/docs/classes/DiskSpaceError.md +11 -11
- package/docs/classes/DropTemporaryTableQuery.md +10 -10
- package/docs/classes/DumpStream.md +1 -1
- package/docs/classes/DuplicateEntryError.md +11 -11
- package/docs/classes/EntityNotFoundError.md +11 -11
- package/docs/classes/ExpiredTokenError.md +11 -11
- package/docs/classes/Handler.md +14 -14
- package/docs/classes/InternalError.md +11 -11
- package/docs/classes/InvalidCredentialsError.md +11 -11
- package/docs/classes/InvalidValueError.md +11 -11
- package/docs/classes/ManagedDatabaseConnection.md +19 -19
- package/docs/classes/Middleware.md +3 -3
- package/docs/classes/MissingConfigError.md +11 -11
- package/docs/classes/MissingParameterError.md +11 -11
- package/docs/classes/MySQLConnection.md +20 -20
- package/docs/classes/MySQLDatabase.md +14 -14
- package/docs/classes/Query.md +10 -10
- package/docs/classes/RawQuery.md +19 -17
- package/docs/classes/Request.md +18 -18
- package/docs/classes/Response.md +12 -12
- package/docs/classes/ResponseData.md +7 -7
- package/docs/classes/ServiceProvider.md +16 -16
- package/docs/classes/ServiceResponse.md +4 -4
- package/docs/classes/SetSessionVariableQuery.md +10 -10
- package/docs/classes/StormError.md +11 -11
- package/docs/classes/TemporaryTableQuery.md +10 -10
- package/docs/classes/Token.md +2 -2
- package/docs/classes/TokenManager.md +4 -4
- package/docs/classes/UnauthorizedAccessError.md +11 -11
- package/docs/enums/ErrorCode.md +20 -20
- package/docs/enums/ExitCode.md +6 -6
- package/docs/enums/HTTPMethod.md +10 -10
- package/docs/enums/JWTError.md +6 -6
- package/docs/enums/StatusCode.md +98 -98
- package/docs/interfaces/IConfig.md +8 -8
- package/docs/interfaces/IDatabaseConfig.md +6 -6
- package/docs/interfaces/IDatabaseConnection.md +15 -15
- package/docs/interfaces/IErrorResponse.md +4 -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.EmitData.md +1 -1
- package/docs/modules/formidable.md +2 -2
- package/lib/Database.js.map +1 -1
- package/lib/DatabaseConnection.js.map +1 -1
- package/lib/Query.d.ts +1 -2
- package/lib/Query.js.map +1 -1
- package/lib/RawQuery.d.ts +1 -1
- package/lib/RawQuery.js.map +1 -1
- package/lib/Request.d.ts +1 -0
- package/lib/Response.d.ts +1 -0
- package/lib/ServiceProvider.d.ts +1 -2
- package/lib/ServiceProvider.js.map +1 -1
- package/lib/ServiceResponse.d.ts +1 -0
- package/lib/SetSessionVariableQuery.d.ts +1 -2
- package/lib/SetSessionVariableQuery.js.map +1 -1
- package/lib/TemporaryTableQuery.d.ts +1 -2
- package/lib/TemporaryTableQuery.js.map +1 -1
- package/package.json +15 -16
- package/src/Database.ts +1 -2
- package/src/DatabaseConnection.ts +2 -3
- package/src/Query.ts +1 -2
- package/src/RawQuery.ts +1 -1
- package/src/ServiceProvider.ts +1 -2
- package/src/SetSessionVariableQuery.ts +1 -2
- package/src/TemporaryTableQuery.ts +2 -3
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[src/MySQLConnection.ts:46](https://github.com/breautek/storm/blob/
|
|
59
|
+
[src/MySQLConnection.ts:46](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L46)
|
|
60
60
|
|
|
61
61
|
## Methods
|
|
62
62
|
|
|
@@ -85,7 +85,7 @@ Promise<void>
|
|
|
85
85
|
|
|
86
86
|
#### Defined in
|
|
87
87
|
|
|
88
|
-
[src/MySQLConnection.ts:190](https://github.com/breautek/storm/blob/
|
|
88
|
+
[src/MySQLConnection.ts:190](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L190)
|
|
89
89
|
|
|
90
90
|
___
|
|
91
91
|
|
|
@@ -114,7 +114,7 @@ Promise
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[src/MySQLConnection.ts:74](https://github.com/breautek/storm/blob/
|
|
117
|
+
[src/MySQLConnection.ts:74](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L74)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -145,7 +145,7 @@ but returns a `Readable` stream instead.
|
|
|
145
145
|
|
|
146
146
|
#### Defined in
|
|
147
147
|
|
|
148
|
-
[src/MySQLConnection.ts:113](https://github.com/breautek/storm/blob/
|
|
148
|
+
[src/MySQLConnection.ts:113](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L113)
|
|
149
149
|
|
|
150
150
|
___
|
|
151
151
|
|
|
@@ -177,7 +177,7 @@ Promise<void>
|
|
|
177
177
|
|
|
178
178
|
#### Defined in
|
|
179
179
|
|
|
180
|
-
[src/DatabaseConnection.ts:
|
|
180
|
+
[src/DatabaseConnection.ts:168](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L168)
|
|
181
181
|
|
|
182
182
|
___
|
|
183
183
|
|
|
@@ -199,7 +199,7 @@ Promise<void>
|
|
|
199
199
|
|
|
200
200
|
#### Defined in
|
|
201
201
|
|
|
202
|
-
[src/MySQLConnection.ts:174](https://github.com/breautek/storm/blob/
|
|
202
|
+
[src/MySQLConnection.ts:174](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L174)
|
|
203
203
|
|
|
204
204
|
___
|
|
205
205
|
|
|
@@ -227,7 +227,7 @@ Promise<void>
|
|
|
227
227
|
|
|
228
228
|
#### Defined in
|
|
229
229
|
|
|
230
|
-
[src/MySQLConnection.ts:154](https://github.com/breautek/storm/blob/
|
|
230
|
+
[src/MySQLConnection.ts:154](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L154)
|
|
231
231
|
|
|
232
232
|
___
|
|
233
233
|
|
|
@@ -249,7 +249,7 @@ any
|
|
|
249
249
|
|
|
250
250
|
#### Defined in
|
|
251
251
|
|
|
252
|
-
[src/DatabaseConnection.ts:
|
|
252
|
+
[src/DatabaseConnection.ts:90](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L90)
|
|
253
253
|
|
|
254
254
|
___
|
|
255
255
|
|
|
@@ -272,7 +272,7 @@ string - A stacktrace
|
|
|
272
272
|
|
|
273
273
|
#### Defined in
|
|
274
274
|
|
|
275
|
-
[src/DatabaseConnection.ts:
|
|
275
|
+
[src/DatabaseConnection.ts:72](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L72)
|
|
276
276
|
|
|
277
277
|
___
|
|
278
278
|
|
|
@@ -294,7 +294,7 @@ number in milliseconds
|
|
|
294
294
|
|
|
295
295
|
#### Defined in
|
|
296
296
|
|
|
297
|
-
[src/DatabaseConnection.ts:
|
|
297
|
+
[src/DatabaseConnection.ts:120](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L120)
|
|
298
298
|
|
|
299
299
|
___
|
|
300
300
|
|
|
@@ -314,7 +314,7 @@ Returns true if the connection has been closed.
|
|
|
314
314
|
|
|
315
315
|
#### Defined in
|
|
316
316
|
|
|
317
|
-
[src/DatabaseConnection.ts:
|
|
317
|
+
[src/DatabaseConnection.ts:181](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L181)
|
|
318
318
|
|
|
319
319
|
___
|
|
320
320
|
|
|
@@ -328,7 +328,7 @@ ___
|
|
|
328
328
|
|
|
329
329
|
#### Defined in
|
|
330
330
|
|
|
331
|
-
[src/MySQLConnection.ts:69](https://github.com/breautek/storm/blob/
|
|
331
|
+
[src/MySQLConnection.ts:69](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L69)
|
|
332
332
|
|
|
333
333
|
___
|
|
334
334
|
|
|
@@ -351,7 +351,7 @@ boolean
|
|
|
351
351
|
|
|
352
352
|
#### Defined in
|
|
353
353
|
|
|
354
|
-
[src/DatabaseConnection.ts:
|
|
354
|
+
[src/DatabaseConnection.ts:99](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L99)
|
|
355
355
|
|
|
356
356
|
___
|
|
357
357
|
|
|
@@ -373,7 +373,7 @@ boolean
|
|
|
373
373
|
|
|
374
374
|
#### Defined in
|
|
375
375
|
|
|
376
|
-
[src/MySQLConnection.ts:65](https://github.com/breautek/storm/blob/
|
|
376
|
+
[src/MySQLConnection.ts:65](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L65)
|
|
377
377
|
|
|
378
378
|
___
|
|
379
379
|
|
|
@@ -409,7 +409,7 @@ Promise<TQueryResult>
|
|
|
409
409
|
|
|
410
410
|
#### Defined in
|
|
411
411
|
|
|
412
|
-
[src/DatabaseConnection.ts:
|
|
412
|
+
[src/DatabaseConnection.ts:131](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L131)
|
|
413
413
|
|
|
414
414
|
___
|
|
415
415
|
|
|
@@ -431,7 +431,7 @@ Promise<void>
|
|
|
431
431
|
|
|
432
432
|
#### Defined in
|
|
433
433
|
|
|
434
|
-
[src/MySQLConnection.ts:158](https://github.com/breautek/storm/blob/
|
|
434
|
+
[src/MySQLConnection.ts:158](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L158)
|
|
435
435
|
|
|
436
436
|
___
|
|
437
437
|
|
|
@@ -455,7 +455,7 @@ ___
|
|
|
455
455
|
|
|
456
456
|
#### Defined in
|
|
457
457
|
|
|
458
|
-
[src/DatabaseConnection.ts:
|
|
458
|
+
[src/DatabaseConnection.ts:63](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L63)
|
|
459
459
|
|
|
460
460
|
___
|
|
461
461
|
|
|
@@ -481,7 +481,7 @@ Sets the timeout of this connectino
|
|
|
481
481
|
|
|
482
482
|
#### Defined in
|
|
483
483
|
|
|
484
|
-
[src/DatabaseConnection.ts:
|
|
484
|
+
[src/DatabaseConnection.ts:108](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L108)
|
|
485
485
|
|
|
486
486
|
___
|
|
487
487
|
|
|
@@ -503,7 +503,7 @@ Promise<void>
|
|
|
503
503
|
|
|
504
504
|
#### Defined in
|
|
505
505
|
|
|
506
|
-
[src/MySQLConnection.ts:132](https://github.com/breautek/storm/blob/
|
|
506
|
+
[src/MySQLConnection.ts:132](https://github.com/breautek/storm/blob/3ad3438/src/MySQLConnection.ts#L132)
|
|
507
507
|
|
|
508
508
|
___
|
|
509
509
|
|
|
@@ -530,4 +530,4 @@ Readable
|
|
|
530
530
|
|
|
531
531
|
#### Defined in
|
|
532
532
|
|
|
533
|
-
[src/DatabaseConnection.ts:
|
|
533
|
+
[src/DatabaseConnection.ts:151](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L151)
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
- [getConnection](MySQLDatabase.md#getconnection)
|
|
28
28
|
- [removeMaster](MySQLDatabase.md#removemaster)
|
|
29
29
|
- [removeSlave](MySQLDatabase.md#removeslave)
|
|
30
|
-
- [escape](MySQLDatabase.md#escape)
|
|
30
|
+
- [escape](MySQLDatabase.md#escape-1)
|
|
31
31
|
|
|
32
32
|
## Constructors
|
|
33
33
|
|
|
@@ -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/3ad3438/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/3ad3438/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/3ad3438/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/3ad3438/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/3ad3438/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:
|
|
160
|
+
[src/Database.ts:31](https://github.com/breautek/storm/blob/3ad3438/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:
|
|
185
|
+
[src/Database.ts:45](https://github.com/breautek/storm/blob/3ad3438/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:
|
|
203
|
+
[src/Database.ts:77](https://github.com/breautek/storm/blob/3ad3438/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/3ad3438/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:
|
|
252
|
+
[src/Database.ts:64](https://github.com/breautek/storm/blob/3ad3438/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:
|
|
270
|
+
[src/Database.ts:40](https://github.com/breautek/storm/blob/3ad3438/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:
|
|
294
|
+
[src/Database.ts:54](https://github.com/breautek/storm/blob/3ad3438/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/3ad3438/src/MySQLDatabase.ts#L45)
|
package/docs/classes/Query.md
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[src/Query.ts:
|
|
63
|
+
[src/Query.ts:22](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L22)
|
|
64
64
|
|
|
65
65
|
## Methods
|
|
66
66
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[src/Query.ts:
|
|
83
|
+
[src/Query.ts:34](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L34)
|
|
84
84
|
|
|
85
85
|
___
|
|
86
86
|
|
|
@@ -100,7 +100,7 @@ ___
|
|
|
100
100
|
|
|
101
101
|
#### Defined in
|
|
102
102
|
|
|
103
|
-
[src/Query.ts:
|
|
103
|
+
[src/Query.ts:62](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L62)
|
|
104
104
|
|
|
105
105
|
___
|
|
106
106
|
|
|
@@ -114,21 +114,21 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[src/Query.ts:
|
|
117
|
+
[src/Query.ts:26](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L26)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
121
121
|
### getParametersForQuery
|
|
122
122
|
|
|
123
|
-
▸ **getParametersForQuery**(): `
|
|
123
|
+
▸ **getParametersForQuery**(): `Record`<`any`, `any`\>
|
|
124
124
|
|
|
125
125
|
#### Returns
|
|
126
126
|
|
|
127
|
-
`
|
|
127
|
+
`Record`<`any`, `any`\>
|
|
128
128
|
|
|
129
129
|
#### Defined in
|
|
130
130
|
|
|
131
|
-
[src/Query.ts:
|
|
131
|
+
[src/Query.ts:30](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L30)
|
|
132
132
|
|
|
133
133
|
___
|
|
134
134
|
|
|
@@ -148,7 +148,7 @@ ___
|
|
|
148
148
|
|
|
149
149
|
#### Defined in
|
|
150
150
|
|
|
151
|
-
[src/Query.ts:
|
|
151
|
+
[src/Query.ts:36](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L36)
|
|
152
152
|
|
|
153
153
|
___
|
|
154
154
|
|
|
@@ -171,7 +171,7 @@ Override to augment/manipulate the returned result set.
|
|
|
171
171
|
|
|
172
172
|
#### Defined in
|
|
173
173
|
|
|
174
|
-
[src/Query.ts:
|
|
174
|
+
[src/Query.ts:57](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L57)
|
|
175
175
|
|
|
176
176
|
___
|
|
177
177
|
|
|
@@ -194,4 +194,4 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
194
194
|
|
|
195
195
|
#### Defined in
|
|
196
196
|
|
|
197
|
-
[src/Query.ts:
|
|
197
|
+
[src/Query.ts:47](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L47)
|
package/docs/classes/RawQuery.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[@breautek/storm](../README.md) / RawQuery
|
|
2
2
|
|
|
3
|
-
# Class: RawQuery<TQueryParameters, TQueryResultSet\>
|
|
3
|
+
# Class: RawQuery<TQueryParameters, TQueryResultSet, TQueryPostProcessedResultSet\>
|
|
4
4
|
|
|
5
5
|
## Type parameters
|
|
6
6
|
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
| :------ | :------ |
|
|
9
9
|
| `TQueryParameters` | `any` |
|
|
10
10
|
| `TQueryResultSet` | `any` |
|
|
11
|
+
| `TQueryPostProcessedResultSet` | `TQueryResultSet` |
|
|
11
12
|
|
|
12
13
|
## Hierarchy
|
|
13
14
|
|
|
14
|
-
- [`Query`](Query.md)<`TQueryParameters`, `TQueryResultSet`, `
|
|
15
|
+
- [`Query`](Query.md)<`TQueryParameters`, `TQueryResultSet`, `TQueryPostProcessedResultSet`\>
|
|
15
16
|
|
|
16
17
|
↳ **`RawQuery`**
|
|
17
18
|
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
|
|
36
37
|
### constructor
|
|
37
38
|
|
|
38
|
-
• **new RawQuery**<`TQueryParameters`, `TQueryResultSet`\>(`query`, `parameters?`)
|
|
39
|
+
• **new RawQuery**<`TQueryParameters`, `TQueryResultSet`, `TQueryPostProcessedResultSet`\>(`query`, `parameters?`)
|
|
39
40
|
|
|
40
41
|
#### Type parameters
|
|
41
42
|
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
| :------ | :------ |
|
|
44
45
|
| `TQueryParameters` | `any` |
|
|
45
46
|
| `TQueryResultSet` | `any` |
|
|
47
|
+
| `TQueryPostProcessedResultSet` | `TQueryResultSet` |
|
|
46
48
|
|
|
47
49
|
#### Parameters
|
|
48
50
|
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
|
|
58
60
|
#### Defined in
|
|
59
61
|
|
|
60
|
-
[src/RawQuery.ts:22](https://github.com/breautek/storm/blob/
|
|
62
|
+
[src/RawQuery.ts:22](https://github.com/breautek/storm/blob/3ad3438/src/RawQuery.ts#L22)
|
|
61
63
|
|
|
62
64
|
## Methods
|
|
63
65
|
|
|
@@ -75,13 +77,13 @@
|
|
|
75
77
|
|
|
76
78
|
#### Defined in
|
|
77
79
|
|
|
78
|
-
[src/RawQuery.ts:27](https://github.com/breautek/storm/blob/
|
|
80
|
+
[src/RawQuery.ts:27](https://github.com/breautek/storm/blob/3ad3438/src/RawQuery.ts#L27)
|
|
79
81
|
|
|
80
82
|
___
|
|
81
83
|
|
|
82
84
|
### execute
|
|
83
85
|
|
|
84
|
-
▸ **execute**(`connection`): `Promise`<`
|
|
86
|
+
▸ **execute**(`connection`): `Promise`<`TQueryPostProcessedResultSet`\>
|
|
85
87
|
|
|
86
88
|
#### Parameters
|
|
87
89
|
|
|
@@ -91,7 +93,7 @@ ___
|
|
|
91
93
|
|
|
92
94
|
#### Returns
|
|
93
95
|
|
|
94
|
-
`Promise`<`
|
|
96
|
+
`Promise`<`TQueryPostProcessedResultSet`\>
|
|
95
97
|
|
|
96
98
|
#### Inherited from
|
|
97
99
|
|
|
@@ -99,7 +101,7 @@ ___
|
|
|
99
101
|
|
|
100
102
|
#### Defined in
|
|
101
103
|
|
|
102
|
-
[src/Query.ts:
|
|
104
|
+
[src/Query.ts:62](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L62)
|
|
103
105
|
|
|
104
106
|
___
|
|
105
107
|
|
|
@@ -117,17 +119,17 @@ ___
|
|
|
117
119
|
|
|
118
120
|
#### Defined in
|
|
119
121
|
|
|
120
|
-
[src/Query.ts:
|
|
122
|
+
[src/Query.ts:26](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L26)
|
|
121
123
|
|
|
122
124
|
___
|
|
123
125
|
|
|
124
126
|
### getParametersForQuery
|
|
125
127
|
|
|
126
|
-
▸ **getParametersForQuery**(): `
|
|
128
|
+
▸ **getParametersForQuery**(): `Record`<`any`, `any`\>
|
|
127
129
|
|
|
128
130
|
#### Returns
|
|
129
131
|
|
|
130
|
-
`
|
|
132
|
+
`Record`<`any`, `any`\>
|
|
131
133
|
|
|
132
134
|
#### Inherited from
|
|
133
135
|
|
|
@@ -135,7 +137,7 @@ ___
|
|
|
135
137
|
|
|
136
138
|
#### Defined in
|
|
137
139
|
|
|
138
|
-
[src/Query.ts:
|
|
140
|
+
[src/Query.ts:30](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L30)
|
|
139
141
|
|
|
140
142
|
___
|
|
141
143
|
|
|
@@ -159,13 +161,13 @@ ___
|
|
|
159
161
|
|
|
160
162
|
#### Defined in
|
|
161
163
|
|
|
162
|
-
[src/Query.ts:
|
|
164
|
+
[src/Query.ts:36](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L36)
|
|
163
165
|
|
|
164
166
|
___
|
|
165
167
|
|
|
166
168
|
### onPostProcess
|
|
167
169
|
|
|
168
|
-
▸ **onPostProcess**(`connection`, `resultSet`): `Promise`<`
|
|
170
|
+
▸ **onPostProcess**(`connection`, `resultSet`): `Promise`<`TQueryPostProcessedResultSet`\>
|
|
169
171
|
|
|
170
172
|
Override to augment/manipulate the returned result set.
|
|
171
173
|
|
|
@@ -178,7 +180,7 @@ Override to augment/manipulate the returned result set.
|
|
|
178
180
|
|
|
179
181
|
#### Returns
|
|
180
182
|
|
|
181
|
-
`Promise`<`
|
|
183
|
+
`Promise`<`TQueryPostProcessedResultSet`\>
|
|
182
184
|
|
|
183
185
|
#### Inherited from
|
|
184
186
|
|
|
@@ -186,7 +188,7 @@ Override to augment/manipulate the returned result set.
|
|
|
186
188
|
|
|
187
189
|
#### Defined in
|
|
188
190
|
|
|
189
|
-
[src/Query.ts:
|
|
191
|
+
[src/Query.ts:57](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L57)
|
|
190
192
|
|
|
191
193
|
___
|
|
192
194
|
|
|
@@ -213,4 +215,4 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
213
215
|
|
|
214
216
|
#### Defined in
|
|
215
217
|
|
|
216
|
-
[src/Query.ts:
|
|
218
|
+
[src/Query.ts:47](https://github.com/breautek/storm/blob/3ad3438/src/Query.ts#L47)
|
package/docs/classes/Request.md
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[src/Request.ts:42](https://github.com/breautek/storm/blob/
|
|
59
|
+
[src/Request.ts:42](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L42)
|
|
60
60
|
|
|
61
61
|
## Methods
|
|
62
62
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[src/Request.ts:132](https://github.com/breautek/storm/blob/
|
|
73
|
+
[src/Request.ts:132](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L132)
|
|
74
74
|
|
|
75
75
|
___
|
|
76
76
|
|
|
@@ -84,7 +84,7 @@ ___
|
|
|
84
84
|
|
|
85
85
|
#### Defined in
|
|
86
86
|
|
|
87
|
-
[src/Request.ts:46](https://github.com/breautek/storm/blob/
|
|
87
|
+
[src/Request.ts:46](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L46)
|
|
88
88
|
|
|
89
89
|
___
|
|
90
90
|
|
|
@@ -98,7 +98,7 @@ ___
|
|
|
98
98
|
|
|
99
99
|
#### Defined in
|
|
100
100
|
|
|
101
|
-
[src/Request.ts:50](https://github.com/breautek/storm/blob/
|
|
101
|
+
[src/Request.ts:50](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L50)
|
|
102
102
|
|
|
103
103
|
___
|
|
104
104
|
|
|
@@ -112,7 +112,7 @@ ___
|
|
|
112
112
|
|
|
113
113
|
#### Defined in
|
|
114
114
|
|
|
115
|
-
[src/Request.ts:100](https://github.com/breautek/storm/blob/
|
|
115
|
+
[src/Request.ts:100](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L100)
|
|
116
116
|
|
|
117
117
|
___
|
|
118
118
|
|
|
@@ -132,7 +132,7 @@ ___
|
|
|
132
132
|
|
|
133
133
|
#### Defined in
|
|
134
134
|
|
|
135
|
-
[src/Request.ts:74](https://github.com/breautek/storm/blob/
|
|
135
|
+
[src/Request.ts:74](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L74)
|
|
136
136
|
|
|
137
137
|
___
|
|
138
138
|
|
|
@@ -146,7 +146,7 @@ ___
|
|
|
146
146
|
|
|
147
147
|
#### Defined in
|
|
148
148
|
|
|
149
|
-
[src/Request.ts:70](https://github.com/breautek/storm/blob/
|
|
149
|
+
[src/Request.ts:70](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L70)
|
|
150
150
|
|
|
151
151
|
___
|
|
152
152
|
|
|
@@ -160,7 +160,7 @@ ___
|
|
|
160
160
|
|
|
161
161
|
#### Defined in
|
|
162
162
|
|
|
163
|
-
[src/Request.ts:104](https://github.com/breautek/storm/blob/
|
|
163
|
+
[src/Request.ts:104](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L104)
|
|
164
164
|
|
|
165
165
|
___
|
|
166
166
|
|
|
@@ -174,7 +174,7 @@ ___
|
|
|
174
174
|
|
|
175
175
|
#### Defined in
|
|
176
176
|
|
|
177
|
-
[src/Request.ts:96](https://github.com/breautek/storm/blob/
|
|
177
|
+
[src/Request.ts:96](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L96)
|
|
178
178
|
|
|
179
179
|
___
|
|
180
180
|
|
|
@@ -188,7 +188,7 @@ ___
|
|
|
188
188
|
|
|
189
189
|
#### Defined in
|
|
190
190
|
|
|
191
|
-
[src/Request.ts:108](https://github.com/breautek/storm/blob/
|
|
191
|
+
[src/Request.ts:108](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L108)
|
|
192
192
|
|
|
193
193
|
___
|
|
194
194
|
|
|
@@ -208,7 +208,7 @@ ___
|
|
|
208
208
|
|
|
209
209
|
#### Defined in
|
|
210
210
|
|
|
211
|
-
[src/Request.ts:92](https://github.com/breautek/storm/blob/
|
|
211
|
+
[src/Request.ts:92](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L92)
|
|
212
212
|
|
|
213
213
|
___
|
|
214
214
|
|
|
@@ -222,7 +222,7 @@ ___
|
|
|
222
222
|
|
|
223
223
|
#### Defined in
|
|
224
224
|
|
|
225
|
-
[src/Request.ts:88](https://github.com/breautek/storm/blob/
|
|
225
|
+
[src/Request.ts:88](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L88)
|
|
226
226
|
|
|
227
227
|
___
|
|
228
228
|
|
|
@@ -236,7 +236,7 @@ ___
|
|
|
236
236
|
|
|
237
237
|
#### Defined in
|
|
238
238
|
|
|
239
|
-
[src/Request.ts:84](https://github.com/breautek/storm/blob/
|
|
239
|
+
[src/Request.ts:84](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L84)
|
|
240
240
|
|
|
241
241
|
___
|
|
242
242
|
|
|
@@ -250,7 +250,7 @@ ___
|
|
|
250
250
|
|
|
251
251
|
#### Defined in
|
|
252
252
|
|
|
253
|
-
[src/Request.ts:128](https://github.com/breautek/storm/blob/
|
|
253
|
+
[src/Request.ts:128](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L128)
|
|
254
254
|
|
|
255
255
|
___
|
|
256
256
|
|
|
@@ -264,7 +264,7 @@ ___
|
|
|
264
264
|
|
|
265
265
|
#### Defined in
|
|
266
266
|
|
|
267
|
-
[src/Request.ts:112](https://github.com/breautek/storm/blob/
|
|
267
|
+
[src/Request.ts:112](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L112)
|
|
268
268
|
|
|
269
269
|
___
|
|
270
270
|
|
|
@@ -278,7 +278,7 @@ ___
|
|
|
278
278
|
|
|
279
279
|
#### Defined in
|
|
280
280
|
|
|
281
|
-
[src/Request.ts:116](https://github.com/breautek/storm/blob/
|
|
281
|
+
[src/Request.ts:116](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L116)
|
|
282
282
|
|
|
283
283
|
___
|
|
284
284
|
|
|
@@ -298,7 +298,7 @@ ___
|
|
|
298
298
|
|
|
299
299
|
#### Defined in
|
|
300
300
|
|
|
301
|
-
[src/Request.ts:120](https://github.com/breautek/storm/blob/
|
|
301
|
+
[src/Request.ts:120](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L120)
|
|
302
302
|
|
|
303
303
|
___
|
|
304
304
|
|
|
@@ -318,4 +318,4 @@ ___
|
|
|
318
318
|
|
|
319
319
|
#### Defined in
|
|
320
320
|
|
|
321
|
-
[src/Request.ts:124](https://github.com/breautek/storm/blob/
|
|
321
|
+
[src/Request.ts:124](https://github.com/breautek/storm/blob/3ad3438/src/Request.ts#L124)
|