dt-sql-parser 4.5.0-beta.0 → 4.5.0-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.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL } from './parser';
2
- export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, } from './lib';
1
+ export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL, GenericSQL, } from './parser';
2
+ export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, GenericSqlListener, GenericSqlVisitor, } from './lib';
3
3
  export { EntityContextType } from './parser/common/types';
4
4
  export { StmtContextType } from './parser/common/entityCollector';
5
5
  export type { CaretPosition, Suggestions, SyntaxSuggestion } from './parser/common/types';
6
6
  export type { WordRange, TextSlice } from './parser/common/textAndWord';
7
7
  export type { SyntaxError, ParseError, ErrorListener } from './parser/common/parseErrorListener';
8
+ export type { GenericSQLOptions } from './parser/generic';
8
9
  export type { StmtContext, EntityContext, CommonEntityContext, ColumnEntityContext, FuncEntityContext, } from './parser/common/entityCollector';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL } from './parser';
2
- export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, } from './lib';
1
+ export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL, GenericSQL, } from './parser';
2
+ export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, GenericSqlListener, GenericSqlVisitor, } from './lib';
3
3
  export { EntityContextType } from './parser/common/types';
4
4
  export { StmtContextType } from './parser/common/entityCollector';
@@ -0,0 +1,143 @@
1
+ import * as antlr from "antlr4ng";
2
+ export declare class GenericSqlLexer extends antlr.Lexer {
3
+ static readonly T__0 = 1;
4
+ static readonly T__1 = 2;
5
+ static readonly T__2 = 3;
6
+ static readonly T__3 = 4;
7
+ static readonly KW_ADD = 5;
8
+ static readonly KW_ALL = 6;
9
+ static readonly KW_ALTER = 7;
10
+ static readonly KW_AND = 8;
11
+ static readonly KW_AS = 9;
12
+ static readonly KW_ASC = 10;
13
+ static readonly KW_BETWEEN = 11;
14
+ static readonly KW_BIGINT = 12;
15
+ static readonly KW_BINARY = 13;
16
+ static readonly KW_BOOLEAN = 14;
17
+ static readonly KW_BY = 15;
18
+ static readonly KW_CASE = 16;
19
+ static readonly KW_CAST = 17;
20
+ static readonly KW_CHAR = 18;
21
+ static readonly KW_CHECK = 19;
22
+ static readonly KW_COALESCE = 20;
23
+ static readonly KW_COLUMN = 21;
24
+ static readonly KW_CONSTRAINT = 22;
25
+ static readonly KW_CREATE = 23;
26
+ static readonly KW_CROSS = 24;
27
+ static readonly KW_DATE = 25;
28
+ static readonly KW_DECIMAL = 26;
29
+ static readonly KW_DEFAULT = 27;
30
+ static readonly KW_DELETE = 28;
31
+ static readonly KW_DESC = 29;
32
+ static readonly KW_DISTINCT = 30;
33
+ static readonly KW_DOUBLE = 31;
34
+ static readonly KW_DROP = 32;
35
+ static readonly KW_ELSE = 33;
36
+ static readonly KW_END = 34;
37
+ static readonly KW_ESCAPE = 35;
38
+ static readonly KW_EXCEPT = 36;
39
+ static readonly KW_EXISTS = 37;
40
+ static readonly KW_FALSE = 38;
41
+ static readonly KW_FIRST = 39;
42
+ static readonly KW_FLOAT = 40;
43
+ static readonly KW_FOREIGN = 41;
44
+ static readonly KW_FROM = 42;
45
+ static readonly KW_FULL = 43;
46
+ static readonly KW_GROUP = 44;
47
+ static readonly KW_HAVING = 45;
48
+ static readonly KW_IF = 46;
49
+ static readonly KW_IN = 47;
50
+ static readonly KW_INNER = 48;
51
+ static readonly KW_INSERT = 49;
52
+ static readonly KW_INT = 50;
53
+ static readonly KW_INTEGER = 51;
54
+ static readonly KW_INTERSECT = 52;
55
+ static readonly KW_INTO = 53;
56
+ static readonly KW_IS = 54;
57
+ static readonly KW_JOIN = 55;
58
+ static readonly KW_KEY = 56;
59
+ static readonly KW_LAST = 57;
60
+ static readonly KW_LEFT = 58;
61
+ static readonly KW_LIKE = 59;
62
+ static readonly KW_LIMIT = 60;
63
+ static readonly KW_NOT = 61;
64
+ static readonly KW_NULL = 62;
65
+ static readonly KW_NULLIF = 63;
66
+ static readonly KW_NULLS = 64;
67
+ static readonly KW_NUMERIC = 65;
68
+ static readonly KW_OFFSET = 66;
69
+ static readonly KW_ON = 67;
70
+ static readonly KW_OR = 68;
71
+ static readonly KW_ORDER = 69;
72
+ static readonly KW_OUTER = 70;
73
+ static readonly KW_PRIMARY = 71;
74
+ static readonly KW_RECURSIVE = 72;
75
+ static readonly KW_REFERENCES = 73;
76
+ static readonly KW_RENAME = 74;
77
+ static readonly KW_RIGHT = 75;
78
+ static readonly KW_SELECT = 76;
79
+ static readonly KW_SET = 77;
80
+ static readonly KW_SMALLINT = 78;
81
+ static readonly KW_TABLE = 79;
82
+ static readonly KW_TEXT = 80;
83
+ static readonly KW_THEN = 81;
84
+ static readonly KW_TIME = 82;
85
+ static readonly KW_TIMESTAMP = 83;
86
+ static readonly KW_TINYINT = 84;
87
+ static readonly KW_TO = 85;
88
+ static readonly KW_TRUE = 86;
89
+ static readonly KW_UNION = 87;
90
+ static readonly KW_UNIQUE = 88;
91
+ static readonly KW_UPDATE = 89;
92
+ static readonly KW_VARCHAR = 90;
93
+ static readonly KW_VARBINARY = 91;
94
+ static readonly KW_WHEN = 92;
95
+ static readonly KW_WHERE = 93;
96
+ static readonly KW_WITH = 94;
97
+ static readonly EQ = 95;
98
+ static readonly NEQ = 96;
99
+ static readonly LT = 97;
100
+ static readonly LTE = 98;
101
+ static readonly GT = 99;
102
+ static readonly GTE = 100;
103
+ static readonly PLUS = 101;
104
+ static readonly MINUS = 102;
105
+ static readonly ASTERISK = 103;
106
+ static readonly SLASH = 104;
107
+ static readonly PERCENT = 105;
108
+ static readonly CONCAT = 106;
109
+ static readonly QUESTION_MARK = 107;
110
+ static readonly SEMICOLON = 108;
111
+ static readonly STRING = 109;
112
+ static readonly BINARY_LITERAL = 110;
113
+ static readonly INTEGER_VALUE = 111;
114
+ static readonly DECIMAL_VALUE = 112;
115
+ static readonly DOUBLE_VALUE = 113;
116
+ static readonly IDENTIFIER = 114;
117
+ static readonly DIGIT_IDENTIFIER = 115;
118
+ static readonly QUOTED_IDENTIFIER = 116;
119
+ static readonly BACKQUOTED_IDENTIFIER = 117;
120
+ static readonly LINE_COMMENT = 118;
121
+ static readonly BRACKETED_COMMENT = 119;
122
+ static readonly WHITE_SPACE = 120;
123
+ static readonly UNRECOGNIZED = 121;
124
+ static readonly channelNames: string[];
125
+ static readonly literalNames: (string | null)[];
126
+ static readonly symbolicNames: (string | null)[];
127
+ static readonly modeNames: string[];
128
+ static readonly ruleNames: string[];
129
+ constructor(input: antlr.CharStream);
130
+ get grammarFileName(): string;
131
+ get literalNames(): (string | null)[];
132
+ get symbolicNames(): (string | null)[];
133
+ get ruleNames(): string[];
134
+ get serializedATN(): number[];
135
+ get channelNames(): string[];
136
+ get modeNames(): string[];
137
+ static readonly _serializedATN: number[];
138
+ private static __ATN;
139
+ static get _ATN(): antlr.ATN;
140
+ private static readonly vocabulary;
141
+ get vocabulary(): antlr.Vocabulary;
142
+ private static readonly decisionsToDFA;
143
+ }