data-finder-ts 0.1.3 → 0.1.5
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/README.md +17 -55
- package/dist/chunk-BGEX377Q.js +230 -0
- package/dist/chunk-BGEX377Q.js.map +1 -0
- package/dist/chunk-BKPWV3OF.js +962 -0
- package/dist/chunk-BKPWV3OF.js.map +1 -0
- package/dist/{chunk-EYXBYV2X.js → chunk-GPHWC533.js} +2 -2
- package/dist/chunk-KAK75RVS.js +198 -0
- package/dist/chunk-KAK75RVS.js.map +1 -0
- package/dist/chunk-MGEL5RWM.js +628 -0
- package/dist/chunk-MGEL5RWM.js.map +1 -0
- package/dist/chunk-PF6EJZHB.js +1015 -0
- package/dist/chunk-PF6EJZHB.js.map +1 -0
- package/dist/datafinder/attribute.cjs +595 -18
- package/dist/datafinder/attribute.cjs.map +1 -1
- package/dist/datafinder/attribute.d.cts +73 -10
- package/dist/datafinder/attribute.d.ts +73 -10
- package/dist/datafinder/attribute.js +2 -2
- package/dist/datafinder/runner.cjs +1589 -288
- package/dist/datafinder/runner.cjs.map +1 -1
- package/dist/datafinder/runner.d.cts +41 -7
- package/dist/datafinder/runner.d.ts +41 -7
- package/dist/datafinder/runner.js +12 -6
- package/dist/datafinder/sql-generator.cjs +1484 -281
- package/dist/datafinder/sql-generator.cjs.map +1 -1
- package/dist/datafinder/sql-generator.d.cts +19 -14
- package/dist/datafinder/sql-generator.d.ts +19 -14
- package/dist/datafinder/sql-generator.js +9 -7
- package/dist/datafinder/typed-attributes.cjs +856 -93
- package/dist/datafinder/typed-attributes.cjs.map +1 -1
- package/dist/datafinder/typed-attributes.d.cts +3 -135
- package/dist/datafinder/typed-attributes.d.ts +3 -135
- package/dist/datafinder/typed-attributes.js +3 -3
- package/dist/dialect-CogGPm_y.d.cts +38 -0
- package/dist/dialect-aaG1bDi5.d.ts +38 -0
- package/dist/index.cjs +2080 -480
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +119 -14
- package/dist/index.d.ts +119 -14
- package/dist/index.js +362 -12
- package/dist/index.js.map +1 -1
- package/dist/model/milestoning.cjs +529 -0
- package/dist/model/milestoning.cjs.map +1 -1
- package/dist/model/milestoning.js +2 -2
- package/dist/model/relational.cjs +608 -12
- package/dist/model/relational.cjs.map +1 -1
- package/dist/model/relational.d.cts +456 -47
- package/dist/model/relational.d.ts +456 -47
- package/dist/model/relational.js +61 -3
- package/dist/typed-attributes-CUTf_6Ru.d.ts +328 -0
- package/dist/typed-attributes-CdWXq_78.d.cts +328 -0
- package/package.json +5 -2
- package/dist/chunk-3SSWFES4.js +0 -448
- package/dist/chunk-3SSWFES4.js.map +0 -1
- package/dist/chunk-5K2Z3YDY.js +0 -393
- package/dist/chunk-5K2Z3YDY.js.map +0 -1
- package/dist/chunk-6QTCGJWX.js +0 -98
- package/dist/chunk-6QTCGJWX.js.map +0 -1
- package/dist/chunk-DFYZVBII.js +0 -652
- package/dist/chunk-DFYZVBII.js.map +0 -1
- package/dist/chunk-V647VNMY.js +0 -135
- package/dist/chunk-V647VNMY.js.map +0 -1
- /package/dist/{chunk-EYXBYV2X.js.map → chunk-GPHWC533.js.map} +0 -0
package/dist/chunk-3SSWFES4.js
DELETED
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
// src/model/relational.ts
|
|
2
|
-
var ComparisonOperator = /* @__PURE__ */ ((ComparisonOperator2) => {
|
|
3
|
-
ComparisonOperator2["EQUAL"] = "EQUAL";
|
|
4
|
-
ComparisonOperator2["NOT_EQUAL"] = "NOT_EQUAL";
|
|
5
|
-
ComparisonOperator2["LESS_THAN"] = "LESS_THAN";
|
|
6
|
-
ComparisonOperator2["GREATER_THAN"] = "GREATER_THAN";
|
|
7
|
-
ComparisonOperator2["LESS_THAN_OR_EQUAL_TO"] = "LESS_THAN_OR_EQUAL_TO";
|
|
8
|
-
ComparisonOperator2["GREATER_THAN_OR_EQUAL_TO"] = "GREATER_THAN_OR_EQUAL_TO";
|
|
9
|
-
ComparisonOperator2["LIKE"] = "LIKE";
|
|
10
|
-
ComparisonOperator2["NOT_LIKE"] = "NOT_LIKE";
|
|
11
|
-
return ComparisonOperator2;
|
|
12
|
-
})(ComparisonOperator || {});
|
|
13
|
-
var LogicalOperator = /* @__PURE__ */ ((LogicalOperator2) => {
|
|
14
|
-
LogicalOperator2["AND"] = "AND";
|
|
15
|
-
LogicalOperator2["OR"] = "OR";
|
|
16
|
-
return LogicalOperator2;
|
|
17
|
-
})(LogicalOperator || {});
|
|
18
|
-
var AggregateOperator = /* @__PURE__ */ ((AggregateOperator2) => {
|
|
19
|
-
AggregateOperator2["COUNT"] = "COUNT";
|
|
20
|
-
AggregateOperator2["SUM"] = "SUM";
|
|
21
|
-
AggregateOperator2["MIN"] = "MIN";
|
|
22
|
-
AggregateOperator2["MAX"] = "MAX";
|
|
23
|
-
AggregateOperator2["AVERAGE"] = "AVERAGE";
|
|
24
|
-
return AggregateOperator2;
|
|
25
|
-
})(AggregateOperator || {});
|
|
26
|
-
var ScalarFunction = /* @__PURE__ */ ((ScalarFunction2) => {
|
|
27
|
-
ScalarFunction2["ABS"] = "ABS";
|
|
28
|
-
ScalarFunction2["CEILING"] = "CEILING";
|
|
29
|
-
ScalarFunction2["FLOOR"] = "FLOOR";
|
|
30
|
-
ScalarFunction2["MOD"] = "MOD";
|
|
31
|
-
ScalarFunction2["POWER"] = "POWER";
|
|
32
|
-
ScalarFunction2["SQRT"] = "SQRT";
|
|
33
|
-
ScalarFunction2["ROUND"] = "ROUND";
|
|
34
|
-
ScalarFunction2["UPPER"] = "UPPER";
|
|
35
|
-
ScalarFunction2["LOWER"] = "LOWER";
|
|
36
|
-
ScalarFunction2["TRIM"] = "TRIM";
|
|
37
|
-
ScalarFunction2["LTRIM"] = "LTRIM";
|
|
38
|
-
ScalarFunction2["RTRIM"] = "RTRIM";
|
|
39
|
-
ScalarFunction2["LENGTH"] = "LENGTH";
|
|
40
|
-
ScalarFunction2["REVERSE"] = "REVERSE";
|
|
41
|
-
ScalarFunction2["LEFT"] = "LEFT";
|
|
42
|
-
ScalarFunction2["RIGHT"] = "RIGHT";
|
|
43
|
-
ScalarFunction2["REPEAT"] = "REPEAT";
|
|
44
|
-
ScalarFunction2["REPLACE"] = "REPLACE";
|
|
45
|
-
ScalarFunction2["SUBSTRING"] = "SUBSTRING";
|
|
46
|
-
return ScalarFunction2;
|
|
47
|
-
})(ScalarFunction || {});
|
|
48
|
-
var DatePart = /* @__PURE__ */ ((DatePart2) => {
|
|
49
|
-
DatePart2["YEAR"] = "YEAR";
|
|
50
|
-
DatePart2["MONTH"] = "MONTH";
|
|
51
|
-
DatePart2["DAY"] = "DAY";
|
|
52
|
-
DatePart2["HOUR"] = "HOUR";
|
|
53
|
-
DatePart2["MINUTE"] = "MINUTE";
|
|
54
|
-
DatePart2["SECOND"] = "SECOND";
|
|
55
|
-
DatePart2["QUARTER"] = "QUARTER";
|
|
56
|
-
DatePart2["WEEK"] = "WEEK";
|
|
57
|
-
DatePart2["DOW"] = "DOW";
|
|
58
|
-
return DatePart2;
|
|
59
|
-
})(DatePart || {});
|
|
60
|
-
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
61
|
-
SortDirection2["ASC"] = "ASC";
|
|
62
|
-
SortDirection2["DESC"] = "DESC";
|
|
63
|
-
return SortDirection2;
|
|
64
|
-
})(SortDirection || {});
|
|
65
|
-
var RelationalOperationElement = class {
|
|
66
|
-
};
|
|
67
|
-
var Operation = class extends RelationalOperationElement {
|
|
68
|
-
andOp(other) {
|
|
69
|
-
return new LogicalOperation(this, "AND" /* AND */, other);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var NoOperation = class extends Operation {
|
|
73
|
-
andOp(other) {
|
|
74
|
-
return other;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var ConstantOperation = class extends RelationalOperationElement {
|
|
78
|
-
};
|
|
79
|
-
var IntegerConstantOperation = class extends ConstantOperation {
|
|
80
|
-
constructor(value) {
|
|
81
|
-
super();
|
|
82
|
-
this.value = value;
|
|
83
|
-
}
|
|
84
|
-
value;
|
|
85
|
-
};
|
|
86
|
-
var FloatConstantOperation = class extends ConstantOperation {
|
|
87
|
-
constructor(value) {
|
|
88
|
-
super();
|
|
89
|
-
this.value = value;
|
|
90
|
-
}
|
|
91
|
-
value;
|
|
92
|
-
};
|
|
93
|
-
var StringConstantOperation = class extends ConstantOperation {
|
|
94
|
-
constructor(value) {
|
|
95
|
-
super();
|
|
96
|
-
this.value = value;
|
|
97
|
-
}
|
|
98
|
-
value;
|
|
99
|
-
};
|
|
100
|
-
var DateConstantOperation = class extends ConstantOperation {
|
|
101
|
-
constructor(value) {
|
|
102
|
-
super();
|
|
103
|
-
this.value = value;
|
|
104
|
-
}
|
|
105
|
-
value;
|
|
106
|
-
};
|
|
107
|
-
var DateTimeConstantOperation = class extends ConstantOperation {
|
|
108
|
-
constructor(value) {
|
|
109
|
-
super();
|
|
110
|
-
this.value = value;
|
|
111
|
-
}
|
|
112
|
-
value;
|
|
113
|
-
};
|
|
114
|
-
var DecimalConstantOperation = class extends ConstantOperation {
|
|
115
|
-
constructor(value) {
|
|
116
|
-
super();
|
|
117
|
-
this.value = value;
|
|
118
|
-
}
|
|
119
|
-
value;
|
|
120
|
-
};
|
|
121
|
-
var BooleanConstantOperation = class extends ConstantOperation {
|
|
122
|
-
constructor(value) {
|
|
123
|
-
super();
|
|
124
|
-
this.value = value;
|
|
125
|
-
}
|
|
126
|
-
value;
|
|
127
|
-
};
|
|
128
|
-
var UnaryOperation = class extends Operation {
|
|
129
|
-
constructor(element) {
|
|
130
|
-
super();
|
|
131
|
-
this.element = element;
|
|
132
|
-
}
|
|
133
|
-
element;
|
|
134
|
-
};
|
|
135
|
-
var BinaryOperation = class extends Operation {
|
|
136
|
-
constructor(left, right) {
|
|
137
|
-
super();
|
|
138
|
-
this.left = left;
|
|
139
|
-
this.right = right;
|
|
140
|
-
}
|
|
141
|
-
left;
|
|
142
|
-
right;
|
|
143
|
-
};
|
|
144
|
-
var IsNullOperation = class extends UnaryOperation {
|
|
145
|
-
};
|
|
146
|
-
var IsNotNullOperation = class extends UnaryOperation {
|
|
147
|
-
};
|
|
148
|
-
var ComparisonOperation = class extends BinaryOperation {
|
|
149
|
-
constructor(left, operator, right) {
|
|
150
|
-
super(left, right);
|
|
151
|
-
this.operator = operator;
|
|
152
|
-
}
|
|
153
|
-
operator;
|
|
154
|
-
};
|
|
155
|
-
var LogicalOperation = class extends BinaryOperation {
|
|
156
|
-
constructor(left, operator, right) {
|
|
157
|
-
super(left, right);
|
|
158
|
-
this.operator = operator;
|
|
159
|
-
}
|
|
160
|
-
operator;
|
|
161
|
-
};
|
|
162
|
-
var WindowSpecification = class {
|
|
163
|
-
constructor(partitionBy = [], orderBy = []) {
|
|
164
|
-
this.partitionBy = partitionBy;
|
|
165
|
-
this.orderBy = orderBy;
|
|
166
|
-
}
|
|
167
|
-
partitionBy;
|
|
168
|
-
orderBy;
|
|
169
|
-
};
|
|
170
|
-
var AggregateOperation = class _AggregateOperation extends UnaryOperation {
|
|
171
|
-
constructor(element, operator, displayName, window) {
|
|
172
|
-
super(element);
|
|
173
|
-
this.operator = operator;
|
|
174
|
-
this.displayName = displayName;
|
|
175
|
-
this.window = window;
|
|
176
|
-
}
|
|
177
|
-
operator;
|
|
178
|
-
displayName;
|
|
179
|
-
window;
|
|
180
|
-
over(partitionBy, orderBy) {
|
|
181
|
-
return new _AggregateOperation(
|
|
182
|
-
this.element,
|
|
183
|
-
this.operator,
|
|
184
|
-
this.displayName,
|
|
185
|
-
new WindowSpecification(partitionBy ?? [], orderBy ?? [])
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
var WindowFunction = /* @__PURE__ */ ((WindowFunction2) => {
|
|
190
|
-
WindowFunction2["ROW_NUMBER"] = "ROW_NUMBER";
|
|
191
|
-
WindowFunction2["RANK"] = "RANK";
|
|
192
|
-
WindowFunction2["DENSE_RANK"] = "DENSE_RANK";
|
|
193
|
-
WindowFunction2["NTILE"] = "NTILE";
|
|
194
|
-
WindowFunction2["LAG"] = "LAG";
|
|
195
|
-
WindowFunction2["LEAD"] = "LEAD";
|
|
196
|
-
WindowFunction2["FIRST_VALUE"] = "FIRST_VALUE";
|
|
197
|
-
WindowFunction2["LAST_VALUE"] = "LAST_VALUE";
|
|
198
|
-
WindowFunction2["CUME_DIST"] = "CUME_DIST";
|
|
199
|
-
WindowFunction2["PERCENT_RANK"] = "PERCENT_RANK";
|
|
200
|
-
return WindowFunction2;
|
|
201
|
-
})(WindowFunction || {});
|
|
202
|
-
var WindowFunctionOperation = class _WindowFunctionOperation extends UnaryOperation {
|
|
203
|
-
constructor(element, func, displayName, secondArg, extraArgs = [], window) {
|
|
204
|
-
super(element);
|
|
205
|
-
this.func = func;
|
|
206
|
-
this.displayName = displayName;
|
|
207
|
-
this.secondArg = secondArg;
|
|
208
|
-
this.extraArgs = extraArgs;
|
|
209
|
-
this.window = window;
|
|
210
|
-
}
|
|
211
|
-
func;
|
|
212
|
-
displayName;
|
|
213
|
-
secondArg;
|
|
214
|
-
extraArgs;
|
|
215
|
-
window;
|
|
216
|
-
over(partitionBy, orderBy) {
|
|
217
|
-
return new _WindowFunctionOperation(
|
|
218
|
-
this.element,
|
|
219
|
-
this.func,
|
|
220
|
-
this.displayName,
|
|
221
|
-
this.secondArg,
|
|
222
|
-
[...this.extraArgs],
|
|
223
|
-
new WindowSpecification(partitionBy ?? [], orderBy ?? [])
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
var ScalarFunctionOperation = class extends UnaryOperation {
|
|
228
|
-
constructor(element, func, displayName, secondArg, extraArgs = []) {
|
|
229
|
-
super(element);
|
|
230
|
-
this.func = func;
|
|
231
|
-
this.displayName = displayName;
|
|
232
|
-
this.secondArg = secondArg;
|
|
233
|
-
this.extraArgs = extraArgs;
|
|
234
|
-
}
|
|
235
|
-
func;
|
|
236
|
-
displayName;
|
|
237
|
-
secondArg;
|
|
238
|
-
extraArgs;
|
|
239
|
-
};
|
|
240
|
-
var DateExtractOperation = class extends UnaryOperation {
|
|
241
|
-
constructor(element, part, displayName) {
|
|
242
|
-
super(element);
|
|
243
|
-
this.part = part;
|
|
244
|
-
this.displayName = displayName;
|
|
245
|
-
}
|
|
246
|
-
part;
|
|
247
|
-
displayName;
|
|
248
|
-
};
|
|
249
|
-
var DateArithmeticOperation = class extends UnaryOperation {
|
|
250
|
-
constructor(element, n, unit, isAdd = true, displayName) {
|
|
251
|
-
super(element);
|
|
252
|
-
this.n = n;
|
|
253
|
-
this.unit = unit;
|
|
254
|
-
this.isAdd = isAdd;
|
|
255
|
-
this.displayName = displayName;
|
|
256
|
-
}
|
|
257
|
-
n;
|
|
258
|
-
unit;
|
|
259
|
-
isAdd;
|
|
260
|
-
displayName;
|
|
261
|
-
};
|
|
262
|
-
var DateDiffOperation = class extends UnaryOperation {
|
|
263
|
-
constructor(element, other, unit, displayName) {
|
|
264
|
-
super(element);
|
|
265
|
-
this.other = other;
|
|
266
|
-
this.unit = unit;
|
|
267
|
-
this.displayName = displayName;
|
|
268
|
-
}
|
|
269
|
-
other;
|
|
270
|
-
unit;
|
|
271
|
-
displayName;
|
|
272
|
-
};
|
|
273
|
-
var Column = class extends RelationalOperationElement {
|
|
274
|
-
constructor(name, type, owner, primaryKey = false) {
|
|
275
|
-
super();
|
|
276
|
-
this.name = name;
|
|
277
|
-
this.type = type;
|
|
278
|
-
this.owner = owner;
|
|
279
|
-
this.primaryKey = primaryKey;
|
|
280
|
-
}
|
|
281
|
-
name;
|
|
282
|
-
type;
|
|
283
|
-
owner;
|
|
284
|
-
primaryKey;
|
|
285
|
-
table;
|
|
286
|
-
};
|
|
287
|
-
var ForeignKey = class {
|
|
288
|
-
constructor(column, references) {
|
|
289
|
-
this.column = column;
|
|
290
|
-
this.references = references;
|
|
291
|
-
}
|
|
292
|
-
column;
|
|
293
|
-
references;
|
|
294
|
-
};
|
|
295
|
-
var DataStore = class {
|
|
296
|
-
constructor(name) {
|
|
297
|
-
this.name = name;
|
|
298
|
-
}
|
|
299
|
-
name;
|
|
300
|
-
schemas = [];
|
|
301
|
-
};
|
|
302
|
-
var Database = class extends DataStore {
|
|
303
|
-
constructor(name, location) {
|
|
304
|
-
super(name);
|
|
305
|
-
this.location = location;
|
|
306
|
-
}
|
|
307
|
-
location;
|
|
308
|
-
namespace(schemaName) {
|
|
309
|
-
return schemaName;
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
var DataCatalog = class extends DataStore {
|
|
313
|
-
constructor(name) {
|
|
314
|
-
super(name);
|
|
315
|
-
}
|
|
316
|
-
namespace(schemaName) {
|
|
317
|
-
return `${this.name}.${schemaName}`;
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
var Schema = class {
|
|
321
|
-
constructor(name, datastore) {
|
|
322
|
-
this.name = name;
|
|
323
|
-
this.datastore = datastore;
|
|
324
|
-
datastore?.schemas.push(this);
|
|
325
|
-
}
|
|
326
|
-
name;
|
|
327
|
-
datastore;
|
|
328
|
-
tables = [];
|
|
329
|
-
};
|
|
330
|
-
var Table = class {
|
|
331
|
-
constructor(name, columns, schema) {
|
|
332
|
-
this.name = name;
|
|
333
|
-
this.schema = schema;
|
|
334
|
-
for (const col of columns) {
|
|
335
|
-
if (this._columnsByName.has(col.name)) {
|
|
336
|
-
throw new Error(`Duplicate column name '${col.name}' in table '${name}'`);
|
|
337
|
-
}
|
|
338
|
-
this._columnsByName.set(col.name, col);
|
|
339
|
-
col.table = this;
|
|
340
|
-
}
|
|
341
|
-
schema?.tables.push(this);
|
|
342
|
-
}
|
|
343
|
-
name;
|
|
344
|
-
schema;
|
|
345
|
-
_columnsByName = /* @__PURE__ */ new Map();
|
|
346
|
-
foreignKeys = [];
|
|
347
|
-
get columns() {
|
|
348
|
-
return Array.from(this._columnsByName.values());
|
|
349
|
-
}
|
|
350
|
-
get qualifiedName() {
|
|
351
|
-
if (!this.schema) return this.name;
|
|
352
|
-
if (!this.schema.datastore) return `${this.schema.name}.${this.name}`;
|
|
353
|
-
return `${this.schema.datastore.namespace(this.schema.name)}.${this.name}`;
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
var JoinOperation = class {
|
|
357
|
-
constructor(name, target, left, right, filter) {
|
|
358
|
-
this.name = name;
|
|
359
|
-
this.target = target;
|
|
360
|
-
this.left = left;
|
|
361
|
-
this.right = right;
|
|
362
|
-
this.filter = filter;
|
|
363
|
-
}
|
|
364
|
-
name;
|
|
365
|
-
target;
|
|
366
|
-
left;
|
|
367
|
-
right;
|
|
368
|
-
filter;
|
|
369
|
-
};
|
|
370
|
-
var JoinTreeNodeOperation = class {
|
|
371
|
-
constructor(join, parent) {
|
|
372
|
-
this.join = join;
|
|
373
|
-
this.parent = parent;
|
|
374
|
-
}
|
|
375
|
-
join;
|
|
376
|
-
parent;
|
|
377
|
-
};
|
|
378
|
-
var ColumnWithJoin = class extends RelationalOperationElement {
|
|
379
|
-
constructor(column, parent) {
|
|
380
|
-
super();
|
|
381
|
-
this.column = column;
|
|
382
|
-
this.parent = parent;
|
|
383
|
-
}
|
|
384
|
-
column;
|
|
385
|
-
parent;
|
|
386
|
-
};
|
|
387
|
-
var SortOperation = class {
|
|
388
|
-
constructor(column, direction) {
|
|
389
|
-
this.column = column;
|
|
390
|
-
this.direction = direction;
|
|
391
|
-
}
|
|
392
|
-
column;
|
|
393
|
-
direction;
|
|
394
|
-
};
|
|
395
|
-
var CountAllOperation = class extends RelationalOperationElement {
|
|
396
|
-
constructor(table) {
|
|
397
|
-
super();
|
|
398
|
-
this.table = table;
|
|
399
|
-
}
|
|
400
|
-
table;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export {
|
|
404
|
-
ComparisonOperator,
|
|
405
|
-
LogicalOperator,
|
|
406
|
-
AggregateOperator,
|
|
407
|
-
ScalarFunction,
|
|
408
|
-
DatePart,
|
|
409
|
-
SortDirection,
|
|
410
|
-
RelationalOperationElement,
|
|
411
|
-
Operation,
|
|
412
|
-
NoOperation,
|
|
413
|
-
ConstantOperation,
|
|
414
|
-
IntegerConstantOperation,
|
|
415
|
-
FloatConstantOperation,
|
|
416
|
-
StringConstantOperation,
|
|
417
|
-
DateConstantOperation,
|
|
418
|
-
DateTimeConstantOperation,
|
|
419
|
-
DecimalConstantOperation,
|
|
420
|
-
BooleanConstantOperation,
|
|
421
|
-
UnaryOperation,
|
|
422
|
-
BinaryOperation,
|
|
423
|
-
IsNullOperation,
|
|
424
|
-
IsNotNullOperation,
|
|
425
|
-
ComparisonOperation,
|
|
426
|
-
LogicalOperation,
|
|
427
|
-
WindowSpecification,
|
|
428
|
-
AggregateOperation,
|
|
429
|
-
WindowFunction,
|
|
430
|
-
WindowFunctionOperation,
|
|
431
|
-
ScalarFunctionOperation,
|
|
432
|
-
DateExtractOperation,
|
|
433
|
-
DateArithmeticOperation,
|
|
434
|
-
DateDiffOperation,
|
|
435
|
-
Column,
|
|
436
|
-
ForeignKey,
|
|
437
|
-
DataStore,
|
|
438
|
-
Database,
|
|
439
|
-
DataCatalog,
|
|
440
|
-
Schema,
|
|
441
|
-
Table,
|
|
442
|
-
JoinOperation,
|
|
443
|
-
JoinTreeNodeOperation,
|
|
444
|
-
ColumnWithJoin,
|
|
445
|
-
SortOperation,
|
|
446
|
-
CountAllOperation
|
|
447
|
-
};
|
|
448
|
-
//# sourceMappingURL=chunk-3SSWFES4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/model/relational.ts"],"sourcesContent":["export enum ComparisonOperator {\n EQUAL = 'EQUAL',\n NOT_EQUAL = 'NOT_EQUAL',\n LESS_THAN = 'LESS_THAN',\n GREATER_THAN = 'GREATER_THAN',\n LESS_THAN_OR_EQUAL_TO = 'LESS_THAN_OR_EQUAL_TO',\n GREATER_THAN_OR_EQUAL_TO = 'GREATER_THAN_OR_EQUAL_TO',\n LIKE = 'LIKE',\n NOT_LIKE = 'NOT_LIKE',\n}\n\nexport enum LogicalOperator {\n AND = 'AND',\n OR = 'OR',\n}\n\nexport enum AggregateOperator {\n COUNT = 'COUNT',\n SUM = 'SUM',\n MIN = 'MIN',\n MAX = 'MAX',\n AVERAGE = 'AVERAGE',\n}\n\nexport enum ScalarFunction {\n ABS = 'ABS',\n CEILING = 'CEILING',\n FLOOR = 'FLOOR',\n MOD = 'MOD',\n POWER = 'POWER',\n SQRT = 'SQRT',\n ROUND = 'ROUND',\n UPPER = 'UPPER',\n LOWER = 'LOWER',\n TRIM = 'TRIM',\n LTRIM = 'LTRIM',\n RTRIM = 'RTRIM',\n LENGTH = 'LENGTH',\n REVERSE = 'REVERSE',\n LEFT = 'LEFT',\n RIGHT = 'RIGHT',\n REPEAT = 'REPEAT',\n REPLACE = 'REPLACE',\n SUBSTRING = 'SUBSTRING',\n}\n\nexport enum DatePart {\n YEAR = 'YEAR',\n MONTH = 'MONTH',\n DAY = 'DAY',\n HOUR = 'HOUR',\n MINUTE = 'MINUTE',\n SECOND = 'SECOND',\n QUARTER = 'QUARTER',\n WEEK = 'WEEK',\n DOW = 'DOW',\n}\n\nexport enum SortDirection {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\nexport abstract class RelationalOperationElement {}\n\nexport abstract class Operation extends RelationalOperationElement {\n andOp(other: RelationalOperationElement): Operation {\n return new LogicalOperation(this, LogicalOperator.AND, other);\n }\n}\n\nexport class NoOperation extends Operation {\n andOp(other: RelationalOperationElement): Operation {\n return other as Operation;\n }\n}\n\nexport abstract class ConstantOperation extends RelationalOperationElement {}\n\nexport class IntegerConstantOperation extends ConstantOperation {\n constructor(readonly value: number) { super(); }\n}\n\nexport class FloatConstantOperation extends ConstantOperation {\n constructor(readonly value: number) { super(); }\n}\n\nexport class StringConstantOperation extends ConstantOperation {\n constructor(readonly value: string) { super(); }\n}\n\nexport class DateConstantOperation extends ConstantOperation {\n constructor(readonly value: Date) { super(); }\n}\n\nexport class DateTimeConstantOperation extends ConstantOperation {\n constructor(readonly value: Date) { super(); }\n}\n\nexport class DecimalConstantOperation extends ConstantOperation {\n constructor(readonly value: number) { super(); }\n}\n\nexport class BooleanConstantOperation extends ConstantOperation {\n constructor(readonly value: boolean) { super(); }\n}\n\nexport abstract class UnaryOperation extends Operation {\n constructor(readonly element: RelationalOperationElement) { super(); }\n}\n\nexport abstract class BinaryOperation extends Operation {\n constructor(\n readonly left: RelationalOperationElement,\n readonly right: RelationalOperationElement,\n ) { super(); }\n}\n\nexport class IsNullOperation extends UnaryOperation {}\n\nexport class IsNotNullOperation extends UnaryOperation {}\n\nexport class ComparisonOperation extends BinaryOperation {\n constructor(\n left: RelationalOperationElement,\n readonly operator: ComparisonOperator,\n right: RelationalOperationElement,\n ) { super(left, right); }\n}\n\nexport class LogicalOperation extends BinaryOperation {\n constructor(\n left: RelationalOperationElement,\n readonly operator: LogicalOperator,\n right: RelationalOperationElement,\n ) { super(left, right); }\n}\n\nexport class WindowSpecification {\n constructor(\n readonly partitionBy: RelationalOperationElement[] = [],\n readonly orderBy: SortOperation[] = [],\n ) {}\n}\n\nexport class AggregateOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement,\n readonly operator: AggregateOperator,\n readonly displayName?: string,\n readonly window?: WindowSpecification,\n ) { super(element); }\n\n over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): AggregateOperation {\n return new AggregateOperation(this.element, this.operator, this.displayName,\n new WindowSpecification(partitionBy ?? [], orderBy ?? []));\n }\n}\n\nexport enum WindowFunction {\n ROW_NUMBER = 'ROW_NUMBER',\n RANK = 'RANK',\n DENSE_RANK = 'DENSE_RANK',\n NTILE = 'NTILE',\n LAG = 'LAG',\n LEAD = 'LEAD',\n FIRST_VALUE = 'FIRST_VALUE',\n LAST_VALUE = 'LAST_VALUE',\n CUME_DIST = 'CUME_DIST',\n PERCENT_RANK = 'PERCENT_RANK',\n}\n\nexport class WindowFunctionOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement | null,\n readonly func: WindowFunction,\n readonly displayName?: string,\n readonly secondArg?: number,\n readonly extraArgs: (string | number)[] = [],\n readonly window?: WindowSpecification,\n ) { super(element as RelationalOperationElement); }\n\n over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): WindowFunctionOperation {\n return new WindowFunctionOperation(this.element, this.func, this.displayName, this.secondArg,\n [...this.extraArgs], new WindowSpecification(partitionBy ?? [], orderBy ?? []));\n }\n}\n\nexport class ScalarFunctionOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement,\n readonly func: ScalarFunction,\n readonly displayName?: string,\n readonly secondArg?: number,\n readonly extraArgs: (string | number)[] = [],\n ) { super(element); }\n}\n\nexport class DateExtractOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement,\n readonly part: DatePart,\n readonly displayName?: string,\n ) { super(element); }\n}\n\nexport class DateArithmeticOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement,\n readonly n: number,\n readonly unit: DatePart,\n readonly isAdd: boolean = true,\n readonly displayName?: string,\n ) { super(element); }\n}\n\nexport class DateDiffOperation extends UnaryOperation {\n constructor(\n element: RelationalOperationElement,\n readonly other: Date,\n readonly unit: DatePart,\n readonly displayName?: string,\n ) { super(element); }\n}\n\nexport class Column extends RelationalOperationElement {\n table?: Table;\n\n constructor(\n readonly name: string,\n readonly type: string,\n readonly owner?: string,\n readonly primaryKey: boolean = false,\n ) { super(); }\n}\n\nexport class ForeignKey {\n constructor(readonly column: Column, readonly references: Column) {}\n}\n\nexport abstract class DataStore {\n readonly schemas: Schema[] = [];\n\n constructor(readonly name: string) {}\n\n abstract namespace(schemaName: string): string;\n}\n\nexport class Database extends DataStore {\n constructor(name: string, readonly location?: string) { super(name); }\n\n namespace(schemaName: string): string { return schemaName; }\n}\n\nexport class DataCatalog extends DataStore {\n constructor(name: string) { super(name); }\n\n namespace(schemaName: string): string { return `${this.name}.${schemaName}`; }\n}\n\nexport class Schema {\n readonly tables: Table[] = [];\n\n constructor(readonly name: string, readonly datastore?: DataStore) {\n datastore?.schemas.push(this);\n }\n}\n\nexport class Table {\n private readonly _columnsByName: Map<string, Column> = new Map();\n readonly foreignKeys: ForeignKey[] = [];\n\n constructor(readonly name: string, columns: Column[], readonly schema?: Schema) {\n for (const col of columns) {\n if (this._columnsByName.has(col.name)) {\n throw new Error(`Duplicate column name '${col.name}' in table '${name}'`);\n }\n this._columnsByName.set(col.name, col);\n col.table = this;\n }\n schema?.tables.push(this);\n }\n\n get columns(): Column[] {\n return Array.from(this._columnsByName.values());\n }\n\n get qualifiedName(): string {\n if (!this.schema) return this.name;\n if (!this.schema.datastore) return `${this.schema.name}.${this.name}`;\n return `${this.schema.datastore.namespace(this.schema.name)}.${this.name}`;\n }\n}\n\nexport class JoinOperation {\n filter?: RelationalOperationElement;\n\n constructor(\n readonly name: string,\n readonly target: Table,\n readonly left: Column,\n readonly right: Column,\n filter?: RelationalOperationElement,\n ) {\n this.filter = filter;\n }\n}\n\nexport class JoinTreeNodeOperation {\n constructor(\n readonly join: JoinOperation,\n readonly parent?: JoinTreeNodeOperation,\n ) {}\n}\n\nexport class ColumnWithJoin extends RelationalOperationElement {\n constructor(\n readonly column: Column,\n readonly parent?: JoinTreeNodeOperation,\n ) { super(); }\n}\n\nexport class SortOperation {\n constructor(\n readonly column: ColumnWithJoin,\n readonly direction: SortDirection,\n ) {}\n}\n\nexport class CountAllOperation extends RelationalOperationElement {\n constructor(readonly table: string) { super(); }\n}\n"],"mappings":";AAAO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,WAAQ;AACR,EAAAA,oBAAA,eAAY;AACZ,EAAAA,oBAAA,eAAY;AACZ,EAAAA,oBAAA,kBAAe;AACf,EAAAA,oBAAA,2BAAwB;AACxB,EAAAA,oBAAA,8BAA2B;AAC3B,EAAAA,oBAAA,UAAO;AACP,EAAAA,oBAAA,cAAW;AARD,SAAAA;AAAA,GAAA;AAWL,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,SAAM;AACN,EAAAA,iBAAA,QAAK;AAFK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;AAAA,EAChD;AAAA,EAEA,IAAI,gBAAwB;AAC1B,QAAI,CAAC,KAAK,OAAQ,QAAO,KAAK;AAC9B,QAAI,CAAC,KAAK,OAAO,UAAW,QAAO,GAAG,KAAK,OAAO,IAAI,IAAI,KAAK,IAAI;AACnE,WAAO,GAAG,KAAK,OAAO,UAAU,UAAU,KAAK,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI;AAAA,EAC1E;AACF;AAEO,IAAM,gBAAN,MAAoB;AAAA,EAGzB,YACW,MACA,QACA,MACA,OACT,QACA;AALS;AACA;AACA;AACA;AAGT,SAAK,SAAS;AAAA,EAChB;AAAA,EAPW;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EANX;AAWF;AAEO,IAAM,wBAAN,MAA4B;AAAA,EACjC,YACW,MACA,QACT;AAFS;AACA;AAAA,EACR;AAAA,EAFQ;AAAA,EACA;AAEb;AAEO,IAAM,iBAAN,cAA6B,2BAA2B;AAAA,EAC7D,YACW,QACA,QACT;AAAE,UAAM;AAFC;AACA;AAAA,EACE;AAAA,EAFF;AAAA,EACA;AAEb;AAEO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YACW,QACA,WACT;AAFS;AACA;AAAA,EACR;AAAA,EAFQ;AAAA,EACA;AAEb;AAEO,IAAM,oBAAN,cAAgC,2BAA2B;AAAA,EAChE,YAAqB,OAAe;AAAE,UAAM;AAAvB;AAAA,EAA0B;AAAA,EAA1B;AACvB;","names":["ComparisonOperator","LogicalOperator","AggregateOperator","ScalarFunction","DatePart","SortDirection","WindowFunction"]}
|