@breautek/storm 5.0.1 → 6.0.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 (204) hide show
  1. package/CHANGELOG.md +24 -2
  2. package/bt-config-defaults.json +0 -1
  3. package/bt-config-sample.jsonc +41 -7
  4. package/docs/assets/highlight.css +92 -0
  5. package/docs/assets/main.js +58 -0
  6. package/docs/assets/search.js +1 -0
  7. package/docs/assets/style.css +1367 -0
  8. package/docs/classes/Application.html +1278 -0
  9. package/docs/classes/BackendAuthenticationMiddleware.html +193 -0
  10. package/docs/classes/CORSMiddleware.html +259 -0
  11. package/docs/classes/ConfigLoader.html +168 -0
  12. package/docs/classes/Database.html +342 -0
  13. package/docs/classes/DatabaseCastObject.html +205 -0
  14. package/docs/classes/DatabaseConnection.html +552 -0
  15. package/docs/classes/DatabaseQueryError.html +374 -0
  16. package/docs/classes/DeadLockError.html +374 -0
  17. package/docs/classes/DiskSpaceError.html +364 -0
  18. package/docs/classes/DropTemporaryTableQuery.html +287 -0
  19. package/docs/classes/DuplicateEntryError.html +368 -0
  20. package/docs/classes/EntityNotFoundError.html +364 -0
  21. package/docs/classes/ExpiredTokenError.html +364 -0
  22. package/docs/classes/Handler.html +397 -0
  23. package/docs/classes/InternalError.html +364 -0
  24. package/docs/classes/InvalidCredentialsError.html +364 -0
  25. package/docs/classes/InvalidValueError.html +375 -0
  26. package/docs/classes/LineString.html +214 -0
  27. package/docs/classes/LockWaitTimeoutError.html +374 -0
  28. package/docs/classes/ManagedDatabaseConnection.html +412 -0
  29. package/docs/classes/Middleware.html +204 -0
  30. package/docs/classes/MissingConfigError.html +364 -0
  31. package/docs/classes/MissingParameterError.html +364 -0
  32. package/docs/classes/MySQLConnection.html +548 -0
  33. package/docs/classes/MySQLDatabase.html +355 -0
  34. package/docs/classes/NotImplementedError.html +364 -0
  35. package/docs/classes/Point.html +216 -0
  36. package/docs/classes/Polygon.html +214 -0
  37. package/docs/classes/Query.html +314 -0
  38. package/docs/classes/RawError.html +376 -0
  39. package/docs/classes/RawQuery.html +307 -0
  40. package/docs/classes/Request.html +377 -0
  41. package/docs/classes/Response.html +331 -0
  42. package/docs/classes/ResponseData.html +257 -0
  43. package/docs/classes/ServiceProvider.html +387 -0
  44. package/docs/classes/ServiceResponse.html +215 -0
  45. package/docs/classes/SetSessionVariableQuery.html +287 -0
  46. package/docs/classes/StormError.html +379 -0
  47. package/docs/classes/TemporaryTableQuery.html +292 -0
  48. package/docs/classes/Token.html +183 -0
  49. package/docs/classes/TokenManager.html +235 -0
  50. package/docs/classes/Transaction.html +269 -0
  51. package/docs/classes/UnauthorizedAccessError.html +364 -0
  52. package/docs/enums/ErrorCode.html +212 -0
  53. package/docs/enums/ExitCode.html +163 -0
  54. package/docs/enums/HTTPMethod.html +177 -0
  55. package/docs/enums/IsolationLevel.html +177 -0
  56. package/docs/enums/JWTError.html +163 -0
  57. package/docs/enums/StatusCode.html +485 -0
  58. package/docs/functions/formidable-1.html +145 -0
  59. package/docs/functions/getInstance.html +140 -0
  60. package/docs/index.html +228 -0
  61. package/docs/interfaces/IAdditionalErrorDetails.html +142 -0
  62. package/docs/interfaces/IAuthTokenData.html +174 -0
  63. package/docs/interfaces/ICloudwatchConfig.html +174 -0
  64. package/docs/interfaces/ICloudwatchCredentials.html +167 -0
  65. package/docs/interfaces/ICloudwatchStreamConfig.html +167 -0
  66. package/docs/interfaces/IConfig.html +227 -0
  67. package/docs/interfaces/IDatabaseConfig.html +200 -0
  68. package/docs/interfaces/IDatabaseConnection.html +334 -0
  69. package/docs/interfaces/IErrorResponse.html +188 -0
  70. package/docs/interfaces/IFormData.html +167 -0
  71. package/docs/interfaces/IHandler.html +173 -0
  72. package/docs/interfaces/IInsertQueryResult.html +174 -0
  73. package/docs/interfaces/IJWTVerifyOptions.html +160 -0
  74. package/docs/interfaces/IParameterMap.html +142 -0
  75. package/docs/interfaces/IQueryable.html +235 -0
  76. package/docs/interfaces/IRequestResponse.html +174 -0
  77. package/docs/interfaces/IServiceHeaders.html +142 -0
  78. package/docs/interfaces/ISetSessionVariableQueryInput.html +167 -0
  79. package/docs/interfaces/ITemporaryTableQueryInput.html +167 -0
  80. package/docs/interfaces/IUpdateQueryResult.html +167 -0
  81. package/docs/interfaces/formidable.EmitData.html +182 -0
  82. package/docs/interfaces/formidable.EventData.html +203 -0
  83. package/docs/interfaces/formidable.Fields.html +143 -0
  84. package/docs/interfaces/formidable.File.html +241 -0
  85. package/docs/interfaces/formidable.FileJSON.html +240 -0
  86. package/docs/interfaces/formidable.Files.html +143 -0
  87. package/docs/interfaces/formidable.Options.html +310 -0
  88. package/docs/interfaces/formidable.Part.html +693 -0
  89. package/docs/modules/formidable.html +161 -0
  90. package/docs/types/IDeleteQueryResult.html +136 -0
  91. package/docs/types/IHandlerError.html +141 -0
  92. package/docs/types/IHandlerResponse.html +147 -0
  93. package/docs/types/TCoordinate.html +136 -0
  94. package/docs/types/formidable.BufferEncoding.html +137 -0
  95. package/docs/types/formidable.DefaultOptions.html +137 -0
  96. package/docs/types/formidable.EnabledPlugins.html +137 -0
  97. package/docs/types/formidable.EventNames.html +137 -0
  98. package/docs/types/formidable.MappedParsers.html +137 -0
  99. package/docs/types/formidable.Plugin.html +137 -0
  100. package/docs/types/formidable.PluginFunction.html +152 -0
  101. package/docs/types/formidable.Plugins.html +137 -0
  102. package/lib/Application.d.ts +3 -0
  103. package/lib/Application.js +105 -63
  104. package/lib/Application.js.map +1 -1
  105. package/lib/IConfig.d.ts +15 -2
  106. package/lib/MySQLConnection.js +3 -3
  107. package/lib/MySQLConnection.js.map +1 -1
  108. package/lib/StatusCode.d.ts +1 -1
  109. package/lib/StatusCode.js +1 -1
  110. package/lib/Transaction.d.ts +4 -0
  111. package/lib/Transaction.js +4 -0
  112. package/lib/Transaction.js.map +1 -1
  113. package/lib/api.d.ts +1 -2
  114. package/lib/api.js +2 -4
  115. package/lib/api.js.map +1 -1
  116. package/package.json +18 -16
  117. package/src/Application.ts +131 -68
  118. package/src/IConfig.ts +18 -2
  119. package/src/MySQLConnection.ts +2 -1
  120. package/src/StatusCode.ts +1 -1
  121. package/src/Transaction.ts +4 -0
  122. package/src/api.ts +6 -2
  123. package/docs/README.md +0 -188
  124. package/docs/classes/Application.md +0 -1648
  125. package/docs/classes/BackendAuthenticationMiddleware.md +0 -49
  126. package/docs/classes/CORSMiddleware.md +0 -143
  127. package/docs/classes/ConfigLoader.md +0 -29
  128. package/docs/classes/Database.md +0 -259
  129. package/docs/classes/DatabaseCastObject.md +0 -79
  130. package/docs/classes/DatabaseConnection.md +0 -556
  131. package/docs/classes/DatabaseQueryError.md +0 -351
  132. package/docs/classes/DeadLockError.md +0 -349
  133. package/docs/classes/DiskSpaceError.md +0 -341
  134. package/docs/classes/DropTemporaryTableQuery.md +0 -207
  135. package/docs/classes/DumpStream.md +0 -23
  136. package/docs/classes/DuplicateEntryError.md +0 -343
  137. package/docs/classes/EntityNotFoundError.md +0 -341
  138. package/docs/classes/ExpiredTokenError.md +0 -341
  139. package/docs/classes/Handler.md +0 -302
  140. package/docs/classes/InternalError.md +0 -341
  141. package/docs/classes/InvalidCredentialsError.md +0 -341
  142. package/docs/classes/InvalidValueError.md +0 -349
  143. package/docs/classes/LineString.md +0 -101
  144. package/docs/classes/LockWaitTimeoutError.md +0 -349
  145. package/docs/classes/ManagedDatabaseConnection.md +0 -403
  146. package/docs/classes/Middleware.md +0 -72
  147. package/docs/classes/MissingConfigError.md +0 -341
  148. package/docs/classes/MissingParameterError.md +0 -341
  149. package/docs/classes/MySQLConnection.md +0 -569
  150. package/docs/classes/MySQLDatabase.md +0 -314
  151. package/docs/classes/NotImplementedError.md +0 -341
  152. package/docs/classes/Point.md +0 -102
  153. package/docs/classes/Polygon.md +0 -101
  154. package/docs/classes/Query.md +0 -227
  155. package/docs/classes/RawError.md +0 -351
  156. package/docs/classes/RawQuery.md +0 -224
  157. package/docs/classes/Request.md +0 -321
  158. package/docs/classes/Response.md +0 -242
  159. package/docs/classes/ResponseData.md +0 -144
  160. package/docs/classes/ServiceProvider.md +0 -296
  161. package/docs/classes/ServiceResponse.md +0 -89
  162. package/docs/classes/SetSessionVariableQuery.md +0 -207
  163. package/docs/classes/StormError.md +0 -343
  164. package/docs/classes/TemporaryTableQuery.md +0 -213
  165. package/docs/classes/Token.md +0 -43
  166. package/docs/classes/TokenManager.md +0 -105
  167. package/docs/classes/Transaction.md +0 -161
  168. package/docs/classes/UnauthorizedAccessError.md +0 -341
  169. package/docs/enums/ErrorCode.md +0 -107
  170. package/docs/enums/ExitCode.md +0 -30
  171. package/docs/enums/HTTPMethod.md +0 -52
  172. package/docs/enums/IsolationLevel.md +0 -52
  173. package/docs/enums/JWTError.md +0 -30
  174. package/docs/enums/StatusCode.md +0 -536
  175. package/docs/interfaces/IAdditionalErrorDetails.md +0 -7
  176. package/docs/interfaces/IAuthTokenData.md +0 -41
  177. package/docs/interfaces/IConfig.md +0 -112
  178. package/docs/interfaces/IDatabaseConfig.md +0 -80
  179. package/docs/interfaces/IDatabaseConnection.md +0 -262
  180. package/docs/interfaces/IErrorResponse.md +0 -63
  181. package/docs/interfaces/IFormData.md +0 -30
  182. package/docs/interfaces/IHandler.md +0 -31
  183. package/docs/interfaces/IInsertQueryResult.md +0 -41
  184. package/docs/interfaces/IJWTVerifyOptions.md +0 -19
  185. package/docs/interfaces/IParameterMap.md +0 -7
  186. package/docs/interfaces/IQueryable.md +0 -119
  187. package/docs/interfaces/IRequestResponse.md +0 -37
  188. package/docs/interfaces/IServiceHeaders.md +0 -7
  189. package/docs/interfaces/ISetSessionVariableQueryInput.md +0 -30
  190. package/docs/interfaces/ITemporaryTableQueryInput.md +0 -30
  191. package/docs/interfaces/IUpdateQueryResult.md +0 -30
  192. package/docs/interfaces/formidable.EmitData.md +0 -54
  193. package/docs/interfaces/formidable.EventData.md +0 -87
  194. package/docs/interfaces/formidable.Fields.md +0 -9
  195. package/docs/interfaces/formidable.File.md +0 -131
  196. package/docs/interfaces/formidable.FileJSON.md +0 -151
  197. package/docs/interfaces/formidable.Files.md +0 -9
  198. package/docs/interfaces/formidable.Options.md +0 -225
  199. package/docs/interfaces/formidable.Part.md +0 -793
  200. package/docs/modules/formidable.md +0 -122
  201. package/lib/DumpStream.d.ts +0 -6
  202. package/lib/DumpStream.js +0 -28
  203. package/lib/DumpStream.js.map +0 -1
  204. package/src/DumpStream.ts +0 -28
