|
5 | 5 | "name": "SHOW VARIABLE AUTOCOMMIT", |
6 | 6 | "executorName": "ClientSideStatementNoParamExecutor", |
7 | 7 | "resultType": "RESULT_SET", |
| 8 | + "statementType": "SHOW_AUTOCOMMIT", |
8 | 9 | "regex": "(?is)\\A\\s*show\\s+variable\\s+autocommit\\s*\\z", |
9 | 10 | "method": "statementShowAutocommit", |
10 | 11 | "exampleStatements": ["show variable autocommit"] |
|
13 | 14 | "name": "SHOW VARIABLE READONLY", |
14 | 15 | "executorName": "ClientSideStatementNoParamExecutor", |
15 | 16 | "resultType": "RESULT_SET", |
| 17 | + "statementType": "SHOW_READONLY", |
16 | 18 | "regex": "(?is)\\A\\s*show\\s+variable\\s+readonly\\s*\\z", |
17 | 19 | "method": "statementShowReadOnly", |
18 | 20 | "exampleStatements": ["show variable readonly"] |
|
21 | 23 | "name": "SHOW VARIABLE RETRY_ABORTS_INTERNALLY", |
22 | 24 | "executorName": "ClientSideStatementNoParamExecutor", |
23 | 25 | "resultType": "RESULT_SET", |
| 26 | + "statementType": "SHOW_RETRY_ABORTS_INTERNALLY", |
24 | 27 | "regex": "(?is)\\A\\s*show\\s+variable\\s+retry_aborts_internally\\s*\\z", |
25 | 28 | "method": "statementShowRetryAbortsInternally", |
26 | 29 | "exampleStatements": ["show variable retry_aborts_internally"], |
|
30 | 33 | "name": "SHOW VARIABLE AUTOCOMMIT_DML_MODE", |
31 | 34 | "executorName": "ClientSideStatementNoParamExecutor", |
32 | 35 | "resultType": "RESULT_SET", |
| 36 | + "statementType": "SHOW_AUTOCOMMIT_DML_MODE", |
33 | 37 | "regex": "(?is)\\A\\s*show\\s+variable\\s+autocommit_dml_mode\\s*\\z", |
34 | 38 | "method": "statementShowAutocommitDmlMode", |
35 | 39 | "exampleStatements": ["show variable autocommit_dml_mode"] |
|
38 | 42 | "name": "SHOW VARIABLE STATEMENT_TIMEOUT", |
39 | 43 | "executorName": "ClientSideStatementNoParamExecutor", |
40 | 44 | "resultType": "RESULT_SET", |
| 45 | + "statementType": "SHOW_STATEMENT_TIMEOUT", |
41 | 46 | "regex": "(?is)\\A\\s*show\\s+variable\\s+statement_timeout\\s*\\z", |
42 | 47 | "method": "statementShowStatementTimeout", |
43 | 48 | "exampleStatements": ["show variable statement_timeout"] |
|
46 | 51 | "name": "SHOW VARIABLE READ_TIMESTAMP", |
47 | 52 | "executorName": "ClientSideStatementNoParamExecutor", |
48 | 53 | "resultType": "RESULT_SET", |
| 54 | + "statementType": "SHOW_READ_TIMESTAMP", |
49 | 55 | "regex": "(?is)\\A\\s*show\\s+variable\\s+read_timestamp\\s*\\z", |
50 | 56 | "method": "statementShowReadTimestamp", |
51 | 57 | "exampleStatements": ["show variable read_timestamp"], |
|
55 | 61 | "name": "SHOW VARIABLE COMMIT_TIMESTAMP", |
56 | 62 | "executorName": "ClientSideStatementNoParamExecutor", |
57 | 63 | "resultType": "RESULT_SET", |
| 64 | + "statementType": "SHOW_COMMIT_TIMESTAMP", |
58 | 65 | "regex": "(?is)\\A\\s*show\\s+variable\\s+commit_timestamp\\s*\\z", |
59 | 66 | "method": "statementShowCommitTimestamp", |
60 | 67 | "exampleStatements": ["show variable commit_timestamp"], |
|
64 | 71 | "name": "SHOW VARIABLE READ_ONLY_STALENESS", |
65 | 72 | "executorName": "ClientSideStatementNoParamExecutor", |
66 | 73 | "resultType": "RESULT_SET", |
| 74 | + "statementType": "SHOW_READ_ONLY_STALENESS", |
67 | 75 | "regex": "(?is)\\A\\s*show\\s+variable\\s+read_only_staleness\\s*\\z", |
68 | 76 | "method": "statementShowReadOnlyStaleness", |
69 | 77 | "exampleStatements": ["show variable read_only_staleness"] |
|
72 | 80 | "name": "SHOW VARIABLE OPTIMIZER_VERSION", |
73 | 81 | "executorName": "ClientSideStatementNoParamExecutor", |
74 | 82 | "resultType": "RESULT_SET", |
| 83 | + "statementType": "SHOW_OPTIMIZER_VERSION", |
75 | 84 | "regex": "(?is)\\A\\s*show\\s+variable\\s+optimizer_version\\s*\\z", |
76 | 85 | "method": "statementShowOptimizerVersion", |
77 | 86 | "exampleStatements": ["show variable optimizer_version"] |
|
80 | 89 | "name": "SHOW VARIABLE OPTIMIZER_STATISTICS_PACKAGE", |
81 | 90 | "executorName": "ClientSideStatementNoParamExecutor", |
82 | 91 | "resultType": "RESULT_SET", |
| 92 | + "statementType": "SHOW_OPTIMIZER_STATISTICS_PACKAGE", |
83 | 93 | "regex": "(?is)\\A\\s*show\\s+variable\\s+optimizer_statistics_package\\s*\\z", |
84 | 94 | "method": "statementShowOptimizerStatisticsPackage", |
85 | 95 | "exampleStatements": ["show variable optimizer_statistics_package"] |
|
88 | 98 | "name": "SHOW VARIABLE RETURN_COMMIT_STATS", |
89 | 99 | "executorName": "ClientSideStatementNoParamExecutor", |
90 | 100 | "resultType": "RESULT_SET", |
| 101 | + "statementType": "SHOW_RETURN_COMMIT_STATS", |
91 | 102 | "regex": "(?is)\\A\\s*show\\s+variable\\s+return_commit_stats\\s*\\z", |
92 | 103 | "method": "statementShowReturnCommitStats", |
93 | 104 | "exampleStatements": ["show variable return_commit_stats"] |
|
96 | 107 | "name": "SHOW VARIABLE COMMIT_RESPONSE", |
97 | 108 | "executorName": "ClientSideStatementNoParamExecutor", |
98 | 109 | "resultType": "RESULT_SET", |
| 110 | + "statementType": "SHOW_COMMIT_RESPONSE", |
99 | 111 | "regex": "(?is)\\A\\s*show\\s+variable\\s+commit_response\\s*\\z", |
100 | 112 | "method": "statementShowCommitResponse", |
101 | 113 | "exampleStatements": ["show variable commit_response"], |
|
105 | 117 | "name": "SHOW VARIABLE STATEMENT_TAG", |
106 | 118 | "executorName": "ClientSideStatementNoParamExecutor", |
107 | 119 | "resultType": "RESULT_SET", |
| 120 | + "statementType": "SHOW_STATEMENT_TAG", |
108 | 121 | "regex": "(?is)\\A\\s*show\\s+variable\\s+statement_tag\\s*\\z", |
109 | 122 | "method": "statementShowStatementTag", |
110 | 123 | "exampleStatements": ["show variable statement_tag"] |
|
113 | 126 | "name": "SHOW VARIABLE TRANSACTION_TAG", |
114 | 127 | "executorName": "ClientSideStatementNoParamExecutor", |
115 | 128 | "resultType": "RESULT_SET", |
| 129 | + "statementType": "SHOW_TRANSACTION_TAG", |
116 | 130 | "regex": "(?is)\\A\\s*show\\s+variable\\s+transaction_tag\\s*\\z", |
117 | 131 | "method": "statementShowTransactionTag", |
118 | 132 | "exampleStatements": ["show variable transaction_tag"] |
|
121 | 135 | "name": "SHOW VARIABLE RPC_PRIORITY", |
122 | 136 | "executorName": "ClientSideStatementNoParamExecutor", |
123 | 137 | "resultType": "RESULT_SET", |
| 138 | + "statementType": "SHOW_TRANSACTION_TAG", |
124 | 139 | "regex": "(?is)\\A\\s*show\\s+variable\\s+rpc_priority\\s*\\z", |
125 | 140 | "method": "statementShowRPCPriority", |
126 | 141 | "exampleStatements": ["show variable rpc_priority"] |
|
129 | 144 | "name": "BEGIN TRANSACTION", |
130 | 145 | "executorName": "ClientSideStatementNoParamExecutor", |
131 | 146 | "resultType": "NO_RESULT", |
| 147 | + "statementType": "BEGIN", |
132 | 148 | "regex": "(?is)\\A\\s*(?:begin|start)(?:\\s+transaction)?\\s*\\z", |
133 | 149 | "method": "statementBeginTransaction", |
134 | 150 | "exampleStatements": ["begin", "start", "begin transaction", "start transaction"] |
|
137 | 153 | "name": "COMMIT TRANSACTION", |
138 | 154 | "executorName": "ClientSideStatementNoParamExecutor", |
139 | 155 | "resultType": "NO_RESULT", |
| 156 | + "statementType": "COMMIT", |
140 | 157 | "regex": "(?is)\\A\\s*(?:commit)(?:\\s+transaction)?\\s*\\z", |
141 | 158 | "method": "statementCommit", |
142 | 159 | "exampleStatements": ["commit", "commit transaction"], |
|
146 | 163 | "name": "ROLLBACK TRANSACTION", |
147 | 164 | "executorName": "ClientSideStatementNoParamExecutor", |
148 | 165 | "resultType": "NO_RESULT", |
| 166 | + "statementType": "ROLLBACK", |
149 | 167 | "regex": "(?is)\\A\\s*(?:rollback)(?:\\s+transaction)?\\s*\\z", |
150 | 168 | "method": "statementRollback", |
151 | 169 | "exampleStatements": ["rollback", "rollback transaction"], |
|
155 | 173 | "name": "START BATCH DDL", |
156 | 174 | "executorName": "ClientSideStatementNoParamExecutor", |
157 | 175 | "resultType": "NO_RESULT", |
| 176 | + "statementType": "START_BATCH_DDL", |
158 | 177 | "regex": "(?is)\\A\\s*(?:start)(?:\\s+batch)(?:\\s+ddl)\\s*\\z", |
159 | 178 | "method": "statementStartBatchDdl", |
160 | 179 | "exampleStatements": ["start batch ddl"] |
|
163 | 182 | "name": "START BATCH DML", |
164 | 183 | "executorName": "ClientSideStatementNoParamExecutor", |
165 | 184 | "resultType": "NO_RESULT", |
| 185 | + "statementType": "START_BATCH_DML", |
166 | 186 | "regex": "(?is)\\A\\s*(?:start)(?:\\s+batch)(?:\\s+dml)\\s*\\z", |
167 | 187 | "method": "statementStartBatchDml", |
168 | 188 | "exampleStatements": ["start batch dml"] |
|
171 | 191 | "name": "RUN BATCH", |
172 | 192 | "executorName": "ClientSideStatementNoParamExecutor", |
173 | 193 | "resultType": "NO_RESULT", |
| 194 | + "statementType": "RUN_BATCH", |
174 | 195 | "regex": "(?is)\\A\\s*(?:run)(?:\\s+batch)\\s*\\z", |
175 | 196 | "method": "statementRunBatch", |
176 | 197 | "exampleStatements": ["run batch"], |
|
180 | 201 | "name": "ABORT BATCH", |
181 | 202 | "executorName": "ClientSideStatementNoParamExecutor", |
182 | 203 | "resultType": "NO_RESULT", |
| 204 | + "statementType": "ABORT_BATCH", |
183 | 205 | "regex": "(?is)\\A\\s*(?:abort)(?:\\s+batch)\\s*\\z", |
184 | 206 | "method": "statementAbortBatch", |
185 | 207 | "exampleStatements": ["abort batch"], |
|
189 | 211 | "name": "SET AUTOCOMMIT = TRUE|FALSE", |
190 | 212 | "executorName": "ClientSideStatementSetExecutor", |
191 | 213 | "resultType": "NO_RESULT", |
| 214 | + "statementType": "SET_AUTOCOMMIT", |
192 | 215 | "regex": "(?is)\\A\\s*set\\s+autocommit\\s*(?:=)\\s*(.*)\\z", |
193 | 216 | "method": "statementSetAutocommit", |
194 | 217 | "exampleStatements": ["set autocommit = true", "set autocommit = false"], |
|
203 | 226 | "name": "SET READONLY = TRUE|FALSE", |
204 | 227 | "executorName": "ClientSideStatementSetExecutor", |
205 | 228 | "resultType": "NO_RESULT", |
| 229 | + "statementType": "SET_READONLY", |
206 | 230 | "regex": "(?is)\\A\\s*set\\s+readonly\\s*(?:=)\\s*(.*)\\z", |
207 | 231 | "method": "statementSetReadOnly", |
208 | 232 | "exampleStatements": ["set readonly = true", "set readonly = false"], |
|
217 | 241 | "name": "SET RETRY_ABORTS_INTERNALLY = TRUE|FALSE", |
218 | 242 | "executorName": "ClientSideStatementSetExecutor", |
219 | 243 | "resultType": "NO_RESULT", |
| 244 | + "statementType": "SET_RETRY_ABORTS_INTERNALLY", |
220 | 245 | "regex": "(?is)\\A\\s*set\\s+retry_aborts_internally\\s*(?:=)\\s*(.*)\\z", |
221 | 246 | "method": "statementSetRetryAbortsInternally", |
222 | 247 | "exampleStatements": ["set retry_aborts_internally = true", "set retry_aborts_internally = false"], |
|
232 | 257 | "name": "SET AUTOCOMMIT_DML_MODE = 'PARTITIONED_NON_ATOMIC'|'TRANSACTIONAL'", |
233 | 258 | "executorName": "ClientSideStatementSetExecutor", |
234 | 259 | "resultType": "NO_RESULT", |
| 260 | + "statementType": "SET_AUTOCOMMIT_DML_MODE", |
235 | 261 | "regex": "(?is)\\A\\s*set\\s+autocommit_dml_mode\\s*(?:=)\\s*(.*)\\z", |
236 | 262 | "method": "statementSetAutocommitDmlMode", |
237 | 263 | "exampleStatements": ["set autocommit_dml_mode='PARTITIONED_NON_ATOMIC'", "set autocommit_dml_mode='TRANSACTIONAL'"], |
|
246 | 272 | "name": "SET STATEMENT_TIMEOUT = '<duration>'|NULL", |
247 | 273 | "executorName": "ClientSideStatementSetExecutor", |
248 | 274 | "resultType": "NO_RESULT", |
| 275 | + "statementType": "SET_STATEMENT_TIMEOUT", |
249 | 276 | "regex": "(?is)\\A\\s*set\\s+statement_timeout\\s*(?:=)\\s*(.*)\\z", |
250 | 277 | "method": "statementSetStatementTimeout", |
251 | 278 | "exampleStatements": ["set statement_timeout=null", "set statement_timeout='1s'", "set statement_timeout='100ms'", "set statement_timeout='10000us'", "set statement_timeout='9223372036854775807ns'"], |
|
260 | 287 | "name": "SET TRANSACTION READ ONLY|READ WRITE", |
261 | 288 | "executorName": "ClientSideStatementSetExecutor", |
262 | 289 | "resultType": "NO_RESULT", |
| 290 | + "statementType": "SET_TRANSACTION_MODE", |
263 | 291 | "regex": "(?is)\\A\\s*set\\s+transaction\\s*(?:\\s+)\\s*(.*)\\z", |
264 | 292 | "method": "statementSetTransactionMode", |
265 | 293 | "exampleStatements": ["set transaction read only", "set transaction read write"], |
|
275 | 303 | "name": "SET READ_ONLY_STALENESS = 'STRONG' | 'MIN_READ_TIMESTAMP <timestamp>' | 'READ_TIMESTAMP <timestamp>' | 'MAX_STALENESS <int64>s|ms|us|ns' | 'EXACT_STALENESS (<int64>s|ms|us|ns)'", |
276 | 304 | "executorName": "ClientSideStatementSetExecutor", |
277 | 305 | "resultType": "NO_RESULT", |
| 306 | + "statementType": "SET_READ_ONLY_STALENESS", |
278 | 307 | "regex": "(?is)\\A\\s*set\\s+read_only_staleness\\s*(?:=)\\s*(.*)\\z", |
279 | 308 | "method": "statementSetReadOnlyStaleness", |
280 | 309 | "exampleStatements": ["set read_only_staleness='STRONG'", |
|
303 | 332 | "name": "SET OPTIMIZER_VERSION = '<version>'|'LATEST'|''", |
304 | 333 | "executorName": "ClientSideStatementSetExecutor", |
305 | 334 | "resultType": "NO_RESULT", |
| 335 | + "statementType": "SET_OPTIMIZER_VERSION", |
306 | 336 | "regex": "(?is)\\A\\s*set\\s+optimizer_version\\s*(?:=)\\s*(.*)\\z", |
307 | 337 | "method": "statementSetOptimizerVersion", |
308 | 338 | "exampleStatements": ["set optimizer_version='1'", "set optimizer_version='200'", "set optimizer_version='LATEST'", "set optimizer_version=''"], |
|
317 | 347 | "name": "SET OPTIMIZER_STATISTICS_PACKAGE = '<package>'|''", |
318 | 348 | "executorName": "ClientSideStatementSetExecutor", |
319 | 349 | "resultType": "NO_RESULT", |
| 350 | + "statementType": "SET_OPTIMIZER_STATISTICS_PACKAGE", |
320 | 351 | "regex": "(?is)\\A\\s*set\\s+optimizer_statistics_package\\s*(?:=)\\s*(.*)\\z", |
321 | 352 | "method": "statementSetOptimizerStatisticsPackage", |
322 | 353 | "exampleStatements": ["set optimizer_statistics_package='auto_20191128_14_47_22UTC'", "set optimizer_statistics_package=''"], |
|
331 | 362 | "name": "SET RETURN_COMMIT_STATS = TRUE|FALSE", |
332 | 363 | "executorName": "ClientSideStatementSetExecutor", |
333 | 364 | "resultType": "NO_RESULT", |
| 365 | + "statementType": "SET_RETURN_COMMIT_STATS", |
334 | 366 | "regex": "(?is)\\A\\s*set\\s+return_commit_stats\\s*(?:=)\\s*(.*)\\z", |
335 | 367 | "method": "statementSetReturnCommitStats", |
336 | 368 | "exampleStatements": ["set return_commit_stats = true", "set return_commit_stats = false"], |
|
345 | 377 | "name": "SET STATEMENT_TAG = '<tag>'", |
346 | 378 | "executorName": "ClientSideStatementSetExecutor", |
347 | 379 | "resultType": "NO_RESULT", |
| 380 | + "statementType": "SET_STATEMENT_TAG", |
348 | 381 | "regex": "(?is)\\A\\s*set\\s+statement_tag\\s*(?:=)\\s*(.*)\\z", |
349 | 382 | "method": "statementSetStatementTag", |
350 | 383 | "exampleStatements": ["set statement_tag='tag1'", "set statement_tag='tag2'", "set statement_tag=''"], |
|
359 | 392 | "name": "SET TRANSACTION_TAG = '<tag>'", |
360 | 393 | "executorName": "ClientSideStatementSetExecutor", |
361 | 394 | "resultType": "NO_RESULT", |
| 395 | + "statementType": "SET_TRANSACTION_TAG", |
362 | 396 | "regex": "(?is)\\A\\s*set\\s+transaction_tag\\s*(?:=)\\s*(.*)\\z", |
363 | 397 | "method": "statementSetTransactionTag", |
364 | 398 | "exampleStatements": ["set transaction_tag='tag1'", "set transaction_tag='tag2'", "set transaction_tag=''"], |
|
374 | 408 | "name": "SET RPC_PRIORITY = 'HIGH'|'MEDIUM'|'LOW'|'NULL'", |
375 | 409 | "executorName": "ClientSideStatementSetExecutor", |
376 | 410 | "resultType": "NO_RESULT", |
| 411 | + "statementType": "SET_RPC_PRIORITY", |
377 | 412 | "regex": "(?is)\\A\\s*set\\s+rpc_priority\\s*(?:=)\\s*(.*)\\z", |
378 | 413 | "method": "statementSetRPCPriority", |
379 | 414 | "exampleStatements": [ |
|
0 commit comments