@breautek/storm 5.0.1-beta.3 → 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 +18 -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,49 +0,0 @@
1
- [@breautek/storm](../README.md) / BackendAuthenticationMiddleware
2
-
3
- # Class: BackendAuthenticationMiddleware
4
-
5
- A base authentication strategy that handles 90% of the authentication process.
6
- This will verify that the token hasn't been manipulated or tainted.
7
- The authenticate API must be implemented by subclasses to further validate the token data
8
- for their specific use cases.
9
-
10
- ## Table of contents
11
-
12
- ### Constructors
13
-
14
- - [constructor](BackendAuthenticationMiddleware.md#constructor)
15
-
16
- ### Methods
17
-
18
- - [execute](BackendAuthenticationMiddleware.md#execute)
19
-
20
- ## Constructors
21
-
22
- ### constructor
23
-
24
- • **new BackendAuthenticationMiddleware**()
25
-
26
- #### Defined in
27
-
28
- [src/BackendAuthenticationMiddleware.ts:35](https://github.com/breautek/storm/blob/d45307d/src/BackendAuthenticationMiddleware.ts#L35)
29
-
30
- ## Methods
31
-
32
- ### execute
33
-
34
- ▸ **execute**(`request`, `options?`): `Promise`<`any`\>
35
-
36
- #### Parameters
37
-
38
- | Name | Type | Description |
39
- | :------ | :------ | :------ |
40
- | `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> | |
41
- | `options?` | `any` | Arbituary object containing any relevant information used for authentication. |
42
-
43
- #### Returns
44
-
45
- `Promise`<`any`\>
46
-
47
- #### Defined in
48
-
49
- [src/BackendAuthenticationMiddleware.ts:46](https://github.com/breautek/storm/blob/d45307d/src/BackendAuthenticationMiddleware.ts#L46)
@@ -1,143 +0,0 @@
1
- [@breautek/storm](../README.md) / CORSMiddleware
2
-
3
- # Class: CORSMiddleware
4
-
5
- CORSMiddleware is used to enable CORS on APIs.
6
- It will automatically add the necessary headers necessary to
7
- communicate with CORS enabled clients.
8
-
9
- ## Hierarchy
10
-
11
- - [`Middleware`](Middleware.md)
12
-
13
- ↳ **`CORSMiddleware`**
14
-
15
- ## Table of contents
16
-
17
- ### Constructors
18
-
19
- - [constructor](CORSMiddleware.md#constructor)
20
-
21
- ### Methods
22
-
23
- - [\_execute](CORSMiddleware.md#_execute)
24
- - [execute](CORSMiddleware.md#execute)
25
- - [getDefaultAllowedHeaders](CORSMiddleware.md#getdefaultallowedheaders)
26
- - [getDefaultAllowedMethods](CORSMiddleware.md#getdefaultallowedmethods)
27
- - [getDefaultAllowedOrigin](CORSMiddleware.md#getdefaultallowedorigin)
28
-
29
- ## Constructors
30
-
31
- ### constructor
32
-
33
- • **new CORSMiddleware**(`allowedOrigin?`, `allowedHeaders?`, `allowedMethods?`)
34
-
35
- #### Parameters
36
-
37
- | Name | Type | Description |
38
- | :------ | :------ | :------ |
39
- | `allowedOrigin?` | `string` | The allowed origin. By default it will use the request origin. |
40
- | `allowedHeaders?` | `string`[] | Array of allowed headers. |
41
- | `allowedMethods?` | `string`[] | Array of allowed HTTP methods. |
42
-
43
- #### Overrides
44
-
45
- [Middleware](Middleware.md).[constructor](Middleware.md#constructor)
46
-
47
- #### Defined in
48
-
49
- [src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/d45307d/src/CORSMiddleware.ts#L39)
50
-
51
- ## Methods
52
-
53
- ### \_execute
54
-
55
- ▸ `Protected` **_execute**(`request`, `response`): `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
56
-
57
- #### Parameters
58
-
59
- | Name | Type |
60
- | :------ | :------ |
61
- | `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
62
- | `response` | [`Response`](Response.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
63
-
64
- #### Returns
65
-
66
- `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
67
-
68
- #### Overrides
69
-
70
- [Middleware](Middleware.md).[_execute](Middleware.md#_execute)
71
-
72
- #### Defined in
73
-
74
- [src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/d45307d/src/CORSMiddleware.ts#L75)
75
-
76
- ___
77
-
78
- ### execute
79
-
80
- ▸ **execute**(`request`, `response`): `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
81
-
82
- #### Parameters
83
-
84
- | Name | Type |
85
- | :------ | :------ |
86
- | `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
87
- | `response` | [`Response`](Response.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
88
-
89
- #### Returns
90
-
91
- `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
92
-
93
- #### Inherited from
94
-
95
- [Middleware](Middleware.md).[execute](Middleware.md#execute)
96
-
97
- #### Defined in
98
-
99
- [src/Middleware.ts:27](https://github.com/breautek/storm/blob/d45307d/src/Middleware.ts#L27)
100
-
101
- ___
102
-
103
- ### getDefaultAllowedHeaders
104
-
105
- ▸ **getDefaultAllowedHeaders**(): `string`[]
106
-
107
- #### Returns
108
-
109
- `string`[]
110
-
111
- #### Defined in
112
-
113
- [src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/d45307d/src/CORSMiddleware.ts#L54)
114
-
115
- ___
116
-
117
- ### getDefaultAllowedMethods
118
-
119
- ▸ **getDefaultAllowedMethods**(): `string`[]
120
-
121
- #### Returns
122
-
123
- `string`[]
124
-
125
- #### Defined in
126
-
127
- [src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/d45307d/src/CORSMiddleware.ts#L64)
128
-
129
- ___
130
-
131
- ### getDefaultAllowedOrigin
132
-
133
- ▸ **getDefaultAllowedOrigin**(): `string`
134
-
135
- Sets the allowed origin. By default,
136
-
137
- #### Returns
138
-
139
- `string`
140
-
141
- #### Defined in
142
-
143
- [src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/d45307d/src/CORSMiddleware.ts#L50)
@@ -1,29 +0,0 @@
1
- [@breautek/storm](../README.md) / ConfigLoader
2
-
3
- # Class: ConfigLoader
4
-
5
- ## Table of contents
6
-
7
- ### Methods
8
-
9
- - [load](ConfigLoader.md#load)
10
-
11
- ## Methods
12
-
13
- ### load
14
-
15
- ▸ `Static` **load**(`path`): `Promise`<[`IConfig`](../interfaces/IConfig.md)\>
16
-
17
- #### Parameters
18
-
19
- | Name | Type |
20
- | :------ | :------ |
21
- | `path` | `string` |
22
-
23
- #### Returns
24
-
25
- `Promise`<[`IConfig`](../interfaces/IConfig.md)\>
26
-
27
- #### Defined in
28
-
29
- [src/ConfigLoader.ts:34](https://github.com/breautek/storm/blob/d45307d/src/ConfigLoader.ts#L34)
@@ -1,259 +0,0 @@
1
- [@breautek/storm](../README.md) / Database
2
-
3
- # Class: Database<TDatabaseConfig, TConnectionAPI\>
4
-
5
- ## Type parameters
6
-
7
- | Name |
8
- | :------ |
9
- | `TDatabaseConfig` |
10
- | `TConnectionAPI` |
11
-
12
- ## Hierarchy
13
-
14
- - **`Database`**
15
-
16
- ↳ [`MySQLDatabase`](MySQLDatabase.md)
17
-
18
- ## Table of contents
19
-
20
- ### Constructors
21
-
22
- - [constructor](Database.md#constructor)
23
-
24
- ### Methods
25
-
26
- - [\_addNode](Database.md#_addnode)
27
- - [\_destroy](Database.md#_destroy)
28
- - [\_getConnection](Database.md#_getconnection)
29
- - [\_removeNode](Database.md#_removenode)
30
- - [addMaster](Database.md#addmaster)
31
- - [addSlave](Database.md#addslave)
32
- - [destroy](Database.md#destroy)
33
- - [escape](Database.md#escape)
34
- - [getConnection](Database.md#getconnection)
35
- - [removeMaster](Database.md#removemaster)
36
- - [removeSlave](Database.md#removeslave)
37
-
38
- ## Constructors
39
-
40
- ### constructor
41
-
42
- • **new Database**<`TDatabaseConfig`, `TConnectionAPI`\>()
43
-
44
- #### Type parameters
45
-
46
- | Name |
47
- | :------ |
48
- | `TDatabaseConfig` |
49
- | `TConnectionAPI` |
50
-
51
- #### Defined in
52
-
53
- [src/Database.ts:27](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L27)
54
-
55
- ## Methods
56
-
57
- ### \_addNode
58
-
59
- ▸ `Protected` `Abstract` **_addNode**(`name`, `config`): `void`
60
-
61
- #### Parameters
62
-
63
- | Name | Type |
64
- | :------ | :------ |
65
- | `name` | `string` |
66
- | `config` | `TDatabaseConfig` |
67
-
68
- #### Returns
69
-
70
- `void`
71
-
72
- #### Defined in
73
-
74
- [src/Database.ts:82](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L82)
75
-
76
- ___
77
-
78
- ### \_destroy
79
-
80
- ▸ `Protected` `Abstract` **_destroy**(): `Promise`<`void`\>
81
-
82
- #### Returns
83
-
84
- `Promise`<`void`\>
85
-
86
- #### Defined in
87
-
88
- [src/Database.ts:81](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L81)
89
-
90
- ___
91
-
92
- ### \_getConnection
93
-
94
- ▸ `Protected` `Abstract` **_getConnection**(`query`, `requireWriteAccess`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
95
-
96
- #### Parameters
97
-
98
- | Name | Type |
99
- | :------ | :------ |
100
- | `query` | `string` |
101
- | `requireWriteAccess` | `boolean` |
102
-
103
- #### Returns
104
-
105
- `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
106
-
107
- #### Defined in
108
-
109
- [src/Database.ts:84](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L84)
110
-
111
- ___
112
-
113
- ### \_removeNode
114
-
115
- ▸ `Protected` `Abstract` **_removeNode**(`name`): `void`
116
-
117
- #### Parameters
118
-
119
- | Name | Type |
120
- | :------ | :------ |
121
- | `name` | `string` |
122
-
123
- #### Returns
124
-
125
- `void`
126
-
127
- #### Defined in
128
-
129
- [src/Database.ts:83](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L83)
130
-
131
- ___
132
-
133
- ### addMaster
134
-
135
- ▸ **addMaster**(`config`): `void`
136
-
137
- #### Parameters
138
-
139
- | Name | Type |
140
- | :------ | :------ |
141
- | `config` | `TDatabaseConfig` |
142
-
143
- #### Returns
144
-
145
- `void`
146
-
147
- #### Defined in
148
-
149
- [src/Database.ts:31](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L31)
150
-
151
- ___
152
-
153
- ### addSlave
154
-
155
- ▸ **addSlave**(`slaveID`, `config`): `string`
156
-
157
- #### Parameters
158
-
159
- | Name | Type |
160
- | :------ | :------ |
161
- | `slaveID` | `string` |
162
- | `config` | `TDatabaseConfig` |
163
-
164
- #### Returns
165
-
166
- `string`
167
-
168
- #### Defined in
169
-
170
- [src/Database.ts:45](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L45)
171
-
172
- ___
173
-
174
- ### destroy
175
-
176
- ▸ **destroy**(): `Promise`<`void`\>
177
-
178
- #### Returns
179
-
180
- `Promise`<`void`\>
181
-
182
- #### Defined in
183
-
184
- [src/Database.ts:77](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L77)
185
-
186
- ___
187
-
188
- ### escape
189
-
190
- ▸ `Abstract` **escape**(`query`): `string`
191
-
192
- #### Parameters
193
-
194
- | Name | Type |
195
- | :------ | :------ |
196
- | `query` | `string` |
197
-
198
- #### Returns
199
-
200
- `string`
201
-
202
- #### Defined in
203
-
204
- [src/Database.ts:85](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L85)
205
-
206
- ___
207
-
208
- ### getConnection
209
-
210
- ▸ **getConnection**(`requireWriteAccess?`, `nodeID?`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
211
-
212
- #### Parameters
213
-
214
- | Name | Type | Default value |
215
- | :------ | :------ | :------ |
216
- | `requireWriteAccess` | `boolean` | `false` |
217
- | `nodeID?` | `string` | `undefined` |
218
-
219
- #### Returns
220
-
221
- `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
222
-
223
- #### Defined in
224
-
225
- [src/Database.ts:64](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L64)
226
-
227
- ___
228
-
229
- ### removeMaster
230
-
231
- ▸ **removeMaster**(): `void`
232
-
233
- #### Returns
234
-
235
- `void`
236
-
237
- #### Defined in
238
-
239
- [src/Database.ts:40](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L40)
240
-
241
- ___
242
-
243
- ### removeSlave
244
-
245
- ▸ **removeSlave**(`slaveID`): `void`
246
-
247
- #### Parameters
248
-
249
- | Name | Type |
250
- | :------ | :------ |
251
- | `slaveID` | `string` |
252
-
253
- #### Returns
254
-
255
- `void`
256
-
257
- #### Defined in
258
-
259
- [src/Database.ts:54](https://github.com/breautek/storm/blob/d45307d/src/Database.ts#L54)
@@ -1,79 +0,0 @@
1
- [@breautek/storm](../README.md) / DatabaseCastObject
2
-
3
- # Class: DatabaseCastObject
4
-
5
- ## Hierarchy
6
-
7
- - **`DatabaseCastObject`**
8
-
9
- ↳ [`Point`](Point.md)
10
-
11
- ↳ [`LineString`](LineString.md)
12
-
13
- ↳ [`Polygon`](Polygon.md)
14
-
15
- ## Table of contents
16
-
17
- ### Constructors
18
-
19
- - [constructor](DatabaseCastObject.md#constructor)
20
-
21
- ### Methods
22
-
23
- - [\_toSQLString](DatabaseCastObject.md#_tosqlstring)
24
- - [escape](DatabaseCastObject.md#escape)
25
- - [toSqlString](DatabaseCastObject.md#tosqlstring)
26
-
27
- ## Constructors
28
-
29
- ### constructor
30
-
31
- • **new DatabaseCastObject**()
32
-
33
- ## Methods
34
-
35
- ### \_toSQLString
36
-
37
- ▸ `Protected` `Abstract` **_toSQLString**(): `string`
38
-
39
- #### Returns
40
-
41
- `string`
42
-
43
- #### Defined in
44
-
45
- [src/DatabaseCastObject.ts:28](https://github.com/breautek/storm/blob/d45307d/src/DatabaseCastObject.ts#L28)
46
-
47
- ___
48
-
49
- ### escape
50
-
51
- ▸ **escape**(`value`): `string`
52
-
53
- #### Parameters
54
-
55
- | Name | Type |
56
- | :------ | :------ |
57
- | `value` | `any` |
58
-
59
- #### Returns
60
-
61
- `string`
62
-
63
- #### Defined in
64
-
65
- [src/DatabaseCastObject.ts:24](https://github.com/breautek/storm/blob/d45307d/src/DatabaseCastObject.ts#L24)
66
-
67
- ___
68
-
69
- ### toSqlString
70
-
71
- ▸ **toSqlString**(): `string`
72
-
73
- #### Returns
74
-
75
- `string`
76
-
77
- #### Defined in
78
-
79
- [src/DatabaseCastObject.ts:20](https://github.com/breautek/storm/blob/d45307d/src/DatabaseCastObject.ts#L20)