@malloydata/malloy 0.0.22-dev230126015148 → 0.0.22-dev230206094309
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/package.json +2 -2
- package/dist/connection_utils.d.ts +0 -1
- package/dist/connection_utils.js +0 -66
- package/dist/dialect/dialect.d.ts +0 -66
- package/dist/dialect/dialect.js +0 -85
- package/dist/dialect/dialect_map.d.ts +0 -3
- package/dist/dialect/dialect_map.js +0 -45
- package/dist/dialect/duckdb.d.ts +0 -52
- package/dist/dialect/duckdb.js +0 -364
- package/dist/dialect/index.d.ts +0 -6
- package/dist/dialect/index.js +0 -37
- package/dist/dialect/postgres.d.ts +0 -52
- package/dist/dialect/postgres.js +0 -330
- package/dist/dialect/standardsql.d.ts +0 -49
- package/dist/dialect/standardsql.js +0 -381
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -59
- package/dist/lang/ast/apply-expr.d.ts +0 -3
- package/dist/lang/ast/apply-expr.js +0 -34
- package/dist/lang/ast/ast-expr.d.ts +0 -206
- package/dist/lang/ast/ast-expr.js +0 -781
- package/dist/lang/ast/ast-main.d.ts +0 -915
- package/dist/lang/ast/ast-main.js +0 -3672
- package/dist/lang/ast/ast-time-expr.d.ts +0 -69
- package/dist/lang/ast/ast-time-expr.js +0 -389
- package/dist/lang/ast/ast-types.d.ts +0 -83
- package/dist/lang/ast/ast-types.js +0 -225
- package/dist/lang/ast/index.d.ts +0 -5
- package/dist/lang/ast/index.js +0 -44
- package/dist/lang/ast/time-utils.d.ts +0 -9
- package/dist/lang/ast/time-utils.js +0 -104
- package/dist/lang/field-utils.d.ts +0 -5
- package/dist/lang/field-utils.js +0 -43
- package/dist/lang/index.d.ts +0 -9
- package/dist/lang/index.js +0 -32
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +0 -165
- package/dist/lang/lib/Malloy/MalloyLexer.js +0 -1232
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +0 -1947
- package/dist/lang/lib/Malloy/MalloyParser.js +0 -11909
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +0 -2022
- package/dist/lang/lib/Malloy/MalloyParserListener.js +0 -4
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +0 -1274
- package/dist/lang/lib/Malloy/MalloyParserVisitor.js +0 -4
- package/dist/lang/parse-log.d.ts +0 -27
- package/dist/lang/parse-log.js +0 -51
- package/dist/lang/parse-malloy.d.ts +0 -236
- package/dist/lang/parse-malloy.js +0 -746
- package/dist/lang/parse-to-ast.d.ts +0 -155
- package/dist/lang/parse-to-ast.js +0 -990
- package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +0 -10
- package/dist/lang/parse-tree-walkers/document-completion-walker.js +0 -148
- package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +0 -9
- package/dist/lang/parse-tree-walkers/document-help-context-walker.js +0 -107
- package/dist/lang/parse-tree-walkers/document-highlight-walker.d.ts +0 -83
- package/dist/lang/parse-tree-walkers/document-highlight-walker.js +0 -385
- package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +0 -11
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +0 -182
- package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +0 -34
- package/dist/lang/parse-tree-walkers/explore-query-walker.js +0 -74
- package/dist/lang/parse-tree-walkers/find-external-references.d.ts +0 -11
- package/dist/lang/parse-tree-walkers/find-external-references.js +0 -61
- package/dist/lang/reference-list.d.ts +0 -10
- package/dist/lang/reference-list.js +0 -90
- package/dist/lang/space-field.d.ts +0 -17
- package/dist/lang/space-field.js +0 -127
- package/dist/lang/test/document-help-context-walker.spec.d.ts +0 -1
- package/dist/lang/test/document-help-context-walker.spec.js +0 -55
- package/dist/lang/test/document-symbol-walker.spec.d.ts +0 -1
- package/dist/lang/test/document-symbol-walker.spec.js +0 -110
- package/dist/lang/test/field-symbols.spec.d.ts +0 -1
- package/dist/lang/test/field-symbols.spec.js +0 -180
- package/dist/lang/test/parse.spec.d.ts +0 -14
- package/dist/lang/test/parse.spec.js +0 -2134
- package/dist/lang/test/test-translator.d.ts +0 -38
- package/dist/lang/test/test-translator.js +0 -344
- package/dist/lang/zone.d.ts +0 -57
- package/dist/lang/zone.js +0 -107
- package/dist/malloy.d.ts +0 -1146
- package/dist/malloy.js +0 -2413
- package/dist/model/index.d.ts +0 -2
- package/dist/model/index.js +0 -45
- package/dist/model/malloy_query.d.ts +0 -351
- package/dist/model/malloy_query.js +0 -3174
- package/dist/model/malloy_types.d.ts +0 -551
- package/dist/model/malloy_types.js +0 -378
- package/dist/model/sql_block.d.ts +0 -7
- package/dist/model/sql_block.js +0 -56
- package/dist/model/utils.d.ts +0 -22
- package/dist/model/utils.js +0 -102
- package/dist/run_sql_options.d.ts +0 -3
- package/dist/run_sql_options.js +0 -25
- package/dist/runtime_types.d.ts +0 -105
- package/dist/runtime_types.js +0 -25
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { By, ExpressionType } from "../../model/malloy_types";
|
|
2
|
-
import { BinaryBoolean, ExpressionDef, ExprCompare, FieldName, FieldReference, FieldSpace, Filter, MalloyElement } from "./ast-main";
|
|
3
|
-
import { ExprValue, FieldValueType, FragType } from "./ast-types";
|
|
4
|
-
export declare class ExprString extends ExpressionDef {
|
|
5
|
-
elementType: string;
|
|
6
|
-
value: string;
|
|
7
|
-
constructor(src: string);
|
|
8
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
9
|
-
}
|
|
10
|
-
export declare class ExprNumber extends ExpressionDef {
|
|
11
|
-
readonly n: string;
|
|
12
|
-
elementType: string;
|
|
13
|
-
constructor(n: string);
|
|
14
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
15
|
-
constantExpression(): ExprValue;
|
|
16
|
-
}
|
|
17
|
-
export declare class ExprRegEx extends ExpressionDef {
|
|
18
|
-
readonly regex: string;
|
|
19
|
-
elementType: string;
|
|
20
|
-
constructor(regex: string);
|
|
21
|
-
getExpression(): ExprValue;
|
|
22
|
-
}
|
|
23
|
-
declare abstract class Unary extends ExpressionDef {
|
|
24
|
-
readonly expr: ExpressionDef;
|
|
25
|
-
constructor(expr: ExpressionDef);
|
|
26
|
-
}
|
|
27
|
-
export declare class ExprNot extends Unary {
|
|
28
|
-
elementType: string;
|
|
29
|
-
legalChildTypes: FragType[];
|
|
30
|
-
constructor(expr: ExpressionDef);
|
|
31
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
32
|
-
}
|
|
33
|
-
export declare class Boolean extends ExpressionDef {
|
|
34
|
-
readonly value: "true" | "false";
|
|
35
|
-
elementType: string;
|
|
36
|
-
constructor(value: "true" | "false");
|
|
37
|
-
getExpression(): ExprValue;
|
|
38
|
-
}
|
|
39
|
-
export declare class ExprLogicalOp extends BinaryBoolean<"and" | "or"> {
|
|
40
|
-
elementType: string;
|
|
41
|
-
legalChildTypes: (FragType | {
|
|
42
|
-
aggregate: boolean;
|
|
43
|
-
dataType: FieldValueType;
|
|
44
|
-
expressionType: ExpressionType;
|
|
45
|
-
})[];
|
|
46
|
-
}
|
|
47
|
-
export declare class ExprIdReference extends ExpressionDef {
|
|
48
|
-
readonly fieldReference: FieldReference;
|
|
49
|
-
elementType: string;
|
|
50
|
-
constructor(fieldReference: FieldReference);
|
|
51
|
-
get refString(): string;
|
|
52
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
53
|
-
apply(fs: FieldSpace, op: string, expr: ExpressionDef): ExprValue;
|
|
54
|
-
}
|
|
55
|
-
export declare class ExprNULL extends ExpressionDef {
|
|
56
|
-
elementType: string;
|
|
57
|
-
getExpression(): ExprValue;
|
|
58
|
-
}
|
|
59
|
-
export declare class ExprParens extends ExpressionDef {
|
|
60
|
-
readonly expr: ExpressionDef;
|
|
61
|
-
elementType: string;
|
|
62
|
-
constructor(expr: ExpressionDef);
|
|
63
|
-
requestExpression(fs: FieldSpace): ExprValue | undefined;
|
|
64
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
65
|
-
}
|
|
66
|
-
export declare class ExprMinus extends ExpressionDef {
|
|
67
|
-
readonly expr: ExpressionDef;
|
|
68
|
-
elementType: string;
|
|
69
|
-
constructor(expr: ExpressionDef);
|
|
70
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
71
|
-
}
|
|
72
|
-
export declare abstract class BinaryNumeric<opType extends string> extends ExpressionDef {
|
|
73
|
-
readonly left: ExpressionDef;
|
|
74
|
-
readonly op: opType;
|
|
75
|
-
readonly right: ExpressionDef;
|
|
76
|
-
elementType: string;
|
|
77
|
-
constructor(left: ExpressionDef, op: opType, right: ExpressionDef);
|
|
78
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
79
|
-
}
|
|
80
|
-
export declare class ExprAddSub extends BinaryNumeric<"+" | "-"> {
|
|
81
|
-
elementType: string;
|
|
82
|
-
}
|
|
83
|
-
export declare class ExprMulDiv extends BinaryNumeric<"*" | "/" | "%"> {
|
|
84
|
-
elementType: string;
|
|
85
|
-
}
|
|
86
|
-
export declare class ExprAlternationTree extends BinaryBoolean<"|" | "&"> {
|
|
87
|
-
elementType: string;
|
|
88
|
-
constructor(left: ExpressionDef, op: "|" | "&", right: ExpressionDef);
|
|
89
|
-
apply(fs: FieldSpace, applyOp: string, expr: ExpressionDef): ExprValue;
|
|
90
|
-
requestExpression(_fs: FieldSpace): ExprValue | undefined;
|
|
91
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
92
|
-
}
|
|
93
|
-
declare abstract class ExprAggregateFunction extends ExpressionDef {
|
|
94
|
-
readonly func: string;
|
|
95
|
-
elementType: string;
|
|
96
|
-
source?: FieldReference;
|
|
97
|
-
expr?: ExpressionDef;
|
|
98
|
-
legalChildTypes: FragType[];
|
|
99
|
-
constructor(func: string, expr?: ExpressionDef);
|
|
100
|
-
returns(_forExpression: ExprValue): FieldValueType;
|
|
101
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
102
|
-
}
|
|
103
|
-
export declare class ExprMin extends ExprAggregateFunction {
|
|
104
|
-
legalChildTypes: FragType[];
|
|
105
|
-
constructor(expr: ExpressionDef);
|
|
106
|
-
returns(forExpression: ExprValue): FieldValueType;
|
|
107
|
-
}
|
|
108
|
-
export declare class ExprMax extends ExprAggregateFunction {
|
|
109
|
-
legalChildTypes: FragType[];
|
|
110
|
-
constructor(expr: ExpressionDef);
|
|
111
|
-
returns(forExpression: ExprValue): FieldValueType;
|
|
112
|
-
}
|
|
113
|
-
export declare class ExprCountDistinct extends ExprAggregateFunction {
|
|
114
|
-
legalChildTypes: FragType[];
|
|
115
|
-
constructor(expr: ExpressionDef);
|
|
116
|
-
}
|
|
117
|
-
declare abstract class ExprAsymmetric extends ExprAggregateFunction {
|
|
118
|
-
readonly func: "sum" | "avg";
|
|
119
|
-
readonly expr: ExpressionDef | undefined;
|
|
120
|
-
readonly source?: FieldReference | undefined;
|
|
121
|
-
constructor(func: "sum" | "avg", expr: ExpressionDef | undefined, source?: FieldReference | undefined);
|
|
122
|
-
defaultFieldName(): undefined | string;
|
|
123
|
-
}
|
|
124
|
-
export declare class ExprCount extends ExprAggregateFunction {
|
|
125
|
-
readonly source?: FieldReference | undefined;
|
|
126
|
-
elementType: string;
|
|
127
|
-
constructor(source?: FieldReference | undefined);
|
|
128
|
-
defaultFieldName(): string | undefined;
|
|
129
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
130
|
-
}
|
|
131
|
-
export declare class ExprAvg extends ExprAsymmetric {
|
|
132
|
-
constructor(expr: ExpressionDef | undefined, source?: FieldReference);
|
|
133
|
-
}
|
|
134
|
-
export declare class ExprSum extends ExprAsymmetric {
|
|
135
|
-
constructor(expr: ExpressionDef | undefined, source?: FieldReference);
|
|
136
|
-
}
|
|
137
|
-
export declare class ExprUngroup extends ExpressionDef {
|
|
138
|
-
readonly control: "all" | "exclude";
|
|
139
|
-
readonly expr: ExpressionDef;
|
|
140
|
-
readonly fields: FieldName[];
|
|
141
|
-
legalChildTypes: FragType[];
|
|
142
|
-
elementType: string;
|
|
143
|
-
constructor(control: "all" | "exclude", expr: ExpressionDef, fields: FieldName[]);
|
|
144
|
-
returns(_forExpression: ExprValue): FieldValueType;
|
|
145
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
146
|
-
}
|
|
147
|
-
export declare class WhenClause extends ExpressionDef {
|
|
148
|
-
readonly whenThis: ExpressionDef;
|
|
149
|
-
readonly thenThis: ExpressionDef;
|
|
150
|
-
elementType: string;
|
|
151
|
-
constructor(whenThis: ExpressionDef, thenThis: ExpressionDef);
|
|
152
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
153
|
-
}
|
|
154
|
-
export declare class ExprCase extends ExpressionDef {
|
|
155
|
-
readonly when: WhenClause[];
|
|
156
|
-
readonly elseClause?: ExpressionDef | undefined;
|
|
157
|
-
elementType: string;
|
|
158
|
-
constructor(when: WhenClause[], elseClause?: ExpressionDef | undefined);
|
|
159
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
160
|
-
}
|
|
161
|
-
export declare class ExprFilter extends ExpressionDef {
|
|
162
|
-
readonly expr: ExpressionDef;
|
|
163
|
-
readonly filter: Filter;
|
|
164
|
-
elementType: string;
|
|
165
|
-
legalChildTypes: FragType[];
|
|
166
|
-
constructor(expr: ExpressionDef, filter: Filter);
|
|
167
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
168
|
-
}
|
|
169
|
-
declare type CastType = "string" | "number" | "boolean" | "date" | "timestamp";
|
|
170
|
-
export declare function isCastType(t: string): t is CastType;
|
|
171
|
-
export declare class ExprCast extends ExpressionDef {
|
|
172
|
-
readonly expr: ExpressionDef;
|
|
173
|
-
readonly castType: CastType;
|
|
174
|
-
readonly safe: boolean;
|
|
175
|
-
elementType: string;
|
|
176
|
-
constructor(expr: ExpressionDef, castType: CastType, safe?: boolean);
|
|
177
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
178
|
-
}
|
|
179
|
-
export declare class TopBy extends MalloyElement {
|
|
180
|
-
readonly by: string | ExpressionDef;
|
|
181
|
-
elementType: string;
|
|
182
|
-
constructor(by: string | ExpressionDef);
|
|
183
|
-
getBy(fs: FieldSpace): By;
|
|
184
|
-
}
|
|
185
|
-
export declare class PickWhen extends MalloyElement {
|
|
186
|
-
readonly pick: ExpressionDef | undefined;
|
|
187
|
-
readonly when: ExpressionDef;
|
|
188
|
-
elementType: string;
|
|
189
|
-
constructor(pick: ExpressionDef | undefined, when: ExpressionDef);
|
|
190
|
-
}
|
|
191
|
-
export declare class Pick extends ExpressionDef {
|
|
192
|
-
readonly choices: PickWhen[];
|
|
193
|
-
readonly elsePick?: ExpressionDef | undefined;
|
|
194
|
-
elementType: string;
|
|
195
|
-
constructor(choices: PickWhen[], elsePick?: ExpressionDef | undefined);
|
|
196
|
-
requestExpression(fs: FieldSpace): ExprValue | undefined;
|
|
197
|
-
apply(fs: FieldSpace, op: string, expr: ExpressionDef): ExprValue;
|
|
198
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
199
|
-
}
|
|
200
|
-
export declare class Apply extends ExprCompare {
|
|
201
|
-
readonly left: ExpressionDef;
|
|
202
|
-
readonly right: ExpressionDef;
|
|
203
|
-
elementType: string;
|
|
204
|
-
constructor(left: ExpressionDef, right: ExpressionDef);
|
|
205
|
-
}
|
|
206
|
-
export {};
|