@malloydata/malloy 0.0.11-dev221202152346 → 0.0.11

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.
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Generated from Malloy.g4 by ANTLR 4.9.0-SNAPSHOT
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=MalloyListener.js.map
@@ -12,134 +12,139 @@ export declare class MalloyParser extends Parser {
12
12
  static readonly JSON_STRING = 1;
13
13
  static readonly ACCEPT = 2;
14
14
  static readonly AGGREGATE = 3;
15
- static readonly DECLARE = 4;
16
- static readonly DIMENSION = 5;
17
- static readonly EXCEPT = 6;
18
- static readonly EXPLORE = 7;
19
- static readonly GROUP_BY = 8;
20
- static readonly HAVING = 9;
21
- static readonly INDEX = 10;
22
- static readonly JOIN_CROSS = 11;
23
- static readonly JOIN_ONE = 12;
24
- static readonly JOIN_MANY = 13;
25
- static readonly LIMIT = 14;
26
- static readonly MEASURE = 15;
27
- static readonly NEST = 16;
28
- static readonly ORDER_BY = 17;
29
- static readonly PRIMARY_KEY = 18;
30
- static readonly PROJECT = 19;
31
- static readonly QUERY = 20;
32
- static readonly RENAME = 21;
33
- static readonly SAMPLE = 22;
34
- static readonly SOURCE = 23;
35
- static readonly SQL = 24;
36
- static readonly FANCYSQL = 25;
37
- static readonly TOP = 26;
38
- static readonly WHERE = 27;
39
- static readonly ALL = 28;
40
- static readonly AND = 29;
41
- static readonly AS = 30;
42
- static readonly ASC = 31;
43
- static readonly AVG = 32;
44
- static readonly BOOLEAN = 33;
45
- static readonly BY = 34;
46
- static readonly CASE = 35;
47
- static readonly CAST = 36;
48
- static readonly CONDITION = 37;
49
- static readonly COUNT = 38;
50
- static readonly DATE = 39;
51
- static readonly DAY = 40;
52
- static readonly DESC = 41;
53
- static readonly DISTINCT = 42;
54
- static readonly ELSE = 43;
55
- static readonly END = 44;
56
- static readonly EXCLUDE = 45;
57
- static readonly FALSE = 46;
58
- static readonly FOR = 47;
59
- static readonly FROM = 48;
60
- static readonly FROM_SQL = 49;
61
- static readonly HAS = 50;
62
- static readonly HOUR = 51;
63
- static readonly IMPORT = 52;
64
- static readonly IS = 53;
65
- static readonly JSON = 54;
66
- static readonly LAST = 55;
67
- static readonly MAX = 56;
68
- static readonly MIN = 57;
69
- static readonly MINUTE = 58;
70
- static readonly MONTH = 59;
71
- static readonly NOT = 60;
72
- static readonly NOW = 61;
73
- static readonly NULL = 62;
74
- static readonly NUMBER = 63;
75
- static readonly ON = 64;
76
- static readonly OR = 65;
77
- static readonly PICK = 66;
78
- static readonly QMARK = 67;
79
- static readonly QUARTER = 68;
80
- static readonly SECOND = 69;
81
- static readonly STRING = 70;
82
- static readonly SUM = 71;
83
- static readonly TABLE = 72;
84
- static readonly THEN = 73;
85
- static readonly THIS = 74;
86
- static readonly TIMESTAMP = 75;
87
- static readonly TO = 76;
88
- static readonly TRUE = 77;
89
- static readonly TURTLE = 78;
90
- static readonly WEEK = 79;
91
- static readonly WHEN = 80;
92
- static readonly WITH = 81;
93
- static readonly YEAR = 82;
94
- static readonly UNGROUPED = 83;
95
- static readonly STRING_ESCAPE = 84;
96
- static readonly HACKY_REGEX = 85;
97
- static readonly STRING_LITERAL = 86;
98
- static readonly AMPER = 87;
99
- static readonly ARROW = 88;
100
- static readonly FAT_ARROW = 89;
101
- static readonly OPAREN = 90;
102
- static readonly CPAREN = 91;
103
- static readonly OBRACK = 92;
104
- static readonly CBRACK = 93;
105
- static readonly OCURLY = 94;
106
- static readonly CCURLY = 95;
107
- static readonly DOUBLECOLON = 96;
108
- static readonly COLON = 97;
109
- static readonly COMMA = 98;
110
- static readonly DOT = 99;
111
- static readonly LT = 100;
112
- static readonly GT = 101;
113
- static readonly EQ = 102;
114
- static readonly NE = 103;
115
- static readonly LTE = 104;
116
- static readonly GTE = 105;
117
- static readonly PLUS = 106;
118
- static readonly MINUS = 107;
119
- static readonly STAR = 108;
120
- static readonly STARSTAR = 109;
121
- static readonly SLASH = 110;
122
- static readonly BAR = 111;
123
- static readonly SEMI = 112;
124
- static readonly NOT_MATCH = 113;
125
- static readonly MATCH = 114;
126
- static readonly LITERAL_TIMESTAMP = 115;
127
- static readonly LITERAL_DAY = 116;
128
- static readonly LITERAL_QUARTER = 117;
129
- static readonly LITERAL_MONTH = 118;
130
- static readonly LITERAL_WEEK = 119;
131
- static readonly LITERAL_YEAR = 120;
132
- static readonly IDENTIFIER = 121;
133
- static readonly PERCENT_LITERAL = 122;
134
- static readonly INTEGER_LITERAL = 123;
135
- static readonly NUMERIC_LITERAL = 124;
136
- static readonly OBJECT_NAME_LITERAL = 125;
137
- static readonly BLOCK_COMMENT = 126;
138
- static readonly COMMENT_TO_EOL = 127;
139
- static readonly WHITE_SPACE = 128;
140
- static readonly SQL_STRING = 129;
141
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 130;
142
- static readonly UNEXPECTED_CHAR = 131;
15
+ static readonly CONNECTION = 4;
16
+ static readonly DECLARE = 5;
17
+ static readonly DIMENSION = 6;
18
+ static readonly EXCEPT = 7;
19
+ static readonly EXPLORE = 8;
20
+ static readonly GROUP_BY = 9;
21
+ static readonly HAVING = 10;
22
+ static readonly INDEX = 11;
23
+ static readonly JOIN_CROSS = 12;
24
+ static readonly JOIN_ONE = 13;
25
+ static readonly JOIN_MANY = 14;
26
+ static readonly LIMIT = 15;
27
+ static readonly MEASURE = 16;
28
+ static readonly NEST = 17;
29
+ static readonly ORDER_BY = 18;
30
+ static readonly PRIMARY_KEY = 19;
31
+ static readonly PROJECT = 20;
32
+ static readonly QUERY = 21;
33
+ static readonly RENAME = 22;
34
+ static readonly SAMPLE = 23;
35
+ static readonly SELECT = 24;
36
+ static readonly SOURCE = 25;
37
+ static readonly SQL = 26;
38
+ static readonly FANCYSQL = 27;
39
+ static readonly TOP = 28;
40
+ static readonly WHERE = 29;
41
+ static readonly ALL = 30;
42
+ static readonly AND = 31;
43
+ static readonly AS = 32;
44
+ static readonly ASC = 33;
45
+ static readonly AVG = 34;
46
+ static readonly BOOLEAN = 35;
47
+ static readonly BY = 36;
48
+ static readonly CASE = 37;
49
+ static readonly CAST = 38;
50
+ static readonly CONDITION = 39;
51
+ static readonly COUNT = 40;
52
+ static readonly DATE = 41;
53
+ static readonly DAY = 42;
54
+ static readonly DESC = 43;
55
+ static readonly DISTINCT = 44;
56
+ static readonly ELSE = 45;
57
+ static readonly END = 46;
58
+ static readonly EXCLUDE = 47;
59
+ static readonly FALSE = 48;
60
+ static readonly FOR = 49;
61
+ static readonly FROM = 50;
62
+ static readonly FROM_SQL = 51;
63
+ static readonly HAS = 52;
64
+ static readonly HOUR = 53;
65
+ static readonly IMPORT = 54;
66
+ static readonly IS = 55;
67
+ static readonly JSON = 56;
68
+ static readonly LAST = 57;
69
+ static readonly MAX = 58;
70
+ static readonly MIN = 59;
71
+ static readonly MINUTE = 60;
72
+ static readonly MONTH = 61;
73
+ static readonly NOT = 62;
74
+ static readonly NOW = 63;
75
+ static readonly NULL = 64;
76
+ static readonly NUMBER = 65;
77
+ static readonly ON = 66;
78
+ static readonly OR = 67;
79
+ static readonly PICK = 68;
80
+ static readonly QMARK = 69;
81
+ static readonly QUARTER = 70;
82
+ static readonly SECOND = 71;
83
+ static readonly STRING = 72;
84
+ static readonly SUM = 73;
85
+ static readonly TABLE = 74;
86
+ static readonly THEN = 75;
87
+ static readonly THIS = 76;
88
+ static readonly TIMESTAMP = 77;
89
+ static readonly TO = 78;
90
+ static readonly TRUE = 79;
91
+ static readonly TURTLE = 80;
92
+ static readonly WEEK = 81;
93
+ static readonly WHEN = 82;
94
+ static readonly WITH = 83;
95
+ static readonly YEAR = 84;
96
+ static readonly UNGROUPED = 85;
97
+ static readonly STRING_ESCAPE = 86;
98
+ static readonly HACKY_REGEX = 87;
99
+ static readonly STRING_LITERAL = 88;
100
+ static readonly AMPER = 89;
101
+ static readonly ARROW = 90;
102
+ static readonly FAT_ARROW = 91;
103
+ static readonly OPAREN = 92;
104
+ static readonly CPAREN = 93;
105
+ static readonly OBRACK = 94;
106
+ static readonly CBRACK = 95;
107
+ static readonly OCURLY = 96;
108
+ static readonly CCURLY = 97;
109
+ static readonly DOUBLECOLON = 98;
110
+ static readonly COLON = 99;
111
+ static readonly COMMA = 100;
112
+ static readonly DOT = 101;
113
+ static readonly LT = 102;
114
+ static readonly GT = 103;
115
+ static readonly EQ = 104;
116
+ static readonly NE = 105;
117
+ static readonly LTE = 106;
118
+ static readonly GTE = 107;
119
+ static readonly PLUS = 108;
120
+ static readonly MINUS = 109;
121
+ static readonly STAR = 110;
122
+ static readonly STARSTAR = 111;
123
+ static readonly SLASH = 112;
124
+ static readonly BAR = 113;
125
+ static readonly SEMI = 114;
126
+ static readonly NOT_MATCH = 115;
127
+ static readonly MATCH = 116;
128
+ static readonly LITERAL_TIMESTAMP = 117;
129
+ static readonly LITERAL_DAY = 118;
130
+ static readonly LITERAL_QUARTER = 119;
131
+ static readonly LITERAL_MONTH = 120;
132
+ static readonly LITERAL_WEEK = 121;
133
+ static readonly LITERAL_YEAR = 122;
134
+ static readonly IDENTIFIER = 123;
135
+ static readonly PERCENT_LITERAL = 124;
136
+ static readonly INTEGER_LITERAL = 125;
137
+ static readonly NUMERIC_LITERAL = 126;
138
+ static readonly OBJECT_NAME_LITERAL = 127;
139
+ static readonly BLOCK_COMMENT = 128;
140
+ static readonly COMMENT_TO_EOL = 129;
141
+ static readonly WHITE_SPACE = 130;
142
+ static readonly SQL_BEGIN = 131;
143
+ static readonly CLOSE_CODE = 132;
144
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 133;
145
+ static readonly UNEXPECTED_CHAR = 134;
146
+ static readonly OPEN_CODE = 135;
147
+ static readonly SQL_END = 136;
143
148
  static readonly RULE_malloyDocument = 0;
144
149
  static readonly RULE_malloyStatement = 1;
145
150
  static readonly RULE_defineExploreStatement = 2;
@@ -147,100 +152,103 @@ export declare class MalloyParser extends Parser {
147
152
  static readonly RULE_defineQuery = 4;
148
153
  static readonly RULE_topLevelAnonQueryDef = 5;
149
154
  static readonly RULE_defineSQLStatement = 6;
150
- static readonly RULE_sqlStatementDef = 7;
151
- static readonly RULE_importStatement = 8;
152
- static readonly RULE_importURL = 9;
153
- static readonly RULE_topLevelQueryDefs = 10;
154
- static readonly RULE_topLevelQueryDef = 11;
155
- static readonly RULE_refineOperator = 12;
156
- static readonly RULE_query = 13;
157
- static readonly RULE_pipelineFromName = 14;
158
- static readonly RULE_firstSegment = 15;
159
- static readonly RULE_pipeElement = 16;
160
- static readonly RULE_exploreTable = 17;
161
- static readonly RULE_queryProperties = 18;
162
- static readonly RULE_filterShortcut = 19;
163
- static readonly RULE_exploreQueryName = 20;
164
- static readonly RULE_queryName = 21;
165
- static readonly RULE_exploreDefinitionList = 22;
166
- static readonly RULE_exploreDefinition = 23;
167
- static readonly RULE_explore = 24;
168
- static readonly RULE_exploreSource = 25;
169
- static readonly RULE_exploreNameDef = 26;
170
- static readonly RULE_exploreName = 27;
171
- static readonly RULE_exploreProperties = 28;
172
- static readonly RULE_exploreStatement = 29;
173
- static readonly RULE_renameList = 30;
174
- static readonly RULE_exploreRenameDef = 31;
175
- static readonly RULE_dimensionDefList = 32;
176
- static readonly RULE_measureDefList = 33;
177
- static readonly RULE_fieldDef = 34;
178
- static readonly RULE_fieldNameDef = 35;
179
- static readonly RULE_joinNameDef = 36;
180
- static readonly RULE_measureDef = 37;
181
- static readonly RULE_declareStatement = 38;
182
- static readonly RULE_joinStatement = 39;
183
- static readonly RULE_joinList = 40;
184
- static readonly RULE_joinDef = 41;
185
- static readonly RULE_joinExpression = 42;
186
- static readonly RULE_filterStatement = 43;
187
- static readonly RULE_filteredBy = 44;
188
- static readonly RULE_filterClauseList = 45;
189
- static readonly RULE_whereStatement = 46;
190
- static readonly RULE_havingStatement = 47;
191
- static readonly RULE_subQueryDefList = 48;
192
- static readonly RULE_exploreQueryNameDef = 49;
193
- static readonly RULE_exploreQueryDef = 50;
194
- static readonly RULE_queryStatement = 51;
195
- static readonly RULE_groupByStatement = 52;
196
- static readonly RULE_queryFieldList = 53;
197
- static readonly RULE_dimensionDef = 54;
198
- static readonly RULE_queryFieldEntry = 55;
199
- static readonly RULE_nestStatement = 56;
200
- static readonly RULE_nestedQueryList = 57;
201
- static readonly RULE_nestEntry = 58;
202
- static readonly RULE_aggregateStatement = 59;
203
- static readonly RULE_projectStatement = 60;
204
- static readonly RULE_orderByStatement = 61;
205
- static readonly RULE_ordering = 62;
206
- static readonly RULE_orderBySpec = 63;
207
- static readonly RULE_limitStatement = 64;
208
- static readonly RULE_bySpec = 65;
209
- static readonly RULE_topStatement = 66;
210
- static readonly RULE_indexElement = 67;
211
- static readonly RULE_indexFields = 68;
212
- static readonly RULE_indexStatement = 69;
213
- static readonly RULE_sampleStatement = 70;
214
- static readonly RULE_sampleSpec = 71;
215
- static readonly RULE_aggregate = 72;
216
- static readonly RULE_malloyType = 73;
217
- static readonly RULE_compareOp = 74;
218
- static readonly RULE_literal = 75;
219
- static readonly RULE_dateLiteral = 76;
220
- static readonly RULE_tableName = 77;
221
- static readonly RULE_id = 78;
222
- static readonly RULE_timeframe = 79;
223
- static readonly RULE_ungroup = 80;
224
- static readonly RULE_fieldExpr = 81;
225
- static readonly RULE_partialAllowedFieldExpr = 82;
226
- static readonly RULE_pickStatement = 83;
227
- static readonly RULE_pick = 84;
228
- static readonly RULE_argumentList = 85;
229
- static readonly RULE_fieldNameList = 86;
230
- static readonly RULE_fieldCollection = 87;
231
- static readonly RULE_collectionMember = 88;
232
- static readonly RULE_fieldPath = 89;
233
- static readonly RULE_joinName = 90;
234
- static readonly RULE_fieldName = 91;
235
- static readonly RULE_justExpr = 92;
236
- static readonly RULE_json = 93;
237
- static readonly RULE_jsonValue = 94;
238
- static readonly RULE_jsonObject = 95;
239
- static readonly RULE_jsonProperty = 96;
240
- static readonly RULE_jsonArray = 97;
241
- static readonly RULE_sqlExploreNameRef = 98;
242
- static readonly RULE_sqlCommandNameDef = 99;
243
- static readonly RULE_connectionName = 100;
155
+ static readonly RULE_sqlBlock = 7;
156
+ static readonly RULE_blockSQLDef = 8;
157
+ static readonly RULE_sqlString = 9;
158
+ static readonly RULE_sqlInterpolation = 10;
159
+ static readonly RULE_importStatement = 11;
160
+ static readonly RULE_importURL = 12;
161
+ static readonly RULE_topLevelQueryDefs = 13;
162
+ static readonly RULE_topLevelQueryDef = 14;
163
+ static readonly RULE_refineOperator = 15;
164
+ static readonly RULE_query = 16;
165
+ static readonly RULE_pipelineFromName = 17;
166
+ static readonly RULE_firstSegment = 18;
167
+ static readonly RULE_pipeElement = 19;
168
+ static readonly RULE_exploreTable = 20;
169
+ static readonly RULE_queryProperties = 21;
170
+ static readonly RULE_filterShortcut = 22;
171
+ static readonly RULE_exploreQueryName = 23;
172
+ static readonly RULE_queryName = 24;
173
+ static readonly RULE_exploreDefinitionList = 25;
174
+ static readonly RULE_exploreDefinition = 26;
175
+ static readonly RULE_explore = 27;
176
+ static readonly RULE_exploreSource = 28;
177
+ static readonly RULE_exploreNameDef = 29;
178
+ static readonly RULE_exploreName = 30;
179
+ static readonly RULE_exploreProperties = 31;
180
+ static readonly RULE_exploreStatement = 32;
181
+ static readonly RULE_renameList = 33;
182
+ static readonly RULE_exploreRenameDef = 34;
183
+ static readonly RULE_dimensionDefList = 35;
184
+ static readonly RULE_measureDefList = 36;
185
+ static readonly RULE_fieldDef = 37;
186
+ static readonly RULE_fieldNameDef = 38;
187
+ static readonly RULE_joinNameDef = 39;
188
+ static readonly RULE_measureDef = 40;
189
+ static readonly RULE_declareStatement = 41;
190
+ static readonly RULE_joinStatement = 42;
191
+ static readonly RULE_joinList = 43;
192
+ static readonly RULE_joinDef = 44;
193
+ static readonly RULE_joinExpression = 45;
194
+ static readonly RULE_filterStatement = 46;
195
+ static readonly RULE_filteredBy = 47;
196
+ static readonly RULE_filterClauseList = 48;
197
+ static readonly RULE_whereStatement = 49;
198
+ static readonly RULE_havingStatement = 50;
199
+ static readonly RULE_subQueryDefList = 51;
200
+ static readonly RULE_exploreQueryNameDef = 52;
201
+ static readonly RULE_exploreQueryDef = 53;
202
+ static readonly RULE_queryStatement = 54;
203
+ static readonly RULE_groupByStatement = 55;
204
+ static readonly RULE_queryFieldList = 56;
205
+ static readonly RULE_dimensionDef = 57;
206
+ static readonly RULE_queryFieldEntry = 58;
207
+ static readonly RULE_nestStatement = 59;
208
+ static readonly RULE_nestedQueryList = 60;
209
+ static readonly RULE_nestEntry = 61;
210
+ static readonly RULE_aggregateStatement = 62;
211
+ static readonly RULE_projectStatement = 63;
212
+ static readonly RULE_orderByStatement = 64;
213
+ static readonly RULE_ordering = 65;
214
+ static readonly RULE_orderBySpec = 66;
215
+ static readonly RULE_limitStatement = 67;
216
+ static readonly RULE_bySpec = 68;
217
+ static readonly RULE_topStatement = 69;
218
+ static readonly RULE_indexElement = 70;
219
+ static readonly RULE_indexFields = 71;
220
+ static readonly RULE_indexStatement = 72;
221
+ static readonly RULE_sampleStatement = 73;
222
+ static readonly RULE_sampleSpec = 74;
223
+ static readonly RULE_aggregate = 75;
224
+ static readonly RULE_malloyType = 76;
225
+ static readonly RULE_compareOp = 77;
226
+ static readonly RULE_literal = 78;
227
+ static readonly RULE_dateLiteral = 79;
228
+ static readonly RULE_tableName = 80;
229
+ static readonly RULE_id = 81;
230
+ static readonly RULE_timeframe = 82;
231
+ static readonly RULE_ungroup = 83;
232
+ static readonly RULE_fieldExpr = 84;
233
+ static readonly RULE_partialAllowedFieldExpr = 85;
234
+ static readonly RULE_pickStatement = 86;
235
+ static readonly RULE_pick = 87;
236
+ static readonly RULE_argumentList = 88;
237
+ static readonly RULE_fieldNameList = 89;
238
+ static readonly RULE_fieldCollection = 90;
239
+ static readonly RULE_collectionMember = 91;
240
+ static readonly RULE_fieldPath = 92;
241
+ static readonly RULE_joinName = 93;
242
+ static readonly RULE_fieldName = 94;
243
+ static readonly RULE_justExpr = 95;
244
+ static readonly RULE_json = 96;
245
+ static readonly RULE_jsonValue = 97;
246
+ static readonly RULE_jsonObject = 98;
247
+ static readonly RULE_jsonProperty = 99;
248
+ static readonly RULE_jsonArray = 100;
249
+ static readonly RULE_sqlExploreNameRef = 101;
250
+ static readonly RULE_nameSQLBlock = 102;
251
+ static readonly RULE_connectionName = 103;
244
252
  static readonly ruleNames: string[];
245
253
  private static readonly _LITERAL_NAMES;
246
254
  private static readonly _SYMBOLIC_NAMES;
@@ -258,7 +266,10 @@ export declare class MalloyParser extends Parser {
258
266
  defineQuery(): DefineQueryContext;
259
267
  topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
260
268
  defineSQLStatement(): DefineSQLStatementContext;
261
- sqlStatementDef(): SqlStatementDefContext;
269
+ sqlBlock(): SqlBlockContext;
270
+ blockSQLDef(): BlockSQLDefContext;
271
+ sqlString(): SqlStringContext;
272
+ sqlInterpolation(): SqlInterpolationContext;
262
273
  importStatement(): ImportStatementContext;
263
274
  importURL(): ImportURLContext;
264
275
  topLevelQueryDefs(): TopLevelQueryDefsContext;
@@ -351,7 +362,7 @@ export declare class MalloyParser extends Parser {
351
362
  jsonProperty(): JsonPropertyContext;
352
363
  jsonArray(): JsonArrayContext;
353
364
  sqlExploreNameRef(): SqlExploreNameRefContext;
354
- sqlCommandNameDef(): SqlCommandNameDefContext;
365
+ nameSQLBlock(): NameSQLBlockContext;
355
366
  connectionName(): ConnectionNameContext;
356
367
  sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
357
368
  private fieldExpr_sempred;
@@ -434,19 +445,52 @@ export declare class TopLevelAnonQueryDefContext extends ParserRuleContext {
434
445
  }
435
446
  export declare class DefineSQLStatementContext extends ParserRuleContext {
436
447
  SQL(): TerminalNode;
437
- sqlStatementDef(): SqlStatementDefContext;
448
+ sqlBlock(): SqlBlockContext;
449
+ nameSQLBlock(): NameSQLBlockContext | undefined;
450
+ IS(): TerminalNode | undefined;
438
451
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
439
452
  get ruleIndex(): number;
440
453
  enterRule(listener: MalloyParserListener): void;
441
454
  exitRule(listener: MalloyParserListener): void;
442
455
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
443
456
  }
444
- export declare class SqlStatementDefContext extends ParserRuleContext {
445
- SQL_STRING(): TerminalNode;
446
- sqlCommandNameDef(): SqlCommandNameDefContext | undefined;
447
- IS(): TerminalNode | undefined;
448
- ON(): TerminalNode | undefined;
457
+ export declare class SqlBlockContext extends ParserRuleContext {
458
+ OCURLY(): TerminalNode;
459
+ CCURLY(): TerminalNode;
460
+ blockSQLDef(): BlockSQLDefContext[];
461
+ blockSQLDef(i: number): BlockSQLDefContext;
462
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
463
+ get ruleIndex(): number;
464
+ enterRule(listener: MalloyParserListener): void;
465
+ exitRule(listener: MalloyParserListener): void;
466
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
467
+ }
468
+ export declare class BlockSQLDefContext extends ParserRuleContext {
469
+ CONNECTION(): TerminalNode | undefined;
449
470
  connectionName(): ConnectionNameContext | undefined;
471
+ SELECT(): TerminalNode | undefined;
472
+ sqlString(): SqlStringContext | undefined;
473
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
474
+ get ruleIndex(): number;
475
+ enterRule(listener: MalloyParserListener): void;
476
+ exitRule(listener: MalloyParserListener): void;
477
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
478
+ }
479
+ export declare class SqlStringContext extends ParserRuleContext {
480
+ SQL_BEGIN(): TerminalNode;
481
+ SQL_END(): TerminalNode;
482
+ sqlInterpolation(): SqlInterpolationContext[];
483
+ sqlInterpolation(i: number): SqlInterpolationContext;
484
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
485
+ get ruleIndex(): number;
486
+ enterRule(listener: MalloyParserListener): void;
487
+ exitRule(listener: MalloyParserListener): void;
488
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
489
+ }
490
+ export declare class SqlInterpolationContext extends ParserRuleContext {
491
+ OPEN_CODE(): TerminalNode;
492
+ query(): QueryContext;
493
+ CLOSE_CODE(): TerminalNode;
450
494
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
451
495
  get ruleIndex(): number;
452
496
  enterRule(listener: MalloyParserListener): void;
@@ -666,7 +710,7 @@ export declare class QuerySourceContext extends ExploreSourceContext {
666
710
  exitRule(listener: MalloyParserListener): void;
667
711
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
668
712
  }
669
- export declare class SQLSourceContext extends ExploreSourceContext {
713
+ export declare class SQLSourceNameContext extends ExploreSourceContext {
670
714
  FROM_SQL(): TerminalNode;
671
715
  OPAREN(): TerminalNode;
672
716
  sqlExploreNameRef(): SqlExploreNameRefContext;
@@ -1893,7 +1937,7 @@ export declare class SqlExploreNameRefContext extends ParserRuleContext {
1893
1937
  exitRule(listener: MalloyParserListener): void;
1894
1938
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
1895
1939
  }
1896
- export declare class SqlCommandNameDefContext extends ParserRuleContext {
1940
+ export declare class NameSQLBlockContext extends ParserRuleContext {
1897
1941
  id(): IdContext;
1898
1942
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1899
1943
  get ruleIndex(): number;