dt-sql-parser 4.5.2-beta.0 → 4.5.2-beta.2

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 (31) hide show
  1. package/README.md +8 -8
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +220 -363
  3. package/dist/lib/flink/FlinkSqlParser.js +3246 -4046
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -154
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -98
  6. package/dist/lib/generic/GenericSqlListener.d.ts +90 -5
  7. package/dist/lib/generic/GenericSqlParser.d.ts +102 -33
  8. package/dist/lib/generic/GenericSqlParser.js +1329 -930
  9. package/dist/lib/generic/GenericSqlVisitor.d.ts +56 -3
  10. package/dist/lib/hive/HiveSqlParser.d.ts +515 -943
  11. package/dist/lib/hive/HiveSqlParser.js +8234 -10573
  12. package/dist/lib/hive/HiveSqlParserListener.d.ts +50 -490
  13. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +30 -310
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +96 -131
  15. package/dist/lib/impala/ImpalaSqlParser.js +3311 -3522
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -44
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -28
  18. package/dist/lib/mysql/MySqlParser.d.ts +422 -464
  19. package/dist/lib/mysql/MySqlParser.js +9954 -10184
  20. package/dist/lib/mysql/MySqlParserListener.d.ts +0 -44
  21. package/dist/lib/mysql/MySqlParserVisitor.d.ts +0 -28
  22. package/dist/lib/trino/TrinoSqlListener.d.ts +0 -328
  23. package/dist/lib/trino/TrinoSqlParser.d.ts +203 -476
  24. package/dist/lib/trino/TrinoSqlParser.js +6680 -7917
  25. package/dist/lib/trino/TrinoSqlVisitor.d.ts +0 -206
  26. package/dist/parser/common/entityCollector.js +5 -0
  27. package/dist/parser/flink/flinkEntityCollector.js +1 -1
  28. package/dist/parser/generic/genericEntityCollector.d.ts +6 -3
  29. package/dist/parser/generic/genericEntityCollector.js +30 -42
  30. package/dist/parser/generic/index.js +13 -10
  31. package/package.json +1 -1
@@ -18,7 +18,10 @@ import { QueryTermContext } from "./GenericSqlParser.js";
18
18
  import { QueryPrimaryContext } from "./GenericSqlParser.js";
19
19
  import { QuerySpecificationContext } from "./GenericSqlParser.js";
20
20
  import { SetQuantifierContext } from "./GenericSqlParser.js";
21
- import { SelectItemContext } from "./GenericSqlParser.js";
21
+ import { SelectExpressionElementContext } from "./GenericSqlParser.js";
22
+ import { SelectStarElementContext } from "./GenericSqlParser.js";
23
+ import { SelectAllElementContext } from "./GenericSqlParser.js";
24
+ import { SelectEmptyElementContext } from "./GenericSqlParser.js";
22
25
  import { FromClauseContext } from "./GenericSqlParser.js";
23
26
  import { SimpleRelationContext } from "./GenericSqlParser.js";
24
27
  import { JoinRelationContext } from "./GenericSqlParser.js";
@@ -40,6 +43,7 @@ import { DeleteStatementContext } from "./GenericSqlParser.js";
40
43
  import { CreateTableStatementContext } from "./GenericSqlParser.js";
41
44
  import { TableElementContext } from "./GenericSqlParser.js";
42
45
  import { ColumnDefinitionContext } from "./GenericSqlParser.js";
46
+ import { ColumnRefCreateContext } from "./GenericSqlParser.js";
43
47
  import { TableConstraintContext } from "./GenericSqlParser.js";
44
48
  import { AlterTableStatementContext } from "./GenericSqlParser.js";
45
49
  import { DropTableStatementContext } from "./GenericSqlParser.js";
@@ -87,8 +91,11 @@ import { BinaryLiteralContext } from "./GenericSqlParser.js";
87
91
  import { IdentifierContext } from "./GenericSqlParser.js";
88
92
  import { QualifiedNameContext } from "./GenericSqlParser.js";
89
93
  import { ColumnRefContext } from "./GenericSqlParser.js";
94
+ import { ColumnNameContext } from "./GenericSqlParser.js";
95
+ import { EmptyColumnContext } from "./GenericSqlParser.js";
90
96
  import { TableNameContext } from "./GenericSqlParser.js";
