dt-sql-parser 4.5.1-beta.1 → 4.5.1-beta.3
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/README.md +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/mysql/MySqlParser.d.ts +8 -31
- package/dist/lib/mysql/MySqlParser.js +5659 -5786
- package/dist/lib/mysql/MySqlParserListener.d.ts +5 -33
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +3 -20
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +2 -19
- package/dist/lib/postgresql/PostgreSqlParser.js +1756 -1857
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +5 -20
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +3 -12
- package/dist/lib/trino/TrinoSqlListener.d.ts +0 -33
- package/dist/lib/trino/TrinoSqlParser.d.ts +114 -155
- package/dist/lib/trino/TrinoSqlParser.js +4494 -4747
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +0 -21
- package/dist/parser/common/basicSQL.d.ts +12 -2
- package/dist/parser/common/basicSQL.js +70 -8
- package/dist/parser/common/types.d.ts +9 -0
- package/dist/parser/mysql/index.js +0 -11
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +1 -2
- package/dist/parser/mysql/mysqlEntityCollector.js +0 -5
- package/dist/parser/postgresql/index.js +1 -2
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +1 -2
- package/dist/parser/postgresql/postgreEntityCollector.js +0 -5
- package/dist/parser/trino/index.js +1 -3
- package/package.json +1 -1
|
@@ -537,9 +537,7 @@ 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 {
|
|
541
|
-
import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
|
|
542
|
-
import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
|
|
540
|
+
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
543
541
|
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
544
542
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
545
543
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
@@ -6537,41 +6535,15 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6537
6535
|
*/
|
|
6538
6536
|
exitColumnName?: (ctx: ColumnNameContext) => void;
|
|
6539
6537
|
/**
|
|
6540
|
-
* Enter a parse tree produced by
|
|
6541
|
-
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6538
|
+
* Enter a parse tree produced by `MySqlParser.columnNamePath`.
|
|
6542
6539
|
* @param ctx the parse tree
|
|
6543
6540
|
*/
|
|
6544
|
-
|
|
6541
|
+
enterColumnNamePath?: (ctx: ColumnNamePathContext) => void;
|
|
6545
6542
|
/**
|
|
6546
|
-
* Exit a parse tree produced by
|
|
6547
|
-
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
6543
|
+
* Exit a parse tree produced by `MySqlParser.columnNamePath`.
|
|
6548
6544
|
* @param ctx the parse tree
|
|
6549
6545
|
*/
|
|
6550
|
-
|
|
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;
|
|
6546
|
+
exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
|
|
6575
6547
|
/**
|
|
6576
6548
|
* Enter a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
6577
6549
|
* @param ctx the parse tree
|
|
@@ -537,9 +537,7 @@ 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 {
|
|
541
|
-
import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
|
|
542
|
-
import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
|
|
540
|
+
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
543
541
|
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
544
542
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
545
543
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
@@ -4153,26 +4151,11 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
4153
4151
|
*/
|
|
4154
4152
|
visitColumnName?: (ctx: ColumnNameContext) => Result;
|
|
4155
4153
|
/**
|
|
4156
|
-
* Visit a parse tree produced by
|
|
4157
|
-
* labeled alternative in `MySqlParser.columnNamePath`.
|
|
4154
|
+
* Visit a parse tree produced by `MySqlParser.columnNamePath`.
|
|
4158
4155
|
* @param ctx the parse tree
|
|
4159
4156
|
* @return the visitor result
|
|
4160
4157
|
*/
|
|
4161
|
-
|
|
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;
|
|
4158
|
+
visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
|
|
4176
4159
|
/**
|
|
4177
4160
|
* Visit a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
4178
4161
|
* @param ctx the parse tree
|
|
@@ -1076,8 +1076,6 @@ 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;
|
|
1081
1079
|
constructor(input: antlr.TokenStream);
|
|
1082
1080
|
program(): ProgramContext;
|
|
1083
1081
|
singleStmt(): SingleStmtContext;
|
|
@@ -1557,9 +1555,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1557
1555
|
private booleanExpression_sempred;
|
|
1558
1556
|
private valueExpression_sempred;
|
|
1559
1557
|
private primaryExpression_sempred;
|
|
1560
|
-
private targetList_sempred;
|
|
1561
1558
|
private targetEl_sempred;
|
|
1562
|
-
private columnNamePath_sempred;
|
|
1563
1559
|
static readonly _serializedATN: number[];
|
|
1564
1560
|
private static __ATN;
|
|
1565
1561
|
static get _ATN(): antlr.ATN;
|
|
@@ -8215,22 +8211,9 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
|
8215
8211
|
}
|
|
8216
8212
|
export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
|
|
8217
8213
|
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);
|
|
8223
8214
|
colId(): ColIdContext;
|
|
8224
8215
|
optIndirection(): OptIndirectionContext;
|
|
8225
|
-
|
|
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;
|
|
8216
|
+
get ruleIndex(): number;
|
|
8234
8217
|
enterRule(listener: PostgreSqlParserListener): void;
|
|
8235
8218
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8236
8219
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
@@ -9594,7 +9577,7 @@ export declare class AnyIdentifierContext extends antlr.ParserRuleContext {
|
|
|
9594
9577
|
}
|
|
9595
9578
|
export declare class SqlExpressionContext extends antlr.ParserRuleContext {
|
|
9596
9579
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
9597
|
-
targetList(): TargetListContext;
|
|
9580
|
+
targetList(): TargetListContext | null;
|
|
9598
9581
|
intoClause(): IntoClauseContext | null;
|
|
9599
9582
|
fromClause(): FromClauseContext | null;
|
|
9600
9583
|
whereClause(): WhereClauseContext | null;
|