dt-sql-parser 4.2.0 → 4.3.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.
|
@@ -41,7 +41,11 @@ export declare enum EntityContextType {
|
|
|
41
41
|
/** column name */
|
|
42
42
|
COLUMN = "column",
|
|
43
43
|
/** column name that will be created */
|
|
44
|
-
COLUMN_CREATE = "columnCreate"
|
|
44
|
+
COLUMN_CREATE = "columnCreate",
|
|
45
|
+
/** table property key when creating table*/
|
|
46
|
+
TABLE_PROPERTY_KEY = "tablePropertyKey",
|
|
47
|
+
/** table property value when creating table*/
|
|
48
|
+
TABLE_PROPERTY_VALUE = "tablePropertyValue"
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Suggested information analyzed from the input
|
|
@@ -31,6 +31,10 @@ export var EntityContextType;
|
|
|
31
31
|
EntityContextType["COLUMN"] = "column";
|
|
32
32
|
/** column name that will be created */
|
|
33
33
|
EntityContextType["COLUMN_CREATE"] = "columnCreate";
|
|
34
|
+
/** table property key when creating table*/
|
|
35
|
+
EntityContextType["TABLE_PROPERTY_KEY"] = "tablePropertyKey";
|
|
36
|
+
/** table property value when creating table*/
|
|
37
|
+
EntityContextType["TABLE_PROPERTY_VALUE"] = "tablePropertyValue";
|
|
34
38
|
})(EntityContextType || (EntityContextType = {}));
|
|
35
39
|
export var SqlSplitStrategy;
|
|
36
40
|
(function (SqlSplitStrategy) {
|
|
@@ -27,6 +27,8 @@ export class FlinkSQL extends BasicSQL {
|
|
|
27
27
|
FlinkSqlParser.RULE_columnName,
|
|
28
28
|
FlinkSqlParser.RULE_columnNamePath,
|
|
29
29
|
FlinkSqlParser.RULE_columnNameCreate,
|
|
30
|
+
FlinkSqlParser.RULE_tablePropertyKey,
|
|
31
|
+
FlinkSqlParser.RULE_tablePropertyValue,
|
|
30
32
|
]);
|
|
31
33
|
}
|
|
32
34
|
createLexerFromCharStream(charStreams) {
|
|
@@ -114,6 +116,14 @@ export class FlinkSQL extends BasicSQL {
|
|
|
114
116
|
}
|
|
115
117
|
break;
|
|
116
118
|
}
|
|
119
|
+
case FlinkSqlParser.RULE_tablePropertyKey: {
|
|
120
|
+
syntaxContextType = EntityContextType.TABLE_PROPERTY_KEY;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
case FlinkSqlParser.RULE_tablePropertyValue: {
|
|
124
|
+
syntaxContextType = EntityContextType.TABLE_PROPERTY_VALUE;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
117
127
|
default:
|
|
118
128
|
break;
|
|
119
129
|
}
|