@breautek/storm 3.3.1 → 3.4.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 +6 -0
- package/docs/README.md +1 -0
- package/docs/classes/Application.Application-1.md +26 -26
- package/docs/classes/BackendAuthenticationMiddleware.BackendAuthenticationMiddleware-1.md +2 -2
- package/docs/classes/CORSMiddleware.CORSMiddleware-1.md +6 -6
- package/docs/classes/ConfigLoader.ConfigLoader-1.md +1 -1
- package/docs/classes/Database.Database-1.md +12 -12
- package/docs/classes/DatabaseConnection.DatabaseConnection-1.md +19 -19
- package/docs/classes/DatabaseQueryError.DatabaseQueryError-1.md +8 -8
- package/docs/classes/DiskSpaceError.DiskSpaceError-1.md +8 -8
- package/docs/classes/DropTemporaryTableQuery.DropTemporaryTableQuery-1.md +8 -8
- package/docs/classes/DumpStream.DumpStream-1.md +1 -1
- package/docs/classes/DuplicateEntryError.DuplicateEntryError-1.md +8 -8
- package/docs/classes/EntityNotFoundError.EntityNotFoundError-1.md +8 -8
- package/docs/classes/ExpiredTokenError.ExpiredTokenError-1.md +8 -8
- package/docs/classes/Handler.Handler-1.md +14 -14
- package/docs/classes/InternalError.InternalError-1.md +8 -8
- package/docs/classes/InvalidConfigError.InvalidConfigError-1.md +8 -8
- package/docs/classes/InvalidCredentialsError.InvalidCredentialsError-1.md +8 -8
- package/docs/classes/InvalidValueError.InvalidValueError-1.md +8 -8
- package/docs/classes/JWTVerifyOptionsParser.JWTVerifyOptionsParser-1.md +2 -2
- package/docs/classes/ManagedDatabaseConnection.ManagedDatabaseConnection-1.md +19 -19
- package/docs/classes/Middleware.Middleware-1.md +3 -3
- package/docs/classes/MissingConfigError.MissingConfigError-1.md +8 -8
- package/docs/classes/MissingParameterError.MissingParameterError-1.md +8 -8
- package/docs/classes/MySQLConnection.MySQLConnection-1.md +20 -20
- package/docs/classes/MySQLDatabase.MySQLDatabase-1.md +13 -13
- package/docs/classes/Query.Query-1.md +10 -8
- package/docs/classes/RawQuery.RawQuery-1.md +8 -8
- package/docs/classes/Request.Request-1.md +18 -18
- package/docs/classes/Response.Response-1.md +11 -11
- package/docs/classes/ResponseData.ResponseData-1.md +7 -7
- package/docs/classes/ServiceProvider.ServiceProvider-1.md +15 -15
- package/docs/classes/ServiceResponse.ServiceResponse-1.md +4 -4
- package/docs/classes/SetSessionVariableQuery.SetSessionVariableQuery-1.md +197 -0
- package/docs/classes/StormError.StormError-1.md +8 -8
- package/docs/classes/TemporaryTableQuery.TemporaryTableQuery-1.md +8 -8
- package/docs/classes/Token.Token-1.md +2 -2
- package/docs/classes/TokenManager.TokenManager-1.md +4 -4
- package/docs/classes/UnauthorizedAccessError.UnauthorizedAccessError-1.md +8 -8
- package/docs/classes/private_CommitQuery.CommitQuery.md +8 -8
- package/docs/classes/private_RollbackQuery.RollbackQuery.md +8 -8
- package/docs/classes/private_StartTransactionQuery.StartTransactionQuery.md +8 -8
- package/docs/enums/ApplicationEvent.ApplicationEvent-1.md +1 -1
- package/docs/enums/ErrorCode.ErrorCode-1.md +9 -9
- package/docs/enums/ExitCode.ExitCode-1.md +2 -2
- package/docs/enums/HTTPMethod.HTTPMethod-1.md +4 -4
- package/docs/enums/JWTError.JWTError-1.md +2 -2
- package/docs/enums/StatusCode.StatusCode-1.md +48 -48
- package/docs/interfaces/DropTemporaryTableQuery.IDropTemporaryTableQueryInput.md +1 -1
- package/docs/interfaces/IConfig.IConfig-1.md +8 -8
- package/docs/interfaces/IDatabaseConfig.IDatabaseConfig-1.md +6 -6
- package/docs/interfaces/IDatabaseConnection.IDatabaseConnection-1.md +14 -14
- package/docs/interfaces/IFormData.IFormData-1.md +2 -2
- package/docs/interfaces/IHandler.IHandler-1.md +1 -1
- package/docs/interfaces/IInsertQueryResult.IInsertQueryResult-1.md +3 -3
- package/docs/interfaces/IJWTVerifyOptions.IJWTVerifyOptions-1.md +1 -1
- package/docs/interfaces/IRequestResponse.IRequestResponse-1.md +2 -2
- package/docs/interfaces/IUpdateQueryResult.IUpdateQueryResult-1.md +2 -2
- package/docs/interfaces/SetSessionVariableQuery.ISetSessionVariableQueryInput.md +32 -0
- package/docs/interfaces/StormError.IErrorResponse.md +4 -4
- package/docs/interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md +2 -2
- package/docs/modules/DatabaseConnection.md +2 -2
- package/docs/modules/Handler.md +2 -2
- package/docs/modules/IDeleteQueryResult.md +1 -1
- package/docs/modules/Response.md +1 -1
- package/docs/modules/SetSessionVariableQuery.md +13 -0
- package/docs/modules/api.md +14 -0
- package/docs/modules/instance.md +2 -2
- package/lib/SetSessionVariableQuery.d.ts +10 -0
- package/lib/SetSessionVariableQuery.js +20 -0
- package/lib/SetSessionVariableQuery.js.map +1 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.js +3 -1
- package/lib/api.js.map +1 -1
- package/package.json +1 -1
- package/src/SetSessionVariableQuery.ts +29 -0
- package/src/api.ts +1 -0
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[src/IDatabaseConnection.ts:29](https://github.com/breautek/storm/blob/
|
|
49
|
+
[src/IDatabaseConnection.ts:29](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L29)
|
|
50
50
|
|
|
51
51
|
___
|
|
52
52
|
|
|
@@ -60,7 +60,7 @@ ___
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[src/IDatabaseConnection.ts:33](https://github.com/breautek/storm/blob/
|
|
63
|
+
[src/IDatabaseConnection.ts:33](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L33)
|
|
64
64
|
|
|
65
65
|
___
|
|
66
66
|
|
|
@@ -74,7 +74,7 @@ ___
|
|
|
74
74
|
|
|
75
75
|
#### Defined in
|
|
76
76
|
|
|
77
|
-
[src/IDatabaseConnection.ts:23](https://github.com/breautek/storm/blob/
|
|
77
|
+
[src/IDatabaseConnection.ts:23](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L23)
|
|
78
78
|
|
|
79
79
|
___
|
|
80
80
|
|
|
@@ -88,7 +88,7 @@ ___
|
|
|
88
88
|
|
|
89
89
|
#### Defined in
|
|
90
90
|
|
|
91
|
-
[src/IDatabaseConnection.ts:22](https://github.com/breautek/storm/blob/
|
|
91
|
+
[src/IDatabaseConnection.ts:22](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L22)
|
|
92
92
|
|
|
93
93
|
___
|
|
94
94
|
|
|
@@ -102,7 +102,7 @@ ___
|
|
|
102
102
|
|
|
103
103
|
#### Defined in
|
|
104
104
|
|
|
105
|
-
[src/IDatabaseConnection.ts:26](https://github.com/breautek/storm/blob/
|
|
105
|
+
[src/IDatabaseConnection.ts:26](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L26)
|
|
106
106
|
|
|
107
107
|
___
|
|
108
108
|
|
|
@@ -116,7 +116,7 @@ ___
|
|
|
116
116
|
|
|
117
117
|
#### Defined in
|
|
118
118
|
|
|
119
|
-
[src/IDatabaseConnection.ts:30](https://github.com/breautek/storm/blob/
|
|
119
|
+
[src/IDatabaseConnection.ts:30](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L30)
|
|
120
120
|
|
|
121
121
|
___
|
|
122
122
|
|
|
@@ -130,7 +130,7 @@ ___
|
|
|
130
130
|
|
|
131
131
|
#### Defined in
|
|
132
132
|
|
|
133
|
-
[src/IDatabaseConnection.ts:24](https://github.com/breautek/storm/blob/
|
|
133
|
+
[src/IDatabaseConnection.ts:24](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L24)
|
|
134
134
|
|
|
135
135
|
___
|
|
136
136
|
|
|
@@ -144,7 +144,7 @@ ___
|
|
|
144
144
|
|
|
145
145
|
#### Defined in
|
|
146
146
|
|
|
147
|
-
[src/IDatabaseConnection.ts:32](https://github.com/breautek/storm/blob/
|
|
147
|
+
[src/IDatabaseConnection.ts:32](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L32)
|
|
148
148
|
|
|
149
149
|
___
|
|
150
150
|
|
|
@@ -165,7 +165,7 @@ ___
|
|
|
165
165
|
|
|
166
166
|
#### Defined in
|
|
167
167
|
|
|
168
|
-
[src/IDatabaseConnection.ts:27](https://github.com/breautek/storm/blob/
|
|
168
|
+
[src/IDatabaseConnection.ts:27](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L27)
|
|
169
169
|
|
|
170
170
|
___
|
|
171
171
|
|
|
@@ -179,7 +179,7 @@ ___
|
|
|
179
179
|
|
|
180
180
|
#### Defined in
|
|
181
181
|
|
|
182
|
-
[src/IDatabaseConnection.ts:34](https://github.com/breautek/storm/blob/
|
|
182
|
+
[src/IDatabaseConnection.ts:34](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L34)
|
|
183
183
|
|
|
184
184
|
___
|
|
185
185
|
|
|
@@ -199,7 +199,7 @@ ___
|
|
|
199
199
|
|
|
200
200
|
#### Defined in
|
|
201
201
|
|
|
202
|
-
[src/IDatabaseConnection.ts:21](https://github.com/breautek/storm/blob/
|
|
202
|
+
[src/IDatabaseConnection.ts:21](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L21)
|
|
203
203
|
|
|
204
204
|
___
|
|
205
205
|
|
|
@@ -219,7 +219,7 @@ ___
|
|
|
219
219
|
|
|
220
220
|
#### Defined in
|
|
221
221
|
|
|
222
|
-
[src/IDatabaseConnection.ts:25](https://github.com/breautek/storm/blob/
|
|
222
|
+
[src/IDatabaseConnection.ts:25](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L25)
|
|
223
223
|
|
|
224
224
|
___
|
|
225
225
|
|
|
@@ -233,7 +233,7 @@ ___
|
|
|
233
233
|
|
|
234
234
|
#### Defined in
|
|
235
235
|
|
|
236
|
-
[src/IDatabaseConnection.ts:31](https://github.com/breautek/storm/blob/
|
|
236
|
+
[src/IDatabaseConnection.ts:31](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L31)
|
|
237
237
|
|
|
238
238
|
___
|
|
239
239
|
|
|
@@ -255,4 +255,4 @@ ___
|
|
|
255
255
|
|
|
256
256
|
#### Defined in
|
|
257
257
|
|
|
258
|
-
[src/IDatabaseConnection.ts:28](https://github.com/breautek/storm/blob/
|
|
258
|
+
[src/IDatabaseConnection.ts:28](https://github.com/breautek/storm/blob/6ea3887/src/IDatabaseConnection.ts#L28)
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
#### Defined in
|
|
21
21
|
|
|
22
|
-
[src/IFormData.ts:20](https://github.com/breautek/storm/blob/
|
|
22
|
+
[src/IFormData.ts:20](https://github.com/breautek/storm/blob/6ea3887/src/IFormData.ts#L20)
|
|
23
23
|
|
|
24
24
|
___
|
|
25
25
|
|
|
@@ -29,4 +29,4 @@ ___
|
|
|
29
29
|
|
|
30
30
|
#### Defined in
|
|
31
31
|
|
|
32
|
-
[src/IFormData.ts:21](https://github.com/breautek/storm/blob/
|
|
32
|
+
[src/IFormData.ts:21](https://github.com/breautek/storm/blob/6ea3887/src/IFormData.ts#L21)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
#### Defined in
|
|
22
22
|
|
|
23
|
-
[src/IInsertQueryResult.ts:19](https://github.com/breautek/storm/blob/
|
|
23
|
+
[src/IInsertQueryResult.ts:19](https://github.com/breautek/storm/blob/6ea3887/src/IInsertQueryResult.ts#L19)
|
|
24
24
|
|
|
25
25
|
___
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ ___
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[src/IInsertQueryResult.ts:20](https://github.com/breautek/storm/blob/
|
|
33
|
+
[src/IInsertQueryResult.ts:20](https://github.com/breautek/storm/blob/6ea3887/src/IInsertQueryResult.ts#L20)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
@@ -40,4 +40,4 @@ ___
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[src/IInsertQueryResult.ts:18](https://github.com/breautek/storm/blob/
|
|
43
|
+
[src/IInsertQueryResult.ts:18](https://github.com/breautek/storm/blob/6ea3887/src/IInsertQueryResult.ts#L18)
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[src/IRequestResponse.ts:21](https://github.com/breautek/storm/blob/
|
|
29
|
+
[src/IRequestResponse.ts:21](https://github.com/breautek/storm/blob/6ea3887/src/IRequestResponse.ts#L21)
|
|
30
30
|
|
|
31
31
|
___
|
|
32
32
|
|
|
@@ -36,4 +36,4 @@ ___
|
|
|
36
36
|
|
|
37
37
|
#### Defined in
|
|
38
38
|
|
|
39
|
-
[src/IRequestResponse.ts:22](https://github.com/breautek/storm/blob/
|
|
39
|
+
[src/IRequestResponse.ts:22](https://github.com/breautek/storm/blob/6ea3887/src/IRequestResponse.ts#L22)
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
#### Defined in
|
|
21
21
|
|
|
22
|
-
[src/IUpdateQueryResult.ts:18](https://github.com/breautek/storm/blob/
|
|
22
|
+
[src/IUpdateQueryResult.ts:18](https://github.com/breautek/storm/blob/6ea3887/src/IUpdateQueryResult.ts#L18)
|
|
23
23
|
|
|
24
24
|
___
|
|
25
25
|
|
|
@@ -29,4 +29,4 @@ ___
|
|
|
29
29
|
|
|
30
30
|
#### Defined in
|
|
31
31
|
|
|
32
|
-
[src/IUpdateQueryResult.ts:19](https://github.com/breautek/storm/blob/
|
|
32
|
+
[src/IUpdateQueryResult.ts:19](https://github.com/breautek/storm/blob/6ea3887/src/IUpdateQueryResult.ts#L19)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[@breautek/storm](../README.md) / [SetSessionVariableQuery](../modules/SetSessionVariableQuery.md) / ISetSessionVariableQueryInput
|
|
2
|
+
|
|
3
|
+
# Interface: ISetSessionVariableQueryInput
|
|
4
|
+
|
|
5
|
+
[SetSessionVariableQuery](../modules/SetSessionVariableQuery.md).ISetSessionVariableQueryInput
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [name](SetSessionVariableQuery.ISetSessionVariableQueryInput.md#name)
|
|
12
|
+
- [value](SetSessionVariableQuery.ISetSessionVariableQueryInput.md#value)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### name
|
|
17
|
+
|
|
18
|
+
• **name**: `string`
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[src/SetSessionVariableQuery.ts:8](https://github.com/breautek/storm/blob/6ea3887/src/SetSessionVariableQuery.ts#L8)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### value
|
|
27
|
+
|
|
28
|
+
• **value**: `any`
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[src/SetSessionVariableQuery.ts:9](https://github.com/breautek/storm/blob/6ea3887/src/SetSessionVariableQuery.ts#L9)
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
#### Defined in
|
|
23
23
|
|
|
24
|
-
[src/StormError.ts:31](https://github.com/breautek/storm/blob/
|
|
24
|
+
[src/StormError.ts:31](https://github.com/breautek/storm/blob/6ea3887/src/StormError.ts#L31)
|
|
25
25
|
|
|
26
26
|
___
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ ___
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[src/StormError.ts:32](https://github.com/breautek/storm/blob/
|
|
34
|
+
[src/StormError.ts:32](https://github.com/breautek/storm/blob/6ea3887/src/StormError.ts#L32)
|
|
35
35
|
|
|
36
36
|
___
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ ___
|
|
|
41
41
|
|
|
42
42
|
#### Defined in
|
|
43
43
|
|
|
44
|
-
[src/StormError.ts:30](https://github.com/breautek/storm/blob/
|
|
44
|
+
[src/StormError.ts:30](https://github.com/breautek/storm/blob/6ea3887/src/StormError.ts#L30)
|
|
45
45
|
|
|
46
46
|
___
|
|
47
47
|
|
|
@@ -51,4 +51,4 @@ ___
|
|
|
51
51
|
|
|
52
52
|
#### Defined in
|
|
53
53
|
|
|
54
|
-
[src/StormError.ts:29](https://github.com/breautek/storm/blob/
|
|
54
|
+
[src/StormError.ts:29](https://github.com/breautek/storm/blob/6ea3887/src/StormError.ts#L29)
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
#### Defined in
|
|
21
21
|
|
|
22
|
-
[src/TemporaryTableQuery.ts:22](https://github.com/breautek/storm/blob/
|
|
22
|
+
[src/TemporaryTableQuery.ts:22](https://github.com/breautek/storm/blob/6ea3887/src/TemporaryTableQuery.ts#L22)
|
|
23
23
|
|
|
24
24
|
___
|
|
25
25
|
|
|
@@ -29,4 +29,4 @@ ___
|
|
|
29
29
|
|
|
30
30
|
#### Defined in
|
|
31
31
|
|
|
32
|
-
[src/TemporaryTableQuery.ts:21](https://github.com/breautek/storm/blob/
|
|
32
|
+
[src/TemporaryTableQuery.ts:21](https://github.com/breautek/storm/blob/6ea3887/src/TemporaryTableQuery.ts#L21)
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
#### Defined in
|
|
23
23
|
|
|
24
|
-
[src/DatabaseConnection.ts:27](https://github.com/breautek/storm/blob/
|
|
24
|
+
[src/DatabaseConnection.ts:27](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L27)
|
|
25
25
|
|
|
26
26
|
___
|
|
27
27
|
|
|
@@ -31,4 +31,4 @@ ___
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[src/DatabaseConnection.ts:26](https://github.com/breautek/storm/blob/
|
|
34
|
+
[src/DatabaseConnection.ts:26](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L26)
|
package/docs/modules/Handler.md
CHANGED
|
@@ -27,7 +27,7 @@ This is to avoid accidental leakage of privilege data (e.g. snippets of database
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/Handler.ts:54](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/Handler.ts:54](https://github.com/breautek/storm/blob/6ea3887/src/Handler.ts#L54)
|
|
31
31
|
|
|
32
32
|
___
|
|
33
33
|
|
|
@@ -47,4 +47,4 @@ certain things depending on the type of object it receives.
|
|
|
47
47
|
|
|
48
48
|
#### Defined in
|
|
49
49
|
|
|
50
|
-
[src/Handler.ts:45](https://github.com/breautek/storm/blob/
|
|
50
|
+
[src/Handler.ts:45](https://github.com/breautek/storm/blob/6ea3887/src/Handler.ts#L45)
|
package/docs/modules/Response.md
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[@breautek/storm](../README.md) / SetSessionVariableQuery
|
|
2
|
+
|
|
3
|
+
# Module: SetSessionVariableQuery
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Classes
|
|
8
|
+
|
|
9
|
+
- [SetSessionVariableQuery](../classes/SetSessionVariableQuery.SetSessionVariableQuery-1.md)
|
|
10
|
+
|
|
11
|
+
### Interfaces
|
|
12
|
+
|
|
13
|
+
- [ISetSessionVariableQueryInput](../interfaces/SetSessionVariableQuery.ISetSessionVariableQueryInput.md)
|
package/docs/modules/api.md
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
- [IParameterMap](api.md#iparametermap)
|
|
40
40
|
- [IRequestResponse](api.md#irequestresponse)
|
|
41
41
|
- [IServiceHeaders](api.md#iserviceheaders)
|
|
42
|
+
- [ISetSessionVariableQueryInput](api.md#isetsessionvariablequeryinput)
|
|
42
43
|
- [ITemporaryTableQueryInput](api.md#itemporarytablequeryinput)
|
|
43
44
|
- [IUpdateQueryResult](api.md#iupdatequeryresult)
|
|
44
45
|
- [InternalError](api.md#internalerror)
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
- [ResponseData](api.md#responsedata)
|
|
59
60
|
- [ServiceProvider](api.md#serviceprovider)
|
|
60
61
|
- [ServiceResponse](api.md#serviceresponse)
|
|
62
|
+
- [SetSessionVariableQuery](api.md#setsessionvariablequery)
|
|
61
63
|
- [StatusCode](api.md#statuscode)
|
|
62
64
|
- [StormError](api.md#stormerror)
|
|
63
65
|
- [TemporaryTableQuery](api.md#temporarytablequery)
|
|
@@ -274,6 +276,12 @@ Re-exports: [IServiceHeaders](../interfaces/IServiceHeaders.IServiceHeaders-1.md
|
|
|
274
276
|
|
|
275
277
|
___
|
|
276
278
|
|
|
279
|
+
### ISetSessionVariableQueryInput
|
|
280
|
+
|
|
281
|
+
Re-exports: [ISetSessionVariableQueryInput](../interfaces/SetSessionVariableQuery.ISetSessionVariableQueryInput.md)
|
|
282
|
+
|
|
283
|
+
___
|
|
284
|
+
|
|
277
285
|
### ITemporaryTableQueryInput
|
|
278
286
|
|
|
279
287
|
Re-exports: [ITemporaryTableQueryInput](../interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md)
|
|
@@ -388,6 +396,12 @@ Re-exports: [ServiceResponse](../classes/ServiceResponse.ServiceResponse-1.md)
|
|
|
388
396
|
|
|
389
397
|
___
|
|
390
398
|
|
|
399
|
+
### SetSessionVariableQuery
|
|
400
|
+
|
|
401
|
+
Re-exports: [SetSessionVariableQuery](../classes/SetSessionVariableQuery.SetSessionVariableQuery-1.md)
|
|
402
|
+
|
|
403
|
+
___
|
|
404
|
+
|
|
391
405
|
### StatusCode
|
|
392
406
|
|
|
393
407
|
Re-exports: [StatusCode](../enums/StatusCode.StatusCode-1.md)
|
package/docs/modules/instance.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
#### Defined in
|
|
23
23
|
|
|
24
|
-
[src/instance.ts:28](https://github.com/breautek/storm/blob/
|
|
24
|
+
[src/instance.ts:28](https://github.com/breautek/storm/blob/6ea3887/src/instance.ts#L28)
|
|
25
25
|
|
|
26
26
|
___
|
|
27
27
|
|
|
@@ -41,4 +41,4 @@ ___
|
|
|
41
41
|
|
|
42
42
|
#### Defined in
|
|
43
43
|
|
|
44
|
-
[src/instance.ts:21](https://github.com/breautek/storm/blob/
|
|
44
|
+
[src/instance.ts:21](https://github.com/breautek/storm/blob/6ea3887/src/instance.ts#L21)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Query } from './Query';
|
|
2
|
+
import { IDictionary } from '@totalpave/interfaces';
|
|
3
|
+
export interface ISetSessionVariableQueryInput {
|
|
4
|
+
name: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class SetSessionVariableQuery extends Query<ISetSessionVariableQueryInput, void> {
|
|
8
|
+
protected _getQuery(): string;
|
|
9
|
+
getParametersForQuery(): IDictionary;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetSessionVariableQuery = void 0;
|
|
4
|
+
const Query_1 = require("./Query");
|
|
5
|
+
class SetSessionVariableQuery extends Query_1.Query {
|
|
6
|
+
_getQuery() {
|
|
7
|
+
let params = this.getParameters();
|
|
8
|
+
if (!/[a-zA-Z_]/ig.test(params.name)) {
|
|
9
|
+
throw new Error('Illegal Variable Name');
|
|
10
|
+
}
|
|
11
|
+
return `SET SESSION ${params.name} = :value`;
|
|
12
|
+
}
|
|
13
|
+
getParametersForQuery() {
|
|
14
|
+
return {
|
|
15
|
+
value: this.getParameters().value
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SetSessionVariableQuery = SetSessionVariableQuery;
|
|
20
|
+
//# sourceMappingURL=SetSessionVariableQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSessionVariableQuery.js","sourceRoot":"","sources":["../src/SetSessionVariableQuery.ts"],"names":[],"mappings":";;;AACA,mCAEiB;AAQjB,MAAa,uBAAwB,SAAQ,aAA0C;IACzE,SAAS;QACf,IAAI,MAAM,GAAkC,IAAI,CAAC,aAAa,EAAE,CAAC;QAEjE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;SAC5C;QAGD,OAAO,eAAe,MAAM,CAAC,IAAI,WAAW,CAAC;IACjD,CAAC;IAEM,qBAAqB;QACxB,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK;SACpC,CAAC;IACN,CAAC;CACJ;AAjBD,0DAiBC"}
|
package/lib/api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { RawQuery } from './RawQuery';
|
|
|
13
13
|
export { IInsertQueryResult } from './IInsertQueryResult';
|
|
14
14
|
export { IDeleteQueryResult } from './IDeleteQueryResult';
|
|
15
15
|
export { IUpdateQueryResult } from './IUpdateQueryResult';
|
|
16
|
+
export { SetSessionVariableQuery, ISetSessionVariableQueryInput } from './SetSessionVariableQuery';
|
|
16
17
|
export { ErrorCode } from './ErrorCode';
|
|
17
18
|
export { StormError, IErrorResponse, IAdditionalErrorDetails } from './StormError';
|
|
18
19
|
export { JWTError } from './JWTError';
|
package/lib/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formidable = exports.DumpStream = exports.ExitCode = exports.TokenManager = exports.Token = exports.BackendAuthenticationMiddleware = exports.ServiceResponse = exports.HTTPMethod = exports.ServiceProvider = exports.CORSMiddleware = exports.Handler = exports.ResponseData = exports.Response = exports.Request = exports.Middleware = exports.StatusCode = exports.DatabaseQueryError = exports.MissingConfigError = exports.DuplicateEntryError = exports.DiskSpaceError = exports.EntityNotFoundError = exports.UnauthorizedAccessError = exports.InvalidValueError = exports.ExpiredTokenError = exports.InternalError = exports.InvalidCredentialsError = exports.MissingParameterError = exports.JWTError = exports.StormError = exports.ErrorCode = exports.RawQuery = exports.DropTemporaryTableQuery = exports.TemporaryTableQuery = exports.Query = exports.ManagedDatabaseConnection = exports.MySQLConnection = exports.MySQLDatabase = exports.DatabaseConnection = exports.Database = exports.ConfigLoader = exports.Application = exports.getInstance = void 0;
|
|
3
|
+
exports.formidable = exports.DumpStream = exports.ExitCode = exports.TokenManager = exports.Token = exports.BackendAuthenticationMiddleware = exports.ServiceResponse = exports.HTTPMethod = exports.ServiceProvider = exports.CORSMiddleware = exports.Handler = exports.ResponseData = exports.Response = exports.Request = exports.Middleware = exports.StatusCode = exports.DatabaseQueryError = exports.MissingConfigError = exports.DuplicateEntryError = exports.DiskSpaceError = exports.EntityNotFoundError = exports.UnauthorizedAccessError = exports.InvalidValueError = exports.ExpiredTokenError = exports.InternalError = exports.InvalidCredentialsError = exports.MissingParameterError = exports.JWTError = exports.StormError = exports.ErrorCode = exports.SetSessionVariableQuery = exports.RawQuery = exports.DropTemporaryTableQuery = exports.TemporaryTableQuery = exports.Query = exports.ManagedDatabaseConnection = exports.MySQLConnection = exports.MySQLDatabase = exports.DatabaseConnection = exports.Database = exports.ConfigLoader = exports.Application = exports.getInstance = void 0;
|
|
4
4
|
var instance_1 = require("./instance");
|
|
5
5
|
Object.defineProperty(exports, "getInstance", { enumerable: true, get: function () { return instance_1.getInstance; } });
|
|
6
6
|
var Application_1 = require("./Application");
|
|
@@ -25,6 +25,8 @@ var DropTemporaryTableQuery_1 = require("./DropTemporaryTableQuery");
|
|
|
25
25
|
Object.defineProperty(exports, "DropTemporaryTableQuery", { enumerable: true, get: function () { return DropTemporaryTableQuery_1.DropTemporaryTableQuery; } });
|
|
26
26
|
var RawQuery_1 = require("./RawQuery");
|
|
27
27
|
Object.defineProperty(exports, "RawQuery", { enumerable: true, get: function () { return RawQuery_1.RawQuery; } });
|
|
28
|
+
var SetSessionVariableQuery_1 = require("./SetSessionVariableQuery");
|
|
29
|
+
Object.defineProperty(exports, "SetSessionVariableQuery", { enumerable: true, get: function () { return SetSessionVariableQuery_1.SetSessionVariableQuery; } });
|
|
28
30
|
var ErrorCode_1 = require("./ErrorCode");
|
|
29
31
|
Object.defineProperty(exports, "ErrorCode", { enumerable: true, get: function () { return ErrorCode_1.ErrorCode; } });
|
|
30
32
|
var StormError_1 = require("./StormError");
|
package/lib/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";;;AAiBA,uCAAuC;AAA/B,uGAAA,WAAW,OAAA;AACnB,6CAA0C;AAAlC,0GAAA,WAAW,OAAA;AAGnB,+CAA4C;AAApC,4GAAA,YAAY,OAAA;AAGpB,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAChB,2DAAwD;AAAhD,wHAAA,kBAAkB,OAAA;AAC1B,iDAA8C;AAAtC,8GAAA,aAAa,OAAA;AACrB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA;AACvB,yEAAsE;AAA9D,sIAAA,yBAAyB,OAAA;AACjC,iCAA8B;AAAtB,8FAAA,KAAK,OAAA;AACb,6DAAqF;AAA7E,0HAAA,mBAAmB,OAAA;AAC3B,qEAAkE;AAA1D,kIAAA,uBAAuB,OAAA;AAC/B,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";;;AAiBA,uCAAuC;AAA/B,uGAAA,WAAW,OAAA;AACnB,6CAA0C;AAAlC,0GAAA,WAAW,OAAA;AAGnB,+CAA4C;AAApC,4GAAA,YAAY,OAAA;AAGpB,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAChB,2DAAwD;AAAhD,wHAAA,kBAAkB,OAAA;AAC1B,iDAA8C;AAAtC,8GAAA,aAAa,OAAA;AACrB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA;AACvB,yEAAsE;AAA9D,sIAAA,yBAAyB,OAAA;AACjC,iCAA8B;AAAtB,8FAAA,KAAK,OAAA;AACb,6DAAqF;AAA7E,0HAAA,mBAAmB,OAAA;AAC3B,qEAAkE;AAA1D,kIAAA,uBAAuB,OAAA;AAC/B,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAIhB,qEAAiG;AAAzF,kIAAA,uBAAuB,OAAA;AAG/B,yCAAsC;AAA9B,sGAAA,SAAS,OAAA;AACjB,2CAIsB;AAHlB,wGAAA,UAAU,OAAA;AAId,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAChB,iEAA8D;AAAtD,8HAAA,qBAAqB,OAAA;AAC7B,qEAAkE;AAA1D,kIAAA,uBAAuB,OAAA;AAC/B,iDAA8C;AAAtC,8GAAA,aAAa,OAAA;AACrB,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,qEAAkE;AAA1D,kIAAA,uBAAuB,OAAA;AAC/B,6DAA0D;AAAlD,0HAAA,mBAAmB,OAAA;AAC3B,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AACtB,6DAA0D;AAAlD,0HAAA,mBAAmB,OAAA;AAC3B,2DAAwD;AAAhD,wHAAA,kBAAkB,OAAA;AAC1B,2DAAwD;AAAhD,wHAAA,kBAAkB,OAAA;AAG1B,2CAAwC;AAAhC,wGAAA,UAAU,OAAA;AAClB,2CAAwC;AAAhC,wGAAA,UAAU,OAAA;AAClB,qCAAiD;AAAzC,kGAAA,OAAO,OAAA;AACf,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAChB,+CAA4C;AAApC,4GAAA,YAAY,OAAA;AACpB,qCAAmE;AAA3D,kGAAA,OAAO,OAAA;AACf,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AACtB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA;AACvB,2CAAwC;AAAhC,wGAAA,UAAU,OAAA;AAClB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA;AACvB,qFAAkF;AAA1E,kJAAA,+BAA+B,OAAA;AAcvC,iCAA8B;AAAtB,8FAAA,KAAK,OAAA;AACb,+CAA4C;AAApC,4GAAA,YAAY,OAAA;AAGpB,uCAAoC;AAA5B,oGAAA,QAAQ,OAAA;AAChB,2CAAwC;AAAhC,wGAAA,UAAU,OAAA;AAGlB,yCAAyC;AACjC,gCAAU"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
Query
|
|
4
|
+
} from './Query';
|
|
5
|
+
import { IDictionary } from '@totalpave/interfaces';
|
|
6
|
+
|
|
7
|
+
export interface ISetSessionVariableQueryInput {
|
|
8
|
+
name: string;
|
|
9
|
+
value: any;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class SetSessionVariableQuery extends Query<ISetSessionVariableQueryInput, void> {
|
|
13
|
+
protected _getQuery(): string {
|
|
14
|
+
let params: ISetSessionVariableQueryInput = this.getParameters();
|
|
15
|
+
|
|
16
|
+
if (!/[a-zA-Z_]/ig.test(params.name)) {
|
|
17
|
+
throw new Error('Illegal Variable Name');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Only allow alpha letters & underscores for variable names
|
|
21
|
+
return `SET SESSION ${params.name} = :value`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public getParametersForQuery(): IDictionary {
|
|
25
|
+
return {
|
|
26
|
+
value: this.getParameters().value
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
package/src/api.ts
CHANGED
|
@@ -34,6 +34,7 @@ export {RawQuery} from './RawQuery';
|
|
|
34
34
|
export {IInsertQueryResult} from './IInsertQueryResult';
|
|
35
35
|
export {IDeleteQueryResult} from './IDeleteQueryResult';
|
|
36
36
|
export {IUpdateQueryResult} from './IUpdateQueryResult';
|
|
37
|
+
export {SetSessionVariableQuery, ISetSessionVariableQueryInput} from './SetSessionVariableQuery';
|
|
37
38
|
|
|
38
39
|
// Errors
|
|
39
40
|
export {ErrorCode} from './ErrorCode';
|