dt-sql-parser 4.5.0 → 4.5.1-beta.1
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.
- package/dist/lib/mysql/MySqlParser.d.ts +31 -8
- package/dist/lib/mysql/MySqlParser.js +5786 -5659
- package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +19 -2
- package/dist/lib/postgresql/PostgreSqlParser.js +1857 -1756
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +20 -5
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +12 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +33 -0
- package/dist/lib/trino/TrinoSqlParser.d.ts +155 -114
- package/dist/lib/trino/TrinoSqlParser.js +4747 -4494
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +21 -0
- package/dist/parser/mysql/index.js +11 -0
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +5 -0
- package/dist/parser/postgresql/index.js +2 -1
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
- package/dist/parser/trino/index.js +3 -1
- package/package.json +1 -1
|
@@ -537,7 +537,9 @@ import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
|
537
537
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
538
|
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
539
539
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
-
import {
|
|
540
|
+
import { ColumnNamePath_defaultContext } from "./MySqlParser.js";
|
|
541
|
+
import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
|
|
542
|
+
import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
|
|
541
543
|
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
542
544
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
543
545
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
@@ -6535,15 +6537,41 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6535
6537
|
*/
|
|
6536
6538
|
exitColumnName?: (ctx: ColumnNameContext) => void;
|
|
6537
6539
|
/**
|
|
6538
|
-
* Enter a parse tree produced by `
|
|
6540
|
+
* Enter a parse tree produced by the `columnNamePath_default`
|
|
6541
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6539
6542
|
* @param ctx the parse tree
|
|
6540
6543
|
*/
|
|
6541
|
-
|
|
6544
|
+
enterColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
|
|
6542
6545
|
/**
|
|
6543
|
-
* Exit a parse tree produced by `
|
|
6546
|
+
* Exit a parse tree produced by the `columnNamePath_default`
|
|
6547
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6544
6548
|
* @param ctx the parse tree
|
|
6545
6549
|
*/
|
|
6546
|
-
|
|
6550
|
+
exitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
|
|
6551
|
+
/**
|
|
6552
|
+
* Enter a parse tree produced by the `columnNamePath_dotted`
|
|
6553
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6554
|
+
* @param ctx the parse tree
|
|
6555
|
+
*/
|
|
6556
|
+
enterColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => void;
|
|
6557
|
+
/**
|
|
6558
|
+
* Exit a parse tree produced by the `columnNamePath_dotted`
|
|
6559
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6560
|
+
* @param ctx the parse tree
|
|
6561
|
+
*/
|
|
6562
|
+
exitColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => void;
|
|
6563
|
+
/**
|
|
6564
|
+
* Enter a parse tree produced by the `columnNamePath_dot_empty`
|
|
6565
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6566
|
+
* @param ctx the parse tree
|
|
6567
|
+
*/
|
|
6568
|
+
enterColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
|
|
6569
|
+
/**
|
|
6570
|
+
* Exit a parse tree produced by the `columnNamePath_dot_empty`
|
|
6571
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6572
|
+
* @param ctx the parse tree
|
|
6573
|
+
*/
|
|
6574
|
+
exitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
|
|
6547
6575
|
/**
|
|
6548
6576
|
* Enter a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
6549
6577
|
* @param ctx the parse tree
|
|
@@ -537,7 +537,9 @@ import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
|
537
537
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
538
|
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
539
539
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
-
import {
|
|
540
|
+
import { ColumnNamePath_defaultContext } from "./MySqlParser.js";
|
|
541
|
+
import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
|
|
542
|
+
import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
|
|
541
543
|
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
542
544
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
543
545
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
@@ -4151,11 +4153,26 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
4151
4153
|
*/
|
|
4152
4154
|
visitColumnName?: (ctx: ColumnNameContext) => Result;
|
|
4153
4155
|
/**
|
|
4154
|
-
* Visit a parse tree produced by `
|
|
4156
|
+
* Visit a parse tree produced by the `columnNamePath_default`
|
|
4157
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
4155
4158
|
* @param ctx the parse tree
|
|
4156
4159
|
* @return the visitor result
|
|
4157
4160
|
*/
|
|
4158
|
-
|
|
4161
|
+
visitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => Result;
|
|
4162
|
+
/**
|
|
4163
|
+
* Visit a parse tree produced by the `columnNamePath_dotted`
|
|
4164
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
4165
|
+
* @param ctx the parse tree
|
|
4166
|
+
* @return the visitor result
|
|
4167
|
+
*/
|
|
4168
|
+
visitColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => Result;
|
|
4169
|
+
/**
|
|
4170
|
+
* Visit a parse tree produced by the `columnNamePath_dot_empty`
|
|
4171
|
+
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
4172
|
+
* @param ctx the parse tree
|
|
4173
|
+
* @return the visitor result
|
|
4174
|
+
*/
|
|
4175
|
+
visitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => Result;
|
|
4159
4176
|
/**
|
|
4160
4177
|
* Visit a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
4161
4178
|
* @param ctx the parse tree
|
|
@@ -1076,6 +1076,8 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1076
1076
|
get ruleNames(): string[];
|
|
1077
1077
|
get serializedATN(): number[];
|
|
1078
1078
|
protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
|
|
1079
|
+
isFollowedByInto(): boolean;
|
|
1080
|
+
isFollowedByEnd(): boolean;
|
|
1079
1081
|
constructor(input: antlr.TokenStream);
|
|
1080
1082
|
program(): ProgramContext;
|
|
1081
1083
|
singleStmt(): SingleStmtContext;
|
|
@@ -1555,7 +1557,9 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1555
1557
|
private booleanExpression_sempred;
|
|
1556
1558
|
private valueExpression_sempred;
|
|
1557
1559
|
private primaryExpression_sempred;
|
|
1560
|
+
private targetList_sempred;
|
|
1558
1561
|
private targetEl_sempred;
|
|
1562
|
+
private columnNamePath_sempred;
|
|
1559
1563
|
static readonly _serializedATN: number[];
|
|
1560
1564
|
private static __ATN;
|
|
1561
1565
|
static get _ATN(): antlr.ATN;
|
|
@@ -8211,9 +8215,22 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
|
8211
8215
|
}
|
|
8212
8216
|
export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
|
|
8213
8217
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8218
|
+
get ruleIndex(): number;
|
|
8219
|
+
copyFrom(ctx: ColumnNamePathContext): void;
|
|
8220
|
+
}
|
|
8221
|
+
export declare class ColumnNamePath_defaultContext extends ColumnNamePathContext {
|
|
8222
|
+
constructor(ctx: ColumnNamePathContext);
|
|
8214
8223
|
colId(): ColIdContext;
|
|
8215
8224
|
optIndirection(): OptIndirectionContext;
|
|
8216
|
-
|
|
8225
|
+
enterRule(listener: PostgreSqlParserListener): void;
|
|
8226
|
+
exitRule(listener: PostgreSqlParserListener): void;
|
|
8227
|
+
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8228
|
+
}
|
|
8229
|
+
export declare class ColumnNamePath_dot_emptyContext extends ColumnNamePathContext {
|
|
8230
|
+
constructor(ctx: ColumnNamePathContext);
|
|
8231
|
+
colId(): ColIdContext;
|
|
8232
|
+
DOT(): antlr.TerminalNode;
|
|
8233
|
+
emptyColumn(): EmptyColumnContext;
|
|
8217
8234
|
enterRule(listener: PostgreSqlParserListener): void;
|
|
8218
8235
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8219
8236
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
@@ -9577,7 +9594,7 @@ export declare class AnyIdentifierContext extends antlr.ParserRuleContext {
|
|
|
9577
9594
|
}
|
|
9578
9595
|
export declare class SqlExpressionContext extends antlr.ParserRuleContext {
|
|
9579
9596
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
9580
|
-
targetList(): TargetListContext
|
|
9597
|
+
targetList(): TargetListContext;
|
|
9581
9598
|
intoClause(): IntoClauseContext | null;
|
|
9582
9599
|
fromClause(): FromClauseContext | null;
|
|
9583
9600
|
whereClause(): WhereClauseContext | null;
|