dt-sql-parser 4.0.0 → 4.0.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,18 +1,8 @@
1
- export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL, PLSQL, } from './parser';
2
- export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PlSqlParserListener, PlSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, } from './lib';
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';
3
3
  export { EntityContextType } from './parser/common/types';
4
- export {
5
- /**
6
- * @deprecated SyntaxContextType has been renamed to {@link EntityContextType},
7
- * It will be removed when the stable version is released.
8
- */
9
- EntityContextType as SyntaxContextType, } from './parser/common/types';
10
4
  export { StmtContextType } from './parser/common/entityCollector';
11
5
  export type { CaretPosition, Suggestions, SyntaxSuggestion } from './parser/common/types';
12
6
  export type { WordRange, TextSlice } from './parser/common/textAndWord';
13
7
  export type { SyntaxError, ParseError, ErrorListener } from './parser/common/parseErrorListener';
14
8
  export type { StmtContext, EntityContext } from './parser/common/entityCollector';
15
- /**
16
- * @deprecated Legacy utils will be removed when the stable version is released.
17
- */
18
- export * from './utils';
package/dist/index.js CHANGED
@@ -1,14 +1,4 @@
1
- export { MySQL, FlinkSQL, SparkSQL, HiveSQL, PostgreSQL, TrinoSQL, ImpalaSQL, PLSQL, } from './parser';
2
- export { MySqlParserListener, MySqlParserVisitor, FlinkSqlParserListener, FlinkSqlParserVisitor, SparkSqlParserListener, SparkSqlParserVisitor, HiveSqlParserListener, HiveSqlParserVisitor, PlSqlParserListener, PlSqlParserVisitor, PostgreSqlParserListener, PostgreSqlParserVisitor, TrinoSqlListener, TrinoSqlVisitor, ImpalaSqlParserListener, ImpalaSqlParserVisitor, } from './lib';
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';
3
3
  export { EntityContextType } from './parser/common/types';
4
- export {
5
- /**
6
- * @deprecated SyntaxContextType has been renamed to {@link EntityContextType},
7
- * It will be removed when the stable version is released.
8
- */
9
- EntityContextType as SyntaxContextType, } from './parser/common/types';
10
4
  export { StmtContextType } from './parser/common/entityCollector';
11
- /**
12
- * @deprecated Legacy utils will be removed when the stable version is released.
13
- */
14
- export * from './utils';
@@ -4,8 +4,6 @@ export { MySqlParserListener } from './mysql/MySqlParserListener';
4
4
  export { MySqlParserVisitor } from './mysql/MySqlParserVisitor';
5
5
  export { HiveSqlParserListener } from './hive/HiveSqlParserListener';
6
6
  export { HiveSqlParserVisitor } from './hive/HiveSqlParserVisitor';
7
- export { PlSqlParserListener } from './plsql/PlSqlParserListener';
8
- export { PlSqlParserVisitor } from './plsql/PlSqlParserVisitor';
9
7
  export { SparkSqlParserListener } from './spark/SparkSqlParserListener';
10
8
  export { SparkSqlParserVisitor } from './spark/SparkSqlParserVisitor';
11
9
  export { PostgreSqlParserListener } from './postgresql/PostgreSqlParserListener';
package/dist/lib/index.js CHANGED
@@ -4,8 +4,6 @@ export { MySqlParserListener } from './mysql/MySqlParserListener';
4
4
  export { MySqlParserVisitor } from './mysql/MySqlParserVisitor';
5
5
  export { HiveSqlParserListener } from './hive/HiveSqlParserListener';
6
6
  export { HiveSqlParserVisitor } from './hive/HiveSqlParserVisitor';
7
- export { PlSqlParserListener } from './plsql/PlSqlParserListener';
8
- export { PlSqlParserVisitor } from './plsql/PlSqlParserVisitor';
9
7
  export { SparkSqlParserListener } from './spark/SparkSqlParserListener';
10
8
  export { SparkSqlParserVisitor } from './spark/SparkSqlParserVisitor';
11
9
  export { PostgreSqlParserListener } from './postgresql/PostgreSqlParserListener';
@@ -41867,48 +41867,48 @@ class MySqlParser extends SQLParserBase {
41867
41867
  }
41868
41868
  break;
41869
41869
  case 7:
41870
- localContext = new CaseExpressionFunctionCallContext(localContext);
41870
+ localContext = new CaseFunctionCallContext(localContext);
41871
41871
  this.enterOuterAlt(localContext, 7);
