@breautek/storm 5.0.1 → 5.0.2

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 (183) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/docs/assets/highlight.css +85 -0
  3. package/docs/assets/main.js +58 -0
  4. package/docs/assets/search.js +1 -0
  5. package/docs/assets/style.css +1367 -0
  6. package/docs/classes/Application.html +1235 -0
  7. package/docs/classes/BackendAuthenticationMiddleware.html +191 -0
  8. package/docs/classes/CORSMiddleware.html +257 -0
  9. package/docs/classes/ConfigLoader.html +166 -0
  10. package/docs/classes/Database.html +340 -0
  11. package/docs/classes/DatabaseCastObject.html +203 -0
  12. package/docs/classes/DatabaseConnection.html +550 -0
  13. package/docs/classes/DatabaseQueryError.html +372 -0
  14. package/docs/classes/DeadLockError.html +372 -0
  15. package/docs/classes/DiskSpaceError.html +362 -0
  16. package/docs/classes/DropTemporaryTableQuery.html +285 -0
  17. package/docs/classes/DumpStream.html +161 -0
  18. package/docs/classes/DuplicateEntryError.html +366 -0
  19. package/docs/classes/EntityNotFoundError.html +362 -0
  20. package/docs/classes/ExpiredTokenError.html +362 -0
  21. package/docs/classes/Handler.html +395 -0
  22. package/docs/classes/InternalError.html +362 -0
  23. package/docs/classes/InvalidCredentialsError.html +362 -0
  24. package/docs/classes/InvalidValueError.html +373 -0
  25. package/docs/classes/LineString.html +212 -0
  26. package/docs/classes/LockWaitTimeoutError.html +372 -0
  27. package/docs/classes/ManagedDatabaseConnection.html +410 -0
  28. package/docs/classes/Middleware.html +202 -0
  29. package/docs/classes/MissingConfigError.html +362 -0
  30. package/docs/classes/MissingParameterError.html +362 -0
  31. package/docs/classes/MySQLConnection.html +546 -0
  32. package/docs/classes/MySQLDatabase.html +353 -0
  33. package/docs/classes/NotImplementedError.html +362 -0
  34. package/docs/classes/Point.html +214 -0
  35. package/docs/classes/Polygon.html +212 -0
  36. package/docs/classes/Query.html +312 -0
  37. package/docs/classes/RawError.html +374 -0
  38. package/docs/classes/RawQuery.html +305 -0
  39. package/docs/classes/Request.html +375 -0
  40. package/docs/classes/Response.html +329 -0
  41. package/docs/classes/ResponseData.html +255 -0
  42. package/docs/classes/ServiceProvider.html +385 -0
  43. package/docs/classes/ServiceResponse.html +213 -0
  44. package/docs/classes/SetSessionVariableQuery.html +285 -0
  45. package/docs/classes/StormError.html +377 -0
  46. package/docs/classes/TemporaryTableQuery.html +290 -0
  47. package/docs/classes/Token.html +181 -0
  48. package/docs/classes/TokenManager.html +233 -0
  49. package/docs/classes/Transaction.html +267 -0
  50. package/docs/classes/UnauthorizedAccessError.html +362 -0
  51. package/docs/enums/ErrorCode.html +210 -0
  52. package/docs/enums/ExitCode.html +161 -0
  53. package/docs/enums/HTTPMethod.html +175 -0
  54. package/docs/enums/IsolationLevel.html +175 -0
  55. package/docs/enums/JWTError.html +161 -0
  56. package/docs/enums/StatusCode.html +483 -0
  57. package/docs/functions/formidable-1.html +143 -0
  58. package/docs/functions/getInstance.html +138 -0
  59. package/docs/index.html +224 -0
  60. package/docs/interfaces/IAdditionalErrorDetails.html +140 -0
  61. package/docs/interfaces/IAuthTokenData.html +172 -0
  62. package/docs/interfaces/IConfig.html +225 -0
  63. package/docs/interfaces/IDatabaseConfig.html +198 -0
  64. package/docs/interfaces/IDatabaseConnection.html +332 -0
  65. package/docs/interfaces/IErrorResponse.html +186 -0
  66. package/docs/interfaces/IFormData.html +165 -0
  67. package/docs/interfaces/IHandler.html +171 -0
  68. package/docs/interfaces/IInsertQueryResult.html +172 -0
  69. package/docs/interfaces/IJWTVerifyOptions.html +158 -0
  70. package/docs/interfaces/IParameterMap.html +140 -0
  71. package/docs/interfaces/IQueryable.html +233 -0
  72. package/docs/interfaces/IRequestResponse.html +172 -0
  73. package/docs/interfaces/IServiceHeaders.html +140 -0
  74. package/docs/interfaces/ISetSessionVariableQueryInput.html +165 -0
  75. package/docs/interfaces/ITemporaryTableQueryInput.html +165 -0
  76. package/docs/interfaces/IUpdateQueryResult.html +165 -0
  77. package/docs/interfaces/formidable.EmitData.html +180 -0
  78. package/docs/interfaces/formidable.EventData.html +201 -0
  79. package/docs/interfaces/formidable.Fields.html +141 -0
  80. package/docs/interfaces/formidable.File.html +239 -0
  81. package/docs/interfaces/formidable.FileJSON.html +238 -0
  82. package/docs/interfaces/formidable.Files.html +141 -0
  83. package/docs/interfaces/formidable.Options.html +308 -0
  84. package/docs/interfaces/formidable.Part.html +691 -0
  85. package/docs/modules/formidable.html +159 -0
  86. package/docs/types/IDeleteQueryResult.html +134 -0
  87. package/docs/types/IHandlerError.html +139 -0
  88. package/docs/types/IHandlerResponse.html +145 -0
  89. package/docs/types/TCoordinate.html +134 -0
  90. package/docs/types/formidable.BufferEncoding.html +135 -0
  91. package/docs/types/formidable.DefaultOptions.html +135 -0
  92. package/docs/types/formidable.EnabledPlugins.html +135 -0
  93. package/docs/types/formidable.EventNames.html +135 -0
  94. package/docs/types/formidable.MappedParsers.html +135 -0
  95. package/docs/types/formidable.Plugin.html +135 -0
  96. package/docs/types/formidable.PluginFunction.html +150 -0
  97. package/docs/types/formidable.Plugins.html +135 -0
  98. package/lib/StatusCode.d.ts +1 -1
  99. package/lib/StatusCode.js +1 -1
  100. package/lib/Transaction.d.ts +4 -0
  101. package/lib/Transaction.js +4 -0
  102. package/lib/Transaction.js.map +1 -1
  103. package/package.json +14 -14
  104. package/src/StatusCode.ts +1 -1
  105. package/src/Transaction.ts +4 -0
  106. package/docs/README.md +0 -188
  107. package/docs/classes/Application.md +0 -1648
  108. package/docs/classes/BackendAuthenticationMiddleware.md +0 -49
  109. package/docs/classes/CORSMiddleware.md +0 -143
  110. package/docs/classes/ConfigLoader.md +0 -29
  111. package/docs/classes/Database.md +0 -259
  112. package/docs/classes/DatabaseCastObject.md +0 -79
  113. package/docs/classes/DatabaseConnection.md +0 -556
  114. package/docs/classes/DatabaseQueryError.md +0 -351
  115. package/docs/classes/DeadLockError.md +0 -349
  116. package/docs/classes/DiskSpaceError.md +0 -341
  117. package/docs/classes/DropTemporaryTableQuery.md +0 -207
  118. package/docs/classes/DumpStream.md +0 -23
  119. package/docs/classes/DuplicateEntryError.md +0 -343
  120. package/docs/classes/EntityNotFoundError.md +0 -341
  121. package/docs/classes/ExpiredTokenError.md +0 -341
  122. package/docs/classes/Handler.md +0 -302
  123. package/docs/classes/InternalError.md +0 -341
  124. package/docs/classes/InvalidCredentialsError.md +0 -341
  125. package/docs/classes/InvalidValueError.md +0 -349
  126. package/docs/classes/LineString.md +0 -101
  127. package/docs/classes/LockWaitTimeoutError.md +0 -349
  128. package/docs/classes/ManagedDatabaseConnection.md +0 -403
  129. package/docs/classes/Middleware.md +0 -72
  130. package/docs/classes/MissingConfigError.md +0 -341
  131. package/docs/classes/MissingParameterError.md +0 -341
  132. package/docs/classes/MySQLConnection.md +0 -569
  133. package/docs/classes/MySQLDatabase.md +0 -314
  134. package/docs/classes/NotImplementedError.md +0 -341
  135. package/docs/classes/Point.md +0 -102
  136. package/docs/classes/Polygon.md +0 -101
  137. package/docs/classes/Query.md +0 -227
  138. package/docs/classes/RawError.md +0 -351
  139. package/docs/classes/RawQuery.md +0 -224
  140. package/docs/classes/Request.md +0 -321
  141. package/docs/classes/Response.md +0 -242
  142. package/docs/classes/ResponseData.md +0 -144
  143. package/docs/classes/ServiceProvider.md +0 -296
  144. package/docs/classes/ServiceResponse.md +0 -89
  145. package/docs/classes/SetSessionVariableQuery.md +0 -207
  146. package/docs/classes/StormError.md +0 -343
  147. package/docs/classes/TemporaryTableQuery.md +0 -213
  148. package/docs/classes/Token.md +0 -43
  149. package/docs/classes/TokenManager.md +0 -105
  150. package/docs/classes/Transaction.md +0 -161
  151. package/docs/classes/UnauthorizedAccessError.md +0 -341
  152. package/docs/enums/ErrorCode.md +0 -107
  153. package/docs/enums/ExitCode.md +0 -30
  154. package/docs/enums/HTTPMethod.md +0 -52
  155. package/docs/enums/IsolationLevel.md +0 -52
  156. package/docs/enums/JWTError.md +0 -30
  157. package/docs/enums/StatusCode.md +0 -536
  158. package/docs/interfaces/IAdditionalErrorDetails.md +0 -7
  159. package/docs/interfaces/IAuthTokenData.md +0 -41
  160. package/docs/interfaces/IConfig.md +0 -112
  161. package/docs/interfaces/IDatabaseConfig.md +0 -80
  162. package/docs/interfaces/IDatabaseConnection.md +0 -262
  163. package/docs/interfaces/IErrorResponse.md +0 -63
  164. package/docs/interfaces/IFormData.md +0 -30
  165. package/docs/interfaces/IHandler.md +0 -31
  166. package/docs/interfaces/IInsertQueryResult.md +0 -41
  167. package/docs/interfaces/IJWTVerifyOptions.md +0 -19
  168. package/docs/interfaces/IParameterMap.md +0 -7
  169. package/docs/interfaces/IQueryable.md +0 -119
  170. package/docs/interfaces/IRequestResponse.md +0 -37
  171. package/docs/interfaces/IServiceHeaders.md +0 -7
  172. package/docs/interfaces/ISetSessionVariableQueryInput.md +0 -30
  173. package/docs/interfaces/ITemporaryTableQueryInput.md +0 -30
  174. package/docs/interfaces/IUpdateQueryResult.md +0 -30
  175. package/docs/interfaces/formidable.EmitData.md +0 -54
  176. package/docs/interfaces/formidable.EventData.md +0 -87
  177. package/docs/interfaces/formidable.Fields.md +0 -9
  178. package/docs/interfaces/formidable.File.md +0 -131
  179. package/docs/interfaces/formidable.FileJSON.md +0 -151
  180. package/docs/interfaces/formidable.Files.md +0 -9
  181. package/docs/interfaces/formidable.Options.md +0 -225
  182. package/docs/interfaces/formidable.Part.md +0 -793
  183. package/docs/modules/formidable.md +0 -122