@@ -1,351 +0,0 @@
1
- [@breautek/storm](../README.md) / RawError
2
-
3
- # Class: RawError
4
-
5
- A concrete error that accepts any arbitrary message string and optionally a code.
6
- It's not recommended to use this class as it will be hard to differentiate errors by
7
- tag name.
8
-
9
- ## Hierarchy
10
-
11
- - [`StormError`](StormError.md)<{ `code?`: `number` ; `message`: `string` }\>
12
-
13
- ↳ **`RawError`**
14
-
15
- ## Table of contents
16
-
17
- ### Constructors
18
-
19
- - [constructor](RawError.md#constructor)
20
-
21
- ### Properties
22
-
23
- - [message](RawError.md#message)
24
- - [name](RawError.md#name)
25
- - [stack](RawError.md#stack)
26
- - [prepareStackTrace](RawError.md#preparestacktrace)
27
- - [stackTraceLimit](RawError.md#stacktracelimit)
28
-
29
- ### Methods
30
-
31
- - [getCode](RawError.md#getcode)
32
- - [getErrorResponse](RawError.md#geterrorresponse)
33
- - [getExitCode](RawError.md#getexitcode)
34
- - [getHTTPCode](RawError.md#gethttpcode)
35
- - [getLocaleCode](RawError.md#getlocalecode)
36
- - [getLocaleParameters](RawError.md#getlocaleparameters)
37
- - [getMessage](RawError.md#getmessage)
38
- - [getPrivateDetails](RawError.md#getprivatedetails)
39
- - [getPublicDetails](RawError.md#getpublicdetails)
40
- - [captureStackTrace](RawError.md#capturestacktrace)
41
-
42
- ## Constructors
43
-
44
- ### constructor
45
-
46
- • **new RawError**(`message`, `code?`)
47
-
48
- #### Parameters
49
-
50
- | Name | Type |
51
- | :------ | :------ |
52
- | `message` | `string` |
53
- | `code?` | `number` |
54
-
55
- #### Overrides
56
-
57
- [StormError](StormError.md).[constructor](StormError.md#constructor)
58
-
59
- #### Defined in
60
-
61
- [src/RawError.ts:25](https://github.com/breautek/storm/blob/3dcafe4/src/RawError.ts#L25)
62
-
63
- ## Properties
64
-
65
- ### message
66
-
67
- • **message**: `string`
68
-
69
- #### Inherited from
70
-
71
- [StormError](StormError.md).[message](StormError.md#message)
72
-
73
- #### Defined in
74
-
75
- node_modules/typescript/lib/lib.es5.d.ts:1054
76
-
77
- ___
78
-
79
- ### name
80
-
81
- • **name**: `string`
82
-
83
- #### Inherited from
84
-
85
- [StormError](StormError.md).[name](StormError.md#name)
86
-
87
- #### Defined in
88
-
89
- node_modules/typescript/lib/lib.es5.d.ts:1053
90
-
91
- ___
92
-
93
- ### stack
94
-
95
- • `Optional` **stack**: `string`
96
-
97
- #### Inherited from
98
-
99
- [StormError](StormError.md).[stack](StormError.md#stack)
100
-
101
- #### Defined in
102
-
103
- node_modules/typescript/lib/lib.es5.d.ts:1055
104
-
105
- ___
106
-
107
- ### prepareStackTrace
108
-
109
- ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
110
-
111
- #### Type declaration
112
-
113
- ▸ (`err`, `stackTraces`): `any`
114
-
115
- Optional override for formatting stack traces
116
-
117
- **`See`**
118
-
119
- https://v8.dev/docs/stack-trace-api#customizing-stack-traces
120
-
121
- ##### Parameters
122
-
123
- | Name | Type |
124
- | :------ | :------ |
125
- | `err` | `Error` |
126
- | `stackTraces` | `CallSite`[] |
127
-
128
- ##### Returns
129
-
130
- `any`
131
-
132
- #### Inherited from
133
-
134
- [StormError](StormError.md).[prepareStackTrace](StormError.md#preparestacktrace)
135
-
136
- #### Defined in
137
-
138
- node_modules/@types/node/globals.d.ts:11
139
-
140
- ___
141
-
142
- ### stackTraceLimit
143
-
144
- ▪ `Static` **stackTraceLimit**: `number`
145
-
146
- #### Inherited from
147
-
148
- [StormError](StormError.md).[stackTraceLimit](StormError.md#stacktracelimit)
149
-
150
- #### Defined in
151
-
152
- node_modules/@types/node/globals.d.ts:13
153
-
154
- ## Methods
155
-
156
- ### getCode
157
-
158
- ▸ **getCode**(): `number`
159
-
160
- #### Returns
161
-
162
- `number`
163
-
164
- #### Overrides
165
-
166
- [StormError](StormError.md).[getCode](StormError.md#getcode)
167
-
168
- #### Defined in
169
-
170
- [src/RawError.ts:32](https://github.com/breautek/storm/blob/3dcafe4/src/RawError.ts#L32)
171
-
172
- ___
173
-
174
- ### getErrorResponse
175
-
176
- ▸ **getErrorResponse**(): [`IErrorResponse`](../interfaces/IErrorResponse.md)
177
-
178
- #### Returns
179
-
180
- [`IErrorResponse`](../interfaces/IErrorResponse.md)
181
-
182
- #### Inherited from
183
-
184
- [StormError](StormError.md).[getErrorResponse](StormError.md#geterrorresponse)
185
-
186
- #### Defined in
187
-
188
- [src/StormError.ts:76](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L76)
189
-
190
- ___
191
-
192
- ### getExitCode
193
-
194
- ▸ **getExitCode**(): [`ExitCode`](../enums/ExitCode.md)
195
-
196
- #### Returns
197
-
198
- [`ExitCode`](../enums/ExitCode.md)
199
-
200
- #### Inherited from
201
-
202
- [StormError](StormError.md).[getExitCode](StormError.md#getexitcode)
203
-
204
- #### Defined in
205
-
206
- [src/StormError.ts:97](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L97)
207
-
208
- ___
209
-
210
- ### getHTTPCode
211
-
212
- ▸ **getHTTPCode**(): [`StatusCode`](../enums/StatusCode.md)
213
-
214
- #### Returns
215
-
216
- [`StatusCode`](../enums/StatusCode.md)
217
-
218
- #### Inherited from
219
-
220
- [StormError](StormError.md).[getHTTPCode](StormError.md#gethttpcode)
221
-
222
- #### Defined in
223
-
224
- [src/StormError.ts:72](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L72)
225
-
226
- ___
227
-
228
- ### getLocaleCode
229
-
230
- ▸ **getLocaleCode**(): `string`
231
-
232
- #### Returns
233
-
234
- `string`
235
-
236
- #### Inherited from
237
-
238
- [StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
239
-
240
- #### Defined in
241
-
242
- [src/StormError.ts:89](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L89)
243
-
244
- ___
245
-
246
- ### getLocaleParameters
247
-
248
- ▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
249
-
250
- #### Returns
251
-
252
- `Record`<`string`, `string`\>
253
-
254
- #### Inherited from
255
-
256
- [StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
257
-
258
- #### Defined in
259
-
260
- [src/StormError.ts:93](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L93)
261
-
262
- ___
263
-
264
- ### getMessage
265
-
266
- ▸ **getMessage**(): `string`
267
-
268
- #### Returns
269
-
270
- `string`
271
-
272
- #### Overrides
273
-
274
- [StormError](StormError.md).[getMessage](StormError.md#getmessage)
275
-
276
- #### Defined in
277
-
278
- [src/RawError.ts:36](https://github.com/breautek/storm/blob/3dcafe4/src/RawError.ts#L36)
279
-
280
- ___
281
-
282
- ### getPrivateDetails
283
-
284
- ▸ **getPrivateDetails**(): `Object`
285
-
286
- Private details are only logged to the server log.
287
- They are kept secret from the client.
288
-
289
- #### Returns
290
-
291
- `Object`
292
-
293
- | Name | Type |
294
- | :------ | :------ |
295
- | `code?` | `number` |
296
- | `message` | `string` |
297
-
298
- #### Inherited from
299
-
300
- [StormError](StormError.md).[getPrivateDetails](StormError.md#getprivatedetails)
301
-
302
- #### Defined in
303
-
304
- [src/StormError.ts:68](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L68)
305
-
306
- ___
307
-
308
- ### getPublicDetails
309
-
310
- ▸ **getPublicDetails**(): [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
311
-
312
- Sends details to the client.
313
-
314
- #### Returns
315
-
316
- [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
317
-
318
- #### Inherited from
319
-
320
- [StormError](StormError.md).[getPublicDetails](StormError.md#getpublicdetails)
321
-
322
- #### Defined in
323
-
324
- [src/StormError.ts:60](https://github.com/breautek/storm/blob/3dcafe4/src/StormError.ts#L60)
325
-
326
- ___
327
-
328
- ### captureStackTrace
329
-
330
- ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
331
-
332
- Create .stack property on a target object
333
-
334
- #### Parameters
335
-
336
- | Name | Type |
337
- | :------ | :------ |
338
- | `targetObject` | `object` |
339
- | `constructorOpt?` | `Function` |
340
-
341
- #### Returns
342
-
343
- `void`
344
-
345
- #### Inherited from
346
-
347
- [StormError](StormError.md).[captureStackTrace](StormError.md#capturestacktrace)
348
-
349
- #### Defined in
350
-
351
- node_modules/@types/node/globals.d.ts:4
@@ -1,224 +0,0 @@
1
- [@breautek/storm](../README.md) / RawQuery
2
-
3
- # Class: RawQuery<TQueryParameters, TQueryResultSet, TQueryPostProcessedResultSet\>
4
-
5
- ## Type parameters
6
-
7
- | Name | Type |
8
- | :------ | :------ |
9
- | `TQueryParameters` | `any` |
10
- | `TQueryResultSet` | `any` |
11
- | `TQueryPostProcessedResultSet` | `TQueryResultSet` |
12
-
13
- ## Hierarchy
14
-
15
- - [`Query`](Query.md)<`TQueryParameters`, `TQueryResultSet`, `TQueryPostProcessedResultSet`\>
16
-
17
- ↳ **`RawQuery`**
18
-
19
- ## Table of contents
20
-
21
- ### Constructors
22
-
23
- - [constructor](RawQuery.md#constructor)
24
-
25
- ### Methods
26
-
27
- - [\_getQuery](RawQuery.md#_getquery)
28
- - [execute](RawQuery.md#execute)
29
- - [getParameters](RawQuery.md#getparameters)
30
- - [getParametersForQuery](RawQuery.md#getparametersforquery)
31
- - [getQuery](RawQuery.md#getquery)
32
- - [onPostProcess](RawQuery.md#onpostprocess)
33
- - [onPreQuery](RawQuery.md#onprequery)
34
-
35
- ## Constructors
36
-
37
- ### constructor
38
-
39
- • **new RawQuery**<`TQueryParameters`, `TQueryResultSet`, `TQueryPostProcessedResultSet`\>(`query`, `parameters?`)
40
-
41
- #### Type parameters
42
-
43
- | Name | Type |
44
- | :------ | :------ |
45
- | `TQueryParameters` | `any` |
46
- | `TQueryResultSet` | `any` |
47
- | `TQueryPostProcessedResultSet` | `TQueryResultSet` |
48
-
49
- #### Parameters
50
-
51
- | Name | Type |
52
- | :------ | :------ |
53
- | `query` | `string` |
54
- | `parameters?` | `TQueryParameters` |
55
-
56
- #### Overrides
57
-
58
- [Query](Query.md).[constructor](Query.md#constructor)
59
-
60
- #### Defined in
61
-
62
- [src/RawQuery.ts:22](https://github.com/breautek/storm/blob/3dcafe4/src/RawQuery.ts#L22)
63
-
64
- ## Methods
65
-
66
- ### \_getQuery
67
-
68
- ▸ `Protected` **_getQuery**(): `string`
69
-
70
- #### Returns
71
-
72
- `string`
73
-
74
- #### Overrides
75
-
76
- [Query](Query.md).[_getQuery](Query.md#_getquery)
77
-
78
- #### Defined in
79
-
80
- [src/RawQuery.ts:27](https://github.com/breautek/storm/blob/3dcafe4/src/RawQuery.ts#L27)
81
-
82
- ___
83
-
84
- ### execute
85
-
86
- ▸ **execute**(`connection`): `Promise`<`TQueryPostProcessedResultSet`\>
87
-
88
- #### Parameters
89
-
90
- | Name | Type |
91
- | :------ | :------ |
92
- | `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
93
-
94
- #### Returns
95
-
96
- `Promise`<`TQueryPostProcessedResultSet`\>
97
-
98
- #### Inherited from
99
-
100
- [Query](Query.md).[execute](Query.md#execute)
101
-
102
- #### Defined in
103
-
104
- [src/Query.ts:71](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L71)
105
-
106
- ___
107
-
108
- ### getParameters
109
-
110
- ▸ **getParameters**(): `TQueryParameters`
111
-
112
- #### Returns
113
-
114
- `TQueryParameters`
115
-
116
- parameters that was passed into the constructor.
117
-
118
- #### Inherited from
119
-
120
- [Query](Query.md).[getParameters](Query.md#getparameters)
121
-
122
- #### Defined in
123
-
124
- [src/Query.ts:30](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L30)
125
-
126
- ___
127
-
128
- ### getParametersForQuery
129
-
130
- ▸ **getParametersForQuery**(): `Record`<`string`, `any`\>
131
-
132
- Query implementations may override this API to augment the parameters.
133
-
134
- #### Returns
135
-
136
- `Record`<`string`, `any`\>
137
-
138
- parameters that will be used when this query is ran.
139
-
140
- #### Inherited from
141
-
142
- [Query](Query.md).[getParametersForQuery](Query.md#getparametersforquery)
143
-
144
- #### Defined in
145
-
146
- [src/Query.ts:39](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L39)
147
-
148
- ___
149
-
150
- ### getQuery
151
-
152
- ▸ **getQuery**(`connection`): `string`
153
-
154
- #### Parameters
155
-
156
- | Name | Type |
157
- | :------ | :------ |
158
- | `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
159
-
160
- #### Returns
161
-
162
- `string`
163
-
164
- #### Inherited from
165
-
166
- [Query](Query.md).[getQuery](Query.md#getquery)
167
-
168
- #### Defined in
169
-
170
- [src/Query.ts:45](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L45)
171
-
172
- ___
173
-
174
- ### onPostProcess
175
-
176
- ▸ **onPostProcess**(`connection`, `resultSet`): `Promise`<`TQueryPostProcessedResultSet`\>
177
-
178
- Override to augment/manipulate the returned result set.
179
-
180
- #### Parameters
181
-
182
- | Name | Type | Description |
183
- | :------ | :------ | :------ |
184
- | `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) | The connection object used for this query execution. Useful if further queries are required. |
185
- | `resultSet` | `TQueryResultSet` | - |
186
-
187
- #### Returns
188
-
189
- `Promise`<`TQueryPostProcessedResultSet`\>
190
-
191
- #### Inherited from
192
-
193
- [Query](Query.md).[onPostProcess](Query.md#onpostprocess)
194
-
195
- #### Defined in
196
-
197
- [src/Query.ts:66](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L66)
198
-
199
- ___
200
-
201
- ### onPreQuery
202
-
203
- ▸ **onPreQuery**(`connection`): `Promise`<`void`\>
204
-
205
- Overridable to execute statements before the main query.
206
- Can be used to set session variables or create temporary tables, etc.
207
-
208
- #### Parameters
209
-
210
- | Name | Type |
211
- | :------ | :------ |
212
- | `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
213
-
214
- #### Returns
215
-
216
- `Promise`<`void`\>
217
-
218
- #### Inherited from
219
-
220
- [Query](Query.md).[onPreQuery](Query.md#onprequery)
221
-
222
- #### Defined in
223
-
224
- [src/Query.ts:56](https://github.com/breautek/storm/blob/3dcafe4/src/Query.ts#L56)