41872
41872
  {
41873
41873
  this.state = 7424;
41874
41874
  this.match(MySqlParser.KW_CASE);
41875
- this.state = 7425;
41876
- this.expression(0);
41877
- this.state = 7427;
41875
+ this.state = 7426;
41878
41876
  this.errorHandler.sync(this);
41879
41877
  _la = this.tokenStream.LA(1);
41880
41878
  do {
41881
41879
  {
41882
41880
  {
41883
- this.state = 7426;
41881
+ this.state = 7425;
41884
41882
  this.caseFuncAlternative();
41885
41883
  }
41886
41884
  }
41887
- this.state = 7429;
41885
+ this.state = 7428;
41888
41886
  this.errorHandler.sync(this);
41889
41887
  _la = this.tokenStream.LA(1);
41890
41888
  } while (_la === 191);
41891
- this.state = 7433;
41889
+ this.state = 7432;
41892
41890
  this.errorHandler.sync(this);
41893
41891
  _la = this.tokenStream.LA(1);
41894
41892
  if (_la === 53) {
41895
41893
  {
41896
- this.state = 7431;
41894
+ this.state = 7430;
41897
41895
  this.match(MySqlParser.KW_ELSE);
41898
- this.state = 7432;
41896
+ this.state = 7431;
41899
41897
  localContext._elseArg = this.functionArg();
41900
41898
  }
41901
41899
  }
41902
- this.state = 7435;
41900
+ this.state = 7434;
41903
41901
  this.match(MySqlParser.KW_END);
41904
41902
  }
41905
41903
  break;
41906
41904
  case 8:
41907
- localContext = new CaseFunctionCallContext(localContext);
41905
+ localContext = new CaseExpressionFunctionCallContext(localContext);
41908
41906
  this.enterOuterAlt(localContext, 8);