@@ -1,569 +0,0 @@
1
- [@breautek/storm](../README.md) / MySQLConnection
2
-
3
- # Class: MySQLConnection
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
-
13
- ## Hierarchy
14
-
15
- - [`DatabaseConnection`](DatabaseConnection.md)<`MySQL.PoolConnection`\>
16
-
17
- ↳ **`MySQLConnection`**
18
-
19
- ## Table of contents
20
-
21
- ### Constructors
22
-
23
- - [constructor](MySQLConnection.md#constructor)
24
-
25
- ### Methods
26
-
27
- - [\_close](MySQLConnection.md#_close)
28
- - [\_query](MySQLConnection.md#_query)
29
- - [\_stream](MySQLConnection.md#_stream)
30
- - [close](MySQLConnection.md#close)
31
- - [commit](MySQLConnection.md#commit)
32
- - [endTransaction](MySQLConnection.md#endtransaction)
33
- - [getAPI](MySQLConnection.md#getapi)
34
- - [getInstantiationStack](MySQLConnection.md#getinstantiationstack)
35
- - [getTimeout](MySQLConnection.md#gettimeout)
36
- - [isClosed](MySQLConnection.md#isclosed)
37
- - [isOpen](MySQLConnection.md#isopen)
38
- - [isReadOnly](MySQLConnection.md#isreadonly)
39
- - [isTransaction](MySQLConnection.md#istransaction)
40
- - [query](MySQLConnection.md#query)
41
- - [rollback](MySQLConnection.md#rollback)
42
- - [setInstantiationStack](MySQLConnection.md#setinstantiationstack)
43
- - [setTimeout](MySQLConnection.md#settimeout)
44
- - [startTransaction](MySQLConnection.md#starttransaction)
45
- - [stream](MySQLConnection.md#stream)
46
-
47
- ## Constructors
48
-
49
- ### constructor
50
-
51
- • **new MySQLConnection**(`connection`, `instantiationStack`, `isReadOnly?`)
52
-
53
- #### Parameters
54
-
55
- | Name | Type | Default value |
56
- | :------ | :------ | :------ |
57
- | `connection` | `PoolConnection` | `undefined` |
58
- | `instantiationStack` | `string` | `undefined` |
59
- | `isReadOnly` | `boolean` | `true` |
60
-
61
- #### Overrides
62
-
63
- [DatabaseConnection](DatabaseConnection.md).[constructor](DatabaseConnection.md#constructor)
64
-
65
- #### Defined in
66
-
67
- [src/MySQLConnection.ts:59](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L59)
68
-
69
- ## Methods
70
-
71
- ### \_close
72
-
73
- ▸ `Protected` **_close**(`forceClose`): `Promise`<`void`\>
74
-
75
- Implementation to close the connection, if `forceClose` is true, close the connection no matter what.
76
- Silently error if it means the connection is closed.
77
-
78
- **`Async`**
79
-
80
- #### Parameters
81
-
82
- | Name | Type | Description |
83
- | :------ | :------ | :------ |
84
- | `forceClose` | `boolean` | boolean, if `true`, should close the connection no matter what. |
85
-
86
- #### Returns
87
-
88
- `Promise`<`void`\>
89
-
90
- Promise<void>
91
-
92
- #### Overrides
93
-
94
- [DatabaseConnection](DatabaseConnection.md).[_close](DatabaseConnection.md#_close)
95
-
96
- #### Defined in
97
-
98
- [src/MySQLConnection.ts:224](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L224)
99
-
100
- ___
101
-
102
- ### \_query
103
-
104
- ▸ `Protected` **_query**(`query`, `params?`): `Promise`<`any`\>
105
-
106
- Implementation method to return a dataset from the database
107
-
108
- **`Async`**
109
-
110
- #### Parameters
111
-
112
- | Name | Type | Description |
113
- | :------ | :------ | :------ |
114
- | `query` | `string` | The database query |
115
- | `params?` | `any` | The query parameters |
116
-
117
- #### Returns
118
-
119
- `Promise`<`any`\>
120
-
121
- Promise
122
-
123
- #### Overrides
124
-
125
- [DatabaseConnection](DatabaseConnection.md).[_query](DatabaseConnection.md#_query)
126
-
127
- #### Defined in
128
-
129
- [src/MySQLConnection.ts:87](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L87)
130
-
131
- ___
132
-
133
- ### \_stream
134
-
135
- ▸ `Protected` **_stream**(`query`, `params?`, `streamOptions?`): `Readable`
136
-
137
- Implementation method to return a dataset from the database like `query()`,
138
- but returns a `Readable` stream instead.
139
-
140
- #### Parameters
141
-
142
- | Name | Type | Description |
143
- | :------ | :------ | :------ |
144
- | `query` | `string` | The database query |
145
- | `params?` | `any` | The query parameters |
146
- | `streamOptions?` | `any` | `Readable` stream options |
147
-
148
- #### Returns
149
-
150
- `Readable`
151
-
152
- `Readable`
153
-
154
- #### Overrides
155
-
156
- [DatabaseConnection](DatabaseConnection.md).[_stream](DatabaseConnection.md#_stream)
157
-
158
- #### Defined in
159
-
160
- [src/MySQLConnection.ts:145](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L145)
161
-
162
- ___
163
-
164
- ### close
165
-
166
- ▸ **close**(`forceClose?`): `Promise`<`void`\>
167
-
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
170
- of transaction state.
171
-
172
- **`Async`**
173
-
174
- #### Parameters
175
-
176
- | Name | Type | Default value | Description |
177
- | :------ | :------ | :------ | :------ |
178
- | `forceClose` | `boolean` | `false` | optional boolean |
179
-
180
- #### Returns
181
-
182
- `Promise`<`void`\>
183
-
184
- Promise<void>
185
-
186
- #### Inherited from
187
-
188
- [DatabaseConnection](DatabaseConnection.md).[close](DatabaseConnection.md#close)
189
-
190
- #### Defined in
191
-
192
- [src/DatabaseConnection.ts:169](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L169)
193
-
194
- ___
195
-
196
- ### commit
197
-
198
- ▸ **commit**(): `Promise`<`void`\>
199
-
200
- Commits a transaction. This will end a transaction.
201
-
202
- **`Abstract`**
203
-
204
- **`Async`**
205
-
206
- #### Returns
207
-
208
- `Promise`<`void`\>
209
-
210
- Promise<void>
211
-
212
- #### Overrides
213
-
214
- [DatabaseConnection](DatabaseConnection.md).[commit](DatabaseConnection.md#commit)
215
-
216
- #### Defined in
217
-
218
- [src/MySQLConnection.ts:208](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L208)
219
-
220
- ___
221
-
222
- ### endTransaction
223
-
224
- ▸ **endTransaction**(`requiresRollback?`): `Promise`<`void`\>
225
-
226
- Ends a transaction. if `requiresRollback` is `true`, then `rollback()` is invoked. Otherwise, `commit()` is invoked.
227
-
228
- **`Abstract`**
229
-
230
- **`Async`**
231
-
232
- #### Parameters
233
-
234
- | Name | Type | Default value | Description |
235
- | :------ | :------ | :------ | :------ |
236
- | `requiresRollback` | `boolean` | `false` | optional boolean |
237
-
238
- #### Returns
239
-
240
- `Promise`<`void`\>
241
-
242
- Promise<void>
243
-
244
- #### Overrides
245
-
246
- [DatabaseConnection](DatabaseConnection.md).[endTransaction](DatabaseConnection.md#endtransaction)
247
-
248
- #### Defined in
249
-
250
- [src/MySQLConnection.ts:188](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L188)
251
-
252
- ___
253
-
254
- ### getAPI
255
-
256
- ▸ **getAPI**(): `PoolConnection`
257
-
258
- Gets the underlying Database API
259
-
260
- #### Returns
261
-
262
- `PoolConnection`
263
-
264
- any
265
-
266
- #### Inherited from
267
-
268
- [DatabaseConnection](DatabaseConnection.md).[getAPI](DatabaseConnection.md#getapi)
269
-
270
- #### Defined in
271
-
272
- [src/DatabaseConnection.ts:91](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L91)
273
-
274
- ___
275
-
276
- ### getInstantiationStack
277
-
278
- ▸ **getInstantiationStack**(): `string`
279
-
280
- Gets the callback stacktrace to determine what opened
281
- this connection. Useful for debugging lingering connections.
282
-
283
- #### Returns
284
-
285
- `string`
286
-
287
- string - A stacktrace
288
-
289
- #### Inherited from
290
-
291
- [DatabaseConnection](DatabaseConnection.md).[getInstantiationStack](DatabaseConnection.md#getinstantiationstack)
292
-
293
- #### Defined in
294
-
295
- [src/DatabaseConnection.ts:73](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L73)
296
-
297
- ___
298
-
299
- ### getTimeout
300
-
301
- ▸ **getTimeout**(): `number`
302
-
303
- Returns the current timeout setting
304
-
305
- #### Returns
306
-
307
- `number`
308
-
309
- number in milliseconds
310
-
311
- #### Inherited from
312
-
313
- [DatabaseConnection](DatabaseConnection.md).[getTimeout](DatabaseConnection.md#gettimeout)
314
-
315
- #### Defined in
316
-
317
- [src/DatabaseConnection.ts:121](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L121)
318
-
319
- ___
320
-
321
- ### isClosed
322
-
323
- ▸ **isClosed**(): `boolean`
324
-
325
- Returns true if the connection has been closed.
326
-
327
- #### Returns
328
-
329
- `boolean`
330
-
331
- #### Inherited from
332
-
333
- [DatabaseConnection](DatabaseConnection.md).[isClosed](DatabaseConnection.md#isclosed)
334
-
335
- #### Defined in
336
-
337
- [src/DatabaseConnection.ts:182](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L182)
338
-
339
- ___
340
-
341
- ### isOpen
342
-
343
- ▸ **isOpen**(): `boolean`
344
-
345
- #### Returns
346
-
347
- `boolean`
348
-
349
- #### Defined in
350
-
351
- [src/MySQLConnection.ts:82](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L82)
352
-
353
- ___
354
-
355
- ### isReadOnly
356
-
357
- ▸ **isReadOnly**(): `boolean`
358
-
359
- Returns true if connection was created without
360
- write access
361
-
362
- #### Returns
363
-
364
- `boolean`
365
-
366
- boolean
367
-
368
- #### Inherited from
369
-
370
- [DatabaseConnection](DatabaseConnection.md).[isReadOnly](DatabaseConnection.md#isreadonly)
371
-
372
- #### Defined in
373
-
374
- [src/DatabaseConnection.ts:100](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L100)
375
-
376
- ___
377
-
378
- ### isTransaction
379
-
380
- ▸ **isTransaction**(): `boolean`
381
-
382
- Implementation method to determine if the connection is in an active transaction.
383
-
384
- **`Abstract`**
385
-
386
- #### Returns
387
-
388
- `boolean`
389
-
390
- boolean
391
-
392
- #### Overrides
393
-
394
- [DatabaseConnection](DatabaseConnection.md).[isTransaction](DatabaseConnection.md#istransaction)
395
-
396
- #### Defined in
397
-
398
- [src/MySQLConnection.ts:78](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L78)
399
-
400
- ___
401
-
402
- ### query
403
-
404
- ▸ **query**<`TQueryResult`\>(`query`): `Promise`<`TQueryResult`\>
405
-
406
- Queries the database for a dataset.
407
-
408
- **`Async`**
409
-
410
- #### Type parameters
411
-
412
- | Name | Type |
413
- | :------ | :------ |
414
- | `TQueryResult` | `any` |
415
-
416
- #### Parameters
417
-
418
- | Name | Type | Description |
419
- | :------ | :------ | :------ |
420
- | `query` | [`IQueryable`](../interfaces/IQueryable.md)<`TQueryResult`\> | The database query |
421
-
422
- #### Returns
423
-
424
- `Promise`<`TQueryResult`\>
425
-
426
- Promise<TQueryResult>
427
-
428
- #### Inherited from
429
-
430
- [DatabaseConnection](DatabaseConnection.md).[query](DatabaseConnection.md#query)
431
-
432
- #### Defined in
433
-
434
- [src/DatabaseConnection.ts:132](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L132)
435
-
436
- ___
437
-
438
- ### rollback
439
-
440
- ▸ **rollback**(): `Promise`<`void`\>
441
-
442
- Rollsback a transaction. This will end a transaction.
443
-
444
- **`Abstract`**
445
-
446
- **`Async`**
447
-
448
- #### Returns
449
-
450
- `Promise`<`void`\>
451
-
452
- Promise<void>
453
-
454
- #### Overrides
455
-
456
- [DatabaseConnection](DatabaseConnection.md).[rollback](DatabaseConnection.md#rollback)
457
-
458
- #### Defined in
459
-
460
- [src/MySQLConnection.ts:192](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L192)
461
-
462
- ___
463
-
464
- ### setInstantiationStack
465
-
466
- ▸ **setInstantiationStack**(`stack`): `void`
467
-
468
- #### Parameters
469
-
470
- | Name | Type |
471
- | :------ | :------ |
472
- | `stack` | `string` |
473
-
474
- #### Returns
475
-
476
- `void`
477
-
478
- #### Inherited from
479
-
480
- [DatabaseConnection](DatabaseConnection.md).[setInstantiationStack](DatabaseConnection.md#setinstantiationstack)
481
-
482
- #### Defined in
483
-
484
- [src/DatabaseConnection.ts:64](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L64)
485
-
486
- ___
487
-
488
- ### setTimeout
489
-
490
- ▸ **setTimeout**(`timeout`): `void`
491
-
492
- Sets the timeout of this connectino
493
-
494
- #### Parameters
495
-
496
- | Name | Type | Description |
497
- | :------ | :------ | :------ |
498
- | `timeout` | `number` | in milliseconds |
499
-
500
- #### Returns
501
-
502
- `void`
503
-
504
- #### Inherited from
505
-
506
- [DatabaseConnection](DatabaseConnection.md).[setTimeout](DatabaseConnection.md#settimeout)
507
-
508
- #### Defined in
509
-
510
- [src/DatabaseConnection.ts:109](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L109)
511
-
512
- ___
513
-
514
- ### startTransaction
515
-
516
- ▸ **startTransaction**(`isolationLevel?`): `Promise`<`void`\>
517
-
518
- Implementation method to start a transaction.
519
-
520
- **`Abstract`**
521
-
522
- **`Async`**
523
-
524
- #### Parameters
525
-
526
- | Name | Type |
527
- | :------ | :------ |
528
- | `isolationLevel?` | [`IsolationLevel`](../enums/IsolationLevel.md) |
529
-
530
- #### Returns
531
-
532
- `Promise`<`void`\>
533
-
534
- Promise<void>
535
-
536
- #### Overrides
537
-
538
- [DatabaseConnection](DatabaseConnection.md).[startTransaction](DatabaseConnection.md#starttransaction)
539
-
540
- #### Defined in
541
-
542
- [src/MySQLConnection.ts:164](https://github.com/breautek/storm/blob/3dcafe4/src/MySQLConnection.ts#L164)
543
-
544
- ___
545
-
546
- ### stream
547
-
548
- ▸ **stream**(`query`, `streamOptions?`): `Readable`
549
-
550
- #### Parameters
551
-
552
- | Name | Type | Description |
553
- | :------ | :------ | :------ |
554
- | `query` | [`IQueryable`](../interfaces/IQueryable.md)<`any`\> | The database query |
555
- | `streamOptions?` | `any` | Stream options |
556
-
557
- #### Returns
558
-
559
- `Readable`
560
-
561
- Readable
562
-
563
- #### Inherited from
564
-
565
- [DatabaseConnection](DatabaseConnection.md).[stream](DatabaseConnection.md#stream)
566
-
567
- #### Defined in
568
-
569
- [src/DatabaseConnection.ts:152](https://github.com/breautek/storm/blob/3dcafe4/src/DatabaseConnection.ts#L152)