dt-sql-parser 4.5.0 → 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.
@@ -17,7 +17,10 @@ import { QueryTermContext } from "./GenericSqlParser.js";
17
17
  import { QueryPrimaryContext } from "./GenericSqlParser.js";
18
18
  import { QuerySpecificationContext } from "./GenericSqlParser.js";
19
19
  import { SetQuantifierContext } from "./GenericSqlParser.js";
20
- import { SelectItemContext } 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";
21
24
  import { FromClauseContext } from "./GenericSqlParser.js";
22
25
  import { SimpleRelationContext } from "./GenericSqlParser.js";
23
26
  import { JoinRelationContext } from "./GenericSqlParser.js";
@@ -39,6 +42,7 @@ import { DeleteStatementContext } from "./GenericSqlParser.js";
39
42
  import { CreateTableStatementContext } from "./GenericSqlParser.js";
40
43
  import { TableElementContext } from "./GenericSqlParser.js";
41
44
  import { ColumnDefinitionContext } from "./GenericSqlParser.js";
45
+ import { ColumnRefCreateContext } from "./GenericSqlParser.js";
42
46
  import { TableConstraintContext } from "./GenericSqlParser.js";
43
47
  import { AlterTableStatementContext } from "./GenericSqlParser.js";
44
48
  import { DropTableStatementContext } from "./GenericSqlParser.js";
@@ -86,8 +90,11 @@ import { BinaryLiteralContext } from "./GenericSqlParser.js";
86
90
  import { IdentifierContext } from "./GenericSqlParser.js";
87
91
  import { QualifiedNameContext } from "./GenericSqlParser.js";
88
92
  import { ColumnRefContext } from "./GenericSqlParser.js";
93
+ import { ColumnNameContext } from "./GenericSqlParser.js";
94
+ import { EmptyColumnContext } from "./GenericSqlParser.js";
89
95
  import { TableNameContext } from "./GenericSqlParser.js";
90
96
  import { TableNameCreateContext } from "./GenericSqlParser.js";
97
+ import { FunctionNameContext } from "./GenericSqlParser.js";
91
98
  import { NonReservedContext } from "./GenericSqlParser.js";
92
99
  /**
93
100
  * This interface defines a complete generic visitor for a parse tree produced
@@ -213,11 +220,33 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
213
220
  */
214
221
  visitSetQuantifier?: (ctx: SetQuantifierContext) => Result;
215
222
  /**
216
- * Visit a parse tree produced by `GenericSqlParser.selectItem`.
223
+ * Visit a parse tree produced by the `selectExpressionElement`
224
+ * labeled alternative in `GenericSqlParser.selectItem`.
217
225
  * @param ctx the parse tree
218
226
  * @return the visitor result
219
227
  */
220
- visitSelectItem?: (ctx: SelectItemContext) => Result;
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;
221
250
  /**
222
251
  * Visit a parse tree produced by `GenericSqlParser.fromClause`.
223
252
  * @param ctx the parse tree
@@ -348,6 +377,12 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
348
377
  * @return the visitor result
349
378
  */
350
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;
351
386
  /**
352
387
  * Visit a parse tree produced by `GenericSqlParser.tableConstraint`.
353
388
  * @param ctx the parse tree
@@ -663,6 +698,18 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
663
698
  * @return the visitor result
664
699
  */
665
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;
666
713
  /**
667
714
  * Visit a parse tree produced by `GenericSqlParser.tableName`.
668
715
  * @param ctx the parse tree
@@ -675,6 +722,12 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
675
722
  * @return the visitor result
676
723
  */
677
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;
678
731
  /**
679
732
  * Visit a parse tree produced by `GenericSqlParser.nonReserved`.
680
733
  * @param ctx the parse tree
@@ -2747,10 +2747,10 @@ export declare class QueryTermContext extends antlr.ParserRuleContext {
2747
2747
  queryTerm(): QueryTermContext[];
2748
2748
  queryTerm(i: number): QueryTermContext | null;
2749
2749
  KW_INTERSECT(): antlr.TerminalNode | null;
2750
- setQuantifier(): SetQuantifierContext | null;
2751
2750
  KW_UNION(): antlr.TerminalNode | null;
2752
2751
  KW_EXCEPT(): antlr.TerminalNode | null;
2753
2752
  KW_MINUS(): antlr.TerminalNode | null;
2753
+ setQuantifier(): SetQuantifierContext | null;
2754
2754
  get ruleIndex(): number;
2755
2755
  enterRule(listener: SparkSqlParserListener): void;
2756
2756
  exitRule(listener: SparkSqlParserListener): void;