dt-sql-parser 4.5.0-beta.3 → 4.5.1-beta.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.
Files changed (65) hide show
  1. package/README.md +2 -1
  2. package/dist/index.d.ts +3 -2
  3. package/dist/index.js +2 -2
  4. package/dist/lib/SQLParserBase.d.ts +13 -1
  5. package/dist/lib/SQLParserBase.js +40 -5
  6. package/dist/lib/flink/FlinkSqlLexer.d.ts +397 -399
  7. package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
  8. package/dist/lib/flink/FlinkSqlParser.d.ts +617 -726
  9. package/dist/lib/flink/FlinkSqlParser.js +3605 -4908
  10. package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -90
  11. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -57
  12. package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
  13. package/dist/lib/generic/GenericSqlLexer.js +603 -0
  14. package/dist/lib/generic/GenericSqlListener.d.ts +1174 -0
  15. package/dist/lib/generic/GenericSqlListener.js +11 -0
  16. package/dist/lib/generic/GenericSqlParser.d.ts +1341 -0
  17. package/dist/lib/generic/GenericSqlParser.js +8041 -0
  18. package/dist/lib/generic/GenericSqlVisitor.d.ts +737 -0
  19. package/dist/lib/generic/GenericSqlVisitor.js +12 -0
  20. package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
  21. package/dist/lib/hive/HiveSqlParser.js +6304 -5912
  22. package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
  23. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
  24. package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
  25. package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
  26. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
  27. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
  28. package/dist/lib/index.d.ts +2 -0
  29. package/dist/lib/index.js +2 -0
  30. package/dist/lib/mysql/MySqlParser.d.ts +161 -94
  31. package/dist/lib/mysql/MySqlParser.js +9959 -9499
  32. package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
  33. package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
  34. package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
  35. package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
  36. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
  37. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
  38. package/dist/lib/spark/SparkSqlParser.d.ts +185 -145
  39. package/dist/lib/spark/SparkSqlParser.js +5463 -5152
  40. package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
  41. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
  42. package/dist/parser/common/basicSQL.d.ts +5 -17
  43. package/dist/parser/common/basicSQL.js +3 -74
  44. package/dist/parser/common/entityCollector.js +14 -2
  45. package/dist/parser/flink/index.js +5 -2
  46. package/dist/parser/generic/genericEntityCollector.d.ts +33 -0
  47. package/dist/parser/generic/genericEntityCollector.js +124 -0
  48. package/dist/parser/generic/genericErrorListener.d.ts +6 -0
  49. package/dist/parser/generic/genericErrorListener.js +56 -0
  50. package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
  51. package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
  52. package/dist/parser/generic/genericSplitListener.d.ts +6 -0
  53. package/dist/parser/generic/genericSplitListener.js +6 -0
  54. package/dist/parser/generic/index.d.ts +33 -0
  55. package/dist/parser/generic/index.js +109 -0
  56. package/dist/parser/index.d.ts +1 -0
  57. package/dist/parser/index.js +1 -0
  58. package/dist/parser/mysql/index.js +3 -1
  59. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  60. package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
  61. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  62. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  63. package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
  64. package/dist/parser/spark/index.js +3 -1
  65. package/package.json +1 -1
