@polyglot-sql/sdk 0.4.0 → 0.4.1
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/cdn/polyglot.esm.js +641 -641
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/cdn/polyglot.esm.js
CHANGED
|
@@ -55,7 +55,7 @@ class CA {
|
|
|
55
55
|
*/
|
|
56
56
|
push(A, C) {
|
|
57
57
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
58
|
-
H(C,
|
|
58
|
+
H(C, G), I.wasmassignmentarray_push(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
|
|
@@ -83,8 +83,8 @@ class m {
|
|
|
83
83
|
I.wasmcasebuilder_build_expr(B, this.__wbg_ptr);
|
|
84
84
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
85
85
|
if (Q)
|
|
86
|
-
throw
|
|
87
|
-
return
|
|
86
|
+
throw U(C);
|
|
87
|
+
return G.__wrap(A);
|
|
88
88
|
} finally {
|
|
89
89
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ class m {
|
|
|
94
94
|
* @param {WasmExpr} result
|
|
95
95
|
*/
|
|
96
96
|
else_(A) {
|
|
97
|
-
H(A,
|
|
97
|
+
H(A, G), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Create a new searched CASE builder (CASE WHEN ... THEN ...).
|
|
@@ -113,10 +113,10 @@ class m {
|
|
|
113
113
|
try {
|
|
114
114
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
115
115
|
I.wasmcasebuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
116
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
116
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
117
117
|
if (i)
|
|
118
|
-
throw k = 0,
|
|
119
|
-
return C = k, Q =
|
|
118
|
+
throw k = 0, K = 0, U(D);
|
|
119
|
+
return C = k, Q = K, L(k, K);
|
|
120
120
|
} finally {
|
|
121
121
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
122
122
|
}
|
|
@@ -127,7 +127,7 @@ class m {
|
|
|
127
127
|
* @param {WasmExpr} result
|
|
128
128
|
*/
|
|
129
129
|
when(A, C) {
|
|
130
|
-
H(A,
|
|
130
|
+
H(A, G), H(C, G), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
Symbol.dispose && (m.prototype[Symbol.dispose] = m.prototype.free);
|
|
@@ -150,8 +150,8 @@ class MA {
|
|
|
150
150
|
I.wasmdeletebuilder_build(B, this.__wbg_ptr);
|
|
151
151
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
152
152
|
if (Q)
|
|
153
|
-
throw
|
|
154
|
-
return
|
|
153
|
+
throw U(C);
|
|
154
|
+
return U(A);
|
|
155
155
|
} finally {
|
|
156
156
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
157
157
|
}
|
|
@@ -174,10 +174,10 @@ class MA {
|
|
|
174
174
|
try {
|
|
175
175
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
176
176
|
I.wasmdeletebuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
177
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
177
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
178
178
|
if (i)
|
|
179
|
-
throw k = 0,
|
|
180
|
-
return C = k, Q =
|
|
179
|
+
throw k = 0, K = 0, U(D);
|
|
180
|
+
return C = k, Q = K, L(k, K);
|
|
181
181
|
} finally {
|
|
182
182
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
183
183
|
}
|
|
@@ -187,14 +187,14 @@ class MA {
|
|
|
187
187
|
* @param {WasmExpr} condition
|
|
188
188
|
*/
|
|
189
189
|
where_expr(A) {
|
|
190
|
-
H(A,
|
|
190
|
+
H(A, G), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
|
|
194
|
-
class
|
|
194
|
+
class G {
|
|
195
195
|
static __wrap(A) {
|
|
196
196
|
A = A >>> 0;
|
|
197
|
-
const C = Object.create(
|
|
197
|
+
const C = Object.create(G.prototype);
|
|
198
198
|
return C.__wbg_ptr = A, VA.register(C, C.__wbg_ptr, C), C;
|
|
199
199
|
}
|
|
200
200
|
__destroy_into_raw() {
|
|
@@ -211,9 +211,9 @@ class K {
|
|
|
211
211
|
* @returns {WasmExpr}
|
|
212
212
|
*/
|
|
213
213
|
add(A) {
|
|
214
|
-
H(A,
|
|
214
|
+
H(A, G);
|
|
215
215
|
const C = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
|
|
216
|
-
return
|
|
216
|
+
return G.__wrap(C);
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
219
|
* Produce `self AS name`.
|
|
@@ -222,7 +222,7 @@ class K {
|
|
|
222
222
|
*/
|
|
223
223
|
alias(A) {
|
|
224
224
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasmexpr_alias(this.__wbg_ptr, C, Q);
|
|
225
|
-
return
|
|
225
|
+
return G.__wrap(B);
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* Produce `self AND other`.
|
|
@@ -230,9 +230,9 @@ class K {
|
|
|
230
230
|
* @returns {WasmExpr}
|
|
231
231
|
*/
|
|
232
232
|
and(A) {
|
|
233
|
-
H(A,
|
|
233
|
+
H(A, G);
|
|
234
234
|
const C = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
|
|
235
|
-
return
|
|
235
|
+
return G.__wrap(C);
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
* Wrap with ascending sort order.
|
|
@@ -240,7 +240,7 @@ class K {
|
|
|
240
240
|
*/
|
|
241
241
|
asc() {
|
|
242
242
|
const A = I.wasmexpr_asc(this.__wbg_ptr);
|
|
243
|
-
return
|
|
243
|
+
return G.__wrap(A);
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
246
|
* Produce `self BETWEEN low AND high`.
|
|
@@ -249,9 +249,9 @@ class K {
|
|
|
249
249
|
* @returns {WasmExpr}
|
|
250
250
|
*/
|
|
251
251
|
between(A, C) {
|
|
252
|
-
H(A,
|
|
252
|
+
H(A, G), H(C, G);
|
|
253
253
|
const Q = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
|
|
254
|
-
return
|
|
254
|
+
return G.__wrap(Q);
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
257
|
* Produce `CAST(self AS type)`.
|
|
@@ -260,7 +260,7 @@ class K {
|
|
|
260
260
|
*/
|
|
261
261
|
cast(A) {
|
|
262
262
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasmexpr_cast(this.__wbg_ptr, C, Q);
|
|
263
|
-
return
|
|
263
|
+
return G.__wrap(B);
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
266
|
* Wrap with descending sort order.
|
|
@@ -268,7 +268,7 @@ class K {
|
|
|
268
268
|
*/
|
|
269
269
|
desc() {
|
|
270
270
|
const A = I.wasmexpr_desc(this.__wbg_ptr);
|
|
271
|
-
return
|
|
271
|
+
return G.__wrap(A);
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
274
|
* Produce `self / other`.
|
|
@@ -276,9 +276,9 @@ class K {
|
|
|
276
276
|
* @returns {WasmExpr}
|
|
277
277
|
*/
|
|
278
278
|
div(A) {
|
|
279
|
-
H(A,
|
|
279
|
+
H(A, G);
|
|
280
280
|
const C = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
|
|
281
|
-
return
|
|
281
|
+
return G.__wrap(C);
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
284
|
* Produce `self = other`.
|
|
@@ -286,9 +286,9 @@ class K {
|
|
|
286
286
|
* @returns {WasmExpr}
|
|
287
287
|
*/
|
|
288
288
|
eq(A) {
|
|
289
|
-
H(A,
|
|
289
|
+
H(A, G);
|
|
290
290
|
const C = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
|
|
291
|
-
return
|
|
291
|
+
return G.__wrap(C);
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
294
|
* Produce `self > other`.
|
|
@@ -296,9 +296,9 @@ class K {
|
|
|
296
296
|
* @returns {WasmExpr}
|
|
297
297
|
*/
|
|
298
298
|
gt(A) {
|
|
299
|
-
H(A,
|
|
299
|
+
H(A, G);
|
|
300
300
|
const C = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
|
|
301
|
-
return
|
|
301
|
+
return G.__wrap(C);
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Produce `self >= other`.
|
|
@@ -306,9 +306,9 @@ class K {
|
|
|
306
306
|
* @returns {WasmExpr}
|
|
307
307
|
*/
|
|
308
308
|
gte(A) {
|
|
309
|
-
H(A,
|
|
309
|
+
H(A, G);
|
|
310
310
|
const C = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
|
|
311
|
-
return
|
|
311
|
+
return G.__wrap(C);
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* Produce `self ILIKE pattern`.
|
|
@@ -316,9 +316,9 @@ class K {
|
|
|
316
316
|
* @returns {WasmExpr}
|
|
317
317
|
*/
|
|
318
318
|
ilike(A) {
|
|
319
|
-
H(A,
|
|
319
|
+
H(A, G);
|
|
320
320
|
const C = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
|
|
321
|
-
return
|
|
321
|
+
return G.__wrap(C);
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
324
|
* Produce `self IN (values...)`.
|
|
@@ -326,9 +326,9 @@ class K {
|
|
|
326
326
|
* @returns {WasmExpr}
|
|
327
327
|
*/
|
|
328
328
|
in_list(A) {
|
|
329
|
-
H(A,
|
|
329
|
+
H(A, O);
|
|
330
330
|
const C = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
|
|
331
|
-
return
|
|
331
|
+
return G.__wrap(C);
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
334
334
|
* Produce `self IS NOT NULL`.
|
|
@@ -336,7 +336,7 @@ class K {
|
|
|
336
336
|
*/
|
|
337
337
|
is_not_null() {
|
|
338
338
|
const A = I.wasmexpr_is_not_null(this.__wbg_ptr);
|
|
339
|
-
return
|
|
339
|
+
return G.__wrap(A);
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* Produce `self IS NULL`.
|
|
@@ -344,7 +344,7 @@ class K {
|
|
|
344
344
|
*/
|
|
345
345
|
is_null() {
|
|
346
346
|
const A = I.wasmexpr_is_null(this.__wbg_ptr);
|
|
347
|
-
return
|
|
347
|
+
return G.__wrap(A);
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
350
|
* Produce `self LIKE pattern`.
|
|
@@ -352,9 +352,9 @@ class K {
|
|
|
352
352
|
* @returns {WasmExpr}
|
|
353
353
|
*/
|
|
354
354
|
like(A) {
|
|
355
|
-
H(A,
|
|
355
|
+
H(A, G);
|
|
356
356
|
const C = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
|
|
357
|
-
return
|
|
357
|
+
return G.__wrap(C);
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
360
|
* Produce `self < other`.
|
|
@@ -362,9 +362,9 @@ class K {
|
|
|
362
362
|
* @returns {WasmExpr}
|
|
363
363
|
*/
|
|
364
364
|
lt(A) {
|
|
365
|
-
H(A,
|
|
365
|
+
H(A, G);
|
|
366
366
|
const C = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
|
|
367
|
-
return
|
|
367
|
+
return G.__wrap(C);
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
370
|
* Produce `self <= other`.
|
|
@@ -372,9 +372,9 @@ class K {
|
|
|
372
372
|
* @returns {WasmExpr}
|
|
373
373
|
*/
|
|
374
374
|
lte(A) {
|
|
375
|
-
H(A,
|
|
375
|
+
H(A, G);
|
|
376
376
|
const C = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
|
|
377
|
-
return
|
|
377
|
+
return G.__wrap(C);
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
380
380
|
* Produce `self * other`.
|
|
@@ -382,9 +382,9 @@ class K {
|
|
|
382
382
|
* @returns {WasmExpr}
|
|
383
383
|
*/
|
|
384
384
|
mul(A) {
|
|
385
|
-
H(A,
|
|
385
|
+
H(A, G);
|
|
386
386
|
const C = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
|
|
387
|
-
return
|
|
387
|
+
return G.__wrap(C);
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
390
|
* Produce `self <> other`.
|
|
@@ -392,9 +392,9 @@ class K {
|
|
|
392
392
|
* @returns {WasmExpr}
|
|
393
393
|
*/
|
|
394
394
|
neq(A) {
|
|
395
|
-
H(A,
|
|
395
|
+
H(A, G);
|
|
396
396
|
const C = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
|
|
397
|
-
return
|
|
397
|
+
return G.__wrap(C);
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
400
400
|
* Produce `NOT self`.
|
|
@@ -402,7 +402,7 @@ class K {
|
|
|
402
402
|
*/
|
|
403
403
|
not() {
|
|
404
404
|
const A = I.wasmexpr_not(this.__wbg_ptr);
|
|
405
|
-
return
|
|
405
|
+
return G.__wrap(A);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* Produce `self NOT IN (values...)`.
|
|
@@ -410,9 +410,9 @@ class K {
|
|
|
410
410
|
* @returns {WasmExpr}
|
|
411
411
|
*/
|
|
412
412
|
not_in(A) {
|
|
413
|
-
H(A,
|
|
413
|
+
H(A, O);
|
|
414
414
|
const C = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
|
|
415
|
-
return
|
|
415
|
+
return G.__wrap(C);
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* Produce `self OR other`.
|
|
@@ -420,9 +420,9 @@ class K {
|
|
|
420
420
|
* @returns {WasmExpr}
|
|
421
421
|
*/
|
|
422
422
|
or(A) {
|
|
423
|
-
H(A,
|
|
423
|
+
H(A, G);
|
|
424
424
|
const C = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
|
|
425
|
-
return
|
|
425
|
+
return G.__wrap(C);
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* Produce `REGEXP_LIKE(self, pattern)`.
|
|
@@ -430,9 +430,9 @@ class K {
|
|
|
430
430
|
* @returns {WasmExpr}
|
|
431
431
|
*/
|
|
432
432
|
rlike(A) {
|
|
433
|
-
H(A,
|
|
433
|
+
H(A, G);
|
|
434
434
|
const C = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
|
|
435
|
-
return
|
|
435
|
+
return G.__wrap(C);
|
|
436
436
|
}
|
|
437
437
|
/**
|
|
438
438
|
* Produce `self - other`.
|
|
@@ -440,9 +440,9 @@ class K {
|
|
|
440
440
|
* @returns {WasmExpr}
|
|
441
441
|
*/
|
|
442
442
|
sub(A) {
|
|
443
|
-
H(A,
|
|
443
|
+
H(A, G);
|
|
444
444
|
const C = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
|
|
445
|
-
return
|
|
445
|
+
return G.__wrap(C);
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* Return the expression AST as a JSON value.
|
|
@@ -454,8 +454,8 @@ class K {
|
|
|
454
454
|
I.wasmexpr_to_json(B, this.__wbg_ptr);
|
|
455
455
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
456
456
|
if (Q)
|
|
457
|
-
throw
|
|
458
|
-
return
|
|
457
|
+
throw U(C);
|
|
458
|
+
return U(A);
|
|
459
459
|
} finally {
|
|
460
460
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
461
461
|
}
|
|
@@ -470,10 +470,10 @@ class K {
|
|
|
470
470
|
try {
|
|
471
471
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
472
472
|
I.wasmexpr_to_sql(y, this.__wbg_ptr, h, R);
|
|
473
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
473
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
474
474
|
if (i)
|
|
475
|
-
throw k = 0,
|
|
476
|
-
return C = k, Q =
|
|
475
|
+
throw k = 0, K = 0, U(D);
|
|
476
|
+
return C = k, Q = K, L(k, K);
|
|
477
477
|
} finally {
|
|
478
478
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
479
479
|
}
|
|
@@ -484,16 +484,16 @@ class K {
|
|
|
484
484
|
* @returns {WasmExpr}
|
|
485
485
|
*/
|
|
486
486
|
xor(A) {
|
|
487
|
-
H(A,
|
|
487
|
+
H(A, G);
|
|
488
488
|
const C = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
|
|
489
|
-
return
|
|
489
|
+
return G.__wrap(C);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
Symbol.dispose && (
|
|
493
|
-
class
|
|
492
|
+
Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
|
|
493
|
+
class O {
|
|
494
494
|
__destroy_into_raw() {
|
|
495
495
|
const A = this.__wbg_ptr;
|
|
496
|
-
return this.__wbg_ptr = 0,
|
|
496
|
+
return this.__wbg_ptr = 0, WA.unregister(this), A;
|
|
497
497
|
}
|
|
498
498
|
free() {
|
|
499
499
|
const A = this.__destroy_into_raw();
|
|
@@ -511,14 +511,14 @@ class T {
|
|
|
511
511
|
*/
|
|
512
512
|
constructor() {
|
|
513
513
|
const A = I.wasmassignmentarray_new();
|
|
514
|
-
return this.__wbg_ptr = A >>> 0,
|
|
514
|
+
return this.__wbg_ptr = A >>> 0, WA.register(this, this.__wbg_ptr, this), this;
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
517
|
* Push an expression.
|
|
518
518
|
* @param {WasmExpr} expr
|
|
519
519
|
*/
|
|
520
520
|
push(A) {
|
|
521
|
-
H(A,
|
|
521
|
+
H(A, G), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
524
|
* Push a column reference by name.
|
|
@@ -557,11 +557,11 @@ class T {
|
|
|
557
557
|
I.wasmexprarray_push_str(this.__wbg_ptr, C, Q);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
Symbol.dispose && (
|
|
560
|
+
Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
|
|
561
561
|
class iA {
|
|
562
562
|
__destroy_into_raw() {
|
|
563
563
|
const A = this.__wbg_ptr;
|
|
564
|
-
return this.__wbg_ptr = 0,
|
|
564
|
+
return this.__wbg_ptr = 0, eA.unregister(this), A;
|
|
565
565
|
}
|
|
566
566
|
free() {
|
|
567
567
|
const A = this.__destroy_into_raw();
|
|
@@ -577,8 +577,8 @@ class iA {
|
|
|
577
577
|
I.wasminsertbuilder_build(B, this.__wbg_ptr);
|
|
578
578
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
579
579
|
if (Q)
|
|
580
|
-
throw
|
|
581
|
-
return
|
|
580
|
+
throw U(C);
|
|
581
|
+
return U(A);
|
|
582
582
|
} finally {
|
|
583
583
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
584
584
|
}
|
|
@@ -588,7 +588,7 @@ class iA {
|
|
|
588
588
|
* @param {string[]} cols
|
|
589
589
|
*/
|
|
590
590
|
columns(A) {
|
|
591
|
-
const C =
|
|
591
|
+
const C = UA(A, I.__wbindgen_export), Q = N;
|
|
592
592
|
I.wasminsertbuilder_columns(this.__wbg_ptr, C, Q);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -597,7 +597,7 @@ class iA {
|
|
|
597
597
|
*/
|
|
598
598
|
constructor(A) {
|
|
599
599
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasminsertbuilder_new(C, Q);
|
|
600
|
-
return this.__wbg_ptr = B >>> 0,
|
|
600
|
+
return this.__wbg_ptr = B >>> 0, eA.register(this, this.__wbg_ptr, this), this;
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
603
603
|
* Set the source query for INSERT ... SELECT.
|
|
@@ -606,10 +606,10 @@ class iA {
|
|
|
606
606
|
query(A) {
|
|
607
607
|
try {
|
|
608
608
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
609
|
-
H(A,
|
|
609
|
+
H(A, d), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
|
|
610
610
|
var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
|
|
611
611
|
if (Q)
|
|
612
|
-
throw
|
|
612
|
+
throw U(C);
|
|
613
613
|
} finally {
|
|
614
614
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
615
615
|
}
|
|
@@ -624,10 +624,10 @@ class iA {
|
|
|
624
624
|
try {
|
|
625
625
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
626
626
|
I.wasminsertbuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
627
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
627
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
628
628
|
if (i)
|
|
629
|
-
throw k = 0,
|
|
630
|
-
return C = k, Q =
|
|
629
|
+
throw k = 0, K = 0, U(D);
|
|
630
|
+
return C = k, Q = K, L(k, K);
|
|
631
631
|
} finally {
|
|
632
632
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
633
633
|
}
|
|
@@ -637,14 +637,14 @@ class iA {
|
|
|
637
637
|
* @param {WasmExprArray} vals
|
|
638
638
|
*/
|
|
639
639
|
values(A) {
|
|
640
|
-
H(A,
|
|
640
|
+
H(A, O), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
Symbol.dispose && (iA.prototype[Symbol.dispose] = iA.prototype.free);
|
|
644
644
|
class NA {
|
|
645
645
|
__destroy_into_raw() {
|
|
646
646
|
const A = this.__wbg_ptr;
|
|
647
|
-
return this.__wbg_ptr = 0,
|
|
647
|
+
return this.__wbg_ptr = 0, rA.unregister(this), A;
|
|
648
648
|
}
|
|
649
649
|
free() {
|
|
650
650
|
const A = this.__destroy_into_raw();
|
|
@@ -660,8 +660,8 @@ class NA {
|
|
|
660
660
|
I.wasmmergebuilder_build(B, this.__wbg_ptr);
|
|
661
661
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
662
662
|
if (Q)
|
|
663
|
-
throw
|
|
664
|
-
return
|
|
663
|
+
throw U(C);
|
|
664
|
+
return U(A);
|
|
665
665
|
} finally {
|
|
666
666
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
667
667
|
}
|
|
@@ -672,7 +672,7 @@ class NA {
|
|
|
672
672
|
*/
|
|
673
673
|
constructor(A) {
|
|
674
674
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasmmergebuilder_new(C, Q);
|
|
675
|
-
return this.__wbg_ptr = B >>> 0,
|
|
675
|
+
return this.__wbg_ptr = B >>> 0, rA.register(this, this.__wbg_ptr, this), this;
|
|
676
676
|
}
|
|
677
677
|
/**
|
|
678
678
|
* Generate SQL string for the given dialect.
|
|
@@ -684,10 +684,10 @@ class NA {
|
|
|
684
684
|
try {
|
|
685
685
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
686
686
|
I.wasmmergebuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
687
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
687
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
688
688
|
if (i)
|
|
689
|
-
throw k = 0,
|
|
690
|
-
return C = k, Q =
|
|
689
|
+
throw k = 0, K = 0, U(D);
|
|
690
|
+
return C = k, Q = K, L(k, K);
|
|
691
691
|
} finally {
|
|
692
692
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
693
693
|
}
|
|
@@ -699,7 +699,7 @@ class NA {
|
|
|
699
699
|
*/
|
|
700
700
|
using(A, C) {
|
|
701
701
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
702
|
-
H(C,
|
|
702
|
+
H(C, G), I.wasmmergebuilder_using(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
703
703
|
}
|
|
704
704
|
/**
|
|
705
705
|
* Add a WHEN MATCHED THEN DELETE clause.
|
|
@@ -720,15 +720,15 @@ class NA {
|
|
|
720
720
|
* @param {WasmExprArray} values
|
|
721
721
|
*/
|
|
722
722
|
when_not_matched_insert(A, C) {
|
|
723
|
-
const Q =
|
|
724
|
-
H(C,
|
|
723
|
+
const Q = UA(A, I.__wbindgen_export), B = N;
|
|
724
|
+
H(C, O), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
|
|
728
|
-
class
|
|
728
|
+
class d {
|
|
729
729
|
__destroy_into_raw() {
|
|
730
730
|
const A = this.__wbg_ptr;
|
|
731
|
-
return this.__wbg_ptr = 0,
|
|
731
|
+
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
732
732
|
}
|
|
733
733
|
free() {
|
|
734
734
|
const A = this.__destroy_into_raw();
|
|
@@ -744,8 +744,8 @@ class t {
|
|
|
744
744
|
I.wasmselectbuilder_build(B, this.__wbg_ptr);
|
|
745
745
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
746
746
|
if (Q)
|
|
747
|
-
throw
|
|
748
|
-
return
|
|
747
|
+
throw U(C);
|
|
748
|
+
return U(A);
|
|
749
749
|
} finally {
|
|
750
750
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
751
751
|
}
|
|
@@ -769,8 +769,8 @@ class t {
|
|
|
769
769
|
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, i);
|
|
770
770
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
771
771
|
if (B)
|
|
772
|
-
throw
|
|
773
|
-
return
|
|
772
|
+
throw U(Q);
|
|
773
|
+
return U(C);
|
|
774
774
|
} finally {
|
|
775
775
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
776
776
|
}
|
|
@@ -784,12 +784,12 @@ class t {
|
|
|
784
784
|
ctas_sql(A, C) {
|
|
785
785
|
let Q, B;
|
|
786
786
|
try {
|
|
787
|
-
const h = I.__wbindgen_add_to_stack_pointer(-16), R = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N,
|
|
788
|
-
I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q,
|
|
789
|
-
var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), k = M().getInt32(h + 12, !0),
|
|
787
|
+
const h = I.__wbindgen_add_to_stack_pointer(-16), R = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, P = o(C, I.__wbindgen_export, I.__wbindgen_export2), l = N;
|
|
788
|
+
I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, P, l);
|
|
789
|
+
var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), k = M().getInt32(h + 12, !0), K = E, y = D;
|
|
790
790
|
if (k)
|
|
791
|
-
throw
|
|
792
|
-
return Q =
|
|
791
|
+
throw K = 0, y = 0, U(i);
|
|
792
|
+
return Q = K, B = y, L(K, y);
|
|
793
793
|
} finally {
|
|
794
794
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
|
|
795
795
|
}
|
|
@@ -808,10 +808,10 @@ class t {
|
|
|
808
808
|
except_(A) {
|
|
809
809
|
try {
|
|
810
810
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
811
|
-
H(A,
|
|
811
|
+
H(A, d), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
812
812
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
813
813
|
if (B)
|
|
814
|
-
throw
|
|
814
|
+
throw U(Q);
|
|
815
815
|
return Z.__wrap(C);
|
|
816
816
|
} finally {
|
|
817
817
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -836,21 +836,21 @@ class t {
|
|
|
836
836
|
* @param {WasmExpr} expr
|
|
837
837
|
*/
|
|
838
838
|
from_expr(A) {
|
|
839
|
-
H(A,
|
|
839
|
+
H(A, G), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
842
842
|
* Set the GROUP BY clause.
|
|
843
843
|
* @param {WasmExprArray} cols
|
|
844
844
|
*/
|
|
845
845
|
group_by_cols(A) {
|
|
846
|
-
H(A,
|
|
846
|
+
H(A, O), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
|
|
847
847
|
}
|
|
848
848
|
/**
|
|
849
849
|
* Set the HAVING clause.
|
|
850
850
|
* @param {WasmExpr} condition
|
|
851
851
|
*/
|
|
852
852
|
having(A) {
|
|
853
|
-
H(A,
|
|
853
|
+
H(A, G), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
|
|
854
854
|
}
|
|
855
855
|
/**
|
|
856
856
|
* Add a query hint.
|
|
@@ -868,10 +868,10 @@ class t {
|
|
|
868
868
|
intersect(A) {
|
|
869
869
|
try {
|
|
870
870
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
871
|
-
H(A,
|
|
871
|
+
H(A, d), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
872
872
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
873
873
|
if (B)
|
|
874
|
-
throw
|
|
874
|
+
throw U(Q);
|
|
875
875
|
return Z.__wrap(C);
|
|
876
876
|
} finally {
|
|
877
877
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -884,7 +884,7 @@ class t {
|
|
|
884
884
|
*/
|
|
885
885
|
join(A, C) {
|
|
886
886
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
887
|
-
H(C,
|
|
887
|
+
H(C, G), I.wasmselectbuilder_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
888
888
|
}
|
|
889
889
|
/**
|
|
890
890
|
* Add a LATERAL VIEW clause (Hive/Spark).
|
|
@@ -893,8 +893,8 @@ class t {
|
|
|
893
893
|
* @param {string[]} col_aliases
|
|
894
894
|
*/
|
|
895
895
|
lateral_view(A, C, Q) {
|
|
896
|
-
H(A,
|
|
897
|
-
const B = o(C, I.__wbindgen_export, I.__wbindgen_export2), E = N, D =
|
|
896
|
+
H(A, G);
|
|
897
|
+
const B = o(C, I.__wbindgen_export, I.__wbindgen_export2), E = N, D = UA(Q, I.__wbindgen_export), i = N;
|
|
898
898
|
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, i);
|
|
899
899
|
}
|
|
900
900
|
/**
|
|
@@ -904,7 +904,7 @@ class t {
|
|
|
904
904
|
*/
|
|
905
905
|
left_join(A, C) {
|
|
906
906
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
907
|
-
H(C,
|
|
907
|
+
H(C, G), I.wasmselectbuilder_left_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
908
908
|
}
|
|
909
909
|
/**
|
|
910
910
|
* Set the LIMIT clause.
|
|
@@ -918,7 +918,7 @@ class t {
|
|
|
918
918
|
*/
|
|
919
919
|
constructor() {
|
|
920
920
|
const A = I.wasmselectbuilder_new();
|
|
921
|
-
return this.__wbg_ptr = A >>> 0,
|
|
921
|
+
return this.__wbg_ptr = A >>> 0, lA.register(this, this.__wbg_ptr, this), this;
|
|
922
922
|
}
|
|
923
923
|
/**
|
|
924
924
|
* Set the OFFSET clause.
|
|
@@ -932,14 +932,14 @@ class t {
|
|
|
932
932
|
* @param {WasmExprArray} exprs
|
|
933
933
|
*/
|
|
934
934
|
order_by_exprs(A) {
|
|
935
|
-
H(A,
|
|
935
|
+
H(A, O), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
936
936
|
}
|
|
937
937
|
/**
|
|
938
938
|
* Set the QUALIFY clause.
|
|
939
939
|
* @param {WasmExpr} condition
|
|
940
940
|
*/
|
|
941
941
|
qualify(A) {
|
|
942
|
-
H(A,
|
|
942
|
+
H(A, G), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* Add a RIGHT JOIN.
|
|
@@ -948,7 +948,7 @@ class t {
|
|
|
948
948
|
*/
|
|
949
949
|
right_join(A, C) {
|
|
950
950
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
951
|
-
H(C,
|
|
951
|
+
H(C, G), I.wasmselectbuilder_right_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
952
952
|
}
|
|
953
953
|
/**
|
|
954
954
|
* Add a column by name to the SELECT list.
|
|
@@ -963,14 +963,14 @@ class t {
|
|
|
963
963
|
* @param {WasmExpr} expr
|
|
964
964
|
*/
|
|
965
965
|
select_expr(A) {
|
|
966
|
-
H(A,
|
|
966
|
+
H(A, G), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
967
967
|
}
|
|
968
968
|
/**
|
|
969
969
|
* Add multiple expressions to the SELECT list.
|
|
970
970
|
* @param {WasmExprArray} exprs
|
|
971
971
|
*/
|
|
972
972
|
select_exprs(A) {
|
|
973
|
-
H(A,
|
|
973
|
+
H(A, O), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
974
974
|
}
|
|
975
975
|
/**
|
|
976
976
|
* Add a star (*) to the SELECT list.
|
|
@@ -983,7 +983,7 @@ class t {
|
|
|
983
983
|
* @param {WasmExprArray} exprs
|
|
984
984
|
*/
|
|
985
985
|
sort_by_exprs(A) {
|
|
986
|
-
H(A,
|
|
986
|
+
H(A, O), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
987
987
|
}
|
|
988
988
|
/**
|
|
989
989
|
* Generate SQL string for the given dialect.
|
|
@@ -995,10 +995,10 @@ class t {
|
|
|
995
995
|
try {
|
|
996
996
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
997
997
|
I.wasmselectbuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
998
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
998
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
999
999
|
if (i)
|
|
1000
|
-
throw k = 0,
|
|
1001
|
-
return C = k, Q =
|
|
1000
|
+
throw k = 0, K = 0, U(D);
|
|
1001
|
+
return C = k, Q = K, L(k, K);
|
|
1002
1002
|
} finally {
|
|
1003
1003
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
1004
1004
|
}
|
|
@@ -1011,10 +1011,10 @@ class t {
|
|
|
1011
1011
|
union(A) {
|
|
1012
1012
|
try {
|
|
1013
1013
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1014
|
-
H(A,
|
|
1014
|
+
H(A, d), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1015
1015
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
1016
1016
|
if (B)
|
|
1017
|
-
throw
|
|
1017
|
+
throw U(Q);
|
|
1018
1018
|
return Z.__wrap(C);
|
|
1019
1019
|
} finally {
|
|
1020
1020
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1028,10 +1028,10 @@ class t {
|
|
|
1028
1028
|
union_all(A) {
|
|
1029
1029
|
try {
|
|
1030
1030
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1031
|
-
H(A,
|
|
1031
|
+
H(A, d), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1032
1032
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
1033
1033
|
if (B)
|
|
1034
|
-
throw
|
|
1034
|
+
throw U(Q);
|
|
1035
1035
|
return Z.__wrap(C);
|
|
1036
1036
|
} finally {
|
|
1037
1037
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1042,7 +1042,7 @@ class t {
|
|
|
1042
1042
|
* @param {WasmExpr} condition
|
|
1043
1043
|
*/
|
|
1044
1044
|
where_expr(A) {
|
|
1045
|
-
H(A,
|
|
1045
|
+
H(A, G), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Set the WHERE clause by parsing a raw SQL condition string.
|
|
@@ -1063,22 +1063,22 @@ class t {
|
|
|
1063
1063
|
H(C, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, i, C.__wbg_ptr);
|
|
1064
1064
|
var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
|
|
1065
1065
|
if (B)
|
|
1066
|
-
throw
|
|
1066
|
+
throw U(Q);
|
|
1067
1067
|
} finally {
|
|
1068
1068
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
Symbol.dispose && (
|
|
1072
|
+
Symbol.dispose && (d.prototype[Symbol.dispose] = d.prototype.free);
|
|
1073
1073
|
class Z {
|
|
1074
1074
|
static __wrap(A) {
|
|
1075
1075
|
A = A >>> 0;
|
|
1076
1076
|
const C = Object.create(Z.prototype);
|
|
1077
|
-
return C.__wbg_ptr = A,
|
|
1077
|
+
return C.__wbg_ptr = A, nA.register(C, C.__wbg_ptr, C), C;
|
|
1078
1078
|
}
|
|
1079
1079
|
__destroy_into_raw() {
|
|
1080
1080
|
const A = this.__wbg_ptr;
|
|
1081
|
-
return this.__wbg_ptr = 0,
|
|
1081
|
+
return this.__wbg_ptr = 0, nA.unregister(this), A;
|
|
1082
1082
|
}
|
|
1083
1083
|
free() {
|
|
1084
1084
|
const A = this.__destroy_into_raw();
|
|
@@ -1094,8 +1094,8 @@ class Z {
|
|
|
1094
1094
|
I.wasmsetopbuilder_build(B, this.__wbg_ptr);
|
|
1095
1095
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
1096
1096
|
if (Q)
|
|
1097
|
-
throw
|
|
1098
|
-
return
|
|
1097
|
+
throw U(C);
|
|
1098
|
+
return U(A);
|
|
1099
1099
|
} finally {
|
|
1100
1100
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1101
1101
|
}
|
|
@@ -1119,7 +1119,7 @@ class Z {
|
|
|
1119
1119
|
* @param {WasmExprArray} exprs
|
|
1120
1120
|
*/
|
|
1121
1121
|
order_by_exprs(A) {
|
|
1122
|
-
H(A,
|
|
1122
|
+
H(A, O), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
1123
1123
|
}
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Generate SQL string for the given dialect.
|
|
@@ -1131,10 +1131,10 @@ class Z {
|
|
|
1131
1131
|
try {
|
|
1132
1132
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
1133
1133
|
I.wasmsetopbuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
1134
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
1134
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
1135
1135
|
if (i)
|
|
1136
|
-
throw k = 0,
|
|
1137
|
-
return C = k, Q =
|
|
1136
|
+
throw k = 0, K = 0, U(D);
|
|
1137
|
+
return C = k, Q = K, L(k, K);
|
|
1138
1138
|
} finally {
|
|
1139
1139
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
1140
1140
|
}
|
|
@@ -1160,8 +1160,8 @@ class oA {
|
|
|
1160
1160
|
I.wasmupdatebuilder_build(B, this.__wbg_ptr);
|
|
1161
1161
|
var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
|
|
1162
1162
|
if (Q)
|
|
1163
|
-
throw
|
|
1164
|
-
return
|
|
1163
|
+
throw U(C);
|
|
1164
|
+
return U(A);
|
|
1165
1165
|
} finally {
|
|
1166
1166
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1167
1167
|
}
|
|
@@ -1189,7 +1189,7 @@ class oA {
|
|
|
1189
1189
|
*/
|
|
1190
1190
|
set(A, C) {
|
|
1191
1191
|
const Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
1192
|
-
H(C,
|
|
1192
|
+
H(C, G), I.wasmupdatebuilder_set(this.__wbg_ptr, Q, B, C.__wbg_ptr);
|
|
1193
1193
|
}
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Generate SQL string for the given dialect.
|
|
@@ -1201,10 +1201,10 @@ class oA {
|
|
|
1201
1201
|
try {
|
|
1202
1202
|
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N;
|
|
1203
1203
|
I.wasmupdatebuilder_to_sql(y, this.__wbg_ptr, h, R);
|
|
1204
|
-
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B,
|
|
1204
|
+
var B = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = B, K = E;
|
|
1205
1205
|
if (i)
|
|
1206
|
-
throw k = 0,
|
|
1207
|
-
return C = k, Q =
|
|
1206
|
+
throw k = 0, K = 0, U(D);
|
|
1207
|
+
return C = k, Q = K, L(k, K);
|
|
1208
1208
|
} finally {
|
|
1209
1209
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
1210
1210
|
}
|
|
@@ -1214,7 +1214,7 @@ class oA {
|
|
|
1214
1214
|
* @param {WasmExpr} condition
|
|
1215
1215
|
*/
|
|
1216
1216
|
where_expr(A) {
|
|
1217
|
-
H(A,
|
|
1217
|
+
H(A, G), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
|
|
@@ -1239,37 +1239,37 @@ class QA {
|
|
|
1239
1239
|
* @param {WasmExprArray} exprs
|
|
1240
1240
|
*/
|
|
1241
1241
|
order_by(A) {
|
|
1242
|
-
H(A,
|
|
1242
|
+
H(A, O), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1243
1243
|
}
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Set the PARTITION BY expressions.
|
|
1246
1246
|
* @param {WasmExprArray} exprs
|
|
1247
1247
|
*/
|
|
1248
1248
|
partition_by(A) {
|
|
1249
|
-
H(A,
|
|
1249
|
+
H(A, O), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
1253
|
-
function
|
|
1253
|
+
function FI(g, A, C) {
|
|
1254
1254
|
let Q, B;
|
|
1255
1255
|
try {
|
|
1256
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1257
|
-
I.annotate_types(i, k,
|
|
1256
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1257
|
+
I.annotate_types(i, k, K, y, h, R, q);
|
|
1258
1258
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1259
1259
|
return Q = E, B = D, L(E, D);
|
|
1260
1260
|
} finally {
|
|
1261
1261
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const Q = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = o(C, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1266
|
-
return
|
|
1264
|
+
function UI(g, A, C) {
|
|
1265
|
+
const Q = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = o(C, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = I.annotate_types_value(Q, B, E, D, i, k);
|
|
1266
|
+
return U(K);
|
|
1267
1267
|
}
|
|
1268
1268
|
function vA(g, A, C) {
|
|
1269
1269
|
let Q, B;
|
|
1270
1270
|
try {
|
|
1271
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1272
|
-
I.ast_add_where(i, k,
|
|
1271
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N;
|
|
1272
|
+
I.ast_add_where(i, k, K, y, h, C);
|
|
1273
1273
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1274
1274
|
return Q = E, B = D, L(E, D);
|
|
1275
1275
|
} finally {
|
|
@@ -1367,8 +1367,8 @@ function Qg(g) {
|
|
|
1367
1367
|
function Bg(g, A) {
|
|
1368
1368
|
let C, Q;
|
|
1369
1369
|
try {
|
|
1370
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1371
|
-
I.ast_qualify_columns(D, i, k,
|
|
1370
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1371
|
+
I.ast_qualify_columns(D, i, k, K, y);
|
|
1372
1372
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1373
1373
|
return C = B, Q = E, L(B, E);
|
|
1374
1374
|
} finally {
|
|
@@ -1378,8 +1378,8 @@ function Bg(g, A) {
|
|
|
1378
1378
|
function Eg(g, A) {
|
|
1379
1379
|
let C, Q;
|
|
1380
1380
|
try {
|
|
1381
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1382
|
-
I.ast_qualify_tables(D, i, k,
|
|
1381
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1382
|
+
I.ast_qualify_tables(D, i, k, K, y);
|
|
1383
1383
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1384
1384
|
return C = B, Q = E, L(B, E);
|
|
1385
1385
|
} finally {
|
|
@@ -1400,8 +1400,8 @@ function Dg(g) {
|
|
|
1400
1400
|
function wg(g, A) {
|
|
1401
1401
|
let C, Q;
|
|
1402
1402
|
try {
|
|
1403
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1404
|
-
I.ast_rename_columns(D, i, k,
|
|
1403
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1404
|
+
I.ast_rename_columns(D, i, k, K, y);
|
|
1405
1405
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1406
1406
|
return C = B, Q = E, L(B, E);
|
|
1407
1407
|
} finally {
|
|
@@ -1411,8 +1411,8 @@ function wg(g, A) {
|
|
|
1411
1411
|
function Mg(g, A) {
|
|
1412
1412
|
let C, Q;
|
|
1413
1413
|
try {
|
|
1414
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1415
|
-
I.ast_rename_tables(D, i, k,
|
|
1414
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1415
|
+
I.ast_rename_tables(D, i, k, K, y);
|
|
1416
1416
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1417
1417
|
return C = B, Q = E, L(B, E);
|
|
1418
1418
|
} finally {
|
|
@@ -1422,8 +1422,8 @@ function Mg(g, A) {
|
|
|
1422
1422
|
function ig(g, A, C) {
|
|
1423
1423
|
let Q, B;
|
|
1424
1424
|
try {
|
|
1425
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1426
|
-
I.ast_rename_tables_with_options(i, k,
|
|
1425
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1426
|
+
I.ast_rename_tables_with_options(i, k, K, y, h, R, q);
|
|
1427
1427
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1428
1428
|
return Q = E, B = D, L(E, D);
|
|
1429
1429
|
} finally {
|
|
@@ -1455,10 +1455,10 @@ function og(g, A) {
|
|
|
1455
1455
|
function kg(g, A, C, Q, B, E) {
|
|
1456
1456
|
let D, i;
|
|
1457
1457
|
try {
|
|
1458
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(g, I.__wbindgen_export, I.__wbindgen_export2), R = N, q = o(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1459
|
-
I.diff_sql(y, h, R, q,
|
|
1460
|
-
var k = M().getInt32(y + 0, !0),
|
|
1461
|
-
return D = k, i =
|
|
1458
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = o(g, I.__wbindgen_export, I.__wbindgen_export2), R = N, q = o(A, I.__wbindgen_export, I.__wbindgen_export2), P = N, l = o(C, I.__wbindgen_export, I.__wbindgen_export2), v = N;
|
|
1459
|
+
I.diff_sql(y, h, R, q, P, l, v, Q, B, E);
|
|
1460
|
+
var k = M().getInt32(y + 0, !0), K = M().getInt32(y + 4, !0);
|
|
1461
|
+
return D = k, i = K, L(k, K);
|
|
1462
1462
|
} finally {
|
|
1463
1463
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, i, 1);
|
|
1464
1464
|
}
|
|
@@ -1466,8 +1466,8 @@ function kg(g, A, C, Q, B, E) {
|
|
|
1466
1466
|
function JI(g, A) {
|
|
1467
1467
|
let C, Q;
|
|
1468
1468
|
try {
|
|
1469
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1470
|
-
I.format_sql(D, i, k,
|
|
1469
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1470
|
+
I.format_sql(D, i, k, K, y);
|
|
1471
1471
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1472
1472
|
return C = B, Q = E, L(B, E);
|
|
1473
1473
|
} finally {
|
|
@@ -1476,13 +1476,13 @@ function JI(g, A) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
function RI(g, A) {
|
|
1478
1478
|
const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = o(A, I.__wbindgen_export, I.__wbindgen_export2), E = N, D = I.format_sql_value(C, Q, B, E);
|
|
1479
|
-
return
|
|
1479
|
+
return U(D);
|
|
1480
1480
|
}
|
|
1481
1481
|
function sI(g, A, C) {
|
|
1482
1482
|
let Q, B;
|
|
1483
1483
|
try {
|
|
1484
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1485
|
-
I.format_sql_with_options(i, k,
|
|
1484
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1485
|
+
I.format_sql_with_options(i, k, K, y, h, R, q);
|
|
1486
1486
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1487
1487
|
return Q = E, B = D, L(E, D);
|
|
1488
1488
|
} finally {
|
|
@@ -1491,13 +1491,13 @@ function sI(g, A, C) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
function aI(g, A, C) {
|
|
1493
1493
|
const Q = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = I.format_sql_with_options_value(Q, B, E, D, s(C));
|
|
1494
|
-
return
|
|
1494
|
+
return U(i);
|
|
1495
1495
|
}
|
|
1496
1496
|
function qI(g, A) {
|
|
1497
1497
|
let C, Q;
|
|
1498
1498
|
try {
|
|
1499
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1500
|
-
I.generate(D, i, k,
|
|
1499
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1500
|
+
I.generate(D, i, k, K, y);
|
|
1501
1501
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1502
1502
|
return C = B, Q = E, L(B, E);
|
|
1503
1503
|
} finally {
|
|
@@ -1506,9 +1506,9 @@ function qI(g, A) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
function pI(g, A) {
|
|
1508
1508
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.generate_value(s(g), C, Q);
|
|
1509
|
-
return
|
|
1509
|
+
return U(B);
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function OI() {
|
|
1512
1512
|
let g, A;
|
|
1513
1513
|
try {
|
|
1514
1514
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1519,37 +1519,37 @@ function TI() {
|
|
|
1519
1519
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function TI() {
|
|
1523
1523
|
const g = I.get_dialects_value();
|
|
1524
|
-
return
|
|
1524
|
+
return U(g);
|
|
1525
1525
|
}
|
|
1526
1526
|
function yg(g, A, C, Q) {
|
|
1527
1527
|
let B, E;
|
|
1528
1528
|
try {
|
|
1529
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1530
|
-
I.lineage_sql(k,
|
|
1529
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), P = N;
|
|
1530
|
+
I.lineage_sql(k, K, y, h, R, q, P, Q);
|
|
1531
1531
|
var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
|
|
1532
1532
|
return B = D, E = i, L(D, i);
|
|
1533
1533
|
} finally {
|
|
1534
1534
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Kg(g, A, C, Q, B) {
|
|
1538
1538
|
let E, D;
|
|
1539
1539
|
try {
|
|
1540
|
-
const
|
|
1541
|
-
I.lineage_sql_with_schema(
|
|
1542
|
-
var i = M().getInt32(
|
|
1540
|
+
const K = I.__wbindgen_add_to_stack_pointer(-16), y = o(g, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, P = o(C, I.__wbindgen_export, I.__wbindgen_export2), l = N, v = o(Q, I.__wbindgen_export, I.__wbindgen_export2), SI = N;
|
|
1541
|
+
I.lineage_sql_with_schema(K, y, h, R, q, P, l, v, SI, B);
|
|
1542
|
+
var i = M().getInt32(K + 0, !0), k = M().getInt32(K + 4, !0);
|
|
1543
1543
|
return E = i, D = k, L(i, k);
|
|
1544
1544
|
} finally {
|
|
1545
1545
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Gg(g, A) {
|
|
1549
1549
|
let C, Q;
|
|
1550
1550
|
try {
|
|
1551
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1552
|
-
I.openlineage_column_lineage(D, i, k,
|
|
1551
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1552
|
+
I.openlineage_column_lineage(D, i, k, K, y);
|
|
1553
1553
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1554
1554
|
return C = B, Q = E, L(B, E);
|
|
1555
1555
|
} finally {
|
|
@@ -1559,8 +1559,8 @@ function Kg(g, A) {
|
|
|
1559
1559
|
function Yg(g, A) {
|
|
1560
1560
|
let C, Q;
|
|
1561
1561
|
try {
|
|
1562
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1563
|
-
I.openlineage_job_event(D, i, k,
|
|
1562
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1563
|
+
I.openlineage_job_event(D, i, k, K, y);
|
|
1564
1564
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1565
1565
|
return C = B, Q = E, L(B, E);
|
|
1566
1566
|
} finally {
|
|
@@ -1570,34 +1570,34 @@ function Yg(g, A) {
|
|
|
1570
1570
|
function Hg(g, A) {
|
|
1571
1571
|
let C, Q;
|
|
1572
1572
|
try {
|
|
1573
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1574
|
-
I.openlineage_run_event(D, i, k,
|
|
1573
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1574
|
+
I.openlineage_run_event(D, i, k, K, y);
|
|
1575
1575
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1576
1576
|
return C = B, Q = E, L(B, E);
|
|
1577
1577
|
} finally {
|
|
1578
1578
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function PI(g, A) {
|
|
1582
1582
|
let C, Q;
|
|
1583
1583
|
try {
|
|
1584
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1585
|
-
I.parse(D, i, k,
|
|
1584
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1585
|
+
I.parse(D, i, k, K, y);
|
|
1586
1586
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1587
1587
|
return C = B, Q = E, L(B, E);
|
|
1588
1588
|
} finally {
|
|
1589
1589
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function dI(g, A) {
|
|
1593
1593
|
const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = o(A, I.__wbindgen_export, I.__wbindgen_export2), E = N, D = I.parse_value(C, Q, B, E);
|
|
1594
|
-
return
|
|
1594
|
+
return U(D);
|
|
1595
1595
|
}
|
|
1596
1596
|
function hg(g, A) {
|
|
1597
1597
|
let C, Q;
|
|
1598
1598
|
try {
|
|
1599
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1600
|
-
I.plan(D, i, k,
|
|
1599
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1600
|
+
I.plan(D, i, k, K, y);
|
|
1601
1601
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1602
1602
|
return C = B, Q = E, L(B, E);
|
|
1603
1603
|
} finally {
|
|
@@ -1607,19 +1607,19 @@ function hg(g, A) {
|
|
|
1607
1607
|
function Sg(g, A, C) {
|
|
1608
1608
|
let Q, B;
|
|
1609
1609
|
try {
|
|
1610
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1611
|
-
I.source_tables(i, k,
|
|
1610
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1611
|
+
I.source_tables(i, k, K, y, h, R, q);
|
|
1612
1612
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1613
1613
|
return Q = E, B = D, L(E, D);
|
|
1614
1614
|
} finally {
|
|
1615
1615
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function tI(g, A) {
|
|
1619
1619
|
let C, Q;
|
|
1620
1620
|
try {
|
|
1621
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1622
|
-
I.tokenize(D, i, k,
|
|
1621
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1622
|
+
I.tokenize(D, i, k, K, y);
|
|
1623
1623
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1624
1624
|
return C = B, Q = E, L(B, E);
|
|
1625
1625
|
} finally {
|
|
@@ -1628,13 +1628,13 @@ function dI(g, A) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
function jI(g, A) {
|
|
1630
1630
|
const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = o(A, I.__wbindgen_export, I.__wbindgen_export2), E = N, D = I.tokenize_value(C, Q, B, E);
|
|
1631
|
-
return
|
|
1631
|
+
return U(D);
|
|
1632
1632
|
}
|
|
1633
1633
|
function zI(g, A, C) {
|
|
1634
1634
|
let Q, B;
|
|
1635
1635
|
try {
|
|
1636
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1637
|
-
I.transpile(i, k,
|
|
1636
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1637
|
+
I.transpile(i, k, K, y, h, R, q);
|
|
1638
1638
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1639
1639
|
return Q = E, B = D, L(E, D);
|
|
1640
1640
|
} finally {
|
|
@@ -1642,14 +1642,14 @@ function zI(g, A, C) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
function fI(g, A, C) {
|
|
1645
|
-
const Q = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = o(C, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1646
|
-
return
|
|
1645
|
+
const Q = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = o(C, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = I.transpile_value(Q, B, E, D, i, k);
|
|
1646
|
+
return U(K);
|
|
1647
1647
|
}
|
|
1648
1648
|
function xI(g, A) {
|
|
1649
1649
|
let C, Q;
|
|
1650
1650
|
try {
|
|
1651
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N,
|
|
1652
|
-
I.validate(D, i, k,
|
|
1651
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
|
|
1652
|
+
I.validate(D, i, k, K, y);
|
|
1653
1653
|
var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
|
|
1654
1654
|
return C = B, Q = E, L(B, E);
|
|
1655
1655
|
} finally {
|
|
@@ -1659,8 +1659,8 @@ function xI(g, A) {
|
|
|
1659
1659
|
function ZI(g, A, C) {
|
|
1660
1660
|
let Q, B;
|
|
1661
1661
|
try {
|
|
1662
|
-
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1663
|
-
I.validate_with_options(i, k,
|
|
1662
|
+
const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), h = N, R = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
|
|
1663
|
+
I.validate_with_options(i, k, K, y, h, R, q);
|
|
1664
1664
|
var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
|
|
1665
1665
|
return Q = E, B = D, L(E, D);
|
|
1666
1666
|
} finally {
|
|
@@ -1670,8 +1670,8 @@ function ZI(g, A, C) {
|
|
|
1670
1670
|
function cg(g, A, C, Q) {
|
|
1671
1671
|
let B, E;
|
|
1672
1672
|
try {
|
|
1673
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1674
|
-
I.validate_with_schema(k,
|
|
1673
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, h = o(A, I.__wbindgen_export, I.__wbindgen_export2), R = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), P = N, l = o(Q, I.__wbindgen_export, I.__wbindgen_export2), v = N;
|
|
1674
|
+
I.validate_with_schema(k, K, y, h, R, q, P, l, v);
|
|
1675
1675
|
var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
|
|
1676
1676
|
return B = D, E = i, L(D, i);
|
|
1677
1677
|
} finally {
|
|
@@ -1690,110 +1690,110 @@ function VI() {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
1692
|
function Lg(g, A) {
|
|
1693
|
-
H(g,
|
|
1693
|
+
H(g, G);
|
|
1694
1694
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasm_alias(g.__wbg_ptr, C, Q);
|
|
1695
|
-
return
|
|
1695
|
+
return G.__wrap(B);
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1698
|
-
H(g,
|
|
1697
|
+
function Fg(g, A) {
|
|
1698
|
+
H(g, G), H(A, G);
|
|
1699
1699
|
const C = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
|
|
1700
|
-
return
|
|
1700
|
+
return G.__wrap(C);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Ug(g) {
|
|
1703
1703
|
const A = I.wasm_boolean(g);
|
|
1704
|
-
return
|
|
1704
|
+
return G.__wrap(A);
|
|
1705
1705
|
}
|
|
1706
1706
|
function Jg(g) {
|
|
1707
|
-
H(g,
|
|
1707
|
+
H(g, G);
|
|
1708
1708
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1709
1709
|
return m.__wrap(A);
|
|
1710
1710
|
}
|
|
1711
1711
|
function Rg(g, A) {
|
|
1712
|
-
H(g,
|
|
1712
|
+
H(g, G);
|
|
1713
1713
|
const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), Q = N, B = I.wasm_cast(g.__wbg_ptr, C, Q);
|
|
1714
|
-
return
|
|
1714
|
+
return G.__wrap(B);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function FA(g) {
|
|
1717
1717
|
const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, Q = I.wasm_col(A, C);
|
|
1718
|
-
return
|
|
1718
|
+
return G.__wrap(Q);
|
|
1719
1719
|
}
|
|
1720
1720
|
function sg(g) {
|
|
1721
|
-
H(g,
|
|
1721
|
+
H(g, G);
|
|
1722
1722
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1723
|
-
return
|
|
1723
|
+
return G.__wrap(A);
|
|
1724
1724
|
}
|
|
1725
1725
|
function ag(g, A) {
|
|
1726
1726
|
const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N;
|
|
1727
|
-
H(A,
|
|
1727
|
+
H(A, G);
|
|
1728
1728
|
const B = I.wasm_extract(C, Q, A.__wbg_ptr);
|
|
1729
|
-
return
|
|
1729
|
+
return G.__wrap(B);
|
|
1730
1730
|
}
|
|
1731
1731
|
function qg(g, A) {
|
|
1732
1732
|
const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N;
|
|
1733
|
-
H(A,
|
|
1733
|
+
H(A, O);
|
|
1734
1734
|
const B = I.wasm_func(C, Q, A.__wbg_ptr);
|
|
1735
|
-
return
|
|
1735
|
+
return G.__wrap(B);
|
|
1736
1736
|
}
|
|
1737
1737
|
function kA(g) {
|
|
1738
1738
|
const A = I.wasm_lit(s(g));
|
|
1739
|
-
return
|
|
1739
|
+
return G.__wrap(A);
|
|
1740
1740
|
}
|
|
1741
1741
|
function pg(g) {
|
|
1742
|
-
H(g,
|
|
1742
|
+
H(g, G);
|
|
1743
1743
|
const A = I.wasm_not(g.__wbg_ptr);
|
|
1744
|
-
return
|
|
1744
|
+
return G.__wrap(A);
|
|
1745
1745
|
}
|
|
1746
1746
|
function yA() {
|
|
1747
1747
|
const g = I.wasm_null();
|
|
1748
|
-
return
|
|
1748
|
+
return G.__wrap(g);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
H(g,
|
|
1750
|
+
function Og(g, A) {
|
|
1751
|
+
H(g, G), H(A, G);
|
|
1752
1752
|
const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
|
|
1753
|
-
return
|
|
1753
|
+
return G.__wrap(C);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Tg(g) {
|
|
1756
1756
|
const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, Q = I.wasm_sql_expr(A, C);
|
|
1757
|
-
return
|
|
1757
|
+
return G.__wrap(Q);
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function Pg() {
|
|
1760
1760
|
const g = I.wasm_star();
|
|
1761
|
-
return
|
|
1761
|
+
return G.__wrap(g);
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function dg(g, A) {
|
|
1764
1764
|
try {
|
|
1765
1765
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1766
|
-
H(g,
|
|
1766
|
+
H(g, d);
|
|
1767
1767
|
const D = o(A, I.__wbindgen_export, I.__wbindgen_export2), i = N;
|
|
1768
1768
|
I.wasm_subquery(E, g.__wbg_ptr, D, i);
|
|
1769
1769
|
var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
|
|
1770
1770
|
if (B)
|
|
1771
|
-
throw
|
|
1772
|
-
return
|
|
1771
|
+
throw U(Q);
|
|
1772
|
+
return G.__wrap(C);
|
|
1773
1773
|
} finally {
|
|
1774
1774
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function tg(g) {
|
|
1778
1778
|
const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, Q = I.wasm_table(A, C);
|
|
1779
|
-
return
|
|
1779
|
+
return G.__wrap(Q);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function WI(g, A) {
|
|
1782
1782
|
const C = Error(L(g, A));
|
|
1783
1783
|
return s(C);
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function eI(g) {
|
|
1786
1786
|
return Number(c(g));
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function rI(g, A) {
|
|
1789
1789
|
const C = String(c(A)), Q = o(C, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
1790
1790
|
M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function lI(g, A) {
|
|
1793
1793
|
const C = c(A), Q = typeof C == "bigint" ? C : void 0;
|
|
1794
1794
|
M().setBigInt64(g + 8, b(Q) ? BigInt(0) : Q, !0), M().setInt32(g + 0, !b(Q), !0);
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function nI(g) {
|
|
1797
1797
|
const A = c(g), C = typeof A == "boolean" ? A : void 0;
|
|
1798
1798
|
return b(C) ? 16777215 : C ? 1 : 0;
|
|
1799
1799
|
}
|
|
@@ -1842,7 +1842,7 @@ function BC(g, A) {
|
|
|
1842
1842
|
throw new Error(L(g, A));
|
|
1843
1843
|
}
|
|
1844
1844
|
function EC() {
|
|
1845
|
-
return
|
|
1845
|
+
return KA(function(g, A) {
|
|
1846
1846
|
const C = c(g).call(c(A));
|
|
1847
1847
|
return s(C);
|
|
1848
1848
|
}, arguments);
|
|
@@ -1867,7 +1867,7 @@ function iC(g, A) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
1869
|
function NC() {
|
|
1870
|
-
return
|
|
1870
|
+
return KA(function(g) {
|
|
1871
1871
|
const A = String.fromCodePoint(g >>> 0);
|
|
1872
1872
|
return s(A);
|
|
1873
1873
|
}, arguments);
|
|
@@ -1877,7 +1877,7 @@ function oC(g, A) {
|
|
|
1877
1877
|
return s(C);
|
|
1878
1878
|
}
|
|
1879
1879
|
function kC() {
|
|
1880
|
-
return
|
|
1880
|
+
return KA(function(g, A) {
|
|
1881
1881
|
const C = Reflect.get(c(g), c(A));
|
|
1882
1882
|
return s(C);
|
|
1883
1883
|
}, arguments);
|
|
@@ -1886,7 +1886,7 @@ function yC(g, A) {
|
|
|
1886
1886
|
const C = c(g)[c(A)];
|
|
1887
1887
|
return s(C);
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function KC(g) {
|
|
1890
1890
|
let A;
|
|
1891
1891
|
try {
|
|
1892
1892
|
A = c(g) instanceof ArrayBuffer;
|
|
@@ -1895,7 +1895,7 @@ function GC(g) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
return A;
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function GC(g) {
|
|
1899
1899
|
let A;
|
|
1900
1900
|
try {
|
|
1901
1901
|
A = c(g) instanceof Map;
|
|
@@ -1928,10 +1928,10 @@ function cC(g) {
|
|
|
1928
1928
|
function LC(g) {
|
|
1929
1929
|
return c(g).length;
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function FC(g) {
|
|
1932
1932
|
return c(g).length;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function UC() {
|
|
1935
1935
|
const g = new Object();
|
|
1936
1936
|
return s(g);
|
|
1937
1937
|
}
|
|
@@ -1951,7 +1951,7 @@ function aC(g) {
|
|
|
1951
1951
|
return s(A);
|
|
1952
1952
|
}
|
|
1953
1953
|
function qC() {
|
|
1954
|
-
return
|
|
1954
|
+
return KA(function(g) {
|
|
1955
1955
|
const A = c(g).next();
|
|
1956
1956
|
return s(A);
|
|
1957
1957
|
}, arguments);
|
|
@@ -1960,20 +1960,20 @@ function pC(g) {
|
|
|
1960
1960
|
const A = c(g).next;
|
|
1961
1961
|
return s(A);
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1964
|
-
Uint8Array.prototype.set.call(
|
|
1963
|
+
function OC(g, A, C) {
|
|
1964
|
+
Uint8Array.prototype.set.call(rC(g, A), c(C));
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function TC(g, A, C) {
|
|
1967
1967
|
const Q = c(g).set(c(A), c(C));
|
|
1968
1968
|
return s(Q);
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1971
|
-
c(g)[
|
|
1970
|
+
function PC(g, A, C) {
|
|
1971
|
+
c(g)[U(A)] = U(C);
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1974
|
-
c(g)[A >>> 0] =
|
|
1973
|
+
function dC(g, A, C) {
|
|
1974
|
+
c(g)[A >>> 0] = U(C);
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function tC(g, A) {
|
|
1977
1977
|
const C = c(A).stack, Q = o(C, I.__wbindgen_export, I.__wbindgen_export2), B = N;
|
|
1978
1978
|
M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
|
|
1979
1979
|
}
|
|
@@ -1999,8 +1999,8 @@ function VC(g) {
|
|
|
1999
1999
|
const A = c(g);
|
|
2000
2000
|
return s(A);
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
|
|
2002
|
+
function WC(g) {
|
|
2003
|
+
U(g);
|
|
2004
2004
|
}
|
|
2005
2005
|
const xA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2006
2006
|
}, unregister: () => {
|
|
@@ -2010,15 +2010,15 @@ const xA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
2010
2010
|
}, unregister: () => {
|
|
2011
2011
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2012
2012
|
}, unregister: () => {
|
|
2013
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)),
|
|
2013
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2014
2014
|
}, unregister: () => {
|
|
2015
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)),
|
|
2015
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), eA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2016
2016
|
}, unregister: () => {
|
|
2017
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)),
|
|
2017
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2018
2018
|
}, unregister: () => {
|
|
2019
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)),
|
|
2019
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2020
2020
|
}, unregister: () => {
|
|
2021
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)),
|
|
2021
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2022
2022
|
}, unregister: () => {
|
|
2023
2023
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2024
2024
|
}, unregister: () => {
|
|
@@ -2071,10 +2071,10 @@ function cA(g) {
|
|
|
2071
2071
|
return g instanceof Error ? `${g.name}: ${g.message}
|
|
2072
2072
|
${g.stack}` : Q;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function eC(g) {
|
|
2075
2075
|
g < 132 || (x[g] = AA, AA = g);
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function rC(g, A) {
|
|
2078
2078
|
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
2079
2079
|
}
|
|
2080
2080
|
let u = null;
|
|
@@ -2082,7 +2082,7 @@ function M() {
|
|
|
2082
2082
|
return (u === null || u.buffer.detached === !0 || u.buffer.detached === void 0 && u.buffer !== I.memory.buffer) && (u = new DataView(I.memory.buffer)), u;
|
|
2083
2083
|
}
|
|
2084
2084
|
function L(g, A) {
|
|
2085
|
-
return g = g >>> 0,
|
|
2085
|
+
return g = g >>> 0, nC(g, A);
|
|
2086
2086
|
}
|
|
2087
2087
|
let EA = null;
|
|
2088
2088
|
function $() {
|
|
@@ -2091,7 +2091,7 @@ function $() {
|
|
|
2091
2091
|
function c(g) {
|
|
2092
2092
|
return x[g];
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function KA(g, A) {
|
|
2095
2095
|
try {
|
|
2096
2096
|
return g.apply(this, A);
|
|
2097
2097
|
} catch (C) {
|
|
@@ -2104,7 +2104,7 @@ let AA = x.length;
|
|
|
2104
2104
|
function b(g) {
|
|
2105
2105
|
return g == null;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2107
|
+
function UA(g, A) {
|
|
2108
2108
|
const C = A(g.length * 4, 4) >>> 0, Q = M();
|
|
2109
2109
|
for (let B = 0; B < g.length; B++)
|
|
2110
2110
|
Q.setUint32(C + 4 * B, s(g[B]), !0);
|
|
@@ -2130,16 +2130,16 @@ function o(g, A, C) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
return N = D, B;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function U(g) {
|
|
2134
2134
|
const A = c(g);
|
|
2135
|
-
return
|
|
2135
|
+
return eC(g), A;
|
|
2136
2136
|
}
|
|
2137
2137
|
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2138
2138
|
DA.decode();
|
|
2139
|
-
const
|
|
2139
|
+
const lC = 2146435072;
|
|
2140
2140
|
let SA = 0;
|
|
2141
|
-
function
|
|
2142
|
-
return SA += A, SA >=
|
|
2141
|
+
function nC(g, A) {
|
|
2142
|
+
return SA += A, SA >= lC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), SA = A), DA.decode($().subarray(g, g + A));
|
|
2143
2143
|
}
|
|
2144
2144
|
const gA = new TextEncoder();
|
|
2145
2145
|
"encodeInto" in gA || (gA.encodeInto = function(g, A) {
|
|
@@ -2155,31 +2155,31 @@ function mC(g) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
URL = globalThis.URL;
|
|
2157
2157
|
const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
2158
|
-
__wbindgen_object_drop_ref:
|
|
2158
|
+
__wbindgen_object_drop_ref: WC,
|
|
2159
2159
|
__wbindgen_object_clone_ref: VC,
|
|
2160
2160
|
__wbg_new_8a6f238a6ece86ea: RC,
|
|
2161
|
-
__wbg_stack_0ed75d68575b0f3c:
|
|
2161
|
+
__wbg_stack_0ed75d68575b0f3c: tC,
|
|
2162
2162
|
__wbg_error_7534b8e9a36f1ab4: iC,
|
|
2163
2163
|
__wbg_get_with_ref_key_1dc361bd10053bfe: yC,
|
|
2164
|
-
__wbg_set_3f1d0b984ed272ed:
|
|
2165
|
-
__wbg_String_8f0eb39a4a4c2f66:
|
|
2164
|
+
__wbg_set_3f1d0b984ed272ed: PC,
|
|
2165
|
+
__wbg_String_8f0eb39a4a4c2f66: rI,
|
|
2166
2166
|
__wbg_new_dd2b680c8bf6ae29: aC,
|
|
2167
2167
|
__wbg_length_32ed9a279acd054c: cC,
|
|
2168
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2168
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: OC,
|
|
2169
2169
|
__wbg_done_57b39ecd9addfe81: wC,
|
|
2170
2170
|
__wbg_value_0546255b415e96c1: jC,
|
|
2171
|
-
__wbg_instanceof_Map_53af74335dec57f4:
|
|
2171
|
+
__wbg_instanceof_Map_53af74335dec57f4: GC,
|
|
2172
2172
|
__wbg_instanceof_Uint8Array_9b9075935c74707c: YC,
|
|
2173
|
-
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:
|
|
2173
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: KC,
|
|
2174
2174
|
__wbg_new_dca287b076112a51: sC,
|
|
2175
|
-
__wbg_set_1eb0999cf5d27fc8:
|
|
2175
|
+
__wbg_set_1eb0999cf5d27fc8: TC,
|
|
2176
2176
|
__wbg_get_9b94d73e6221f75c: oC,
|
|
2177
2177
|
__wbg_new_3eb36ae241fe6f44: JC,
|
|
2178
|
-
__wbg_set_f43e577aea94465b:
|
|
2178
|
+
__wbg_set_f43e577aea94465b: dC,
|
|
2179
2179
|
__wbg_length_35a7bace40f36eac: LC,
|
|
2180
2180
|
__wbg_isArray_d314bb98fcf08331: HC,
|
|
2181
2181
|
__wbg_isSafeInteger_bfbc7332a9768d2a: hC,
|
|
2182
|
-
__wbg_new_361308b2356cecd0:
|
|
2182
|
+
__wbg_new_361308b2356cecd0: UC,
|
|
2183
2183
|
__wbg_entries_58c7934c745daac7: MC,
|
|
2184
2184
|
__wbg_iterator_6ff6560ca1568e55: SC,
|
|
2185
2185
|
__wbg_get_b3ed3ad4be2bc8ac: kC,
|
|
@@ -2188,29 +2188,29 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2188
2188
|
__wbg_next_3482f54c49e8af19: qC,
|
|
2189
2189
|
__wbg_codePointAt_bf59dbf74d8db275: DC,
|
|
2190
2190
|
__wbg_fromCodePoint_22365db7b7d6ac39: NC,
|
|
2191
|
-
__wbg_length_68dc7c5cf1b6d349:
|
|
2191
|
+
__wbg_length_68dc7c5cf1b6d349: FC,
|
|
2192
2192
|
__wbg___wbindgen_in_47fa6863be6f2f25: uI,
|
|
2193
2193
|
__wbg___wbindgen_throw_be289d5034ed271b: BC,
|
|
2194
2194
|
__wbg___wbindgen_is_null_ac34f5003991759a: XI,
|
|
2195
2195
|
__wbg___wbindgen_jsval_eq_11888390b0186270: gC,
|
|
2196
|
-
__wbg_Number_04624de7d0e8332d:
|
|
2197
|
-
__wbg_Error_8c4e43fe74559d73:
|
|
2196
|
+
__wbg_Number_04624de7d0e8332d: eI,
|
|
2197
|
+
__wbg_Error_8c4e43fe74559d73: WI,
|
|
2198
2198
|
__wbg___wbindgen_is_bigint_31b12575b56f32fc: bI,
|
|
2199
2199
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: _I,
|
|
2200
2200
|
__wbg___wbindgen_is_string_cd444516edc5b180: $I,
|
|
2201
2201
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: CC,
|
|
2202
2202
|
__wbg___wbindgen_string_get_72fb696202c56729: QC,
|
|
2203
|
-
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:
|
|
2203
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: nI,
|
|
2204
2204
|
__wbg___wbindgen_is_function_0095a73b8b156f76: vI,
|
|
2205
2205
|
__wbg___wbindgen_is_undefined_9e4d92534c42d778: AC,
|
|
2206
2206
|
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: IC,
|
|
2207
|
-
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:
|
|
2207
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: lI,
|
|
2208
2208
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: mI,
|
|
2209
2209
|
__wbindgen_cast_0000000000000001: zC,
|
|
2210
2210
|
__wbindgen_cast_0000000000000002: fC,
|
|
2211
2211
|
__wbindgen_cast_0000000000000003: xC,
|
|
2212
2212
|
__wbindgen_cast_0000000000000004: ZC
|
|
2213
|
-
} }, cI), uC = w.memory, bC = w.__wbg_wasmassignmentarray_free, vC = w.__wbg_wasmcasebuilder_free, XC = w.__wbg_wasmdeletebuilder_free, _C = w.__wbg_wasmexpr_free, $C = w.__wbg_wasmexprarray_free, AQ = w.__wbg_wasminsertbuilder_free, gQ = w.__wbg_wasmmergebuilder_free, IQ = w.__wbg_wasmselectbuilder_free, CQ = w.__wbg_wasmsetopbuilder_free, QQ = w.__wbg_wasmupdatebuilder_free, BQ = w.__wbg_wasmwindowdefbuilder_free, EQ = w.annotate_types, DQ = w.annotate_types_value, wQ = w.ast_add_where, MQ = w.ast_get_aggregate_functions, iQ = w.ast_get_column_names, NQ = w.ast_get_functions, oQ = w.ast_get_literals, kQ = w.ast_get_subqueries, yQ = w.ast_get_table_names,
|
|
2213
|
+
} }, cI), uC = w.memory, bC = w.__wbg_wasmassignmentarray_free, vC = w.__wbg_wasmcasebuilder_free, XC = w.__wbg_wasmdeletebuilder_free, _C = w.__wbg_wasmexpr_free, $C = w.__wbg_wasmexprarray_free, AQ = w.__wbg_wasminsertbuilder_free, gQ = w.__wbg_wasmmergebuilder_free, IQ = w.__wbg_wasmselectbuilder_free, CQ = w.__wbg_wasmsetopbuilder_free, QQ = w.__wbg_wasmupdatebuilder_free, BQ = w.__wbg_wasmwindowdefbuilder_free, EQ = w.annotate_types, DQ = w.annotate_types_value, wQ = w.ast_add_where, MQ = w.ast_get_aggregate_functions, iQ = w.ast_get_column_names, NQ = w.ast_get_functions, oQ = w.ast_get_literals, kQ = w.ast_get_subqueries, yQ = w.ast_get_table_names, KQ = w.ast_get_window_functions, GQ = w.ast_node_count, YQ = w.ast_qualify_columns, HQ = w.ast_qualify_tables, hQ = w.ast_remove_where, SQ = w.ast_rename_columns, cQ = w.ast_rename_tables, LQ = w.ast_rename_tables_with_options, FQ = w.ast_set_distinct, UQ = w.ast_set_limit, JQ = w.diff_sql, RQ = w.format_sql, sQ = w.format_sql_value, aQ = w.format_sql_with_options, qQ = w.format_sql_with_options_value, pQ = w.generate, OQ = w.generate_value, TQ = w.get_dialects, PQ = w.get_dialects_value, dQ = w.lineage_sql, tQ = w.lineage_sql_with_schema, jQ = w.openlineage_column_lineage, zQ = w.openlineage_job_event, fQ = w.openlineage_run_event, xQ = w.parse, ZQ = w.parse_value, VQ = w.plan, WQ = w.source_tables, eQ = w.tokenize, rQ = w.tokenize_value, lQ = w.transpile, nQ = w.transpile_value, mQ = w.validate, uQ = w.validate_with_options, bQ = w.validate_with_schema, vQ = w.version, XQ = w.wasm_alias, _Q = w.wasm_and, $Q = w.wasm_boolean, AB = w.wasm_case_of, gB = w.wasm_cast, IB = w.wasm_col, CB = w.wasm_count_distinct, QB = w.wasm_extract, BB = w.wasm_func, EB = w.wasm_lit, DB = w.wasm_not, wB = w.wasm_null, MB = w.wasm_or, iB = w.wasm_sql_expr, NB = w.wasm_star, oB = w.wasm_subquery, kB = w.wasm_table, yB = w.wasmassignmentarray_len, KB = w.wasmassignmentarray_new, GB = w.wasmassignmentarray_push, YB = w.wasmcasebuilder_build_expr, HB = w.wasmcasebuilder_else_, hB = w.wasmcasebuilder_new, SB = w.wasmcasebuilder_to_sql, cB = w.wasmcasebuilder_when, LB = w.wasmdeletebuilder_build, FB = w.wasmdeletebuilder_new, UB = w.wasmdeletebuilder_to_sql, JB = w.wasmdeletebuilder_where_expr, RB = w.wasmexpr_add, sB = w.wasmexpr_alias, aB = w.wasmexpr_and, qB = w.wasmexpr_asc, pB = w.wasmexpr_between, OB = w.wasmexpr_cast, TB = w.wasmexpr_desc, PB = w.wasmexpr_div, dB = w.wasmexpr_eq, tB = w.wasmexpr_gt, jB = w.wasmexpr_gte, zB = w.wasmexpr_ilike, fB = w.wasmexpr_in_list, xB = w.wasmexpr_is_not_null, ZB = w.wasmexpr_is_null, VB = w.wasmexpr_like, WB = w.wasmexpr_lt, eB = w.wasmexpr_lte, rB = w.wasmexpr_mul, lB = w.wasmexpr_neq, nB = w.wasmexpr_not, mB = w.wasmexpr_not_in, uB = w.wasmexpr_or, bB = w.wasmexpr_rlike, vB = w.wasmexpr_sub, XB = w.wasmexpr_to_json, _B = w.wasmexpr_to_sql, $B = w.wasmexpr_xor, AE = w.wasmexprarray_len, gE = w.wasmexprarray_push, IE = w.wasmexprarray_push_col, CE = w.wasmexprarray_push_float, QE = w.wasmexprarray_push_int, BE = w.wasmexprarray_push_star, EE = w.wasmexprarray_push_str, DE = w.wasminsertbuilder_build, wE = w.wasminsertbuilder_columns, ME = w.wasminsertbuilder_new, iE = w.wasminsertbuilder_query, NE = w.wasminsertbuilder_to_sql, oE = w.wasminsertbuilder_values, kE = w.wasmmergebuilder_build, yE = w.wasmmergebuilder_new, KE = w.wasmmergebuilder_to_sql, GE = w.wasmmergebuilder_using, YE = w.wasmmergebuilder_when_matched_delete, HE = w.wasmmergebuilder_when_matched_update, hE = w.wasmmergebuilder_when_not_matched_insert, SE = w.wasmselectbuilder_build, cE = w.wasmselectbuilder_cross_join, LE = w.wasmselectbuilder_ctas, FE = w.wasmselectbuilder_ctas_sql, UE = w.wasmselectbuilder_distinct, JE = w.wasmselectbuilder_except_, RE = w.wasmselectbuilder_for_update, sE = w.wasmselectbuilder_from, aE = w.wasmselectbuilder_from_expr, qE = w.wasmselectbuilder_group_by_cols, pE = w.wasmselectbuilder_having, OE = w.wasmselectbuilder_hint, TE = w.wasmselectbuilder_intersect, PE = w.wasmselectbuilder_join, dE = w.wasmselectbuilder_lateral_view, tE = w.wasmselectbuilder_left_join, jE = w.wasmselectbuilder_limit, zE = w.wasmselectbuilder_new, fE = w.wasmselectbuilder_offset, xE = w.wasmselectbuilder_order_by_exprs, ZE = w.wasmselectbuilder_qualify, VE = w.wasmselectbuilder_right_join, WE = w.wasmselectbuilder_select_col, eE = w.wasmselectbuilder_select_expr, rE = w.wasmselectbuilder_select_exprs, lE = w.wasmselectbuilder_select_star, nE = w.wasmselectbuilder_sort_by_exprs, mE = w.wasmselectbuilder_to_sql, uE = w.wasmselectbuilder_union, bE = w.wasmselectbuilder_union_all, vE = w.wasmselectbuilder_where_expr, XE = w.wasmselectbuilder_where_sql, _E = w.wasmselectbuilder_window, $E = w.wasmsetopbuilder_build, AD = w.wasmsetopbuilder_limit, gD = w.wasmsetopbuilder_offset, ID = w.wasmsetopbuilder_order_by_exprs, CD = w.wasmsetopbuilder_to_sql, QD = w.wasmupdatebuilder_build, BD = w.wasmupdatebuilder_from, ED = w.wasmupdatebuilder_new, DD = w.wasmupdatebuilder_set, wD = w.wasmupdatebuilder_to_sql, MD = w.wasmupdatebuilder_where_expr, iD = w.wasmwindowdefbuilder_new, ND = w.wasmwindowdefbuilder_order_by, oD = w.wasmwindowdefbuilder_partition_by, kD = w.wasmexprarray_new, yD = w.__wbindgen_export, KD = w.__wbindgen_export2, GD = w.__wbindgen_export3, YD = w.__wbindgen_export4, HD = w.__wbindgen_add_to_stack_pointer, hD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2214
2214
|
__proto__: null,
|
|
2215
2215
|
__wbg_wasmassignmentarray_free: bC,
|
|
2216
2216
|
__wbg_wasmcasebuilder_free: vC,
|
|
@@ -2225,8 +2225,8 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2225
2225
|
__wbg_wasmwindowdefbuilder_free: BQ,
|
|
2226
2226
|
__wbindgen_add_to_stack_pointer: HD,
|
|
2227
2227
|
__wbindgen_export: yD,
|
|
2228
|
-
__wbindgen_export2:
|
|
2229
|
-
__wbindgen_export3:
|
|
2228
|
+
__wbindgen_export2: KD,
|
|
2229
|
+
__wbindgen_export3: GD,
|
|
2230
2230
|
__wbindgen_export4: YD,
|
|
2231
2231
|
annotate_types: EQ,
|
|
2232
2232
|
annotate_types_value: DQ,
|
|
@@ -2237,27 +2237,27 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2237
2237
|
ast_get_literals: oQ,
|
|
2238
2238
|
ast_get_subqueries: kQ,
|
|
2239
2239
|
ast_get_table_names: yQ,
|
|
2240
|
-
ast_get_window_functions:
|
|
2241
|
-
ast_node_count:
|
|
2240
|
+
ast_get_window_functions: KQ,
|
|
2241
|
+
ast_node_count: GQ,
|
|
2242
2242
|
ast_qualify_columns: YQ,
|
|
2243
2243
|
ast_qualify_tables: HQ,
|
|
2244
2244
|
ast_remove_where: hQ,
|
|
2245
2245
|
ast_rename_columns: SQ,
|
|
2246
2246
|
ast_rename_tables: cQ,
|
|
2247
2247
|
ast_rename_tables_with_options: LQ,
|
|
2248
|
-
ast_set_distinct:
|
|
2249
|
-
ast_set_limit:
|
|
2248
|
+
ast_set_distinct: FQ,
|
|
2249
|
+
ast_set_limit: UQ,
|
|
2250
2250
|
diff_sql: JQ,
|
|
2251
2251
|
format_sql: RQ,
|
|
2252
2252
|
format_sql_value: sQ,
|
|
2253
2253
|
format_sql_with_options: aQ,
|
|
2254
2254
|
format_sql_with_options_value: qQ,
|
|
2255
2255
|
generate: pQ,
|
|
2256
|
-
generate_value:
|
|
2257
|
-
get_dialects:
|
|
2258
|
-
get_dialects_value:
|
|
2259
|
-
lineage_sql:
|
|
2260
|
-
lineage_sql_with_schema:
|
|
2256
|
+
generate_value: OQ,
|
|
2257
|
+
get_dialects: TQ,
|
|
2258
|
+
get_dialects_value: PQ,
|
|
2259
|
+
lineage_sql: dQ,
|
|
2260
|
+
lineage_sql_with_schema: tQ,
|
|
2261
2261
|
memory: uC,
|
|
2262
2262
|
openlineage_column_lineage: jQ,
|
|
2263
2263
|
openlineage_job_event: zQ,
|
|
@@ -2265,11 +2265,11 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2265
2265
|
parse: xQ,
|
|
2266
2266
|
parse_value: ZQ,
|
|
2267
2267
|
plan: VQ,
|
|
2268
|
-
source_tables:
|
|
2269
|
-
tokenize:
|
|
2270
|
-
tokenize_value:
|
|
2271
|
-
transpile:
|
|
2272
|
-
transpile_value:
|
|
2268
|
+
source_tables: WQ,
|
|
2269
|
+
tokenize: eQ,
|
|
2270
|
+
tokenize_value: rQ,
|
|
2271
|
+
transpile: lQ,
|
|
2272
|
+
transpile_value: nQ,
|
|
2273
2273
|
validate: mQ,
|
|
2274
2274
|
validate_with_options: uQ,
|
|
2275
2275
|
validate_with_schema: bQ,
|
|
@@ -2292,38 +2292,38 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2292
2292
|
wasm_subquery: oB,
|
|
2293
2293
|
wasm_table: kB,
|
|
2294
2294
|
wasmassignmentarray_len: yB,
|
|
2295
|
-
wasmassignmentarray_new:
|
|
2296
|
-
wasmassignmentarray_push:
|
|
2295
|
+
wasmassignmentarray_new: KB,
|
|
2296
|
+
wasmassignmentarray_push: GB,
|
|
2297
2297
|
wasmcasebuilder_build_expr: YB,
|
|
2298
2298
|
wasmcasebuilder_else_: HB,
|
|
2299
2299
|
wasmcasebuilder_new: hB,
|
|
2300
2300
|
wasmcasebuilder_to_sql: SB,
|
|
2301
2301
|
wasmcasebuilder_when: cB,
|
|
2302
2302
|
wasmdeletebuilder_build: LB,
|
|
2303
|
-
wasmdeletebuilder_new:
|
|
2304
|
-
wasmdeletebuilder_to_sql:
|
|
2303
|
+
wasmdeletebuilder_new: FB,
|
|
2304
|
+
wasmdeletebuilder_to_sql: UB,
|
|
2305
2305
|
wasmdeletebuilder_where_expr: JB,
|
|
2306
2306
|
wasmexpr_add: RB,
|
|
2307
2307
|
wasmexpr_alias: sB,
|
|
2308
2308
|
wasmexpr_and: aB,
|
|
2309
2309
|
wasmexpr_asc: qB,
|
|
2310
2310
|
wasmexpr_between: pB,
|
|
2311
|
-
wasmexpr_cast:
|
|
2312
|
-
wasmexpr_desc:
|
|
2313
|
-
wasmexpr_div:
|
|
2314
|
-
wasmexpr_eq:
|
|
2315
|
-
wasmexpr_gt:
|
|
2311
|
+
wasmexpr_cast: OB,
|
|
2312
|
+
wasmexpr_desc: TB,
|
|
2313
|
+
wasmexpr_div: PB,
|
|
2314
|
+
wasmexpr_eq: dB,
|
|
2315
|
+
wasmexpr_gt: tB,
|
|
2316
2316
|
wasmexpr_gte: jB,
|
|
2317
2317
|
wasmexpr_ilike: zB,
|
|
2318
2318
|
wasmexpr_in_list: fB,
|
|
2319
2319
|
wasmexpr_is_not_null: xB,
|
|
2320
2320
|
wasmexpr_is_null: ZB,
|
|
2321
2321
|
wasmexpr_like: VB,
|
|
2322
|
-
wasmexpr_lt:
|
|
2323
|
-
wasmexpr_lte:
|
|
2324
|
-
wasmexpr_mul:
|
|
2325
|
-
wasmexpr_neq:
|
|
2326
|
-
wasmexpr_not:
|
|
2322
|
+
wasmexpr_lt: WB,
|
|
2323
|
+
wasmexpr_lte: eB,
|
|
2324
|
+
wasmexpr_mul: rB,
|
|
2325
|
+
wasmexpr_neq: lB,
|
|
2326
|
+
wasmexpr_not: nB,
|
|
2327
2327
|
wasmexpr_not_in: mB,
|
|
2328
2328
|
wasmexpr_or: uB,
|
|
2329
2329
|
wasmexpr_rlike: bB,
|
|
@@ -2347,38 +2347,38 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2347
2347
|
wasminsertbuilder_values: oE,
|
|
2348
2348
|
wasmmergebuilder_build: kE,
|
|
2349
2349
|
wasmmergebuilder_new: yE,
|
|
2350
|
-
wasmmergebuilder_to_sql:
|
|
2351
|
-
wasmmergebuilder_using:
|
|
2350
|
+
wasmmergebuilder_to_sql: KE,
|
|
2351
|
+
wasmmergebuilder_using: GE,
|
|
2352
2352
|
wasmmergebuilder_when_matched_delete: YE,
|
|
2353
2353
|
wasmmergebuilder_when_matched_update: HE,
|
|
2354
2354
|
wasmmergebuilder_when_not_matched_insert: hE,
|
|
2355
2355
|
wasmselectbuilder_build: SE,
|
|
2356
2356
|
wasmselectbuilder_cross_join: cE,
|
|
2357
2357
|
wasmselectbuilder_ctas: LE,
|
|
2358
|
-
wasmselectbuilder_ctas_sql:
|
|
2359
|
-
wasmselectbuilder_distinct:
|
|
2358
|
+
wasmselectbuilder_ctas_sql: FE,
|
|
2359
|
+
wasmselectbuilder_distinct: UE,
|
|
2360
2360
|
wasmselectbuilder_except_: JE,
|
|
2361
2361
|
wasmselectbuilder_for_update: RE,
|
|
2362
2362
|
wasmselectbuilder_from: sE,
|
|
2363
2363
|
wasmselectbuilder_from_expr: aE,
|
|
2364
2364
|
wasmselectbuilder_group_by_cols: qE,
|
|
2365
2365
|
wasmselectbuilder_having: pE,
|
|
2366
|
-
wasmselectbuilder_hint:
|
|
2367
|
-
wasmselectbuilder_intersect:
|
|
2368
|
-
wasmselectbuilder_join:
|
|
2369
|
-
wasmselectbuilder_lateral_view:
|
|
2370
|
-
wasmselectbuilder_left_join:
|
|
2366
|
+
wasmselectbuilder_hint: OE,
|
|
2367
|
+
wasmselectbuilder_intersect: TE,
|
|
2368
|
+
wasmselectbuilder_join: PE,
|
|
2369
|
+
wasmselectbuilder_lateral_view: dE,
|
|
2370
|
+
wasmselectbuilder_left_join: tE,
|
|
2371
2371
|
wasmselectbuilder_limit: jE,
|
|
2372
2372
|
wasmselectbuilder_new: zE,
|
|
2373
2373
|
wasmselectbuilder_offset: fE,
|
|
2374
2374
|
wasmselectbuilder_order_by_exprs: xE,
|
|
2375
2375
|
wasmselectbuilder_qualify: ZE,
|
|
2376
2376
|
wasmselectbuilder_right_join: VE,
|
|
2377
|
-
wasmselectbuilder_select_col:
|
|
2378
|
-
wasmselectbuilder_select_expr:
|
|
2379
|
-
wasmselectbuilder_select_exprs:
|
|
2380
|
-
wasmselectbuilder_select_star:
|
|
2381
|
-
wasmselectbuilder_sort_by_exprs:
|
|
2377
|
+
wasmselectbuilder_select_col: WE,
|
|
2378
|
+
wasmselectbuilder_select_expr: eE,
|
|
2379
|
+
wasmselectbuilder_select_exprs: rE,
|
|
2380
|
+
wasmselectbuilder_select_star: lE,
|
|
2381
|
+
wasmselectbuilder_sort_by_exprs: nE,
|
|
2382
2382
|
wasmselectbuilder_to_sql: mE,
|
|
2383
2383
|
wasmselectbuilder_union: uE,
|
|
2384
2384
|
wasmselectbuilder_union_all: bE,
|
|
@@ -2406,16 +2406,16 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2406
2406
|
WasmAssignmentArray: CA,
|
|
2407
2407
|
WasmCaseBuilder: m,
|
|
2408
2408
|
WasmDeleteBuilder: MA,
|
|
2409
|
-
WasmExpr:
|
|
2410
|
-
WasmExprArray:
|
|
2409
|
+
WasmExpr: G,
|
|
2410
|
+
WasmExprArray: O,
|
|
2411
2411
|
WasmInsertBuilder: iA,
|
|
2412
2412
|
WasmMergeBuilder: NA,
|
|
2413
|
-
WasmSelectBuilder:
|
|
2413
|
+
WasmSelectBuilder: d,
|
|
2414
2414
|
WasmSetOpBuilder: Z,
|
|
2415
2415
|
WasmUpdateBuilder: oA,
|
|
2416
2416
|
WasmWindowDefBuilder: QA,
|
|
2417
|
-
annotate_types:
|
|
2418
|
-
annotate_types_value:
|
|
2417
|
+
annotate_types: FI,
|
|
2418
|
+
annotate_types_value: UI,
|
|
2419
2419
|
ast_add_where: vA,
|
|
2420
2420
|
ast_get_aggregate_functions: XA,
|
|
2421
2421
|
ast_get_column_names: _A,
|
|
@@ -2440,18 +2440,18 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2440
2440
|
format_sql_with_options_value: aI,
|
|
2441
2441
|
generate: qI,
|
|
2442
2442
|
generate_value: pI,
|
|
2443
|
-
get_dialects:
|
|
2444
|
-
get_dialects_value:
|
|
2443
|
+
get_dialects: OI,
|
|
2444
|
+
get_dialects_value: TI,
|
|
2445
2445
|
lineage_sql: yg,
|
|
2446
|
-
lineage_sql_with_schema:
|
|
2447
|
-
openlineage_column_lineage:
|
|
2446
|
+
lineage_sql_with_schema: Kg,
|
|
2447
|
+
openlineage_column_lineage: Gg,
|
|
2448
2448
|
openlineage_job_event: Yg,
|
|
2449
2449
|
openlineage_run_event: Hg,
|
|
2450
|
-
parse:
|
|
2451
|
-
parse_value:
|
|
2450
|
+
parse: PI,
|
|
2451
|
+
parse_value: dI,
|
|
2452
2452
|
plan: hg,
|
|
2453
2453
|
source_tables: Sg,
|
|
2454
|
-
tokenize:
|
|
2454
|
+
tokenize: tI,
|
|
2455
2455
|
tokenize_value: jI,
|
|
2456
2456
|
transpile: zI,
|
|
2457
2457
|
transpile_value: fI,
|
|
@@ -2460,27 +2460,27 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2460
2460
|
validate_with_schema: cg,
|
|
2461
2461
|
version: VI,
|
|
2462
2462
|
wasm_alias: Lg,
|
|
2463
|
-
wasm_and:
|
|
2464
|
-
wasm_boolean:
|
|
2463
|
+
wasm_and: Fg,
|
|
2464
|
+
wasm_boolean: Ug,
|
|
2465
2465
|
wasm_case_of: Jg,
|
|
2466
2466
|
wasm_cast: Rg,
|
|
2467
|
-
wasm_col:
|
|
2467
|
+
wasm_col: FA,
|
|
2468
2468
|
wasm_count_distinct: sg,
|
|
2469
2469
|
wasm_extract: ag,
|
|
2470
2470
|
wasm_func: qg,
|
|
2471
2471
|
wasm_lit: kA,
|
|
2472
2472
|
wasm_not: pg,
|
|
2473
2473
|
wasm_null: yA,
|
|
2474
|
-
wasm_or:
|
|
2475
|
-
wasm_sql_expr:
|
|
2476
|
-
wasm_star:
|
|
2477
|
-
wasm_subquery:
|
|
2478
|
-
wasm_table:
|
|
2474
|
+
wasm_or: Og,
|
|
2475
|
+
wasm_sql_expr: Tg,
|
|
2476
|
+
wasm_star: Pg,
|
|
2477
|
+
wasm_subquery: dg,
|
|
2478
|
+
wasm_table: tg
|
|
2479
2479
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2480
2480
|
function p(g) {
|
|
2481
2481
|
return Object.keys(g)[0];
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function T(g) {
|
|
2484
2484
|
const A = Object.keys(g)[0];
|
|
2485
2485
|
return g[A];
|
|
2486
2486
|
}
|
|
@@ -2496,7 +2496,7 @@ function z(g, A) {
|
|
|
2496
2496
|
return { [g]: A };
|
|
2497
2497
|
}
|
|
2498
2498
|
function zg(g) {
|
|
2499
|
-
const A =
|
|
2499
|
+
const A = T(g);
|
|
2500
2500
|
if (A && typeof A == "object" && "inferred_type" in A) {
|
|
2501
2501
|
const C = A.inferred_type;
|
|
2502
2502
|
if (C != null)
|
|
@@ -2506,20 +2506,20 @@ function zg(g) {
|
|
|
2506
2506
|
function Y(g) {
|
|
2507
2507
|
return (A) => g in A;
|
|
2508
2508
|
}
|
|
2509
|
-
const fg = Y("select"), SD = Y("insert"), cD = Y("update"), LD = Y("delete"),
|
|
2510
|
-
function
|
|
2509
|
+
const fg = Y("select"), SD = Y("insert"), cD = Y("update"), LD = Y("delete"), FD = Y("union"), UD = Y("intersect"), JD = Y("except"), RD = Y("subquery"), sD = Y("identifier"), xg = Y("column"), aD = Y("table"), qD = Y("star"), Zg = Y("literal"), pD = Y("boolean"), OD = Y("null"), TD = Y("and"), PD = Y("or"), dD = Y("not"), tD = Y("eq"), jD = Y("neq"), zD = Y("lt"), fD = Y("lte"), xD = Y("gt"), ZD = Y("gte"), VD = Y("like"), WD = Y("i_like"), eD = Y("add"), rD = Y("sub"), lD = Y("mul"), nD = Y("div"), mD = Y("mod"), uD = Y("concat"), bD = Y("in"), vD = Y("between"), XD = Y("is_null"), _D = Y("exists"), Vg = Y("function"), $D = Y("aggregate_function"), Aw = Y("window_function"), gw = Y("count"), Iw = Y("sum"), Cw = Y("avg"), Qw = Y("min"), Bw = Y("max"), Ew = Y("coalesce"), Dw = Y("null_if"), ww = Y("cast"), Mw = Y("try_cast"), iw = Y("safe_cast"), Nw = Y("case"), ow = Y("from"), kw = Y("join"), yw = Y("where"), Kw = Y("group_by"), Gw = Y("having"), Yw = Y("order_by"), Hw = Y("limit"), hw = Y("offset"), Sw = Y("with"), cw = Y("cte"), Lw = Y("alias"), Fw = Y("paren"), Uw = Y("ordered"), Jw = Y("create_table"), Rw = Y("drop_table"), sw = Y("alter_table"), aw = Y("create_index"), qw = Y("drop_index"), pw = Y("create_view"), Ow = Y("drop_view");
|
|
2510
|
+
function Tw(g) {
|
|
2511
2511
|
const A = p(g);
|
|
2512
2512
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function Pw(g) {
|
|
2515
2515
|
const A = p(g);
|
|
2516
2516
|
return A === "union" || A === "intersect" || A === "except";
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function dw(g) {
|
|
2519
2519
|
const A = p(g);
|
|
2520
2520
|
return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
|
|
2521
2521
|
}
|
|
2522
|
-
function
|
|
2522
|
+
function tw(g) {
|
|
2523
2523
|
const A = p(g);
|
|
2524
2524
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2525
2525
|
}
|
|
@@ -2534,11 +2534,11 @@ function zw(g) {
|
|
|
2534
2534
|
function f(g) {
|
|
2535
2535
|
return JSON.stringify(g);
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function e(g) {
|
|
2538
2538
|
const A = JSON.parse(g);
|
|
2539
2539
|
return A.success ? JSON.parse(A.ast) : null;
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function Wg(g, A, C) {
|
|
2542
2542
|
if (g == null) return g;
|
|
2543
2543
|
if (Array.isArray(g))
|
|
2544
2544
|
return g.length > 0 && V(g[0]) ? g.map(
|
|
@@ -2550,7 +2550,7 @@ function lg(g, A, C) {
|
|
|
2550
2550
|
const B = { ...g };
|
|
2551
2551
|
let E = !1;
|
|
2552
2552
|
for (const [D, i] of Object.entries(B)) {
|
|
2553
|
-
const k =
|
|
2553
|
+
const k = Wg(i, A, C);
|
|
2554
2554
|
k !== i && (B[D] = k, E = !0);
|
|
2555
2555
|
}
|
|
2556
2556
|
return E ? B : g;
|
|
@@ -2572,15 +2572,15 @@ function wA(g, A, C, Q, B) {
|
|
|
2572
2572
|
return E;
|
|
2573
2573
|
h !== void 0 && (E = h);
|
|
2574
2574
|
}
|
|
2575
|
-
const k = p(E),
|
|
2575
|
+
const k = p(E), K = T(E);
|
|
2576
2576
|
let y;
|
|
2577
|
-
if (
|
|
2578
|
-
y = z(k,
|
|
2577
|
+
if (K == null)
|
|
2578
|
+
y = z(k, K);
|
|
2579
2579
|
else {
|
|
2580
|
-
const h = { ...
|
|
2580
|
+
const h = { ...K };
|
|
2581
2581
|
for (const [R, q] of Object.entries(h)) {
|
|
2582
|
-
const
|
|
2583
|
-
|
|
2582
|
+
const P = Wg(q, A, E);
|
|
2583
|
+
P !== q && (h[R] = P);
|
|
2584
2584
|
}
|
|
2585
2585
|
y = z(k, h);
|
|
2586
2586
|
}
|
|
@@ -2591,11 +2591,11 @@ function wA(g, A, C, Q, B) {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
return y;
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function GA(g, A) {
|
|
2595
2595
|
return wA(g, A, null, null, null);
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2597
|
+
function eg(g, A, C) {
|
|
2598
|
+
return GA(g, {
|
|
2599
2599
|
enter: (Q, B) => {
|
|
2600
2600
|
if (A(Q, B))
|
|
2601
2601
|
return typeof C == "function" ? C(Q) : C;
|
|
@@ -2603,19 +2603,19 @@ function Wg(g, A, C) {
|
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
2605
2605
|
function fw(g, A, C) {
|
|
2606
|
-
return
|
|
2606
|
+
return eg(
|
|
2607
2607
|
g,
|
|
2608
2608
|
(Q) => p(Q) === A,
|
|
2609
2609
|
typeof C == "function" ? (Q) => C(Q) : C
|
|
2610
2610
|
);
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2613
|
-
return
|
|
2612
|
+
function rg(g, A) {
|
|
2613
|
+
return e(
|
|
2614
2614
|
wg(f(g), JSON.stringify(A))
|
|
2615
2615
|
) ?? g;
|
|
2616
2616
|
}
|
|
2617
2617
|
function xw(g, A, C) {
|
|
2618
|
-
return
|
|
2618
|
+
return e(
|
|
2619
2619
|
C ? ig(
|
|
2620
2620
|
f(g),
|
|
2621
2621
|
JSON.stringify(A),
|
|
@@ -2624,47 +2624,47 @@ function xw(g, A, C) {
|
|
|
2624
2624
|
) ?? g;
|
|
2625
2625
|
}
|
|
2626
2626
|
function Zw(g, A) {
|
|
2627
|
-
return
|
|
2627
|
+
return e(
|
|
2628
2628
|
Bg(f(g), A)
|
|
2629
2629
|
) ?? g;
|
|
2630
2630
|
}
|
|
2631
2631
|
function Vw(g, A = {}) {
|
|
2632
|
-
return
|
|
2632
|
+
return e(
|
|
2633
2633
|
Eg(f(g), JSON.stringify(A))
|
|
2634
2634
|
) ?? g;
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
return
|
|
2636
|
+
function Ww(g, A, C = "and") {
|
|
2637
|
+
return e(
|
|
2638
2638
|
vA(f(g), f(A), C === "or")
|
|
2639
2639
|
) ?? g;
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2642
|
-
return
|
|
2641
|
+
function ew(g) {
|
|
2642
|
+
return e(Dg(f(g))) ?? g;
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function rw(g, ...A) {
|
|
2645
2645
|
if (p(g) !== "select")
|
|
2646
2646
|
return g;
|
|
2647
|
-
const C =
|
|
2647
|
+
const C = T(g);
|
|
2648
2648
|
return z("select", {
|
|
2649
2649
|
...C,
|
|
2650
2650
|
expressions: [...C.expressions, ...A]
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function lw(g, A) {
|
|
2654
2654
|
if (p(g) !== "select")
|
|
2655
2655
|
return g;
|
|
2656
|
-
const C =
|
|
2656
|
+
const C = T(g);
|
|
2657
2657
|
return z("select", {
|
|
2658
2658
|
...C,
|
|
2659
2659
|
expressions: C.expressions.filter((Q) => !A(Q))
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function nw(g, A) {
|
|
2663
2663
|
if (typeof A == "number")
|
|
2664
|
-
return
|
|
2664
|
+
return e(og(f(g), A)) ?? g;
|
|
2665
2665
|
if (p(g) !== "select")
|
|
2666
2666
|
return g;
|
|
2667
|
-
const C =
|
|
2667
|
+
const C = T(g);
|
|
2668
2668
|
return z("select", {
|
|
2669
2669
|
...C,
|
|
2670
2670
|
limit: { this: A }
|
|
@@ -2673,7 +2673,7 @@ function rw(g, A) {
|
|
|
2673
2673
|
function mw(g, A) {
|
|
2674
2674
|
if (p(g) !== "select")
|
|
2675
2675
|
return g;
|
|
2676
|
-
const C =
|
|
2676
|
+
const C = T(g), Q = typeof A == "number" ? z("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2677
2677
|
return z("select", {
|
|
2678
2678
|
...C,
|
|
2679
2679
|
offset: { this: Q }
|
|
@@ -2682,7 +2682,7 @@ function mw(g, A) {
|
|
|
2682
2682
|
function uw(g) {
|
|
2683
2683
|
if (p(g) !== "select")
|
|
2684
2684
|
return g;
|
|
2685
|
-
const A =
|
|
2685
|
+
const A = T(g);
|
|
2686
2686
|
return z("select", {
|
|
2687
2687
|
...A,
|
|
2688
2688
|
limit: null,
|
|
@@ -2690,12 +2690,12 @@ function uw(g) {
|
|
|
2690
2690
|
});
|
|
2691
2691
|
}
|
|
2692
2692
|
function bw(g, A = !0) {
|
|
2693
|
-
return
|
|
2693
|
+
return e(Ng(f(g), A)) ?? g;
|
|
2694
2694
|
}
|
|
2695
2695
|
function vw(g) {
|
|
2696
|
-
return
|
|
2696
|
+
return GA(g, {});
|
|
2697
2697
|
}
|
|
2698
|
-
function
|
|
2698
|
+
function lg(g, A, C) {
|
|
2699
2699
|
if (g == null) return g;
|
|
2700
2700
|
if (Array.isArray(g))
|
|
2701
2701
|
return g.length > 0 && V(g[0]) ? g.filter((Q) => !A(Q, C)).map((Q) => LA(Q, A)) : g;
|
|
@@ -2705,7 +2705,7 @@ function ng(g, A, C) {
|
|
|
2705
2705
|
const B = { ...g };
|
|
2706
2706
|
let E = !1;
|
|
2707
2707
|
for (const [D, i] of Object.entries(B)) {
|
|
2708
|
-
const k =
|
|
2708
|
+
const k = lg(i, A, C);
|
|
2709
2709
|
k !== i && (B[D] = k, E = !0);
|
|
2710
2710
|
}
|
|
2711
2711
|
return E ? B : g;
|
|
@@ -2713,17 +2713,17 @@ function ng(g, A, C) {
|
|
|
2713
2713
|
return g;
|
|
2714
2714
|
}
|
|
2715
2715
|
function LA(g, A) {
|
|
2716
|
-
const C = p(g), B = { ...
|
|
2716
|
+
const C = p(g), B = { ...T(g) };
|
|
2717
2717
|
for (const [E, D] of Object.entries(B)) {
|
|
2718
|
-
const i =
|
|
2718
|
+
const i = lg(D, A, g);
|
|
2719
2719
|
i !== D && (B[E] = i);
|
|
2720
2720
|
}
|
|
2721
2721
|
return z(C, B);
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function r(g) {
|
|
2724
2724
|
return JSON.stringify(g);
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function ng(g, A, C) {
|
|
2727
2727
|
if (g != null) {
|
|
2728
2728
|
if (Array.isArray(g)) {
|
|
2729
2729
|
if (g.length > 0 && V(g[0]))
|
|
@@ -2740,14 +2740,14 @@ function rg(g, A, C) {
|
|
|
2740
2740
|
for (const [, Q] of Object.entries(
|
|
2741
2741
|
g
|
|
2742
2742
|
))
|
|
2743
|
-
|
|
2743
|
+
ng(Q, A, C);
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
2746
|
function mg(g) {
|
|
2747
|
-
const A = [], C =
|
|
2747
|
+
const A = [], C = T(g);
|
|
2748
2748
|
if (!C || typeof C != "object") return A;
|
|
2749
2749
|
for (const [Q, B] of Object.entries(C))
|
|
2750
|
-
|
|
2750
|
+
ng(B, Q, A);
|
|
2751
2751
|
return A;
|
|
2752
2752
|
}
|
|
2753
2753
|
function j(g, A, C = null, Q = null, B = null) {
|
|
@@ -2756,8 +2756,8 @@ function j(g, A, C = null, Q = null, B = null) {
|
|
|
2756
2756
|
D && D(g, C, Q, B);
|
|
2757
2757
|
const i = mg(g);
|
|
2758
2758
|
for (const k of i)
|
|
2759
|
-
Array.isArray(k.value) ? k.value.forEach((
|
|
2760
|
-
j(
|
|
2759
|
+
Array.isArray(k.value) ? k.value.forEach((K, y) => {
|
|
2760
|
+
j(K, A, g, k.key, y);
|
|
2761
2761
|
}) : j(k.value, A, g, k.key, null);
|
|
2762
2762
|
A.leave && A.leave(g, C, Q, B);
|
|
2763
2763
|
}
|
|
@@ -2804,31 +2804,31 @@ function gM(g) {
|
|
|
2804
2804
|
return BA(g, "identifier");
|
|
2805
2805
|
}
|
|
2806
2806
|
function IM(g) {
|
|
2807
|
-
const A = JSON.parse($A(
|
|
2807
|
+
const A = JSON.parse($A(r(g)));
|
|
2808
2808
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2809
2809
|
}
|
|
2810
2810
|
function IA(g) {
|
|
2811
|
-
const A = JSON.parse(XA(
|
|
2811
|
+
const A = JSON.parse(XA(r(g)));
|
|
2812
2812
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2813
2813
|
}
|
|
2814
2814
|
function vg(g) {
|
|
2815
|
-
const A = JSON.parse(Cg(
|
|
2815
|
+
const A = JSON.parse(Cg(r(g)));
|
|
2816
2816
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2817
2817
|
}
|
|
2818
2818
|
function Xg(g) {
|
|
2819
|
-
const A = JSON.parse(gg(
|
|
2819
|
+
const A = JSON.parse(gg(r(g)));
|
|
2820
2820
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2821
2821
|
}
|
|
2822
2822
|
function CM(g) {
|
|
2823
|
-
const A = JSON.parse(Ag(
|
|
2823
|
+
const A = JSON.parse(Ag(r(g)));
|
|
2824
2824
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2825
2825
|
}
|
|
2826
2826
|
function QM(g) {
|
|
2827
|
-
const A = JSON.parse(_A(
|
|
2827
|
+
const A = JSON.parse(_A(r(g)));
|
|
2828
2828
|
return A.success ? A.result : [];
|
|
2829
2829
|
}
|
|
2830
2830
|
function BM(g) {
|
|
2831
|
-
const A = JSON.parse(Ig(
|
|
2831
|
+
const A = JSON.parse(Ig(r(g)));
|
|
2832
2832
|
return A.success ? A.result : [];
|
|
2833
2833
|
}
|
|
2834
2834
|
function _g(g) {
|
|
@@ -2852,7 +2852,7 @@ function wM(g) {
|
|
|
2852
2852
|
}), A;
|
|
2853
2853
|
}
|
|
2854
2854
|
function MM(g) {
|
|
2855
|
-
const A = JSON.parse(Qg(
|
|
2855
|
+
const A = JSON.parse(Qg(r(g)));
|
|
2856
2856
|
return A.success ? A.result : 0;
|
|
2857
2857
|
}
|
|
2858
2858
|
function iM(g, A) {
|
|
@@ -2898,8 +2898,8 @@ function oM(g, A) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2900
2900
|
__proto__: null,
|
|
2901
|
-
addSelectColumns:
|
|
2902
|
-
addWhere:
|
|
2901
|
+
addSelectColumns: rw,
|
|
2902
|
+
addWhere: Ww,
|
|
2903
2903
|
clone: vw,
|
|
2904
2904
|
countNodes: $w,
|
|
2905
2905
|
every: _w,
|
|
@@ -2912,7 +2912,7 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2912
2912
|
getColumnNames: QM,
|
|
2913
2913
|
getColumns: bg,
|
|
2914
2914
|
getDepth: wM,
|
|
2915
|
-
getExprData:
|
|
2915
|
+
getExprData: T,
|
|
2916
2916
|
getExprType: p,
|
|
2917
2917
|
getFunctions: IM,
|
|
2918
2918
|
getIdentifiers: gM,
|
|
@@ -2927,12 +2927,12 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2927
2927
|
hasAggregates: _g,
|
|
2928
2928
|
hasSubqueries: DM,
|
|
2929
2929
|
hasWindowFunctions: EM,
|
|
2930
|
-
isAdd:
|
|
2930
|
+
isAdd: eD,
|
|
2931
2931
|
isAggregateFunction: $D,
|
|
2932
2932
|
isAlias: Lw,
|
|
2933
2933
|
isAlterTable: sw,
|
|
2934
|
-
isAnd:
|
|
2935
|
-
isArithmetic:
|
|
2934
|
+
isAnd: TD,
|
|
2935
|
+
isArithmetic: tw,
|
|
2936
2936
|
isAvg: Cw,
|
|
2937
2937
|
isBetween: vD,
|
|
2938
2938
|
isBoolean: pD,
|
|
@@ -2940,7 +2940,7 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2940
2940
|
isCast: ww,
|
|
2941
2941
|
isCoalesce: Ew,
|
|
2942
2942
|
isColumn: xg,
|
|
2943
|
-
isComparison:
|
|
2943
|
+
isComparison: dw,
|
|
2944
2944
|
isConcat: uD,
|
|
2945
2945
|
isCount: gw,
|
|
2946
2946
|
isCreateIndex: aw,
|
|
@@ -2949,25 +2949,25 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2949
2949
|
isCte: cw,
|
|
2950
2950
|
isDDL: zw,
|
|
2951
2951
|
isDelete: LD,
|
|
2952
|
-
isDiv:
|
|
2952
|
+
isDiv: nD,
|
|
2953
2953
|
isDropIndex: qw,
|
|
2954
2954
|
isDropTable: Rw,
|
|
2955
|
-
isDropView:
|
|
2956
|
-
isEq:
|
|
2955
|
+
isDropView: Ow,
|
|
2956
|
+
isEq: tD,
|
|
2957
2957
|
isExcept: JD,
|
|
2958
2958
|
isExists: _D,
|
|
2959
2959
|
isExpressionValue: V,
|
|
2960
2960
|
isFrom: ow,
|
|
2961
2961
|
isFunction: Vg,
|
|
2962
|
-
isGroupBy:
|
|
2962
|
+
isGroupBy: Kw,
|
|
2963
2963
|
isGt: xD,
|
|
2964
2964
|
isGte: ZD,
|
|
2965
|
-
isHaving:
|
|
2966
|
-
isILike:
|
|
2965
|
+
isHaving: Gw,
|
|
2966
|
+
isILike: WD,
|
|
2967
2967
|
isIdentifier: sD,
|
|
2968
2968
|
isIn: bD,
|
|
2969
2969
|
isInsert: SD,
|
|
2970
|
-
isIntersect:
|
|
2970
|
+
isIntersect: UD,
|
|
2971
2971
|
isIsNull: XD,
|
|
2972
2972
|
isJoin: kw,
|
|
2973
2973
|
isLike: VD,
|
|
@@ -2979,27 +2979,27 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2979
2979
|
isMax: Bw,
|
|
2980
2980
|
isMin: Qw,
|
|
2981
2981
|
isMod: mD,
|
|
2982
|
-
isMul:
|
|
2982
|
+
isMul: lD,
|
|
2983
2983
|
isNeq: jD,
|
|
2984
|
-
isNot:
|
|
2984
|
+
isNot: dD,
|
|
2985
2985
|
isNullIf: Dw,
|
|
2986
|
-
isNullLiteral:
|
|
2986
|
+
isNullLiteral: OD,
|
|
2987
2987
|
isOffset: hw,
|
|
2988
|
-
isOr:
|
|
2988
|
+
isOr: PD,
|
|
2989
2989
|
isOrderBy: Yw,
|
|
2990
|
-
isOrdered:
|
|
2991
|
-
isParen:
|
|
2992
|
-
isQuery:
|
|
2990
|
+
isOrdered: Uw,
|
|
2991
|
+
isParen: Fw,
|
|
2992
|
+
isQuery: Tw,
|
|
2993
2993
|
isSafeCast: iw,
|
|
2994
2994
|
isSelect: fg,
|
|
2995
|
-
isSetOperation:
|
|
2995
|
+
isSetOperation: Pw,
|
|
2996
2996
|
isStar: qD,
|
|
2997
|
-
isSub:
|
|
2997
|
+
isSub: rD,
|
|
2998
2998
|
isSubquery: RD,
|
|
2999
2999
|
isSum: Iw,
|
|
3000
3000
|
isTable: aD,
|
|
3001
3001
|
isTryCast: Mw,
|
|
3002
|
-
isUnion:
|
|
3002
|
+
isUnion: FD,
|
|
3003
3003
|
isUpdate: cD,
|
|
3004
3004
|
isWhere: yw,
|
|
3005
3005
|
isWindowFunction: Aw,
|
|
@@ -3010,24 +3010,24 @@ const kM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3010
3010
|
qualifyTables: Vw,
|
|
3011
3011
|
remove: LA,
|
|
3012
3012
|
removeLimitOffset: uw,
|
|
3013
|
-
removeSelectColumns:
|
|
3014
|
-
removeWhere:
|
|
3015
|
-
renameColumns:
|
|
3013
|
+
removeSelectColumns: lw,
|
|
3014
|
+
removeWhere: ew,
|
|
3015
|
+
renameColumns: rg,
|
|
3016
3016
|
renameTables: xw,
|
|
3017
3017
|
replaceByType: fw,
|
|
3018
|
-
replaceNodes:
|
|
3018
|
+
replaceNodes: eg,
|
|
3019
3019
|
setDistinct: bw,
|
|
3020
|
-
setLimit:
|
|
3020
|
+
setLimit: nw,
|
|
3021
3021
|
setOffset: mw,
|
|
3022
3022
|
some: Xw,
|
|
3023
|
-
transform:
|
|
3023
|
+
transform: GA,
|
|
3024
3024
|
walk: j
|
|
3025
3025
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3026
|
-
function
|
|
3027
|
-
return g instanceof S ? g._w : typeof g == "string" ?
|
|
3026
|
+
function F(g) {
|
|
3027
|
+
return g instanceof S ? g._w : typeof g == "string" ? FA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : yA();
|
|
3028
3028
|
}
|
|
3029
|
-
function
|
|
3030
|
-
const A = new
|
|
3029
|
+
function t(g) {
|
|
3030
|
+
const A = new O();
|
|
3031
3031
|
for (const C of g)
|
|
3032
3032
|
C instanceof S ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(kA(C)) : A.push(yA());
|
|
3033
3033
|
return A;
|
|
@@ -3041,58 +3041,58 @@ class S {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
// -- Comparison --
|
|
3043
3043
|
eq(A) {
|
|
3044
|
-
return new S(this._w.eq(
|
|
3044
|
+
return new S(this._w.eq(F(A)));
|
|
3045
3045
|
}
|
|
3046
3046
|
neq(A) {
|
|
3047
|
-
return new S(this._w.neq(
|
|
3047
|
+
return new S(this._w.neq(F(A)));
|
|
3048
3048
|
}
|
|
3049
3049
|
lt(A) {
|
|
3050
|
-
return new S(this._w.lt(
|
|
3050
|
+
return new S(this._w.lt(F(A)));
|
|
3051
3051
|
}
|
|
3052
3052
|
lte(A) {
|
|
3053
|
-
return new S(this._w.lte(
|
|
3053
|
+
return new S(this._w.lte(F(A)));
|
|
3054
3054
|
}
|
|
3055
3055
|
gt(A) {
|
|
3056
|
-
return new S(this._w.gt(
|
|
3056
|
+
return new S(this._w.gt(F(A)));
|
|
3057
3057
|
}
|
|
3058
3058
|
gte(A) {
|
|
3059
|
-
return new S(this._w.gte(
|
|
3059
|
+
return new S(this._w.gte(F(A)));
|
|
3060
3060
|
}
|
|
3061
3061
|
// -- Logical --
|
|
3062
3062
|
and(A) {
|
|
3063
|
-
return new S(this._w.and(
|
|
3063
|
+
return new S(this._w.and(F(A)));
|
|
3064
3064
|
}
|
|
3065
3065
|
or(A) {
|
|
3066
|
-
return new S(this._w.or(
|
|
3066
|
+
return new S(this._w.or(F(A)));
|
|
3067
3067
|
}
|
|
3068
3068
|
not() {
|
|
3069
3069
|
return new S(this._w.not());
|
|
3070
3070
|
}
|
|
3071
3071
|
xor(A) {
|
|
3072
|
-
return new S(this._w.xor(
|
|
3072
|
+
return new S(this._w.xor(F(A)));
|
|
3073
3073
|
}
|
|
3074
3074
|
// -- Arithmetic --
|
|
3075
3075
|
add(A) {
|
|
3076
|
-
return new S(this._w.add(
|
|
3076
|
+
return new S(this._w.add(F(A)));
|
|
3077
3077
|
}
|
|
3078
3078
|
sub(A) {
|
|
3079
|
-
return new S(this._w.sub(
|
|
3079
|
+
return new S(this._w.sub(F(A)));
|
|
3080
3080
|
}
|
|
3081
3081
|
mul(A) {
|
|
3082
|
-
return new S(this._w.mul(
|
|
3082
|
+
return new S(this._w.mul(F(A)));
|
|
3083
3083
|
}
|
|
3084
3084
|
div(A) {
|
|
3085
|
-
return new S(this._w.div(
|
|
3085
|
+
return new S(this._w.div(F(A)));
|
|
3086
3086
|
}
|
|
3087
3087
|
// -- Pattern matching --
|
|
3088
3088
|
like(A) {
|
|
3089
|
-
return new S(this._w.like(
|
|
3089
|
+
return new S(this._w.like(F(A)));
|
|
3090
3090
|
}
|
|
3091
3091
|
ilike(A) {
|
|
3092
|
-
return new S(this._w.ilike(
|
|
3092
|
+
return new S(this._w.ilike(F(A)));
|
|
3093
3093
|
}
|
|
3094
3094
|
rlike(A) {
|
|
3095
|
-
return new S(this._w.rlike(
|
|
3095
|
+
return new S(this._w.rlike(F(A)));
|
|
3096
3096
|
}
|
|
3097
3097
|
// -- Predicates --
|
|
3098
3098
|
isNull() {
|
|
@@ -3102,13 +3102,13 @@ class S {
|
|
|
3102
3102
|
return new S(this._w.is_not_null());
|
|
3103
3103
|
}
|
|
3104
3104
|
between(A, C) {
|
|
3105
|
-
return new S(this._w.between(
|
|
3105
|
+
return new S(this._w.between(F(A), F(C)));
|
|
3106
3106
|
}
|
|
3107
3107
|
inList(...A) {
|
|
3108
|
-
return new S(this._w.in_list(
|
|
3108
|
+
return new S(this._w.in_list(t(A)));
|
|
3109
3109
|
}
|
|
3110
3110
|
notIn(...A) {
|
|
3111
|
-
return new S(this._w.not_in(
|
|
3111
|
+
return new S(this._w.not_in(t(A)));
|
|
3112
3112
|
}
|
|
3113
3113
|
// -- Transform --
|
|
3114
3114
|
alias(A) {
|
|
@@ -3148,79 +3148,79 @@ class yM {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
/** Set the PARTITION BY expressions. */
|
|
3150
3150
|
partitionBy(...A) {
|
|
3151
|
-
return this._w.partition_by(
|
|
3151
|
+
return this._w.partition_by(t(A)), this;
|
|
3152
3152
|
}
|
|
3153
3153
|
/** Set the ORDER BY expressions. */
|
|
3154
3154
|
orderBy(...A) {
|
|
3155
|
-
return this._w.order_by(
|
|
3155
|
+
return this._w.order_by(t(A)), this;
|
|
3156
3156
|
}
|
|
3157
3157
|
/** Free the underlying WASM handle. */
|
|
3158
3158
|
free() {
|
|
3159
3159
|
this._w.free();
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
|
-
function GM(g) {
|
|
3163
|
-
return new S(UA(g));
|
|
3164
|
-
}
|
|
3165
3162
|
function KM(g) {
|
|
3163
|
+
return new S(FA(g));
|
|
3164
|
+
}
|
|
3165
|
+
function GM(g) {
|
|
3166
3166
|
return new S(kA(g));
|
|
3167
3167
|
}
|
|
3168
3168
|
function $g() {
|
|
3169
|
-
return new S(
|
|
3169
|
+
return new S(Pg());
|
|
3170
3170
|
}
|
|
3171
3171
|
function YM() {
|
|
3172
3172
|
return new S(yA());
|
|
3173
3173
|
}
|
|
3174
3174
|
function JA(g) {
|
|
3175
|
-
return new S(
|
|
3175
|
+
return new S(Ug(g));
|
|
3176
3176
|
}
|
|
3177
3177
|
function HM(g) {
|
|
3178
|
-
return new S(
|
|
3178
|
+
return new S(tg(g));
|
|
3179
3179
|
}
|
|
3180
3180
|
function AI(g) {
|
|
3181
|
-
return new S(
|
|
3181
|
+
return new S(Tg(g));
|
|
3182
3182
|
}
|
|
3183
3183
|
function hM(g) {
|
|
3184
3184
|
return AI(g);
|
|
3185
3185
|
}
|
|
3186
3186
|
function J(g, ...A) {
|
|
3187
|
-
return new S(qg(g,
|
|
3187
|
+
return new S(qg(g, t(A)));
|
|
3188
3188
|
}
|
|
3189
3189
|
function SM(g) {
|
|
3190
|
-
return new S(pg(
|
|
3190
|
+
return new S(pg(F(g)));
|
|
3191
3191
|
}
|
|
3192
3192
|
function cM(g, A) {
|
|
3193
|
-
return new S(Rg(
|
|
3193
|
+
return new S(Rg(F(g), A));
|
|
3194
3194
|
}
|
|
3195
3195
|
function LM(g, A) {
|
|
3196
|
-
return new S(Lg(
|
|
3196
|
+
return new S(Lg(F(g), A));
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3199
|
-
return new S(
|
|
3198
|
+
function FM(g, A) {
|
|
3199
|
+
return new S(dg(g._w, A));
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function UM(...g) {
|
|
3202
3202
|
if (g.length === 0) return JA(!0);
|
|
3203
3203
|
if (g.length === 1)
|
|
3204
|
-
return g[0] instanceof S ? g[0] : new S(
|
|
3205
|
-
let A =
|
|
3204
|
+
return g[0] instanceof S ? g[0] : new S(F(g[0]));
|
|
3205
|
+
let A = F(g[0]);
|
|
3206
3206
|
for (let C = 1; C < g.length; C++)
|
|
3207
|
-
A =
|
|
3207
|
+
A = Fg(A, F(g[C]));
|
|
3208
3208
|
return new S(A);
|
|
3209
3209
|
}
|
|
3210
3210
|
function JM(...g) {
|
|
3211
3211
|
if (g.length === 0) return JA(!1);
|
|
3212
3212
|
if (g.length === 1)
|
|
3213
|
-
return g[0] instanceof S ? g[0] : new S(
|
|
3214
|
-
let A =
|
|
3213
|
+
return g[0] instanceof S ? g[0] : new S(F(g[0]));
|
|
3214
|
+
let A = F(g[0]);
|
|
3215
3215
|
for (let C = 1; C < g.length; C++)
|
|
3216
|
-
A =
|
|
3216
|
+
A = Og(A, F(g[C]));
|
|
3217
3217
|
return new S(A);
|
|
3218
3218
|
}
|
|
3219
3219
|
function RM(g) {
|
|
3220
3220
|
return g !== void 0 ? J("COUNT", g) : J("COUNT", $g());
|
|
3221
3221
|
}
|
|
3222
3222
|
function sM(g) {
|
|
3223
|
-
return new S(sg(
|
|
3223
|
+
return new S(sg(F(g)));
|
|
3224
3224
|
}
|
|
3225
3225
|
function aM(g) {
|
|
3226
3226
|
return J("SUM", g);
|
|
@@ -3231,19 +3231,19 @@ function qM(g) {
|
|
|
3231
3231
|
function pM(g) {
|
|
3232
3232
|
return J("MIN", g);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function OM(g) {
|
|
3235
3235
|
return J("MAX", g);
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function TM(g) {
|
|
3238
3238
|
return J("UPPER", g);
|
|
3239
3239
|
}
|
|
3240
|
-
function
|
|
3240
|
+
function PM(g) {
|
|
3241
3241
|
return J("LOWER", g);
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function dM(g) {
|
|
3244
3244
|
return J("LENGTH", g);
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function tM(g) {
|
|
3247
3247
|
return J("TRIM", g);
|
|
3248
3248
|
}
|
|
3249
3249
|
function jM(g) {
|
|
@@ -3264,19 +3264,19 @@ function ZM(g, A, C) {
|
|
|
3264
3264
|
function VM(g, A, C) {
|
|
3265
3265
|
return J("REPLACE", g, A, C);
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function WM(g, ...A) {
|
|
3268
3268
|
return J("CONCAT_WS", g, ...A);
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function eM(...g) {
|
|
3271
3271
|
return J("COALESCE", ...g);
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function rM(g, A) {
|
|
3274
3274
|
return J("NULLIF", g, A);
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function lM(g, A) {
|
|
3277
3277
|
return J("IFNULL", g, A);
|
|
3278
3278
|
}
|
|
3279
|
-
function
|
|
3279
|
+
function nM(g) {
|
|
3280
3280
|
return J("ABS", g);
|
|
3281
3281
|
}
|
|
3282
3282
|
function mM(g, A) {
|
|
@@ -3319,7 +3319,7 @@ function Bi() {
|
|
|
3319
3319
|
return J("CURRENT_TIMESTAMP");
|
|
3320
3320
|
}
|
|
3321
3321
|
function Ei(g, A) {
|
|
3322
|
-
return new S(ag(g,
|
|
3322
|
+
return new S(ag(g, F(A)));
|
|
3323
3323
|
}
|
|
3324
3324
|
function Di() {
|
|
3325
3325
|
return J("ROW_NUMBER");
|
|
@@ -3334,12 +3334,12 @@ class gI {
|
|
|
3334
3334
|
/** @internal */
|
|
3335
3335
|
_w;
|
|
3336
3336
|
constructor() {
|
|
3337
|
-
this._w = new
|
|
3337
|
+
this._w = new d();
|
|
3338
3338
|
}
|
|
3339
3339
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3340
3340
|
select(...A) {
|
|
3341
3341
|
for (const C of A)
|
|
3342
|
-
C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(
|
|
3342
|
+
C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(F(C));
|
|
3343
3343
|
return this;
|
|
3344
3344
|
}
|
|
3345
3345
|
/** Set the FROM clause. */
|
|
@@ -3348,15 +3348,15 @@ class gI {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
/** Add an INNER JOIN. */
|
|
3350
3350
|
join(A, C) {
|
|
3351
|
-
return this._w.join(A,
|
|
3351
|
+
return this._w.join(A, F(C)), this;
|
|
3352
3352
|
}
|
|
3353
3353
|
/** Add a LEFT JOIN. */
|
|
3354
3354
|
leftJoin(A, C) {
|
|
3355
|
-
return this._w.left_join(A,
|
|
3355
|
+
return this._w.left_join(A, F(C)), this;
|
|
3356
3356
|
}
|
|
3357
3357
|
/** Add a RIGHT JOIN. */
|
|
3358
3358
|
rightJoin(A, C) {
|
|
3359
|
-
return this._w.right_join(A,
|
|
3359
|
+
return this._w.right_join(A, F(C)), this;
|
|
3360
3360
|
}
|
|
3361
3361
|
/** Add a CROSS JOIN. */
|
|
3362
3362
|
crossJoin(A) {
|
|
@@ -3364,19 +3364,19 @@ class gI {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3366
3366
|
where(A) {
|
|
3367
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(
|
|
3367
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(F(A)), this;
|
|
3368
3368
|
}
|
|
3369
3369
|
/** Set the GROUP BY clause. */
|
|
3370
3370
|
groupBy(...A) {
|
|
3371
|
-
return this._w.group_by_cols(
|
|
3371
|
+
return this._w.group_by_cols(t(A)), this;
|
|
3372
3372
|
}
|
|
3373
3373
|
/** Set the HAVING clause. */
|
|
3374
3374
|
having(A) {
|
|
3375
|
-
return this._w.having(
|
|
3375
|
+
return this._w.having(F(A)), this;
|
|
3376
3376
|
}
|
|
3377
3377
|
/** Set the ORDER BY clause. */
|
|
3378
3378
|
orderBy(...A) {
|
|
3379
|
-
return this._w.order_by_exprs(
|
|
3379
|
+
return this._w.order_by_exprs(t(A)), this;
|
|
3380
3380
|
}
|
|
3381
3381
|
/** Set the LIMIT. */
|
|
3382
3382
|
limit(A) {
|
|
@@ -3392,11 +3392,11 @@ class gI {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3394
3394
|
qualify(A) {
|
|
3395
|
-
return this._w.qualify(
|
|
3395
|
+
return this._w.qualify(F(A)), this;
|
|
3396
3396
|
}
|
|
3397
3397
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3398
3398
|
sortBy(...A) {
|
|
3399
|
-
return this._w.sort_by_exprs(
|
|
3399
|
+
return this._w.sort_by_exprs(t(A)), this;
|
|
3400
3400
|
}
|
|
3401
3401
|
/** Add a named WINDOW clause definition. */
|
|
3402
3402
|
window(A, C) {
|
|
@@ -3473,7 +3473,7 @@ class II {
|
|
|
3473
3473
|
}
|
|
3474
3474
|
/** Append a row of values. Call multiple times for multiple rows. */
|
|
3475
3475
|
values(...A) {
|
|
3476
|
-
return this._w.values(
|
|
3476
|
+
return this._w.values(t(A)), this;
|
|
3477
3477
|
}
|
|
3478
3478
|
/** Set the source query for INSERT ... SELECT. */
|
|
3479
3479
|
query(A) {
|
|
@@ -3506,11 +3506,11 @@ class QI {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
/** Add a SET column = value assignment. */
|
|
3508
3508
|
set(A, C) {
|
|
3509
|
-
return this._w.set(A,
|
|
3509
|
+
return this._w.set(A, F(C)), this;
|
|
3510
3510
|
}
|
|
3511
3511
|
/** Set the WHERE clause. */
|
|
3512
3512
|
where(A) {
|
|
3513
|
-
return this._w.where_expr(
|
|
3513
|
+
return this._w.where_expr(F(A)), this;
|
|
3514
3514
|
}
|
|
3515
3515
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3516
3516
|
from(A) {
|
|
@@ -3540,7 +3540,7 @@ class BI {
|
|
|
3540
3540
|
}
|
|
3541
3541
|
/** Set the WHERE clause. */
|
|
3542
3542
|
where(A) {
|
|
3543
|
-
return this._w.where_expr(
|
|
3543
|
+
return this._w.where_expr(F(A)), this;
|
|
3544
3544
|
}
|
|
3545
3545
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3546
3546
|
toSql(A = "generic") {
|
|
@@ -3569,13 +3569,13 @@ class DI {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
/** Set the source table and ON condition. */
|
|
3571
3571
|
using(A, C) {
|
|
3572
|
-
return this._w.using(A,
|
|
3572
|
+
return this._w.using(A, F(C)), this;
|
|
3573
3573
|
}
|
|
3574
3574
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3575
3575
|
whenMatchedUpdate(A) {
|
|
3576
3576
|
const C = new CA();
|
|
3577
3577
|
for (const [Q, B] of Object.entries(A))
|
|
3578
|
-
C.push(Q,
|
|
3578
|
+
C.push(Q, F(B));
|
|
3579
3579
|
return this._w.when_matched_update(C), this;
|
|
3580
3580
|
}
|
|
3581
3581
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3584,7 +3584,7 @@ class DI {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
/** Add a WHEN NOT MATCHED THEN INSERT clause. */
|
|
3586
3586
|
whenNotMatchedInsert(A, C) {
|
|
3587
|
-
return this._w.when_not_matched_insert(A,
|
|
3587
|
+
return this._w.when_not_matched_insert(A, t(C)), this;
|
|
3588
3588
|
}
|
|
3589
3589
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3590
3590
|
toSql(A = "generic") {
|
|
@@ -3611,11 +3611,11 @@ class RA {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
/** Add a WHEN condition THEN result branch. */
|
|
3613
3613
|
when(A, C) {
|
|
3614
|
-
return this._w.when(
|
|
3614
|
+
return this._w.when(F(A), F(C)), this;
|
|
3615
3615
|
}
|
|
3616
3616
|
/** Set the ELSE result. */
|
|
3617
3617
|
else_(A) {
|
|
3618
|
-
return this._w.else_(
|
|
3618
|
+
return this._w.else_(F(A)), this;
|
|
3619
3619
|
}
|
|
3620
3620
|
/** Build the CASE expression as an Expr. */
|
|
3621
3621
|
build() {
|
|
@@ -3626,11 +3626,11 @@ class RA {
|
|
|
3626
3626
|
return this._w.to_sql(A);
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3629
|
+
function Ki() {
|
|
3630
3630
|
return new RA(new m());
|
|
3631
3631
|
}
|
|
3632
|
-
function
|
|
3633
|
-
return new RA(Jg(
|
|
3632
|
+
function Gi(g) {
|
|
3633
|
+
return new RA(Jg(F(g)));
|
|
3634
3634
|
}
|
|
3635
3635
|
class _ {
|
|
3636
3636
|
/** @internal */
|
|
@@ -3641,7 +3641,7 @@ class _ {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
/** Set the ORDER BY clause. */
|
|
3643
3643
|
orderBy(...A) {
|
|
3644
|
-
return this._w.order_by_exprs(
|
|
3644
|
+
return this._w.order_by_exprs(t(A)), this;
|
|
3645
3645
|
}
|
|
3646
3646
|
/** Set the LIMIT. */
|
|
3647
3647
|
limit(A) {
|
|
@@ -3683,7 +3683,7 @@ function ci(g, A) {
|
|
|
3683
3683
|
function Li(g, A) {
|
|
3684
3684
|
const C = [], Q = BA(g, "star");
|
|
3685
3685
|
if (Q.length > 0) {
|
|
3686
|
-
const D =
|
|
3686
|
+
const D = T(Q[0])?.span;
|
|
3687
3687
|
C.push({
|
|
3688
3688
|
message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
|
|
3689
3689
|
severity: "warning",
|
|
@@ -3694,25 +3694,25 @@ function Li(g, A) {
|
|
|
3694
3694
|
end: D?.end
|
|
3695
3695
|
});
|
|
3696
3696
|
}
|
|
3697
|
-
const B =
|
|
3697
|
+
const B = T(g);
|
|
3698
3698
|
if (_g(g) && !B.group_by) {
|
|
3699
3699
|
const E = IA(g), D = B.expressions || [];
|
|
3700
3700
|
if (D.some((k) => {
|
|
3701
|
-
const
|
|
3702
|
-
return
|
|
3701
|
+
const K = p(k);
|
|
3702
|
+
return K === "column" || K === "identifier" ? IA(k).length === 0 : !1;
|
|
3703
3703
|
}) && E.length > 0) {
|
|
3704
3704
|
const k = D.find((y) => {
|
|
3705
3705
|
const h = p(y);
|
|
3706
3706
|
return h === "column" || h === "identifier" ? IA(y).length === 0 : !1;
|
|
3707
|
-
}),
|
|
3707
|
+
}), K = k ? T(k)?.span : void 0;
|
|
3708
3708
|
C.push({
|
|
3709
3709
|
message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
|
|
3710
3710
|
severity: "warning",
|
|
3711
3711
|
code: "W002",
|
|
3712
|
-
line:
|
|
3713
|
-
column:
|
|
3714
|
-
start:
|
|
3715
|
-
end:
|
|
3712
|
+
line: K?.line,
|
|
3713
|
+
column: K?.column,
|
|
3714
|
+
start: K?.start,
|
|
3715
|
+
end: K?.end
|
|
3716
3716
|
});
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
@@ -3721,7 +3721,7 @@ function Li(g, A) {
|
|
|
3721
3721
|
severity: "warning",
|
|
3722
3722
|
code: "W003"
|
|
3723
3723
|
}), B.limit && !B.order_by) {
|
|
3724
|
-
const E = B.limit, D = E ?
|
|
3724
|
+
const E = B.limit, D = E ? T(E)?.span : void 0;
|
|
3725
3725
|
C.push({
|
|
3726
3726
|
message: "LIMIT without ORDER BY produces non-deterministic results",
|
|
3727
3727
|
severity: "warning",
|
|
@@ -3734,7 +3734,7 @@ function Li(g, A) {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
return C;
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function Fi(g) {
|
|
3738
3738
|
try {
|
|
3739
3739
|
return JSON.parse(g);
|
|
3740
3740
|
} catch {
|
|
@@ -3750,7 +3750,7 @@ function Ui(g) {
|
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function Ui(g, A, C = "generic", Q = {}) {
|
|
3754
3754
|
const B = Q.strict ?? A.strict ?? !0, E = {
|
|
3755
3755
|
check_types: Q.checkTypes ?? !1,
|
|
3756
3756
|
check_references: Q.checkReferences ?? !1,
|
|
@@ -3763,7 +3763,7 @@ function Fi(g, A, C = "generic", Q = {}) {
|
|
|
3763
3763
|
C,
|
|
3764
3764
|
JSON.stringify(E)
|
|
3765
3765
|
);
|
|
3766
|
-
return
|
|
3766
|
+
return Fi(D);
|
|
3767
3767
|
}
|
|
3768
3768
|
const Ji = {
|
|
3769
3769
|
Error: "error",
|
|
@@ -3788,12 +3788,12 @@ function Ri(g, A = "generic", C = {}) {
|
|
|
3788
3788
|
if (!E.success || !E.ast)
|
|
3789
3789
|
return B;
|
|
3790
3790
|
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, i = [...B.errors];
|
|
3791
|
-
for (const
|
|
3792
|
-
const y = ci(
|
|
3791
|
+
for (const K of D) {
|
|
3792
|
+
const y = ci(K);
|
|
3793
3793
|
i.push(...y);
|
|
3794
3794
|
}
|
|
3795
3795
|
return {
|
|
3796
|
-
valid: !i.some((
|
|
3796
|
+
valid: !i.some((K) => K.severity === "error"),
|
|
3797
3797
|
errors: i
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
@@ -3802,7 +3802,7 @@ function wI(g, A, C = "generic", Q = !1) {
|
|
|
3802
3802
|
return JSON.parse(B);
|
|
3803
3803
|
}
|
|
3804
3804
|
function MI(g, A, C, Q = "generic", B = !1) {
|
|
3805
|
-
const E =
|
|
3805
|
+
const E = Kg(
|
|
3806
3806
|
A,
|
|
3807
3807
|
g,
|
|
3808
3808
|
JSON.stringify(C),
|
|
@@ -3823,7 +3823,7 @@ function sA(g) {
|
|
|
3823
3823
|
};
|
|
3824
3824
|
}
|
|
3825
3825
|
function NI(g, A) {
|
|
3826
|
-
const C =
|
|
3826
|
+
const C = Gg(
|
|
3827
3827
|
g,
|
|
3828
3828
|
JSON.stringify(sA(A))
|
|
3829
3829
|
);
|
|
@@ -3847,10 +3847,10 @@ function yI(g, A, C = "generic", Q = {}) {
|
|
|
3847
3847
|
const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = Q, i = kg(g, A, C, B, E, D);
|
|
3848
3848
|
return JSON.parse(i);
|
|
3849
3849
|
}
|
|
3850
|
-
function
|
|
3850
|
+
function KI(g) {
|
|
3851
3851
|
return g.some((A) => A.type !== "keep");
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function GI(g) {
|
|
3854
3854
|
return g.filter((A) => A.type !== "keep");
|
|
3855
3855
|
}
|
|
3856
3856
|
function YI(g, A = "generic") {
|
|
@@ -3880,7 +3880,7 @@ function si(g, A) {
|
|
|
3880
3880
|
errorColumn: void 0
|
|
3881
3881
|
};
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3883
|
+
function W(g) {
|
|
3884
3884
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3885
3885
|
}
|
|
3886
3886
|
async function HI() {
|
|
@@ -3891,26 +3891,26 @@ function hI() {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
function pA(g, A, C) {
|
|
3893
3893
|
try {
|
|
3894
|
-
return typeof a.transpile_value == "function" ?
|
|
3894
|
+
return typeof a.transpile_value == "function" ? W(
|
|
3895
3895
|
a.transpile_value(g, A, C)
|
|
3896
3896
|
) : JSON.parse(a.transpile(g, A, C));
|
|
3897
3897
|
} catch (Q) {
|
|
3898
3898
|
return qA("transpile", Q);
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
|
-
function
|
|
3901
|
+
function OA(g, A = "generic") {
|
|
3902
3902
|
try {
|
|
3903
3903
|
if (typeof a.parse_value == "function")
|
|
3904
|
-
return
|
|
3904
|
+
return W(a.parse_value(g, A));
|
|
3905
3905
|
const C = JSON.parse(a.parse(g, A));
|
|
3906
3906
|
return C.success && typeof C.ast == "string" && (C.ast = JSON.parse(C.ast)), C;
|
|
3907
3907
|
} catch (C) {
|
|
3908
3908
|
return si("parse", C);
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function TA(g, A = "generic") {
|
|
3912
3912
|
try {
|
|
3913
|
-
return typeof a.tokenize_value == "function" ?
|
|
3913
|
+
return typeof a.tokenize_value == "function" ? W(
|
|
3914
3914
|
a.tokenize_value(g, A)
|
|
3915
3915
|
) : JSON.parse(a.tokenize(g, A));
|
|
3916
3916
|
} catch (C) {
|
|
@@ -3921,10 +3921,10 @@ function PA(g, A = "generic") {
|
|
|
3921
3921
|
};
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3924
|
+
function PA(g, A = "generic") {
|
|
3925
3925
|
try {
|
|
3926
3926
|
if (typeof a.generate_value == "function" && Array.isArray(g))
|
|
3927
|
-
return
|
|
3927
|
+
return W(
|
|
3928
3928
|
a.generate_value(g, A)
|
|
3929
3929
|
);
|
|
3930
3930
|
const C = JSON.stringify(g);
|
|
@@ -3933,16 +3933,16 @@ function OA(g, A = "generic") {
|
|
|
3933
3933
|
return qA("generate", C);
|
|
3934
3934
|
}
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3937
|
-
return
|
|
3936
|
+
function dA(g, A = "generic") {
|
|
3937
|
+
return tA(g, A, {});
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function tA(g, A = "generic", C = {}) {
|
|
3940
3940
|
try {
|
|
3941
|
-
return typeof a.format_sql_with_options_value == "function" ?
|
|
3941
|
+
return typeof a.format_sql_with_options_value == "function" ? W(
|
|
3942
3942
|
a.format_sql_with_options_value(g, A, C)
|
|
3943
3943
|
) : typeof a.format_sql_with_options == "function" ? JSON.parse(
|
|
3944
3944
|
a.format_sql_with_options(g, A, JSON.stringify(C))
|
|
3945
|
-
) : typeof a.format_sql_value == "function" ?
|
|
3945
|
+
) : typeof a.format_sql_value == "function" ? W(
|
|
3946
3946
|
a.format_sql_value(g, A)
|
|
3947
3947
|
) : JSON.parse(a.format_sql(g, A));
|
|
3948
3948
|
} catch (Q) {
|
|
@@ -3950,7 +3950,7 @@ function dA(g, A = "generic", C = {}) {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
3952
|
function jA() {
|
|
3953
|
-
return typeof a.get_dialects_value == "function" ?
|
|
3953
|
+
return typeof a.get_dialects_value == "function" ? W(a.get_dialects_value()) : JSON.parse(a.get_dialects());
|
|
3954
3954
|
}
|
|
3955
3955
|
function zA() {
|
|
3956
3956
|
return a.version();
|
|
@@ -3958,7 +3958,7 @@ function zA() {
|
|
|
3958
3958
|
function fA(g, A = "generic", C) {
|
|
3959
3959
|
try {
|
|
3960
3960
|
const Q = C ? JSON.stringify(C) : "";
|
|
3961
|
-
return typeof a.annotate_types_value == "function" ?
|
|
3961
|
+
return typeof a.annotate_types_value == "function" ? W(
|
|
3962
3962
|
a.annotate_types_value(g, A, Q)
|
|
3963
3963
|
) : typeof a.annotate_types == "function" ? JSON.parse(
|
|
3964
3964
|
a.annotate_types(g, A, Q)
|
|
@@ -3973,7 +3973,7 @@ function fA(g, A = "generic", C) {
|
|
|
3973
3973
|
};
|
|
3974
3974
|
}
|
|
3975
3975
|
}
|
|
3976
|
-
class
|
|
3976
|
+
class n {
|
|
3977
3977
|
static instance = null;
|
|
3978
3978
|
constructor() {
|
|
3979
3979
|
}
|
|
@@ -3982,7 +3982,7 @@ class r {
|
|
|
3982
3982
|
* The WASM module is automatically initialized on import.
|
|
3983
3983
|
*/
|
|
3984
3984
|
static getInstance() {
|
|
3985
|
-
return
|
|
3985
|
+
return n.instance || (n.instance = new n()), n.instance;
|
|
3986
3986
|
}
|
|
3987
3987
|
/**
|
|
3988
3988
|
* Transpile SQL from one dialect to another.
|
|
@@ -3998,31 +3998,31 @@ class r {
|
|
|
3998
3998
|
* Parse SQL into an AST.
|
|
3999
3999
|
*/
|
|
4000
4000
|
parse(A, C = "generic") {
|
|
4001
|
-
return
|
|
4001
|
+
return OA(A, C);
|
|
4002
4002
|
}
|
|
4003
4003
|
/**
|
|
4004
4004
|
* Tokenize SQL into a token stream.
|
|
4005
4005
|
*/
|
|
4006
4006
|
tokenize(A, C = "generic") {
|
|
4007
|
-
return
|
|
4007
|
+
return TA(A, C);
|
|
4008
4008
|
}
|
|
4009
4009
|
/**
|
|
4010
4010
|
* Generate SQL from an AST.
|
|
4011
4011
|
*/
|
|
4012
4012
|
generate(A, C = "generic") {
|
|
4013
|
-
return
|
|
4013
|
+
return PA(A, C);
|
|
4014
4014
|
}
|
|
4015
4015
|
/**
|
|
4016
4016
|
* Format SQL.
|
|
4017
4017
|
*/
|
|
4018
4018
|
format(A, C = "generic") {
|
|
4019
|
-
return
|
|
4019
|
+
return dA(A, C);
|
|
4020
4020
|
}
|
|
4021
4021
|
/**
|
|
4022
4022
|
* Format SQL with explicit guard limits.
|
|
4023
4023
|
*/
|
|
4024
4024
|
formatWithOptions(A, C = "generic", Q = {}) {
|
|
4025
|
-
return
|
|
4025
|
+
return tA(A, C, Q);
|
|
4026
4026
|
}
|
|
4027
4027
|
/**
|
|
4028
4028
|
* Get supported dialects in this build.
|
|
@@ -4048,10 +4048,10 @@ const ai = {
|
|
|
4048
4048
|
init: HI,
|
|
4049
4049
|
isInitialized: hI,
|
|
4050
4050
|
transpile: pA,
|
|
4051
|
-
parse:
|
|
4052
|
-
tokenize:
|
|
4053
|
-
generate:
|
|
4054
|
-
format:
|
|
4051
|
+
parse: OA,
|
|
4052
|
+
tokenize: TA,
|
|
4053
|
+
generate: PA,
|
|
4054
|
+
format: dA,
|
|
4055
4055
|
annotateTypes: fA,
|
|
4056
4056
|
getDialects: jA,
|
|
4057
4057
|
getVersion: zA,
|
|
@@ -4062,11 +4062,11 @@ const ai = {
|
|
|
4062
4062
|
openLineageJobEvent: oI,
|
|
4063
4063
|
openLineageRunEvent: kI,
|
|
4064
4064
|
diff: yI,
|
|
4065
|
-
hasChanges:
|
|
4066
|
-
changesOnly:
|
|
4065
|
+
hasChanges: KI,
|
|
4066
|
+
changesOnly: GI,
|
|
4067
4067
|
plan: YI,
|
|
4068
4068
|
Dialect: aA,
|
|
4069
|
-
Polyglot:
|
|
4069
|
+
Polyglot: n
|
|
4070
4070
|
}, qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4071
4071
|
__proto__: null,
|
|
4072
4072
|
CaseBuilder: RA,
|
|
@@ -4075,27 +4075,27 @@ const ai = {
|
|
|
4075
4075
|
Expr: S,
|
|
4076
4076
|
InsertBuilder: II,
|
|
4077
4077
|
MergeBuilder: DI,
|
|
4078
|
-
Polyglot:
|
|
4078
|
+
Polyglot: n,
|
|
4079
4079
|
SelectBuilder: gI,
|
|
4080
4080
|
SetOpBuilder: _,
|
|
4081
4081
|
UpdateBuilder: QI,
|
|
4082
4082
|
ValidationSeverity: Ji,
|
|
4083
4083
|
WindowDefBuilder: yM,
|
|
4084
|
-
abs:
|
|
4084
|
+
abs: nM,
|
|
4085
4085
|
alias: LM,
|
|
4086
|
-
and:
|
|
4086
|
+
and: UM,
|
|
4087
4087
|
annotateTypes: fA,
|
|
4088
4088
|
ast: kM,
|
|
4089
4089
|
avg: qM,
|
|
4090
4090
|
boolean: JA,
|
|
4091
|
-
caseOf:
|
|
4092
|
-
caseWhen:
|
|
4091
|
+
caseOf: Gi,
|
|
4092
|
+
caseWhen: Ki,
|
|
4093
4093
|
cast: cM,
|
|
4094
4094
|
ceil: bM,
|
|
4095
|
-
changesOnly:
|
|
4096
|
-
coalesce:
|
|
4097
|
-
col:
|
|
4098
|
-
concatWs:
|
|
4095
|
+
changesOnly: GI,
|
|
4096
|
+
coalesce: eM,
|
|
4097
|
+
col: KM,
|
|
4098
|
+
concatWs: WM,
|
|
4099
4099
|
condition: hM,
|
|
4100
4100
|
count: RM,
|
|
4101
4101
|
countDistinct: sM,
|
|
@@ -4112,18 +4112,18 @@ const ai = {
|
|
|
4112
4112
|
extract: Ei,
|
|
4113
4113
|
findAll: YA,
|
|
4114
4114
|
floor: uM,
|
|
4115
|
-
format:
|
|
4116
|
-
formatWithOptions:
|
|
4115
|
+
format: dA,
|
|
4116
|
+
formatWithOptions: tA,
|
|
4117
4117
|
func: J,
|
|
4118
|
-
generate:
|
|
4118
|
+
generate: PA,
|
|
4119
4119
|
getColumns: bg,
|
|
4120
4120
|
getDialects: jA,
|
|
4121
4121
|
getInferredType: zg,
|
|
4122
4122
|
getSourceTables: iI,
|
|
4123
4123
|
getVersion: zA,
|
|
4124
4124
|
greatest: gi,
|
|
4125
|
-
hasChanges:
|
|
4126
|
-
ifNull:
|
|
4125
|
+
hasChanges: KI,
|
|
4126
|
+
ifNull: lM,
|
|
4127
4127
|
init: HI,
|
|
4128
4128
|
initcap: xM,
|
|
4129
4129
|
insert: Ni,
|
|
@@ -4135,27 +4135,27 @@ const ai = {
|
|
|
4135
4135
|
isLiteral: Zg,
|
|
4136
4136
|
isSelect: fg,
|
|
4137
4137
|
least: Ii,
|
|
4138
|
-
length:
|
|
4138
|
+
length: dM,
|
|
4139
4139
|
lineage: wI,
|
|
4140
4140
|
lineageWithSchema: MI,
|
|
4141
|
-
lit:
|
|
4141
|
+
lit: GM,
|
|
4142
4142
|
ln: _M,
|
|
4143
|
-
lower:
|
|
4143
|
+
lower: PM,
|
|
4144
4144
|
ltrim: jM,
|
|
4145
|
-
max:
|
|
4145
|
+
max: OM,
|
|
4146
4146
|
mergeInto: yi,
|
|
4147
4147
|
min: pM,
|
|
4148
4148
|
not: SM,
|
|
4149
|
-
nullIf:
|
|
4149
|
+
nullIf: rM,
|
|
4150
4150
|
openLineageColumnLineage: NI,
|
|
4151
4151
|
openLineageJobEvent: oI,
|
|
4152
4152
|
openLineageRunEvent: kI,
|
|
4153
4153
|
or: JM,
|
|
4154
|
-
parse:
|
|
4154
|
+
parse: OA,
|
|
4155
4155
|
plan: YI,
|
|
4156
4156
|
power: vM,
|
|
4157
4157
|
rank: wi,
|
|
4158
|
-
renameColumns:
|
|
4158
|
+
renameColumns: rg,
|
|
4159
4159
|
replace: VM,
|
|
4160
4160
|
reverse: fM,
|
|
4161
4161
|
round: mM,
|
|
@@ -4167,20 +4167,20 @@ const ai = {
|
|
|
4167
4167
|
sqlNull: YM,
|
|
4168
4168
|
sqrt: XM,
|
|
4169
4169
|
star: $g,
|
|
4170
|
-
subquery:
|
|
4170
|
+
subquery: FM,
|
|
4171
4171
|
substring: ZM,
|
|
4172
4172
|
sum: aM,
|
|
4173
4173
|
table: HM,
|
|
4174
|
-
tokenize:
|
|
4175
|
-
transform:
|
|
4174
|
+
tokenize: TA,
|
|
4175
|
+
transform: GA,
|
|
4176
4176
|
transpile: pA,
|
|
4177
|
-
trim:
|
|
4177
|
+
trim: tM,
|
|
4178
4178
|
union: Yi,
|
|
4179
4179
|
unionAll: Hi,
|
|
4180
4180
|
update: oi,
|
|
4181
|
-
upper:
|
|
4181
|
+
upper: TM,
|
|
4182
4182
|
validate: Ri,
|
|
4183
|
-
validateWithSchema:
|
|
4183
|
+
validateWithSchema: Ui,
|
|
4184
4184
|
walk: j
|
|
4185
4185
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4186
4186
|
export {
|
|
@@ -4190,25 +4190,25 @@ export {
|
|
|
4190
4190
|
S as Expr,
|
|
4191
4191
|
II as InsertBuilder,
|
|
4192
4192
|
DI as MergeBuilder,
|
|
4193
|
-
|
|
4193
|
+
n as Polyglot,
|
|
4194
4194
|
gI as SelectBuilder,
|
|
4195
4195
|
_ as SetOpBuilder,
|
|
4196
4196
|
QI as UpdateBuilder,
|
|
4197
4197
|
Ji as ValidationSeverity,
|
|
4198
|
-
|
|
4198
|
+
nM as abs,
|
|
4199
4199
|
LM as alias,
|
|
4200
|
-
|
|
4200
|
+
UM as and,
|
|
4201
4201
|
fA as annotateTypes,
|
|
4202
4202
|
kM as ast,
|
|
4203
4203
|
qM as avg,
|
|
4204
4204
|
JA as boolean,
|
|
4205
|
-
|
|
4206
|
-
|
|
4205
|
+
Gi as caseOf,
|
|
4206
|
+
Ki as caseWhen,
|
|
4207
4207
|
cM as cast,
|
|
4208
4208
|
bM as ceil,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4209
|
+
eM as coalesce,
|
|
4210
|
+
KM as col,
|
|
4211
|
+
WM as concatWs,
|
|
4212
4212
|
hM as condition,
|
|
4213
4213
|
RM as count,
|
|
4214
4214
|
sM as countDistinct,
|
|
@@ -4224,16 +4224,16 @@ export {
|
|
|
4224
4224
|
Ei as extract,
|
|
4225
4225
|
YA as findAll,
|
|
4226
4226
|
uM as floor,
|
|
4227
|
-
|
|
4228
|
-
|
|
4227
|
+
dA as format,
|
|
4228
|
+
tA as formatWithOptions,
|
|
4229
4229
|
J as func,
|
|
4230
|
-
|
|
4230
|
+
PA as generate,
|
|
4231
4231
|
bg as getColumns,
|
|
4232
4232
|
jA as getDialects,
|
|
4233
4233
|
zg as getInferredType,
|
|
4234
4234
|
zA as getVersion,
|
|
4235
4235
|
gi as greatest,
|
|
4236
|
-
|
|
4236
|
+
lM as ifNull,
|
|
4237
4237
|
HI as init,
|
|
4238
4238
|
xM as initcap,
|
|
4239
4239
|
Ni as insert,
|
|
@@ -4245,21 +4245,21 @@ export {
|
|
|
4245
4245
|
Zg as isLiteral,
|
|
4246
4246
|
fg as isSelect,
|
|
4247
4247
|
Ii as least,
|
|
4248
|
-
|
|
4249
|
-
|
|
4248
|
+
dM as length,
|
|
4249
|
+
GM as lit,
|
|
4250
4250
|
_M as ln,
|
|
4251
|
-
|
|
4251
|
+
PM as lower,
|
|
4252
4252
|
jM as ltrim,
|
|
4253
|
-
|
|
4253
|
+
OM as max,
|
|
4254
4254
|
yi as mergeInto,
|
|
4255
4255
|
pM as min,
|
|
4256
4256
|
SM as not,
|
|
4257
|
-
|
|
4257
|
+
rM as nullIf,
|
|
4258
4258
|
JM as or,
|
|
4259
|
-
|
|
4259
|
+
OA as parse,
|
|
4260
4260
|
vM as power,
|
|
4261
4261
|
wi as rank,
|
|
4262
|
-
|
|
4262
|
+
rg as renameColumns,
|
|
4263
4263
|
VM as replace,
|
|
4264
4264
|
fM as reverse,
|
|
4265
4265
|
mM as round,
|
|
@@ -4274,14 +4274,14 @@ export {
|
|
|
4274
4274
|
ZM as substring,
|
|
4275
4275
|
aM as sum,
|
|
4276
4276
|
HM as table,
|
|
4277
|
-
|
|
4277
|
+
GA as transform,
|
|
4278
4278
|
pA as transpile,
|
|
4279
|
-
|
|
4279
|
+
tM as trim,
|
|
4280
4280
|
Yi as union,
|
|
4281
4281
|
Hi as unionAll,
|
|
4282
4282
|
oi as update,
|
|
4283
|
-
|
|
4283
|
+
TM as upper,
|
|
4284
4284
|
Ri as validate,
|
|
4285
|
-
|
|
4285
|
+
Ui as validateWithSchema,
|
|
4286
4286
|
j as walk
|
|
4287
4287
|
};
|