@malloydata/malloy 0.0.43-dev230622180905 → 0.0.43-dev230622192152

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.
@@ -38,6 +38,7 @@ const nest_1 = require("../query-properties/nest");
38
38
  const query_spaces_1 = require("../field-space/query-spaces");
39
39
  const calculate_1 = require("../query-properties/calculate");
40
40
  const timezone_statement_1 = require("../source-properties/timezone-statement");
41
+ const extend_1 = require("../query-properties/extend");
41
42
  class ReduceExecutor {
42
43
  constructor(baseFS, refineThis) {
43
44
  this.filters = [];
@@ -99,6 +100,13 @@ class ReduceExecutor {
99
100
  this.inputFS.extendSource(qel);
100
101
  }
101
102
  }
103
+ else if (qp instanceof extend_1.ExtendBlock) {
104
+ for (const block of qp.list) {
105
+ for (const qel of block.list) {
106
+ this.inputFS.extendSource(qel);
107
+ }
108
+ }
109
+ }
102
110
  else if (qp instanceof timezone_statement_1.TimezoneStatement) {
103
111
  this.resultFS.setTimezone(qp.tz);
104
112
  }
@@ -79,6 +79,12 @@ class ExprFunc extends expression_def_1.ExpressionDef {
79
79
  if (func.name !== this.name) {
80
80
  this.log(`Case insensitivity for function names is deprecated, use '${func.name}' instead`, 'warn');
81
81
  }
82
+ if (func.name !== this.name) {
83
+ this.log(`Case insensitivity for function names is deprecated, use '${func.name}' instead`, 'warn');
84
+ }
85
+ if (func.name !== this.name) {
86
+ this.log(`Case insensitivity for function names is deprecated, use '${func.name}' instead`, 'warn');
87
+ }
82
88
  // Find the 'implicit argument' for aggregate functions called like `some_join.some_field.agg(...args)`
83
89
  // where the full arg list is `(some_field, ...args)`.
84
90
  let implicitExpr = undefined;
@@ -51,8 +51,10 @@ export * from './expressions/unary';
51
51
  export * from './expressions/utils';
52
52
  export * from './elements/import-statement';
53
53
  export * from './query-properties/nest-reference';
54
+ export * from './query-properties/extend';
54
55
  export * from './parameters/has-parameter';
55
56
  export * from './query-elements/anonymous-query';
57
+ export * from './query-elements/run-query';
56
58
  export * from './query-elements/existing-query';
57
59
  export * from './query-elements/full-query';
58
60
  export * from './query-items/field-declaration';
@@ -91,3 +93,4 @@ export * from './types/query-element';
91
93
  export * from './types/query-item';
92
94
  export * from './types/query-property';
93
95
  export * from './types/turtle-headed-pipe';
96
+ export * from './types/query-extend-property';
@@ -89,8 +89,10 @@ __exportStar(require("./expressions/unary"), exports);
89
89
  __exportStar(require("./expressions/utils"), exports);
90
90
  __exportStar(require("./elements/import-statement"), exports);
91
91
  __exportStar(require("./query-properties/nest-reference"), exports);
92
+ __exportStar(require("./query-properties/extend"), exports);
92
93
  __exportStar(require("./parameters/has-parameter"), exports);
93
94
  __exportStar(require("./query-elements/anonymous-query"), exports);
95
+ __exportStar(require("./query-elements/run-query"), exports);
94
96
  __exportStar(require("./query-elements/existing-query"), exports);
95
97
  __exportStar(require("./query-elements/full-query"), exports);
96
98
  __exportStar(require("./query-items/field-declaration"), exports);
@@ -129,4 +131,5 @@ __exportStar(require("./types/query-element"), exports);
129
131
  __exportStar(require("./types/query-item"), exports);
130
132
  __exportStar(require("./types/query-property"), exports);
131
133
  __exportStar(require("./types/turtle-headed-pipe"), exports);
134
+ __exportStar(require("./types/query-extend-property"), exports);
132
135
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,18 @@
1
+ import { ModelDataRequest } from '../../translate-response';
2
+ import { DocStatement, Document, MalloyElement, ModelEntryReference } from '../types/malloy-element';
3
+ import { QueryElement } from '../types/query-element';
4
+ declare abstract class RunQuery extends MalloyElement implements DocStatement {
5
+ elementType: string;
6
+ abstract execute(doc: Document): ModelDataRequest;
7
+ }
8
+ export declare class RunQueryDef extends RunQuery {
9
+ readonly theQuery: QueryElement;
10
+ constructor(theQuery: QueryElement);
11
+ execute(doc: Document): ModelDataRequest;
12
+ }
13
+ export declare class RunQueryRef extends RunQuery {
14
+ readonly queryName: ModelEntryReference;
15
+ constructor(queryName: ModelEntryReference);
16
+ execute(doc: Document): ModelDataRequest;
17
+ }
18
+ export {};
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2023 Google LLC
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files
7
+ * (the "Software"), to deal in the Software without restriction,
8
+ * including without limitation the rights to use, copy, modify, merge,
9
+ * publish, distribute, sublicense, and/or sell copies of the Software,
10
+ * and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be
14
+ * included in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.RunQueryRef = exports.RunQueryDef = void 0;
26
+ const malloy_element_1 = require("../types/malloy-element");
27
+ class RunQuery extends malloy_element_1.MalloyElement {
28
+ constructor() {
29
+ super(...arguments);
30
+ this.elementType = 'runQuery';
31
+ }
32
+ }
33
+ class RunQueryDef extends RunQuery {
34
+ constructor(theQuery) {
35
+ super();
36
+ this.theQuery = theQuery;
37
+ this.has({ query: theQuery });
38
+ }
39
+ execute(doc) {
40
+ const modelQuery = this.theQuery.query();
41
+ doc.queryList.push(modelQuery);
42
+ return undefined;
43
+ }
44
+ }
45
+ exports.RunQueryDef = RunQueryDef;
46
+ class RunQueryRef extends RunQuery {
47
+ constructor(queryName) {
48
+ super();
49
+ this.queryName = queryName;
50
+ this.has({ queryName });
51
+ }
52
+ execute(doc) {
53
+ const found = doc.getEntry(this.queryName.refString);
54
+ if (found === undefined) {
55
+ this.queryName.log(`${this.queryName} is not defined`);
56
+ }
57
+ if (found.entry.type === 'query') {
58
+ doc.queryList.push(found.entry);
59
+ return undefined;
60
+ }
61
+ else {
62
+ this.queryName.log(`${this.queryName} is not a query`);
63
+ }
64
+ }
65
+ }
66
+ exports.RunQueryRef = RunQueryRef;
67
+ //# sourceMappingURL=run-query.js.map
@@ -0,0 +1,5 @@
1
+ import { ListOf } from '../types/malloy-element';
2
+ import { QueryExtendProperty } from '../types/query-extend-property';
3
+ export declare class ExtendBlock extends ListOf<QueryExtendProperty> {
4
+ constructor(properties: QueryExtendProperty[]);
5
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2023 Google LLC
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files
7
+ * (the "Software"), to deal in the Software without restriction,
8
+ * including without limitation the rights to use, copy, modify, merge,
9
+ * publish, distribute, sublicense, and/or sell copies of the Software,
10
+ * and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be
14
+ * included in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ExtendBlock = void 0;
26
+ const malloy_element_1 = require("../types/malloy-element");
27
+ class ExtendBlock extends malloy_element_1.ListOf {
28
+ constructor(properties) {
29
+ super('extend property', properties);
30
+ }
31
+ }
32
+ exports.ExtendBlock = ExtendBlock;
33
+ //# sourceMappingURL=extend.js.map
@@ -0,0 +1,6 @@
1
+ import { Dimensions } from '../query-properties/dimmensions';
2
+ import { Joins } from '../query-properties/joins';
3
+ import { Measures } from '../query-properties/measures';
4
+ import { MalloyElement } from './malloy-element';
5
+ export declare type QueryExtendProperty = Dimensions | Measures | Joins;
6
+ export declare function isQueryExtendProperty(q: MalloyElement): q is QueryExtendProperty;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2023 Google LLC
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files
7
+ * (the "Software"), to deal in the Software without restriction,
8
+ * including without limitation the rights to use, copy, modify, merge,
9
+ * publish, distribute, sublicense, and/or sell copies of the Software,
10
+ * and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be
14
+ * included in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.isQueryExtendProperty = void 0;
26
+ const dimmensions_1 = require("../query-properties/dimmensions");
27
+ const joins_1 = require("../query-properties/joins");
28
+ const measures_1 = require("../query-properties/measures");
29
+ function isQueryExtendProperty(q) {
30
+ return q instanceof dimmensions_1.Dimensions || q instanceof measures_1.Measures || q instanceof joins_1.Joins;
31
+ }
32
+ exports.isQueryExtendProperty = isQueryExtendProperty;
33
+ //# sourceMappingURL=query-extend-property.js.map
@@ -13,5 +13,6 @@ import { Ordering } from '../query-properties/ordering';
13
13
  import { ProjectStatement } from '../query-properties/project-statement';
14
14
  import { SampleProperty } from '../query-properties/sampling';
15
15
  import { Top } from '../query-properties/top';
16
- export declare type QueryProperty = Ordering | Top | Limit | Filter | Index | SampleProperty | Joins | DeclareFields | ProjectStatement | NestReference | NestDefinition | NestReference | Nests | Aggregate | GroupBy;
16
+ import { ExtendBlock } from '../query-properties/extend';
17
+ export declare type QueryProperty = Ordering | Top | Limit | Filter | Index | SampleProperty | Joins | DeclareFields | ProjectStatement | NestReference | NestDefinition | NestReference | Nests | Aggregate | GroupBy | ExtendBlock;
17
18
  export declare function isQueryProperty(q: MalloyElement): q is QueryProperty;
@@ -38,6 +38,7 @@ const sampling_1 = require("../query-properties/sampling");
38
38
  const top_1 = require("../query-properties/top");
39
39
  const timezone_statement_1 = require("../source-properties/timezone-statement");
40
40
  const calculate_1 = require("../query-properties/calculate");
41
+ const extend_1 = require("../query-properties/extend");
41
42
  function isQueryProperty(q) {
42
43
  return (q instanceof ordering_1.Ordering ||
43
44
  q instanceof top_1.Top ||
@@ -51,6 +52,7 @@ function isQueryProperty(q) {
51
52
  q instanceof aggregate_1.Aggregate ||
52
53
  q instanceof calculate_1.Calculate ||
53
54
  q instanceof nests_1.Nests ||
55
+ q instanceof extend_1.ExtendBlock ||
54
56
  (0, nest_1.isNestedQuery)(q) ||
55
57
  q instanceof group_by_1.GroupBy ||
56
58
  q instanceof timezone_statement_1.TimezoneStatement);
@@ -12,138 +12,140 @@ export declare class MalloyLexer extends Lexer {
12
12
  static readonly DECLARE = 7;
13
13
  static readonly DIMENSION = 8;
14
14
  static readonly EXCEPT = 9;
15
- static readonly GROUP_BY = 10;
16
- static readonly HAVING = 11;
17
- static readonly INDEX = 12;
18
- static readonly JOIN_CROSS = 13;
19
- static readonly JOIN_ONE = 14;
20
- static readonly JOIN_MANY = 15;
21
- static readonly LIMIT = 16;
22
- static readonly MEASURE = 17;
23
- static readonly NEST = 18;
24
- static readonly ORDER_BY = 19;
25
- static readonly PRIMARY_KEY = 20;
26
- static readonly PROJECT = 21;
27
- static readonly QUERY = 22;
28
- static readonly RENAME = 23;
29
- static readonly SAMPLE = 24;
30
- static readonly SELECT = 25;
31
- static readonly SOURCE = 26;
32
- static readonly SQL = 27;
33
- static readonly TOP = 28;
34
- static readonly WHERE = 29;
35
- static readonly TIMEZONE = 30;
36
- static readonly ALL = 31;
37
- static readonly AND = 32;
38
- static readonly AS = 33;
39
- static readonly ASC = 34;
40
- static readonly AVG = 35;
41
- static readonly BOOLEAN = 36;
42
- static readonly BY = 37;
43
- static readonly CASE = 38;
44
- static readonly CAST = 39;
45
- static readonly CONDITION = 40;
46
- static readonly COUNT = 41;
47
- static readonly DATE = 42;
48
- static readonly DAY = 43;
49
- static readonly DESC = 44;
50
- static readonly DISTINCT = 45;
51
- static readonly ELSE = 46;
52
- static readonly END = 47;
53
- static readonly EXCLUDE = 48;
54
- static readonly FALSE = 49;
55
- static readonly FOR = 50;
56
- static readonly FROM = 51;
57
- static readonly FROM_SQL = 52;
58
- static readonly HAS = 53;
59
- static readonly HOUR = 54;
60
- static readonly IMPORT = 55;
61
- static readonly IS = 56;
62
- static readonly JSON = 57;
63
- static readonly LAST = 58;
64
- static readonly MAX = 59;
65
- static readonly MIN = 60;
66
- static readonly MINUTE = 61;
67
- static readonly MONTH = 62;
68
- static readonly NOT = 63;
69
- static readonly NOW = 64;
70
- static readonly NULL = 65;
71
- static readonly NUMBER = 66;
72
- static readonly ON = 67;
73
- static readonly OR = 68;
74
- static readonly PICK = 69;
75
- static readonly QUARTER = 70;
76
- static readonly SECOND = 71;
77
- static readonly STRING = 72;
78
- static readonly SUM = 73;
79
- static readonly TABLE = 74;
80
- static readonly THEN = 75;
81
- static readonly THIS = 76;
82
- static readonly TIMESTAMP = 77;
83
- static readonly TO = 78;
84
- static readonly TRUE = 79;
85
- static readonly TURTLE = 80;
86
- static readonly WEEK = 81;
87
- static readonly WHEN = 82;
88
- static readonly WITH = 83;
89
- static readonly YEAR = 84;
90
- static readonly UNGROUPED = 85;
91
- static readonly STRING_ESCAPE = 86;
92
- static readonly HACKY_REGEX = 87;
93
- static readonly STRING_LITERAL = 88;
94
- static readonly AMPER = 89;
95
- static readonly ARROW = 90;
96
- static readonly FAT_ARROW = 91;
97
- static readonly OPAREN = 92;
98
- static readonly CPAREN = 93;
99
- static readonly OBRACK = 94;
100
- static readonly CBRACK = 95;
101
- static readonly OCURLY = 96;
102
- static readonly CCURLY = 97;
103
- static readonly DOUBLECOLON = 98;
104
- static readonly EXCLAM = 99;
105
- static readonly COLON = 100;
106
- static readonly COMMA = 101;
107
- static readonly DOT = 102;
108
- static readonly LT = 103;
109
- static readonly GT = 104;
110
- static readonly EQ = 105;
111
- static readonly NE = 106;
112
- static readonly LTE = 107;
113
- static readonly GTE = 108;
114
- static readonly PLUS = 109;
115
- static readonly MINUS = 110;
116
- static readonly STAR = 111;
117
- static readonly STARSTAR = 112;
118
- static readonly SLASH = 113;
119
- static readonly BAR = 114;
120
- static readonly SEMI = 115;
121
- static readonly NOT_MATCH = 116;
122
- static readonly MATCH = 117;
123
- static readonly PERCENT = 118;
124
- static readonly DOUBLE_QMARK = 119;
125
- static readonly QMARK = 120;
126
- static readonly LITERAL_TIMESTAMP = 121;
127
- static readonly LITERAL_HOUR = 122;
128
- static readonly LITERAL_DAY = 123;
129
- static readonly LITERAL_QUARTER = 124;
130
- static readonly LITERAL_MONTH = 125;
131
- static readonly LITERAL_WEEK = 126;
132
- static readonly LITERAL_YEAR = 127;
133
- static readonly IDENTIFIER = 128;
134
- static readonly PERCENT_LITERAL = 129;
135
- static readonly INTEGER_LITERAL = 130;
136
- static readonly NUMERIC_LITERAL = 131;
137
- static readonly OBJECT_NAME_LITERAL = 132;
138
- static readonly BLOCK_COMMENT = 133;
139
- static readonly COMMENT_TO_EOL = 134;
140
- static readonly WHITE_SPACE = 135;
141
- static readonly SQL_BEGIN = 136;
142
- static readonly CLOSE_CODE = 137;
143
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 138;
144
- static readonly UNEXPECTED_CHAR = 139;
145
- static readonly OPEN_CODE = 140;
146
- static readonly SQL_END = 141;
15
+ static readonly EXTENDQ = 10;
16
+ static readonly GROUP_BY = 11;
17
+ static readonly HAVING = 12;
18
+ static readonly INDEX = 13;
19
+ static readonly JOIN_CROSS = 14;
20
+ static readonly JOIN_ONE = 15;
21
+ static readonly JOIN_MANY = 16;
22
+ static readonly LIMIT = 17;
23
+ static readonly MEASURE = 18;
24
+ static readonly NEST = 19;
25
+ static readonly ORDER_BY = 20;
26
+ static readonly PRIMARY_KEY = 21;
27
+ static readonly PROJECT = 22;
28
+ static readonly QUERY = 23;
29
+ static readonly RENAME = 24;
30
+ static readonly RUN = 25;
31
+ static readonly SAMPLE = 26;
32
+ static readonly SELECT = 27;
33
+ static readonly SOURCE = 28;
34
+ static readonly SQL = 29;
35
+ static readonly TOP = 30;
36
+ static readonly WHERE = 31;
37
+ static readonly TIMEZONE = 32;
38
+ static readonly ALL = 33;
39
+ static readonly AND = 34;
40
+ static readonly AS = 35;
41
+ static readonly ASC = 36;
42
+ static readonly AVG = 37;
43
+ static readonly BOOLEAN = 38;
44
+ static readonly BY = 39;
45
+ static readonly CASE = 40;
46
+ static readonly CAST = 41;
47
+ static readonly CONDITION = 42;
48
+ static readonly COUNT = 43;
49
+ static readonly DATE = 44;
50
+ static readonly DAY = 45;
51
+ static readonly DESC = 46;
52
+ static readonly DISTINCT = 47;
53
+ static readonly ELSE = 48;
54
+ static readonly END = 49;
55
+ static readonly EXCLUDE = 50;
56
+ static readonly FALSE = 51;
57
+ static readonly FOR = 52;
58
+ static readonly FROM = 53;
59
+ static readonly FROM_SQL = 54;
60
+ static readonly HAS = 55;
61
+ static readonly HOUR = 56;
62
+ static readonly IMPORT = 57;
63
+ static readonly IS = 58;
64
+ static readonly JSON = 59;
65
+ static readonly LAST = 60;
66
+ static readonly MAX = 61;
67
+ static readonly MIN = 62;
68
+ static readonly MINUTE = 63;
69
+ static readonly MONTH = 64;
70
+ static readonly NOT = 65;
71
+ static readonly NOW = 66;
72
+ static readonly NULL = 67;
73
+ static readonly NUMBER = 68;
74
+ static readonly ON = 69;
75
+ static readonly OR = 70;
76
+ static readonly PICK = 71;
77
+ static readonly QUARTER = 72;
78
+ static readonly SECOND = 73;
79
+ static readonly STRING = 74;
80
+ static readonly SUM = 75;
81
+ static readonly TABLE = 76;
82
+ static readonly THEN = 77;
83
+ static readonly THIS = 78;
84
+ static readonly TIMESTAMP = 79;
85
+ static readonly TO = 80;
86
+ static readonly TRUE = 81;
87
+ static readonly TURTLE = 82;
88
+ static readonly WEEK = 83;
89
+ static readonly WHEN = 84;
90
+ static readonly WITH = 85;
91
+ static readonly YEAR = 86;
92
+ static readonly UNGROUPED = 87;
93
+ static readonly STRING_ESCAPE = 88;
94
+ static readonly HACKY_REGEX = 89;
95
+ static readonly STRING_LITERAL = 90;
96
+ static readonly AMPER = 91;
97
+ static readonly ARROW = 92;
98
+ static readonly FAT_ARROW = 93;
99
+ static readonly OPAREN = 94;
100
+ static readonly CPAREN = 95;
101
+ static readonly OBRACK = 96;
102
+ static readonly CBRACK = 97;
103
+ static readonly OCURLY = 98;
104
+ static readonly CCURLY = 99;
105
+ static readonly DOUBLECOLON = 100;
106
+ static readonly EXCLAM = 101;
107
+ static readonly COLON = 102;
108
+ static readonly COMMA = 103;
109
+ static readonly DOT = 104;
110
+ static readonly LT = 105;
111
+ static readonly GT = 106;
112
+ static readonly EQ = 107;
113
+ static readonly NE = 108;
114
+ static readonly LTE = 109;
115
+ static readonly GTE = 110;
116
+ static readonly PLUS = 111;
117
+ static readonly MINUS = 112;
118
+ static readonly STAR = 113;
119
+ static readonly STARSTAR = 114;
120
+ static readonly SLASH = 115;
121
+ static readonly BAR = 116;
122
+ static readonly SEMI = 117;
123
+ static readonly NOT_MATCH = 118;
124
+ static readonly MATCH = 119;
125
+ static readonly PERCENT = 120;
126
+ static readonly DOUBLE_QMARK = 121;
127
+ static readonly QMARK = 122;
128
+ static readonly LITERAL_TIMESTAMP = 123;
129
+ static readonly LITERAL_HOUR = 124;
130
+ static readonly LITERAL_DAY = 125;
131
+ static readonly LITERAL_QUARTER = 126;
132
+ static readonly LITERAL_MONTH = 127;
133
+ static readonly LITERAL_WEEK = 128;
134
+ static readonly LITERAL_YEAR = 129;
135
+ static readonly IDENTIFIER = 130;
136
+ static readonly PERCENT_LITERAL = 131;
137
+ static readonly INTEGER_LITERAL = 132;
138
+ static readonly NUMERIC_LITERAL = 133;
139
+ static readonly OBJECT_NAME_LITERAL = 134;
140
+ static readonly BLOCK_COMMENT = 135;
141
+ static readonly COMMENT_TO_EOL = 136;
142
+ static readonly WHITE_SPACE = 137;
143
+ static readonly SQL_BEGIN = 138;
144
+ static readonly CLOSE_CODE = 139;
145
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 140;
146
+ static readonly UNEXPECTED_CHAR = 141;
147
+ static readonly OPEN_CODE = 142;
148
+ static readonly SQL_END = 143;
147
149
  static readonly SQL_MODE = 1;
148
150
  static readonly channelNames: string[];
149
151
  static readonly modeNames: string[];