@@ -0,0 +1,737 @@
1
+ import { AbstractParseTreeVisitor } from "antlr4ng";
2
+ import { ProgramContext } from "./GenericSqlParser.js";
3
+ import { StatementsContext } from "./GenericSqlParser.js";
4
+ import { SingleStatementContext } from "./GenericSqlParser.js";
5
+ import { StatementDefaultContext } from "./GenericSqlParser.js";
6
+ import { InsertContext } from "./GenericSqlParser.js";
7
+ import { UpdateContext } from "./GenericSqlParser.js";
8
+ import { DeleteContext } from "./GenericSqlParser.js";
9
+ import { CreateTableContext } from "./GenericSqlParser.js";
10
+ import { AlterTableContext } from "./GenericSqlParser.js";
11
+ import { DropTableContext } from "./GenericSqlParser.js";
12
+ import { QueryStatementContext } from "./GenericSqlParser.js";
13
+ import { WithClauseContext } from "./GenericSqlParser.js";
14
+ import { NamedQueryContext } from "./GenericSqlParser.js";
15
+ import { QueryNoWithContext } from "./GenericSqlParser.js";
16
+ import { QueryTermContext } from "./GenericSqlParser.js";
17
+ import { QueryPrimaryContext } from "./GenericSqlParser.js";
18
+ import { QuerySpecificationContext } from "./GenericSqlParser.js";
19
+ import { SetQuantifierContext } from "./GenericSqlParser.js";
20
+ import { SelectExpressionElementContext } from "./GenericSqlParser.js";
21
+ import { SelectStarElementContext } from "./GenericSqlParser.js";
22
+ import { SelectAllElementContext } from "./GenericSqlParser.js";
23
+ import { SelectEmptyElementContext } from "./GenericSqlParser.js";
24
+ import { FromClauseContext } from "./GenericSqlParser.js";
25
+ import { SimpleRelationContext } from "./GenericSqlParser.js";
26
+ import { JoinRelationContext } from "./GenericSqlParser.js";
27
+ import { JoinTypeContext } from "./GenericSqlParser.js";
28
+ import { AliasedRelationContext } from "./GenericSqlParser.js";
29
+ import { TableNameRelationContext } from "./GenericSqlParser.js";
30
+ import { SubqueryRelationContext } from "./GenericSqlParser.js";
31
+ import { WhereClauseContext } from "./GenericSqlParser.js";
32
+ import { GroupByClauseContext } from "./GenericSqlParser.js";
33
+ import { HavingClauseContext } from "./GenericSqlParser.js";
34
+ import { OrderByClauseContext } from "./GenericSqlParser.js";
35
+ import { SortItemContext } from "./GenericSqlParser.js";
36
+ import { LimitClauseContext } from "./GenericSqlParser.js";
37
+ import { InsertStatementContext } from "./GenericSqlParser.js";
38
+ import { ColumnListContext } from "./GenericSqlParser.js";
39
+ import { UpdateStatementContext } from "./GenericSqlParser.js";
40
+ import { UpdateAssignmentContext } from "./GenericSqlParser.js";
41
+ import { DeleteStatementContext } from "./GenericSqlParser.js";
42
+ import { CreateTableStatementContext } from "./GenericSqlParser.js";
43
+ import { TableElementContext } from "./GenericSqlParser.js";
44
+ import { ColumnDefinitionContext } from "./GenericSqlParser.js";
45
+ import { ColumnRefCreateContext } from "./GenericSqlParser.js";
46
+ import { TableConstraintContext } from "./GenericSqlParser.js";
47
+ import { AlterTableStatementContext } from "./GenericSqlParser.js";
48
+ import { DropTableStatementContext } from "./GenericSqlParser.js";
49
+ import { ExpressionContext } from "./GenericSqlParser.js";
50
+ import { OrExpressionContext } from "./GenericSqlParser.js";
51
+ import { AndExpressionContext } from "./GenericSqlParser.js";
52
+ import { PredicatedContext } from "./GenericSqlParser.js";
53
+ import { NotExpressionContext } from "./GenericSqlParser.js";
54
+ import { PredicatedExpressionContext } from "./GenericSqlParser.js";
55
+ import { ComparisonPredicateContext } from "./GenericSqlParser.js";
56
+ import { InPredicateContext } from "./GenericSqlParser.js";
57
+ import { InSubqueryPredicateContext } from "./GenericSqlParser.js";
58
+ import { BetweenPredicateContext } from "./GenericSqlParser.js";
59
+ import { LikePredicateContext } from "./GenericSqlParser.js";
60
+ import { NullPredicateContext } from "./GenericSqlParser.js";
61
+ import { DistinctFromPredicateContext } from "./GenericSqlParser.js";
62
+ import { ComparisonOperatorContext } from "./GenericSqlParser.js";
63
+ import { ValueExpressionDefaultContext } from "./GenericSqlParser.js";
64
+ import { ConcatenationContext } from "./GenericSqlParser.js";
65
+ import { ArithmeticBinaryContext } from "./GenericSqlParser.js";
66
+ import { ArithmeticUnaryContext } from "./GenericSqlParser.js";
67
+ import { LiteralExpressionContext } from "./GenericSqlParser.js";
68
+ import { FunctionCallContext } from "./GenericSqlParser.js";
69
+ import { SearchedCaseExpressionContext } from "./GenericSqlParser.js";
70
+ import { SimpleCaseExpressionContext } from "./GenericSqlParser.js";
71
+ import { CastExpressionContext } from "./GenericSqlParser.js";
72
+ import { CoalesceExpressionContext } from "./GenericSqlParser.js";
73
+ import { NullIfExpressionContext } from "./GenericSqlParser.js";
74
+ import { ParenthesizedExpressionContext } from "./GenericSqlParser.js";
75
+ import { ExistsExpressionContext } from "./GenericSqlParser.js";
76
+ import { SubqueryExpressionDefaultContext } from "./GenericSqlParser.js";
77
+ import { ColumnReferenceContext } from "./GenericSqlParser.js";
78
+ import { WhenClauseContext } from "./GenericSqlParser.js";
79
+ import { SubqueryExpressionContext } from "./GenericSqlParser.js";
80
+ import { DataTypeContext } from "./GenericSqlParser.js";
81
+ import { PropertiesContext } from "./GenericSqlParser.js";
82
+ import { PropertyContext } from "./GenericSqlParser.js";
83
+ import { NullLiteralContext } from "./GenericSqlParser.js";
84
+ import { BooleanLiteralContext } from "./GenericSqlParser.js";
85
+ import { IntegerLiteralContext } from "./GenericSqlParser.js";
86
+ import { DecimalLiteralContext } from "./GenericSqlParser.js";
87
+ import { DoubleLiteralContext } from "./GenericSqlParser.js";
88
+ import { StringLiteralContext } from "./GenericSqlParser.js";
89
+ import { BinaryLiteralContext } from "./GenericSqlParser.js";
90
+ import { IdentifierContext } from "./GenericSqlParser.js";
91
+ import { QualifiedNameContext } from "./GenericSqlParser.js";
92
+ import { ColumnRefContext } from "./GenericSqlParser.js";
93
+ import { ColumnNameContext } from "./GenericSqlParser.js";
94
+ import { EmptyColumnContext } from "./GenericSqlParser.js";
95
+ import { TableNameContext } from "./GenericSqlParser.js";
96
+ import { TableNameCreateContext } from "./GenericSqlParser.js";
97
+ import { FunctionNameContext } from "./GenericSqlParser.js";
98
+ import { NonReservedContext } from "./GenericSqlParser.js";
99
+ /**
100
+ * This interface defines a complete generic visitor for a parse tree produced
101
+ * by `GenericSqlParser`.
102
+ *
103
+ * @param <Result> The return type of the visit operation. Use `void` for
104
+ * operations with no return type.
105
+ */
106
+ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<Result> {
107
+ /**
108
+ * Visit a parse tree produced by `GenericSqlParser.program`.
109
+ * @param ctx the parse tree
110
+ * @return the visitor result
111
+ */
112
+ visitProgram?: (ctx: ProgramContext) => Result;
113
+ /**
114
+ * Visit a parse tree produced by `GenericSqlParser.statements`.
115
+ * @param ctx the parse tree
116
+ * @return the visitor result
117
+ */
118
+ visitStatements?: (ctx: StatementsContext) => Result;
119
+ /**
120
+ * Visit a parse tree produced by `GenericSqlParser.singleStatement`.
121
+ * @param ctx the parse tree
122
+ * @return the visitor result
123
+ */
124
+ visitSingleStatement?: (ctx: SingleStatementContext) => Result;
125
+ /**
126
+ * Visit a parse tree produced by the `statementDefault`
127
+ * labeled alternative in `GenericSqlParser.statement`.
128
+ * @param ctx the parse tree
129
+ * @return the visitor result
130
+ */
131
+ visitStatementDefault?: (ctx: StatementDefaultContext) => Result;
132
+ /**
133
+ * Visit a parse tree produced by the `insert`
134
+ * labeled alternative in `GenericSqlParser.statement`.
135
+ * @param ctx the parse tree
136
+ * @return the visitor result
137
+ */
138
+ visitInsert?: (ctx: InsertContext) => Result;
139
+ /**
140
+ * Visit a parse tree produced by the `update`
141
+ * labeled alternative in `GenericSqlParser.statement`.
142
+ * @param ctx the parse tree
143
+ * @return the visitor result
144
+ */
145
+ visitUpdate?: (ctx: UpdateContext) => Result;
146
+ /**
147
+ * Visit a parse tree produced by the `delete`
148
+ * labeled alternative in `GenericSqlParser.statement`.
149
+ * @param ctx the parse tree
150
+ * @return the visitor result
151
+ */
152
+ visitDelete?: (ctx: DeleteContext) => Result;
153
+ /**
154
+ * Visit a parse tree produced by the `createTable`
155
+ * labeled alternative in `GenericSqlParser.statement`.
156
+ * @param ctx the parse tree
157
+ * @return the visitor result
158
+ */
159
+ visitCreateTable?: (ctx: CreateTableContext) => Result;
160
+ /**
161
+ * Visit a parse tree produced by the `alterTable`
162
+ * labeled alternative in `GenericSqlParser.statement`.
163
+ * @param ctx the parse tree
164
+ * @return the visitor result
165
+ */
166
+ visitAlterTable?: (ctx: AlterTableContext) => Result;
167
+ /**
168
+ * Visit a parse tree produced by the `dropTable`
169
+ * labeled alternative in `GenericSqlParser.statement`.
170
+ * @param ctx the parse tree
171
+ * @return the visitor result
172
+ */
173
+ visitDropTable?: (ctx: DropTableContext) => Result;
174
+ /**
175
+ * Visit a parse tree produced by `GenericSqlParser.queryStatement`.
176
+ * @param ctx the parse tree
177
+ * @return the visitor result
178
+ */
179
+ visitQueryStatement?: (ctx: QueryStatementContext) => Result;
180
+ /**
181
+ * Visit a parse tree produced by `GenericSqlParser.withClause`.
182
+ * @param ctx the parse tree
183
+ * @return the visitor result
184
+ */
185
+ visitWithClause?: (ctx: WithClauseContext) => Result;
186
+ /**
187
+ * Visit a parse tree produced by `GenericSqlParser.namedQuery`.
188
+ * @param ctx the parse tree
189
+ * @return the visitor result
190
+ */
191
+ visitNamedQuery?: (ctx: NamedQueryContext) => Result;
192
+ /**
193
+ * Visit a parse tree produced by `GenericSqlParser.queryNoWith`.
194
+ * @param ctx the parse tree
195
+ * @return the visitor result
196
+ */
197
+ visitQueryNoWith?: (ctx: QueryNoWithContext) => Result;
198
+ /**
199
+ * Visit a parse tree produced by `GenericSqlParser.queryTerm`.
200
+ * @param ctx the parse tree
201
+ * @return the visitor result
202
+ */
203
+ visitQueryTerm?: (ctx: QueryTermContext) => Result;
204
+ /**
205
+ * Visit a parse tree produced by `GenericSqlParser.queryPrimary`.
206
+ * @param ctx the parse tree
207
+ * @return the visitor result
208
+ */
209
+ visitQueryPrimary?: (ctx: QueryPrimaryContext) => Result;
210
+ /**
211
+ * Visit a parse tree produced by `GenericSqlParser.querySpecification`.
212
+ * @param ctx the parse tree
213
+ * @return the visitor result
214
+ */
215
+ visitQuerySpecification?: (ctx: QuerySpecificationContext) => Result;
216
+ /**
217
+ * Visit a parse tree produced by `GenericSqlParser.setQuantifier`.
218
+ * @param ctx the parse tree
219
+ * @return the visitor result
220
+ */
221
+ visitSetQuantifier?: (ctx: SetQuantifierContext) => Result;
222
+ /**
223
+ * Visit a parse tree produced by the `selectExpressionElement`
224
+ * labeled alternative in `GenericSqlParser.selectItem`.
225
+ * @param ctx the parse tree
226
+ * @return the visitor result
227
+ */
228
+ visitSelectExpressionElement?: (ctx: SelectExpressionElementContext) => Result;
229
+ /**
230
+ * Visit a parse tree produced by the `selectStarElement`
231
+ * labeled alternative in `GenericSqlParser.selectItem`.
232
+ * @param ctx the parse tree
233
+ * @return the visitor result
234
+ */
235
+ visitSelectStarElement?: (ctx: SelectStarElementContext) => Result;
236
+ /**
237
+ * Visit a parse tree produced by the `selectAllElement`
238
+ * labeled alternative in `GenericSqlParser.selectItem`.
239
+ * @param ctx the parse tree
240
+ * @return the visitor result
241
+ */
242
+ visitSelectAllElement?: (ctx: SelectAllElementContext) => Result;
243
+ /**
244
+ * Visit a parse tree produced by the `selectEmptyElement`
245
+ * labeled alternative in `GenericSqlParser.selectItem`.
246
+ * @param ctx the parse tree
247
+ * @return the visitor result
248
+ */
249
+ visitSelectEmptyElement?: (ctx: SelectEmptyElementContext) => Result;
250
+ /**
251
+ * Visit a parse tree produced by `GenericSqlParser.fromClause`.
252
+ * @param ctx the parse tree
253
+ * @return the visitor result
254
+ */
255
+ visitFromClause?: (ctx: FromClauseContext) => Result;
256
+ /**
257
+ * Visit a parse tree produced by the `simpleRelation`
258
+ * labeled alternative in `GenericSqlParser.relation`.
259
+ * @param ctx the parse tree
260
+ * @return the visitor result
261
+ */
262
+ visitSimpleRelation?: (ctx: SimpleRelationContext) => Result;
263
+ /**
264
+ * Visit a parse tree produced by the `joinRelation`
265
+ * labeled alternative in `GenericSqlParser.relation`.
266
+ * @param ctx the parse tree
267
+ * @return the visitor result
268
+ */
269
+ visitJoinRelation?: (ctx: JoinRelationContext) => Result;
270
+ /**
271
+ * Visit a parse tree produced by `GenericSqlParser.joinType`.
272
+ * @param ctx the parse tree
273
+ * @return the visitor result
274
+ */
275
+ visitJoinType?: (ctx: JoinTypeContext) => Result;
276
+ /**
277
+ * Visit a parse tree produced by `GenericSqlParser.aliasedRelation`.
278
+ * @param ctx the parse tree
279
+ * @return the visitor result
280
+ */
281
+ visitAliasedRelation?: (ctx: AliasedRelationContext) => Result;
282
+ /**
283
+ * Visit a parse tree produced by the `tableNameRelation`
284
+ * labeled alternative in `GenericSqlParser.relationPrimary`.
285
+ * @param ctx the parse tree
286
+ * @return the visitor result
287
+ */
288
+ visitTableNameRelation?: (ctx: TableNameRelationContext) => Result;
289
+ /**
290
+ * Visit a parse tree produced by the `subqueryRelation`
291
+ * labeled alternative in `GenericSqlParser.relationPrimary`.
292
+ * @param ctx the parse tree
293
+ * @return the visitor result
294
+ */
295
+ visitSubqueryRelation?: (ctx: SubqueryRelationContext) => Result;
296
+ /**
297
+ * Visit a parse tree produced by `GenericSqlParser.whereClause`.
298
+ * @param ctx the parse tree
299
+ * @return the visitor result
300
+ */
301
+ visitWhereClause?: (ctx: WhereClauseContext) => Result;
302
+ /**
303
+ * Visit a parse tree produced by `GenericSqlParser.groupByClause`.
304
+ * @param ctx the parse tree
305
+ * @return the visitor result
306
+ */
307
+ visitGroupByClause?: (ctx: GroupByClauseContext) => Result;
308
+ /**
309
+ * Visit a parse tree produced by `GenericSqlParser.havingClause`.
310
+ * @param ctx the parse tree
311
+ * @return the visitor result
312
+ */
313
+ visitHavingClause?: (ctx: HavingClauseContext) => Result;
314
+ /**
315
+ * Visit a parse tree produced by `GenericSqlParser.orderByClause`.
316
+ * @param ctx the parse tree
317
+ * @return the visitor result
318
+ */
319
+ visitOrderByClause?: (ctx: OrderByClauseContext) => Result;
320
+ /**
321
+ * Visit a parse tree produced by `GenericSqlParser.sortItem`.
322
+ * @param ctx the parse tree
323
+ * @return the visitor result
324
+ */
325
+ visitSortItem?: (ctx: SortItemContext) => Result;
326
+ /**
327
+ * Visit a parse tree produced by `GenericSqlParser.limitClause`.
328
+ * @param ctx the parse tree
329
+ * @return the visitor result
330
+ */
331
+ visitLimitClause?: (ctx: LimitClauseContext) => Result;
332
+ /**
333
+ * Visit a parse tree produced by `GenericSqlParser.insertStatement`.
334
+ * @param ctx the parse tree
335
+ * @return the visitor result
336
+ */
337
+ visitInsertStatement?: (ctx: InsertStatementContext) => Result;
338
+ /**
339
+ * Visit a parse tree produced by `GenericSqlParser.columnList`.
340
+ * @param ctx the parse tree
341
+ * @return the visitor result
342
+ */
343
+ visitColumnList?: (ctx: ColumnListContext) => Result;
344
+ /**
345
+ * Visit a parse tree produced by `GenericSqlParser.updateStatement`.
346
+ * @param ctx the parse tree
347
+ * @return the visitor result
348
+ */
349
+ visitUpdateStatement?: (ctx: UpdateStatementContext) => Result;
350
+ /**
351
+ * Visit a parse tree produced by `GenericSqlParser.updateAssignment`.
352
+ * @param ctx the parse tree
353
+ * @return the visitor result
354
+ */
355
+ visitUpdateAssignment?: (ctx: UpdateAssignmentContext) => Result;
356
+ /**
357
+ * Visit a parse tree produced by `GenericSqlParser.deleteStatement`.
358
+ * @param ctx the parse tree
359
+ * @return the visitor result
360
+ */
361
+ visitDeleteStatement?: (ctx: DeleteStatementContext) => Result;
362
+ /**
363
+ * Visit a parse tree produced by `GenericSqlParser.createTableStatement`.
364
+ * @param ctx the parse tree
365
+ * @return the visitor result
366
+ */
367
+ visitCreateTableStatement?: (ctx: CreateTableStatementContext) => Result;
368
+ /**
369
+ * Visit a parse tree produced by `GenericSqlParser.tableElement`.
370
+ * @param ctx the parse tree
371
+ * @return the visitor result
372
+ */
373
+ visitTableElement?: (ctx: TableElementContext) => Result;
374
+ /**
375
+ * Visit a parse tree produced by `GenericSqlParser.columnDefinition`.
376
+ * @param ctx the parse tree
377
+ * @return the visitor result
378
+ */
379
+ visitColumnDefinition?: (ctx: ColumnDefinitionContext) => Result;
380
+ /**
381
+ * Visit a parse tree produced by `GenericSqlParser.columnRefCreate`.
382
+ * @param ctx the parse tree
383
+ * @return the visitor result
384
+ */
385
+ visitColumnRefCreate?: (ctx: ColumnRefCreateContext) => Result;
386
+ /**
387
+ * Visit a parse tree produced by `GenericSqlParser.tableConstraint`.
388
+ * @param ctx the parse tree
389
+ * @return the visitor result
390
+ */
391
+ visitTableConstraint?: (ctx: TableConstraintContext) => Result;
392
+ /**
393
+ * Visit a parse tree produced by `GenericSqlParser.alterTableStatement`.
394
+ * @param ctx the parse tree
395
+ * @return the visitor result
396
+ */
397
+ visitAlterTableStatement?: (ctx: AlterTableStatementContext) => Result;
398
+ /**
399
+ * Visit a parse tree produced by `GenericSqlParser.dropTableStatement`.
400
+ * @param ctx the parse tree
401
+ * @return the visitor result
402
+ */
403
+ visitDropTableStatement?: (ctx: DropTableStatementContext) => Result;
404
+ /**
405
+ * Visit a parse tree produced by `GenericSqlParser.expression`.
406
+ * @param ctx the parse tree
407
+ * @return the visitor result
408
+ */
409
+ visitExpression?: (ctx: ExpressionContext) => Result;
410
+ /**
411
+ * Visit a parse tree produced by the `orExpression`
412
+ * labeled alternative in `GenericSqlParser.booleanExpression`.
413
+ * @param ctx the parse tree
414
+ * @return the visitor result
415
+ */
416
+ visitOrExpression?: (ctx: OrExpressionContext) => Result;
417
+ /**
418
+ * Visit a parse tree produced by the `andExpression`
419
+ * labeled alternative in `GenericSqlParser.booleanExpression`.
420
+ * @param ctx the parse tree
421
+ * @return the visitor result
422
+ */
423
+ visitAndExpression?: (ctx: AndExpressionContext) => Result;
424
+ /**
425
+ * Visit a parse tree produced by the `predicated`
426
+ * labeled alternative in `GenericSqlParser.booleanExpression`.
427
+ * @param ctx the parse tree
428
+ * @return the visitor result
429
+ */
430
+ visitPredicated?: (ctx: PredicatedContext) => Result;
431
+ /**
432
+ * Visit a parse tree produced by the `notExpression`
433
+ * labeled alternative in `GenericSqlParser.booleanExpression`.
434
+ * @param ctx the parse tree
435
+ * @return the visitor result
436
+ */
437
+ visitNotExpression?: (ctx: NotExpressionContext) => Result;
438
+ /**
439
+ * Visit a parse tree produced by `GenericSqlParser.predicatedExpression`.
440
+ * @param ctx the parse tree
441
+ * @return the visitor result
442
+ */
443
+ visitPredicatedExpression?: (ctx: PredicatedExpressionContext) => Result;
444
+ /**
445
+ * Visit a parse tree produced by the `comparisonPredicate`
446
+ * labeled alternative in `GenericSqlParser.predicate`.
447
+ * @param ctx the parse tree
448
+ * @return the visitor result
449
+ */
450
+ visitComparisonPredicate?: (ctx: ComparisonPredicateContext) => Result;
451
+ /**
452
+ * Visit a parse tree produced by the `inPredicate`
453
+ * labeled alternative in `GenericSqlParser.predicate`.
454
+ * @param ctx the parse tree
455
+ * @return the visitor result
456
+ */
457
+ visitInPredicate?: (ctx: InPredicateContext) => Result;
458
+ /**
459
+ * Visit a parse tree produced by the `inSubqueryPredicate`
460
+ * labeled alternative in `GenericSqlParser.predicate`.
461
+ * @param ctx the parse tree
462
+ * @return the visitor result
463
+ */
464
+ visitInSubqueryPredicate?: (ctx: InSubqueryPredicateContext) => Result;
465
+ /**
466
+ * Visit a parse tree produced by the `betweenPredicate`
467
+ * labeled alternative in `GenericSqlParser.predicate`.
468
+ * @param ctx the parse tree
469
+ * @return the visitor result
470
+ */
471
+ visitBetweenPredicate?: (ctx: BetweenPredicateContext) => Result;
472
+ /**
473
+ * Visit a parse tree produced by the `likePredicate`
474
+ * labeled alternative in `GenericSqlParser.predicate`.
475
+ * @param ctx the parse tree
476
+ * @return the visitor result
477
+ */
478
+ visitLikePredicate?: (ctx: LikePredicateContext) => Result;
479
+ /**
480
+ * Visit a parse tree produced by the `nullPredicate`
481
+ * labeled alternative in `GenericSqlParser.predicate`.
482
+ * @param ctx the parse tree
483
+ * @return the visitor result
484
+ */
485
+ visitNullPredicate?: (ctx: NullPredicateContext) => Result;
486
+ /**
487
+ * Visit a parse tree produced by the `distinctFromPredicate`
488
+ * labeled alternative in `GenericSqlParser.predicate`.
489
+ * @param ctx the parse tree
490
+ * @return the visitor result
491
+ */
492
+ visitDistinctFromPredicate?: (ctx: DistinctFromPredicateContext) => Result;
493
+ /**
494
+ * Visit a parse tree produced by `GenericSqlParser.comparisonOperator`.
495
+ * @param ctx the parse tree
496
+ * @return the visitor result
497
+ */
498
+ visitComparisonOperator?: (ctx: ComparisonOperatorContext) => Result;
499
+ /**
500
+ * Visit a parse tree produced by the `valueExpressionDefault`
501
+ * labeled alternative in `GenericSqlParser.valueExpression`.
502
+ * @param ctx the parse tree
503
+ * @return the visitor result
504
+ */
505
+ visitValueExpressionDefault?: (ctx: ValueExpressionDefaultContext) => Result;
506
+ /**
507
+ * Visit a parse tree produced by the `concatenation`
508
+ * labeled alternative in `GenericSqlParser.valueExpression`.
509
+ * @param ctx the parse tree
510
+ * @return the visitor result
511
+ */
512
+ visitConcatenation?: (ctx: ConcatenationContext) => Result;
513
+ /**
514
+ * Visit a parse tree produced by the `arithmeticBinary`
515
+ * labeled alternative in `GenericSqlParser.valueExpression`.
516
+ * @param ctx the parse tree
517
+ * @return the visitor result
518
+ */
519
+ visitArithmeticBinary?: (ctx: ArithmeticBinaryContext) => Result;
520
+ /**
521
+ * Visit a parse tree produced by the `arithmeticUnary`
522
+ * labeled alternative in `GenericSqlParser.valueExpression`.
523
+ * @param ctx the parse tree
524
+ * @return the visitor result
525
+ */
526
+ visitArithmeticUnary?: (ctx: ArithmeticUnaryContext) => Result;
527
+ /**
528
+ * Visit a parse tree produced by the `literalExpression`
529
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
530
+ * @param ctx the parse tree
531
+ * @return the visitor result
532
+ */
533
+ visitLiteralExpression?: (ctx: LiteralExpressionContext) => Result;
534
+ /**
535
+ * Visit a parse tree produced by the `functionCall`
536
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
537
+ * @param ctx the parse tree
538
+ * @return the visitor result
539
+ */
540
+ visitFunctionCall?: (ctx: FunctionCallContext) => Result;
541
+ /**
542
+ * Visit a parse tree produced by the `searchedCaseExpression`
543
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
544
+ * @param ctx the parse tree
545
+ * @return the visitor result
546
+ */
547
+ visitSearchedCaseExpression?: (ctx: SearchedCaseExpressionContext) => Result;
548
+ /**
549
+ * Visit a parse tree produced by the `simpleCaseExpression`
550
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
551
+ * @param ctx the parse tree
552
+ * @return the visitor result
553
+ */
554
+ visitSimpleCaseExpression?: (ctx: SimpleCaseExpressionContext) => Result;
555
+ /**
556
+ * Visit a parse tree produced by the `castExpression`
557
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
558
+ * @param ctx the parse tree
559
+ * @return the visitor result
560
+ */
561
+ visitCastExpression?: (ctx: CastExpressionContext) => Result;
562
+ /**
563
+ * Visit a parse tree produced by the `coalesceExpression`
564
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
565
+ * @param ctx the parse tree
566
+ * @return the visitor result
567
+ */
568
+ visitCoalesceExpression?: (ctx: CoalesceExpressionContext) => Result;
569
+ /**
570
+ * Visit a parse tree produced by the `nullIfExpression`
571
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
572
+ * @param ctx the parse tree
573
+ * @return the visitor result
574
+ */
575
+ visitNullIfExpression?: (ctx: NullIfExpressionContext) => Result;
576
+ /**
577
+ * Visit a parse tree produced by the `parenthesizedExpression`
578
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
579
+ * @param ctx the parse tree
580
+ * @return the visitor result
581
+ */
582
+ visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
583
+ /**
584
+ * Visit a parse tree produced by the `existsExpression`
585
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
586
+ * @param ctx the parse tree
587
+ * @return the visitor result
588
+ */
589
+ visitExistsExpression?: (ctx: ExistsExpressionContext) => Result;
590
+ /**
591
+ * Visit a parse tree produced by the `subqueryExpressionDefault`
592
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
593
+ * @param ctx the parse tree
594
+ * @return the visitor result
595
+ */
596
+ visitSubqueryExpressionDefault?: (ctx: SubqueryExpressionDefaultContext) => Result;
597
+ /**
598
+ * Visit a parse tree produced by the `columnReference`
599
+ * labeled alternative in `GenericSqlParser.primaryExpression`.
600
+ * @param ctx the parse tree
601
+ * @return the visitor result
602
+ */
603
+ visitColumnReference?: (ctx: ColumnReferenceContext) => Result;
604
+ /**
605
+ * Visit a parse tree produced by `GenericSqlParser.whenClause`.
606
+ * @param ctx the parse tree
607
+ * @return the visitor result
608
+ */
609
+ visitWhenClause?: (ctx: WhenClauseContext) => Result;
610
+ /**
611
+ * Visit a parse tree produced by `GenericSqlParser.subqueryExpression`.
612
+ * @param ctx the parse tree
613
+ * @return the visitor result
614
+ */
615
+ visitSubqueryExpression?: (ctx: SubqueryExpressionContext) => Result;
616
+ /**
617
+ * Visit a parse tree produced by `GenericSqlParser.dataType`.
618
+ * @param ctx the parse tree
619
+ * @return the visitor result
620
+ */
621
+ visitDataType?: (ctx: DataTypeContext) => Result;
622
+ /**
623
+ * Visit a parse tree produced by `GenericSqlParser.properties`.
624
+ * @param ctx the parse tree
625
+ * @return the visitor result
626
+ */
627
+ visitProperties?: (ctx: PropertiesContext) => Result;
628
+ /**
629
+ * Visit a parse tree produced by `GenericSqlParser.property`.
630
+ * @param ctx the parse tree
631
+ * @return the visitor result
632
+ */
633
+ visitProperty?: (ctx: PropertyContext) => Result;
634
+ /**
635
+ * Visit a parse tree produced by the `nullLiteral`
636
+ * labeled alternative in `GenericSqlParser.literal`.
637
+ * @param ctx the parse tree
638
+ * @return the visitor result
639
+ */
640
+ visitNullLiteral?: (ctx: NullLiteralContext) => Result;
641
+ /**
642
+ * Visit a parse tree produced by the `booleanLiteral`
643
+ * labeled alternative in `GenericSqlParser.literal`.
644
+ * @param ctx the parse tree
645
+ * @return the visitor result
646
+ */
647
+ visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
648
+ /**
649
+ * Visit a parse tree produced by the `integerLiteral`
650
+ * labeled alternative in `GenericSqlParser.literal`.
651
+ * @param ctx the parse tree
652
+ * @return the visitor result
653
+ */
654
+ visitIntegerLiteral?: (ctx: IntegerLiteralContext) => Result;
655
+ /**
656
+ * Visit a parse tree produced by the `decimalLiteral`
657
+ * labeled alternative in `GenericSqlParser.literal`.
658
+ * @param ctx the parse tree
659
+ * @return the visitor result
660
+ */
661
+ visitDecimalLiteral?: (ctx: DecimalLiteralContext) => Result;
662
+ /**
663
+ * Visit a parse tree produced by the `doubleLiteral`
664
+ * labeled alternative in `GenericSqlParser.literal`.
665
+ * @param ctx the parse tree
666
+ * @return the visitor result
667
+ */
668
+ visitDoubleLiteral?: (ctx: DoubleLiteralContext) => Result;
669
+ /**
670
+ * Visit a parse tree produced by the `stringLiteral`
671
+ * labeled alternative in `GenericSqlParser.literal`.
672
+ * @param ctx the parse tree
673
+ * @return the visitor result
674
+ */
675
+ visitStringLiteral?: (ctx: StringLiteralContext) => Result;
676
+ /**
677
+ * Visit a parse tree produced by the `binaryLiteral`
678
+ * labeled alternative in `GenericSqlParser.literal`.
679
+ * @param ctx the parse tree
680
+ * @return the visitor result
681
+ */
682
+ visitBinaryLiteral?: (ctx: BinaryLiteralContext) => Result;
683
+ /**
684
+ * Visit a parse tree produced by `GenericSqlParser.identifier`.
685
+ * @param ctx the parse tree
686
+ * @return the visitor result
687
+ */
688
+ visitIdentifier?: (ctx: IdentifierContext) => Result;
689
+ /**
690
+ * Visit a parse tree produced by `GenericSqlParser.qualifiedName`.
691
+ * @param ctx the parse tree
692
+ * @return the visitor result
693
+ */
694
+ visitQualifiedName?: (ctx: QualifiedNameContext) => Result;
695
+ /**
696
+ * Visit a parse tree produced by `GenericSqlParser.columnRef`.
697
+ * @param ctx the parse tree
698
+ * @return the visitor result
699
+ */
700
+ visitColumnRef?: (ctx: ColumnRefContext) => Result;
701
+ /**
702
+ * Visit a parse tree produced by `GenericSqlParser.columnName`.
703
+ * @param ctx the parse tree
704
+ * @return the visitor result
705
+ */
706
+ visitColumnName?: (ctx: ColumnNameContext) => Result;
707
+ /**
708
+ * Visit a parse tree produced by `GenericSqlParser.emptyColumn`.
709
+ * @param ctx the parse tree
710
+ * @return the visitor result
711
+ */
712
+ visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
713
+ /**
714
+ * Visit a parse tree produced by `GenericSqlParser.tableName`.
715
+ * @param ctx the parse tree
716
+ * @return the visitor result
717
+ */
718
+ visitTableName?: (ctx: TableNameContext) => Result;
719
+ /**
720
+ * Visit a parse tree produced by `GenericSqlParser.tableNameCreate`.
721
+ * @param ctx the parse tree
722
+ * @return the visitor result
723
+ */
724
+ visitTableNameCreate?: (ctx: TableNameCreateContext) => Result;
725
+ /**
726
+ * Visit a parse tree produced by `GenericSqlParser.functionName`.
727
+ * @param ctx the parse tree
728
+ * @return the visitor result
729
+ */
730
+ visitFunctionName?: (ctx: FunctionNameContext) => Result;
731
+ /**
732
+ * Visit a parse tree produced by `GenericSqlParser.nonReserved`.
733
+ * @param ctx the parse tree
734
+ * @return the visitor result
735
+ */
736
+ visitNonReserved?: (ctx: NonReservedContext) => Result;
737
+ }