91
97
  import { TableNameCreateContext } from "./GenericSqlParser.js";
98
+ import { FunctionNameContext } from "./GenericSqlParser.js";
92
99
  import { NonReservedContext } from "./GenericSqlParser.js";
93
100
  /**
94
101
  * This interface defines a complete generic visitor for a parse tree produced
@@ -220,11 +227,33 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
220
227
  */
221
228
  visitSetQuantifier?: (ctx: SetQuantifierContext) => Result;
222
229
  /**
223
- * Visit a parse tree produced by `GenericSqlParser.selectItem`.
230
+ * Visit a parse tree produced by the `selectExpressionElement`
231
+ * labeled alternative in `GenericSqlParser.selectItem`.
224
232
  * @param ctx the parse tree
225
233
  * @return the visitor result
226
234
  */
227
- visitSelectItem?: (ctx: SelectItemContext) => Result;
235
+ visitSelectExpressionElement?: (ctx: SelectExpressionElementContext) => Result;
236
+ /**
237
+ * Visit a parse tree produced by the `selectStarElement`
238
+ * labeled alternative in `GenericSqlParser.selectItem`.
239
+ * @param ctx the parse tree
240
+ * @return the visitor result
241
+ */
242
+ visitSelectStarElement?: (ctx: SelectStarElementContext) => Result;
243
+ /**
244
+ * Visit a parse tree produced by the `selectAllElement`
245
+ * labeled alternative in `GenericSqlParser.selectItem`.
246
+ * @param ctx the parse tree
247
+ * @return the visitor result
248
+ */
249
+ visitSelectAllElement?: (ctx: SelectAllElementContext) => Result;
250
+ /**
251
+ * Visit a parse tree produced by the `selectEmptyElement`
252
+ * labeled alternative in `GenericSqlParser.selectItem`.
253
+ * @param ctx the parse tree
254
+ * @return the visitor result
255
+ */
256
+ visitSelectEmptyElement?: (ctx: SelectEmptyElementContext) => Result;
228
257
  /**
229
258
  * Visit a parse tree produced by `GenericSqlParser.fromClause`.
230
259
  * @param ctx the parse tree
@@ -355,6 +384,12 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
355
384
  * @return the visitor result
356
385
  */
357
386
  visitColumnDefinition?: (ctx: ColumnDefinitionContext) => Result;
387
+ /**
388
+ * Visit a parse tree produced by `GenericSqlParser.columnRefCreate`.
389
+ * @param ctx the parse tree
390
+ * @return the visitor result
391
+ */
392
+ visitColumnRefCreate?: (ctx: ColumnRefCreateContext) => Result;
358
393
  /**
359
394
  * Visit a parse tree produced by `GenericSqlParser.tableConstraint`.
360
395
  * @param ctx the parse tree
@@ -670,6 +705,18 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
670
705
  * @return the visitor result
671
706
  */
672
707
  visitColumnRef?: (ctx: ColumnRefContext) => Result;
708
+ /**
709
+ * Visit a parse tree produced by `GenericSqlParser.columnName`.
710
+ * @param ctx the parse tree
711
+ * @return the visitor result
712
+ */
713
+ visitColumnName?: (ctx: ColumnNameContext) => Result;
714
+ /**
715
+ * Visit a parse tree produced by `GenericSqlParser.emptyColumn`.
716
+ * @param ctx the parse tree
717
+ * @return the visitor result
718
+ */
719
+ visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
673
720
  /**
674
721
  * Visit a parse tree produced by `GenericSqlParser.tableName`.
675
722
  * @param ctx the parse tree
@@ -682,6 +729,12 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
682
729
  * @return the visitor result
683
730
  */
684
731
  visitTableNameCreate?: (ctx: TableNameCreateContext) => Result;
732
+ /**
733
+ * Visit a parse tree produced by `GenericSqlParser.functionName`.
734
+ * @param ctx the parse tree
735
+ * @return the visitor result
736
+ */
737
+ visitFunctionName?: (ctx: FunctionNameContext) => Result;
685
738
  /**
686
739
  * Visit a parse tree produced by `GenericSqlParser.nonReserved`.
687
740
  * @param ctx the parse tree