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