41909
41907
  {
41910
- this.state = 7437;
41908
+ this.state = 7436;
41911
41909
  this.match(MySqlParser.KW_CASE);
41910
+ this.state = 7437;
41911
+ this.expression(0);
41912
41912
  this.state = 7439;
41913
41913
  this.errorHandler.sync(this);
41914
41914
  _la = this.tokenStream.LA(1);
@@ -48127,8 +48127,8 @@ MySqlParser._serializedATN = [
48127
48127
  7388, 8, 380, 1, 380, 3, 380, 7391, 8, 380, 1, 381, 1, 381, 1, 381, 3, 381, 7396, 8,
48128
48128
  381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381,
48129
48129
  1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381,
48130
- 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 4, 381, 7428,
48131
- 8, 381, 11, 381, 12, 381, 7429, 1, 381, 1, 381, 3, 381, 7434, 8, 381, 1, 381, 1, 381,
48130
+ 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 4, 381, 7427, 8, 381,
48131
+ 11, 381, 12, 381, 7428, 1, 381, 1, 381, 3, 381, 7433, 8, 381, 1, 381, 1, 381, 1, 381,
48132
48132
  1, 381, 1, 381, 4, 381, 7440, 8, 381, 11, 381, 12, 381, 7441, 1, 381, 1, 381, 3, 381,
48133
48133
  7446, 8, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 3, 381, 7455,
48134
48134
  8, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 1, 381, 3, 381, 7463, 8, 381, 1, 381,
@@ -50774,11 +50774,11 @@ MySqlParser._serializedATN = [
50774
50774
  7414, 5, 866, 0, 0, 7414, 7415, 3, 800, 400, 0, 7415, 7416, 5, 13, 0, 0, 7416, 7417,
50775
50775
  3, 726, 363, 0, 7417, 7418, 5, 867, 0, 0, 7418, 7572, 1, 0, 0, 0, 7419, 7420, 5, 189,
50776
50776
  0, 0, 7420, 7421, 5, 866, 0, 0, 7421, 7422, 3, 658, 329, 0, 7422, 7423, 5, 867, 0,
50777
- 0, 7423, 7572, 1, 0, 0, 0, 7424, 7425, 5, 23, 0, 0, 7425, 7427, 3, 800, 400, 0, 7426,
50778
- 7428, 3, 764, 382, 0, 7427, 7426, 1, 0, 0, 0, 7428, 7429, 1, 0, 0, 0, 7429, 7427, 1,
50779
- 0, 0, 0, 7429, 7430, 1, 0, 0, 0, 7430, 7433, 1, 0, 0, 0, 7431, 7432, 5, 53, 0, 0, 7432,
50780
- 7434, 3, 798, 399, 0, 7433, 7431, 1, 0, 0, 0, 7433, 7434, 1, 0, 0, 0, 7434, 7435, 1,
50781
- 0, 0, 0, 7435, 7436, 5, 378, 0, 0, 7436, 7572, 1, 0, 0, 0, 7437, 7439, 5, 23, 0, 0, 7438,
50777
+ 0, 7423, 7572, 1, 0, 0, 0, 7424, 7426, 5, 23, 0, 0, 7425, 7427, 3, 764, 382, 0, 7426,
50778
+ 7425, 1, 0, 0, 0, 7427, 7428, 1, 0, 0, 0, 7428, 7426, 1, 0, 0, 0, 7428, 7429, 1, 0, 0,
50779
+ 0, 7429, 7432, 1, 0, 0, 0, 7430, 7431, 5, 53, 0, 0, 7431, 7433, 3, 798, 399, 0, 7432,
50780
+ 7430, 1, 0, 0, 0, 7432, 7433, 1, 0, 0, 0, 7433, 7434, 1, 0, 0, 0, 7434, 7435, 5, 378,
50781
+ 0, 0, 7435, 7572, 1, 0, 0, 0, 7436, 7437, 5, 23, 0, 0, 7437, 7439, 3, 800, 400, 0, 7438,
50782
50782
  7440, 3, 764, 382, 0, 7439, 7438, 1, 0, 0, 0, 7440, 7441, 1, 0, 0, 0, 7441, 7439, 1,
50783
50783
  0, 0, 0, 7441, 7442, 1, 0, 0, 0, 7442, 7445, 1, 0, 0, 0, 7443, 7444, 5, 53, 0, 0, 7444,
50784
50784
  7446, 3, 798, 399, 0, 7445, 7443, 1, 0, 0, 0, 7445, 7446, 1, 0, 0, 0, 7446, 7447, 1,
@@ -50826,7 +50826,7 @@ MySqlParser._serializedATN = [
50826
50826
  7568, 3, 288, 144, 0, 7567, 7566, 1, 0, 0, 0, 7567, 7568, 1, 0, 0, 0, 7568, 7569, 1,
50827
50827
  0, 0, 0, 7569, 7570, 5, 867, 0, 0, 7570, 7572, 1, 0, 0, 0, 7571, 7392, 1, 0, 0, 0, 7571,
50828
50828
  7397, 1, 0, 0, 0, 7571, 7398, 1, 0, 0, 0, 7571, 7405, 1, 0, 0, 0, 7571, 7412, 1, 0, 0,
50829
- 0, 7571, 7419, 1, 0, 0, 0, 7571, 7424, 1, 0, 0, 0, 7571, 7437, 1, 0, 0, 0, 7571, 7449,
50829
+ 0, 7571, 7419, 1, 0, 0, 0, 7571, 7424, 1, 0, 0, 0, 7571, 7436, 1, 0, 0, 0, 7571, 7449,
50830
50830
  1, 0, 0, 0, 7571, 7458, 1, 0, 0, 0, 7571, 7471, 1, 0, 0, 0, 7571, 7491, 1, 0, 0, 0, 7571,
50831
50831
  7505, 1, 0, 0, 0, 7571, 7518, 1, 0, 0, 0, 7571, 7537, 1, 0, 0, 0, 7571, 7547, 1, 0, 0,
50832
50832
  0, 7571, 7554, 1, 0, 0, 0, 7572, 763, 1, 0, 0, 0, 7573, 7574, 5, 191, 0, 0, 7574, 7575,
@@ -51076,7 +51076,7 @@ MySqlParser._serializedATN = [
51076
51076
  7095, 7098, 7103, 7106, 7110, 7115, 7120, 7125, 7130, 7133, 7138, 7143, 7148,
51077
51077
  7154, 7159, 7164, 7169, 7173, 7176, 7181, 7185, 7189, 7197, 7204, 7208, 7213,
51078
51078
  7218, 7222, 7224, 7227, 7243, 7253, 7263, 7272, 7281, 7288, 7295, 7303, 7311,
51079
- 7323, 7330, 7340, 7345, 7348, 7353, 7356, 7378, 7387, 7390, 7395, 7429, 7433,
51079
+ 7323, 7330, 7340, 7345, 7348, 7353, 7356, 7378, 7387, 7390, 7395, 7428, 7432,
51080
51080
  7441, 7445, 7454, 7462, 7467, 7475, 7480, 7485, 7487, 7496, 7501, 7509, 7514,
51081
51081
  7522, 7530, 7533, 7543, 7561, 7564, 7567, 7571, 7584, 7592, 7596, 7601, 7606,
51082
51082
  7612, 7617, 7621, 7626, 7631, 7636, 7646, 7649, 7653, 7657, 7664, 7668, 7697,
@@ -596,8 +596,8 @@ import { SimpleFunctionCallContext } from "./MySqlParser.js";
596
596
  import { CurrentUserContext } from "./MySqlParser.js";
597
597
  import { DataTypeFunctionCallContext } from "./MySqlParser.js";
598
598
  import { ValuesFunctionCallContext } from "./MySqlParser.js";
599
- import { CaseExpressionFunctionCallContext } from "./MySqlParser.js";
600
599
  import { CaseFunctionCallContext } from "./MySqlParser.js";
600
+ import { CaseExpressionFunctionCallContext } from "./MySqlParser.js";
601
601
  import { CharFunctionCallContext } from "./MySqlParser.js";
602
602
  import { PositionFunctionCallContext } from "./MySqlParser.js";
603
603
  import { SubstrFunctionCallContext } from "./MySqlParser.js";
@@ -7148,29 +7148,29 @@ export declare class MySqlParserListener implements ParseTreeListener {
7148
7148
  */
7149
7149
  exitValuesFunctionCall?: (ctx: ValuesFunctionCallContext) => void;
7150
7150
  /**
7151
- * Enter a parse tree produced by the `caseExpressionFunctionCall`
7151
+ * Enter a parse tree produced by the `caseFunctionCall`
7152
7152
  * labeled alternative in `MySqlParser.specificFunction`.
7153
7153
  * @param ctx the parse tree
7154
7154
  */
7155
- enterCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => void;
7155
+ enterCaseFunctionCall?: (ctx: CaseFunctionCallContext) => void;
7156
7156
  /**
7157
- * Exit a parse tree produced by the `caseExpressionFunctionCall`
7157
+ * Exit a parse tree produced by the `caseFunctionCall`
7158
7158
  * labeled alternative in `MySqlParser.specificFunction`.
7159
7159
  * @param ctx the parse tree
7160
7160
  */
7161
- exitCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => void;
7161
+ exitCaseFunctionCall?: (ctx: CaseFunctionCallContext) => void;
7162
7162
  /**
7163
- * Enter a parse tree produced by the `caseFunctionCall`
7163
+ * Enter a parse tree produced by the `caseExpressionFunctionCall`
7164
7164
  * labeled alternative in `MySqlParser.specificFunction`.
7165
7165
  * @param ctx the parse tree
7166
7166
  */
7167
- enterCaseFunctionCall?: (ctx: CaseFunctionCallContext) => void;
7167
+ enterCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => void;
7168
7168
  /**
7169
- * Exit a parse tree produced by the `caseFunctionCall`
7169
+ * Exit a parse tree produced by the `caseExpressionFunctionCall`
7170
7170
  * labeled alternative in `MySqlParser.specificFunction`.
7171
7171
  * @param ctx the parse tree
7172
7172
  */
7173
- exitCaseFunctionCall?: (ctx: CaseFunctionCallContext) => void;
7173
+ exitCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => void;
7174
7174
  /**
7175
7175
  * Enter a parse tree produced by the `charFunctionCall`
7176
7176
  * labeled alternative in `MySqlParser.specificFunction`.
@@ -596,8 +596,8 @@ import { SimpleFunctionCallContext } from "./MySqlParser.js";
596
596
  import { CurrentUserContext } from "./MySqlParser.js";
597
597
  import { DataTypeFunctionCallContext } from "./MySqlParser.js";
598
598
  import { ValuesFunctionCallContext } from "./MySqlParser.js";
599
- import { CaseExpressionFunctionCallContext } from "./MySqlParser.js";
600
599
  import { CaseFunctionCallContext } from "./MySqlParser.js";
600
+ import { CaseExpressionFunctionCallContext } from "./MySqlParser.js";
601
601
  import { CharFunctionCallContext } from "./MySqlParser.js";
602
602
  import { PositionFunctionCallContext } from "./MySqlParser.js";
603
603
  import { SubstrFunctionCallContext } from "./MySqlParser.js";
@@ -4511,19 +4511,19 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
4511
4511
  */
4512
4512
  visitValuesFunctionCall?: (ctx: ValuesFunctionCallContext) => Result;
4513
4513
  /**
4514
- * Visit a parse tree produced by the `caseExpressionFunctionCall`
4514
+ * Visit a parse tree produced by the `caseFunctionCall`
4515
4515
  * labeled alternative in `MySqlParser.specificFunction`.
4516
4516
  * @param ctx the parse tree
4517
4517
  * @return the visitor result
4518
4518
  */
4519
- visitCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => Result;
4519
+ visitCaseFunctionCall?: (ctx: CaseFunctionCallContext) => Result;
4520
4520
  /**
4521
- * Visit a parse tree produced by the `caseFunctionCall`
4521
+ * Visit a parse tree produced by the `caseExpressionFunctionCall`
4522
4522
  * labeled alternative in `MySqlParser.specificFunction`.
4523
4523
  * @param ctx the parse tree
4524
4524
  * @return the visitor result
4525
4525
  */
4526
- visitCaseFunctionCall?: (ctx: CaseFunctionCallContext) => Result;
4526
+ visitCaseExpressionFunctionCall?: (ctx: CaseExpressionFunctionCallContext) => Result;
4527
4527
  /**
4528
4528
  * Visit a parse tree produced by the `charFunctionCall`
4529
4529
  * labeled alternative in `MySqlParser.specificFunction`.
@@ -1,5 +1,4 @@
1
1
  export { MySQL } from './mysql';
2
- export { PLSQL } from './plsql';
3
2
  export { HiveSQL } from './hive';
4
3
  export { FlinkSQL } from './flink';
5
4
  export { SparkSQL } from './spark';
@@ -1,5 +1,4 @@
1
1
  export { MySQL } from './mysql';
2
- export { PLSQL } from './plsql';
3
2
  export { HiveSQL } from './hive';
4
3
  export { FlinkSQL } from './flink';
5
4
  export { SparkSQL } from './spark';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-sql-parser",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "authors": "DTStack Corporation",
5
5
  "description": "SQL Parsers for BigData, built with antlr4",
6
6
  "keywords": [
@@ -29,7 +29,8 @@
29
29
  "lint": "prettier --check '**/*.ts' --config ./.prettierrc",
30
30
  "lint-fix": "prettier --write '**/*.ts' --config ./.prettierrc",
31
31
  "format-g4": "antlr-format -c ./antlr.format.json -v ./src/grammar/**/*.g4",
32
- "cleanComment": "node ./scripts/cleanCommentCli.js"
32
+ "cleanComment": "node ./scripts/cleanCommentCli.js",
33
+ "benchmark": "node --no-warnings ./scripts/benchmark.js"
33
34
  },
34
35
  "license": "MIT",
35
36
  "devDependencies": {
@@ -44,6 +45,8 @@
44
45
  "antlr4ng-cli": "^1.0.7",
45
46
  "chalk": "4.1.2",
46
47
  "commitizen": "^4.3.0",
48
+ "console-table-printer": "^2.12.0",
49
+ "envinfo": "^7.11.1",
47
50
  "glob": "^10.3.10",
48
51
  "husky": "^8.0.3",
49
52
  "inquirer": "^8.2.2",
@@ -51,6 +54,7 @@
51
54
  "lint-staged": "12.5.0",
52
55
  "prettier": "^3.0.3",
53
56
  "standard-version": "^9.5.0",
57
+ "tsx": "^4.7.1",
54
58
  "typescript": "^5.0.4",
55
59
  "yargs-parser": "^21.1.1"
56
60
  },
@@ -1,4 +0,0 @@
1
- import { Lexer } from "antlr4ng";
2
- export declare abstract class PlSqlBaseLexer extends Lexer {
3
- IsNewlineAtPos(pos: number): boolean;
4
- }
@@ -1,7 +0,0 @@
1
- import { Lexer } from "antlr4ng";
2
- export class PlSqlBaseLexer extends Lexer {
3
- IsNewlineAtPos(pos) {
4
- const la = this._input.LA(pos);
5
- return la == -1 || String.fromCharCode(la) == '\n';
6
- }
7
- }
@@ -1,11 +0,0 @@
1
- import { TokenStream } from "antlr4ng";
2
- import { SQLParserBase } from "../SQLParserBase";
3
- export declare abstract class PlSqlBaseParser extends SQLParserBase {
4
- private _isVersion10;
5
- private _isVersion12;
6
- constructor(input: TokenStream);
7
- isVersion10(): boolean;
8
- isVersion12(): boolean;
9
- setVersion10(value: boolean): void;
10
- setVersion12(value: boolean): void;
11
- }
@@ -1,22 +0,0 @@
1
- import { SQLParserBase } from "../SQLParserBase";
2
- export class PlSqlBaseParser extends SQLParserBase {
3
- constructor(input) {
4
- super(input);
5
- this._isVersion10 = false;
6
- this._isVersion12 = true;
7
- this._isVersion10 = false;
8
- this._isVersion12 = true;
9
- }
10
- isVersion10() {
11
- return this._isVersion10;
12
- }
13
- isVersion12() {
14
- return this._isVersion12;
15
- }
16
- setVersion10(value) {
17
- this._isVersion10 = value;
18
- }
19
- setVersion12(value) {
20
- this._isVersion12 = value;
21
- }
22
- }