@polyglot-sql/sdk 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/cdn/polyglot.esm.js +1378 -1353
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +59 -1
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +2 -1
package/dist/cdn/polyglot.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(()=>{if(typeof globalThis.process<"u"&&globalThis.process.versions?.node){const _f=globalThis.fetch;globalThis.fetch=async function(u,...a){if(typeof u==="string"&&u.startsWith("file:")||u instanceof URL&&u.protocol==="file:"){const{readFileSync:r}=await import("node:fs");const{fileURLToPath:p}=await import("node:url");const b=r(p(typeof u==="string"?u:u.href));return new Response(b,{headers:{"Content-Type":"application/wasm"}})}return _f(u,...a)}}})();
|
|
2
|
-
const
|
|
2
|
+
const oI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, GI = async (g = {}, A) => {
|
|
3
3
|
let Q;
|
|
4
4
|
if (A.startsWith("data:")) {
|
|
5
5
|
const C = A.replace(/^data:.*?base64,/, "");
|
|
@@ -25,10 +25,10 @@ const DI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, iI = as
|
|
|
25
25
|
}
|
|
26
26
|
return Q.instance.exports;
|
|
27
27
|
};
|
|
28
|
-
class
|
|
28
|
+
class QA {
|
|
29
29
|
__destroy_into_raw() {
|
|
30
30
|
const A = this.__wbg_ptr;
|
|
31
|
-
return this.__wbg_ptr = 0,
|
|
31
|
+
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
32
32
|
}
|
|
33
33
|
free() {
|
|
34
34
|
const A = this.__destroy_into_raw();
|
|
@@ -46,7 +46,7 @@ class IA {
|
|
|
46
46
|
*/
|
|
47
47
|
constructor() {
|
|
48
48
|
const A = I.wasmassignmentarray_new();
|
|
49
|
-
return this.__wbg_ptr = A >>> 0,
|
|
49
|
+
return this.__wbg_ptr = A >>> 0, lA.register(this, this.__wbg_ptr, this), this;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Add a column = value assignment.
|
|
@@ -55,19 +55,19 @@ class IA {
|
|
|
55
55
|
*/
|
|
56
56
|
push(A, Q) {
|
|
57
57
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
58
|
-
|
|
58
|
+
Y(Q, K), I.wasmassignmentarray_push(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
Symbol.dispose && (
|
|
62
|
-
class
|
|
61
|
+
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
62
|
+
class b {
|
|
63
63
|
static __wrap(A) {
|
|
64
64
|
A = A >>> 0;
|
|
65
|
-
const Q = Object.create(
|
|
66
|
-
return Q.__wbg_ptr = A,
|
|
65
|
+
const Q = Object.create(b.prototype);
|
|
66
|
+
return Q.__wbg_ptr = A, YA.register(Q, Q.__wbg_ptr, Q), Q;
|
|
67
67
|
}
|
|
68
68
|
__destroy_into_raw() {
|
|
69
69
|
const A = this.__wbg_ptr;
|
|
70
|
-
return this.__wbg_ptr = 0,
|
|
70
|
+
return this.__wbg_ptr = 0, YA.unregister(this), A;
|
|
71
71
|
}
|
|
72
72
|
free() {
|
|
73
73
|
const A = this.__destroy_into_raw();
|
|
@@ -83,7 +83,7 @@ class r {
|
|
|
83
83
|
I.wasmcasebuilder_build_expr(B, this.__wbg_ptr);
|
|
84
84
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
85
85
|
if (C)
|
|
86
|
-
throw
|
|
86
|
+
throw H(Q);
|
|
87
87
|
return K.__wrap(A);
|
|
88
88
|
} finally {
|
|
89
89
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -94,14 +94,14 @@ class r {
|
|
|
94
94
|
* @param {WasmExpr} result
|
|
95
95
|
*/
|
|
96
96
|
else_(A) {
|
|
97
|
-
|
|
97
|
+
Y(A, K), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Create a new searched CASE builder (CASE WHEN ... THEN ...).
|
|
101
101
|
*/
|
|
102
102
|
constructor() {
|
|
103
103
|
const A = I.wasmcasebuilder_new();
|
|
104
|
-
return this.__wbg_ptr = A >>> 0,
|
|
104
|
+
return this.__wbg_ptr = A >>> 0, YA.register(this, this.__wbg_ptr, this), this;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Generate SQL string (generic dialect).
|
|
@@ -114,7 +114,7 @@ class r {
|
|
|
114
114
|
I.wasmcasebuilder_to_sql(M, this.__wbg_ptr);
|
|
115
115
|
var C = w().getInt32(M + 0, !0), B = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = C, k = B;
|
|
116
116
|
if (D)
|
|
117
|
-
throw o = 0, k = 0,
|
|
117
|
+
throw o = 0, k = 0, H(E);
|
|
118
118
|
return A = o, Q = k, q(o, k);
|
|
119
119
|
} finally {
|
|
120
120
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
@@ -126,11 +126,11 @@ class r {
|
|
|
126
126
|
* @param {WasmExpr} result
|
|
127
127
|
*/
|
|
128
128
|
when(A, Q) {
|
|
129
|
-
|
|
129
|
+
Y(A, K), Y(Q, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
Symbol.dispose && (
|
|
133
|
-
class
|
|
132
|
+
Symbol.dispose && (b.prototype[Symbol.dispose] = b.prototype.free);
|
|
133
|
+
class wA {
|
|
134
134
|
__destroy_into_raw() {
|
|
135
135
|
const A = this.__wbg_ptr;
|
|
136
136
|
return this.__wbg_ptr = 0, ZA.unregister(this), A;
|
|
@@ -149,8 +149,8 @@ class iA {
|
|
|
149
149
|
I.wasmdeletebuilder_build(B, this.__wbg_ptr);
|
|
150
150
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
151
151
|
if (C)
|
|
152
|
-
throw
|
|
153
|
-
return
|
|
152
|
+
throw H(Q);
|
|
153
|
+
return H(A);
|
|
154
154
|
} finally {
|
|
155
155
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
156
156
|
}
|
|
@@ -171,11 +171,11 @@ class iA {
|
|
|
171
171
|
to_sql(A) {
|
|
172
172
|
let Q, C;
|
|
173
173
|
try {
|
|
174
|
-
const
|
|
175
|
-
I.wasmdeletebuilder_to_sql(
|
|
176
|
-
var B = w().getInt32(
|
|
174
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
175
|
+
I.wasmdeletebuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
176
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
177
177
|
if (o)
|
|
178
|
-
throw k = 0, M = 0,
|
|
178
|
+
throw k = 0, M = 0, H(D);
|
|
179
179
|
return Q = k, C = M, q(k, M);
|
|
180
180
|
} finally {
|
|
181
181
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -186,10 +186,10 @@ class iA {
|
|
|
186
186
|
* @param {WasmExpr} condition
|
|
187
187
|
*/
|
|
188
188
|
where_expr(A) {
|
|
189
|
-
|
|
189
|
+
Y(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
Symbol.dispose && (
|
|
192
|
+
Symbol.dispose && (wA.prototype[Symbol.dispose] = wA.prototype.free);
|
|
193
193
|
class K {
|
|
194
194
|
static __wrap(A) {
|
|
195
195
|
A = A >>> 0;
|
|
@@ -210,7 +210,7 @@ class K {
|
|
|
210
210
|
* @returns {WasmExpr}
|
|
211
211
|
*/
|
|
212
212
|
add(A) {
|
|
213
|
-
|
|
213
|
+
Y(A, K);
|
|
214
214
|
const Q = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
|
|
215
215
|
return K.__wrap(Q);
|
|
216
216
|
}
|
|
@@ -229,7 +229,7 @@ class K {
|
|
|
229
229
|
* @returns {WasmExpr}
|
|
230
230
|
*/
|
|
231
231
|
and(A) {
|
|
232
|
-
|
|
232
|
+
Y(A, K);
|
|
233
233
|
const Q = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
|
|
234
234
|
return K.__wrap(Q);
|
|
235
235
|
}
|
|
@@ -248,7 +248,7 @@ class K {
|
|
|
248
248
|
* @returns {WasmExpr}
|
|
249
249
|
*/
|
|
250
250
|
between(A, Q) {
|
|
251
|
-
|
|
251
|
+
Y(A, K), Y(Q, K);
|
|
252
252
|
const C = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
|
|
253
253
|
return K.__wrap(C);
|
|
254
254
|
}
|
|
@@ -275,7 +275,7 @@ class K {
|
|
|
275
275
|
* @returns {WasmExpr}
|
|
276
276
|
*/
|
|
277
277
|
div(A) {
|
|
278
|
-
|
|
278
|
+
Y(A, K);
|
|
279
279
|
const Q = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
|
|
280
280
|
return K.__wrap(Q);
|
|
281
281
|
}
|
|
@@ -285,7 +285,7 @@ class K {
|
|
|
285
285
|
* @returns {WasmExpr}
|
|
286
286
|
*/
|
|
287
287
|
eq(A) {
|
|
288
|
-
|
|
288
|
+
Y(A, K);
|
|
289
289
|
const Q = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
|
|
290
290
|
return K.__wrap(Q);
|
|
291
291
|
}
|
|
@@ -295,7 +295,7 @@ class K {
|
|
|
295
295
|
* @returns {WasmExpr}
|
|
296
296
|
*/
|
|
297
297
|
gt(A) {
|
|
298
|
-
|
|
298
|
+
Y(A, K);
|
|
299
299
|
const Q = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
|
|
300
300
|
return K.__wrap(Q);
|
|
301
301
|
}
|
|
@@ -305,7 +305,7 @@ class K {
|
|
|
305
305
|
* @returns {WasmExpr}
|
|
306
306
|
*/
|
|
307
307
|
gte(A) {
|
|
308
|
-
|
|
308
|
+
Y(A, K);
|
|
309
309
|
const Q = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
|
|
310
310
|
return K.__wrap(Q);
|
|
311
311
|
}
|
|
@@ -315,7 +315,7 @@ class K {
|
|
|
315
315
|
* @returns {WasmExpr}
|
|
316
316
|
*/
|
|
317
317
|
ilike(A) {
|
|
318
|
-
|
|
318
|
+
Y(A, K);
|
|
319
319
|
const Q = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
|
|
320
320
|
return K.__wrap(Q);
|
|
321
321
|
}
|
|
@@ -325,7 +325,7 @@ class K {
|
|
|
325
325
|
* @returns {WasmExpr}
|
|
326
326
|
*/
|
|
327
327
|
in_list(A) {
|
|
328
|
-
|
|
328
|
+
Y(A, O);
|
|
329
329
|
const Q = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
|
|
330
330
|
return K.__wrap(Q);
|
|
331
331
|
}
|
|
@@ -351,7 +351,7 @@ class K {
|
|
|
351
351
|
* @returns {WasmExpr}
|
|
352
352
|
*/
|
|
353
353
|
like(A) {
|
|
354
|
-
|
|
354
|
+
Y(A, K);
|
|
355
355
|
const Q = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
|
|
356
356
|
return K.__wrap(Q);
|
|
357
357
|
}
|
|
@@ -361,7 +361,7 @@ class K {
|
|
|
361
361
|
* @returns {WasmExpr}
|
|
362
362
|
*/
|
|
363
363
|
lt(A) {
|
|
364
|
-
|
|
364
|
+
Y(A, K);
|
|
365
365
|
const Q = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
|
|
366
366
|
return K.__wrap(Q);
|
|
367
367
|
}
|
|
@@ -371,7 +371,7 @@ class K {
|
|
|
371
371
|
* @returns {WasmExpr}
|
|
372
372
|
*/
|
|
373
373
|
lte(A) {
|
|
374
|
-
|
|
374
|
+
Y(A, K);
|
|
375
375
|
const Q = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
|
|
376
376
|
return K.__wrap(Q);
|
|
377
377
|
}
|
|
@@ -381,7 +381,7 @@ class K {
|
|
|
381
381
|
* @returns {WasmExpr}
|
|
382
382
|
*/
|
|
383
383
|
mul(A) {
|
|
384
|
-
|
|
384
|
+
Y(A, K);
|
|
385
385
|
const Q = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
|
|
386
386
|
return K.__wrap(Q);
|
|
387
387
|
}
|
|
@@ -391,7 +391,7 @@ class K {
|
|
|
391
391
|
* @returns {WasmExpr}
|
|
392
392
|
*/
|
|
393
393
|
neq(A) {
|
|
394
|
-
|
|
394
|
+
Y(A, K);
|
|
395
395
|
const Q = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
|
|
396
396
|
return K.__wrap(Q);
|
|
397
397
|
}
|
|
@@ -409,7 +409,7 @@ class K {
|
|
|
409
409
|
* @returns {WasmExpr}
|
|
410
410
|
*/
|
|
411
411
|
not_in(A) {
|
|
412
|
-
|
|
412
|
+
Y(A, O);
|
|
413
413
|
const Q = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
|
|
414
414
|
return K.__wrap(Q);
|
|
415
415
|
}
|
|
@@ -419,7 +419,7 @@ class K {
|
|
|
419
419
|
* @returns {WasmExpr}
|
|
420
420
|
*/
|
|
421
421
|
or(A) {
|
|
422
|
-
|
|
422
|
+
Y(A, K);
|
|
423
423
|
const Q = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
|
|
424
424
|
return K.__wrap(Q);
|
|
425
425
|
}
|
|
@@ -429,7 +429,7 @@ class K {
|
|
|
429
429
|
* @returns {WasmExpr}
|
|
430
430
|
*/
|
|
431
431
|
rlike(A) {
|
|
432
|
-
|
|
432
|
+
Y(A, K);
|
|
433
433
|
const Q = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
|
|
434
434
|
return K.__wrap(Q);
|
|
435
435
|
}
|
|
@@ -439,7 +439,7 @@ class K {
|
|
|
439
439
|
* @returns {WasmExpr}
|
|
440
440
|
*/
|
|
441
441
|
sub(A) {
|
|
442
|
-
|
|
442
|
+
Y(A, K);
|
|
443
443
|
const Q = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
|
|
444
444
|
return K.__wrap(Q);
|
|
445
445
|
}
|
|
@@ -453,8 +453,8 @@ class K {
|
|
|
453
453
|
I.wasmexpr_to_json(B, this.__wbg_ptr);
|
|
454
454
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
455
455
|
if (C)
|
|
456
|
-
throw
|
|
457
|
-
return
|
|
456
|
+
throw H(Q);
|
|
457
|
+
return H(A);
|
|
458
458
|
} finally {
|
|
459
459
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
460
460
|
}
|
|
@@ -470,7 +470,7 @@ class K {
|
|
|
470
470
|
I.wasmexpr_to_sql(M, this.__wbg_ptr);
|
|
471
471
|
var C = w().getInt32(M + 0, !0), B = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = C, k = B;
|
|
472
472
|
if (D)
|
|
473
|
-
throw o = 0, k = 0,
|
|
473
|
+
throw o = 0, k = 0, H(E);
|
|
474
474
|
return A = o, Q = k, q(o, k);
|
|
475
475
|
} finally {
|
|
476
476
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
@@ -482,16 +482,16 @@ class K {
|
|
|
482
482
|
* @returns {WasmExpr}
|
|
483
483
|
*/
|
|
484
484
|
xor(A) {
|
|
485
|
-
|
|
485
|
+
Y(A, K);
|
|
486
486
|
const Q = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
|
|
487
487
|
return K.__wrap(Q);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
|
|
491
|
-
class
|
|
491
|
+
class O {
|
|
492
492
|
__destroy_into_raw() {
|
|
493
493
|
const A = this.__wbg_ptr;
|
|
494
|
-
return this.__wbg_ptr = 0,
|
|
494
|
+
return this.__wbg_ptr = 0, mA.unregister(this), A;
|
|
495
495
|
}
|
|
496
496
|
free() {
|
|
497
497
|
const A = this.__destroy_into_raw();
|
|
@@ -509,14 +509,14 @@ class T {
|
|
|
509
509
|
*/
|
|
510
510
|
constructor() {
|
|
511
511
|
const A = I.wasmassignmentarray_new();
|
|
512
|
-
return this.__wbg_ptr = A >>> 0,
|
|
512
|
+
return this.__wbg_ptr = A >>> 0, mA.register(this, this.__wbg_ptr, this), this;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
515
|
* Push an expression.
|
|
516
516
|
* @param {WasmExpr} expr
|
|
517
517
|
*/
|
|
518
518
|
push(A) {
|
|
519
|
-
|
|
519
|
+
Y(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
|
|
520
520
|
}
|
|
521
521
|
/**
|
|
522
522
|
* Push a column reference by name.
|
|
@@ -555,11 +555,11 @@ class T {
|
|
|
555
555
|
I.wasmexprarray_push_str(this.__wbg_ptr, Q, C);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
Symbol.dispose && (
|
|
559
|
-
class
|
|
558
|
+
Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
|
|
559
|
+
class oA {
|
|
560
560
|
__destroy_into_raw() {
|
|
561
561
|
const A = this.__wbg_ptr;
|
|
562
|
-
return this.__wbg_ptr = 0,
|
|
562
|
+
return this.__wbg_ptr = 0, VA.unregister(this), A;
|
|
563
563
|
}
|
|
564
564
|
free() {
|
|
565
565
|
const A = this.__destroy_into_raw();
|
|
@@ -575,8 +575,8 @@ class wA {
|
|
|
575
575
|
I.wasminsertbuilder_build(B, this.__wbg_ptr);
|
|
576
576
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
577
577
|
if (C)
|
|
578
|
-
throw
|
|
579
|
-
return
|
|
578
|
+
throw H(Q);
|
|
579
|
+
return H(A);
|
|
580
580
|
} finally {
|
|
581
581
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
582
582
|
}
|
|
@@ -586,7 +586,7 @@ class wA {
|
|
|
586
586
|
* @param {string[]} cols
|
|
587
587
|
*/
|
|
588
588
|
columns(A) {
|
|
589
|
-
const Q =
|
|
589
|
+
const Q = HA(A, I.__wbindgen_export), C = G;
|
|
590
590
|
I.wasminsertbuilder_columns(this.__wbg_ptr, Q, C);
|
|
591
591
|
}
|
|
592
592
|
/**
|
|
@@ -595,7 +595,7 @@ class wA {
|
|
|
595
595
|
*/
|
|
596
596
|
constructor(A) {
|
|
597
597
|
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasminsertbuilder_new(Q, C);
|
|
598
|
-
return this.__wbg_ptr = B >>> 0,
|
|
598
|
+
return this.__wbg_ptr = B >>> 0, VA.register(this, this.__wbg_ptr, this), this;
|
|
599
599
|
}
|
|
600
600
|
/**
|
|
601
601
|
* Set the source query for INSERT ... SELECT.
|
|
@@ -604,10 +604,10 @@ class wA {
|
|
|
604
604
|
query(A) {
|
|
605
605
|
try {
|
|
606
606
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
607
|
-
|
|
607
|
+
Y(A, t), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
|
|
608
608
|
var Q = w().getInt32(B + 0, !0), C = w().getInt32(B + 4, !0);
|
|
609
609
|
if (C)
|
|
610
|
-
throw
|
|
610
|
+
throw H(Q);
|
|
611
611
|
} finally {
|
|
612
612
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
613
613
|
}
|
|
@@ -620,11 +620,11 @@ class wA {
|
|
|
620
620
|
to_sql(A) {
|
|
621
621
|
let Q, C;
|
|
622
622
|
try {
|
|
623
|
-
const
|
|
624
|
-
I.wasminsertbuilder_to_sql(
|
|
625
|
-
var B = w().getInt32(
|
|
623
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
624
|
+
I.wasminsertbuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
625
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
626
626
|
if (o)
|
|
627
|
-
throw k = 0, M = 0,
|
|
627
|
+
throw k = 0, M = 0, H(D);
|
|
628
628
|
return Q = k, C = M, q(k, M);
|
|
629
629
|
} finally {
|
|
630
630
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -635,11 +635,11 @@ class wA {
|
|
|
635
635
|
* @param {WasmExprArray} vals
|
|
636
636
|
*/
|
|
637
637
|
values(A) {
|
|
638
|
-
|
|
638
|
+
Y(A, O), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
Symbol.dispose && (
|
|
642
|
-
class
|
|
641
|
+
Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
|
|
642
|
+
class GA {
|
|
643
643
|
__destroy_into_raw() {
|
|
644
644
|
const A = this.__wbg_ptr;
|
|
645
645
|
return this.__wbg_ptr = 0, PA.unregister(this), A;
|
|
@@ -658,8 +658,8 @@ class oA {
|
|
|
658
658
|
I.wasmmergebuilder_build(B, this.__wbg_ptr);
|
|
659
659
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
660
660
|
if (C)
|
|
661
|
-
throw
|
|
662
|
-
return
|
|
661
|
+
throw H(Q);
|
|
662
|
+
return H(A);
|
|
663
663
|
} finally {
|
|
664
664
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
665
665
|
}
|
|
@@ -680,11 +680,11 @@ class oA {
|
|
|
680
680
|
to_sql(A) {
|
|
681
681
|
let Q, C;
|
|
682
682
|
try {
|
|
683
|
-
const
|
|
684
|
-
I.wasmmergebuilder_to_sql(
|
|
685
|
-
var B = w().getInt32(
|
|
683
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
684
|
+
I.wasmmergebuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
685
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
686
686
|
if (o)
|
|
687
|
-
throw k = 0, M = 0,
|
|
687
|
+
throw k = 0, M = 0, H(D);
|
|
688
688
|
return Q = k, C = M, q(k, M);
|
|
689
689
|
} finally {
|
|
690
690
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -697,7 +697,7 @@ class oA {
|
|
|
697
697
|
*/
|
|
698
698
|
using(A, Q) {
|
|
699
699
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
700
|
-
|
|
700
|
+
Y(Q, K), I.wasmmergebuilder_using(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
701
701
|
}
|
|
702
702
|
/**
|
|
703
703
|
* Add a WHEN MATCHED THEN DELETE clause.
|
|
@@ -710,7 +710,7 @@ class oA {
|
|
|
710
710
|
* @param {WasmAssignmentArray} assignments
|
|
711
711
|
*/
|
|
712
712
|
when_matched_update(A) {
|
|
713
|
-
|
|
713
|
+
Y(A, QA), I.wasmmergebuilder_when_matched_update(this.__wbg_ptr, A.__wbg_ptr);
|
|
714
714
|
}
|
|
715
715
|
/**
|
|
716
716
|
* Add a WHEN NOT MATCHED THEN INSERT clause.
|
|
@@ -718,12 +718,12 @@ class oA {
|
|
|
718
718
|
* @param {WasmExprArray} values
|
|
719
719
|
*/
|
|
720
720
|
when_not_matched_insert(A, Q) {
|
|
721
|
-
const C =
|
|
722
|
-
|
|
721
|
+
const C = HA(A, I.__wbindgen_export), B = G;
|
|
722
|
+
Y(Q, O), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
Symbol.dispose && (
|
|
726
|
-
class
|
|
725
|
+
Symbol.dispose && (GA.prototype[Symbol.dispose] = GA.prototype.free);
|
|
726
|
+
class t {
|
|
727
727
|
__destroy_into_raw() {
|
|
728
728
|
const A = this.__wbg_ptr;
|
|
729
729
|
return this.__wbg_ptr = 0, eA.unregister(this), A;
|
|
@@ -742,8 +742,8 @@ class j {
|
|
|
742
742
|
I.wasmselectbuilder_build(B, this.__wbg_ptr);
|
|
743
743
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
744
744
|
if (C)
|
|
745
|
-
throw
|
|
746
|
-
return
|
|
745
|
+
throw H(Q);
|
|
746
|
+
return H(A);
|
|
747
747
|
} finally {
|
|
748
748
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
749
749
|
}
|
|
@@ -767,8 +767,8 @@ class j {
|
|
|
767
767
|
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, o);
|
|
768
768
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
769
769
|
if (B)
|
|
770
|
-
throw
|
|
771
|
-
return
|
|
770
|
+
throw H(C);
|
|
771
|
+
return H(Q);
|
|
772
772
|
} finally {
|
|
773
773
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
774
774
|
}
|
|
@@ -782,12 +782,12 @@ class j {
|
|
|
782
782
|
ctas_sql(A, Q) {
|
|
783
783
|
let C, B;
|
|
784
784
|
try {
|
|
785
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16),
|
|
786
|
-
I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr,
|
|
787
|
-
var E = w().getInt32(y + 0, !0), D = w().getInt32(y + 4, !0), o = w().getInt32(y + 8, !0), k = w().getInt32(y + 12, !0), M = E,
|
|
785
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), S = N(A, I.__wbindgen_export, I.__wbindgen_export2), p = G, j = N(Q, I.__wbindgen_export, I.__wbindgen_export2), e = G;
|
|
786
|
+
I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr, S, p, j, e);
|
|
787
|
+
var E = w().getInt32(y + 0, !0), D = w().getInt32(y + 4, !0), o = w().getInt32(y + 8, !0), k = w().getInt32(y + 12, !0), M = E, a = D;
|
|
788
788
|
if (k)
|
|
789
|
-
throw M = 0,
|
|
790
|
-
return C = M, B =
|
|
789
|
+
throw M = 0, a = 0, H(o);
|
|
790
|
+
return C = M, B = a, q(M, a);
|
|
791
791
|
} finally {
|
|
792
792
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
793
793
|
}
|
|
@@ -806,10 +806,10 @@ class j {
|
|
|
806
806
|
except_(A) {
|
|
807
807
|
try {
|
|
808
808
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
809
|
-
|
|
809
|
+
Y(A, t), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
810
810
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
811
811
|
if (B)
|
|
812
|
-
throw
|
|
812
|
+
throw H(C);
|
|
813
813
|
return z.__wrap(Q);
|
|
814
814
|
} finally {
|
|
815
815
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -834,21 +834,21 @@ class j {
|
|
|
834
834
|
* @param {WasmExpr} expr
|
|
835
835
|
*/
|
|
836
836
|
from_expr(A) {
|
|
837
|
-
|
|
837
|
+
Y(A, K), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
838
838
|
}
|
|
839
839
|
/**
|
|
840
840
|
* Set the GROUP BY clause.
|
|
841
841
|
* @param {WasmExprArray} cols
|
|
842
842
|
*/
|
|
843
843
|
group_by_cols(A) {
|
|
844
|
-
|
|
844
|
+
Y(A, O), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
|
|
845
845
|
}
|
|
846
846
|
/**
|
|
847
847
|
* Set the HAVING clause.
|
|
848
848
|
* @param {WasmExpr} condition
|
|
849
849
|
*/
|
|
850
850
|
having(A) {
|
|
851
|
-
|
|
851
|
+
Y(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Add a query hint.
|
|
@@ -866,10 +866,10 @@ class j {
|
|
|
866
866
|
intersect(A) {
|
|
867
867
|
try {
|
|
868
868
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
869
|
-
|
|
869
|
+
Y(A, t), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
870
870
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
871
871
|
if (B)
|
|
872
|
-
throw
|
|
872
|
+
throw H(C);
|
|
873
873
|
return z.__wrap(Q);
|
|
874
874
|
} finally {
|
|
875
875
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -882,7 +882,7 @@ class j {
|
|
|
882
882
|
*/
|
|
883
883
|
join(A, Q) {
|
|
884
884
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
885
|
-
|
|
885
|
+
Y(Q, K), I.wasmselectbuilder_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
886
886
|
}
|
|
887
887
|
/**
|
|
888
888
|
* Add a LATERAL VIEW clause (Hive/Spark).
|
|
@@ -891,8 +891,8 @@ class j {
|
|
|
891
891
|
* @param {string[]} col_aliases
|
|
892
892
|
*/
|
|
893
893
|
lateral_view(A, Q, C) {
|
|
894
|
-
|
|
895
|
-
const B = N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G, D =
|
|
894
|
+
Y(A, K);
|
|
895
|
+
const B = N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = HA(C, I.__wbindgen_export), o = G;
|
|
896
896
|
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, o);
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
@@ -902,7 +902,7 @@ class j {
|
|
|
902
902
|
*/
|
|
903
903
|
left_join(A, Q) {
|
|
904
904
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
905
|
-
|
|
905
|
+
Y(Q, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
908
908
|
* Set the LIMIT clause.
|
|
@@ -930,14 +930,14 @@ class j {
|
|
|
930
930
|
* @param {WasmExprArray} exprs
|
|
931
931
|
*/
|
|
932
932
|
order_by_exprs(A) {
|
|
933
|
-
|
|
933
|
+
Y(A, O), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
934
934
|
}
|
|
935
935
|
/**
|
|
936
936
|
* Set the QUALIFY clause.
|
|
937
937
|
* @param {WasmExpr} condition
|
|
938
938
|
*/
|
|
939
939
|
qualify(A) {
|
|
940
|
-
|
|
940
|
+
Y(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
|
|
941
941
|
}
|
|
942
942
|
/**
|
|
943
943
|
* Add a RIGHT JOIN.
|
|
@@ -946,7 +946,7 @@ class j {
|
|
|
946
946
|
*/
|
|
947
947
|
right_join(A, Q) {
|
|
948
948
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
949
|
-
|
|
949
|
+
Y(Q, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
950
950
|
}
|
|
951
951
|
/**
|
|
952
952
|
* Add a column by name to the SELECT list.
|
|
@@ -961,14 +961,14 @@ class j {
|
|
|
961
961
|
* @param {WasmExpr} expr
|
|
962
962
|
*/
|
|
963
963
|
select_expr(A) {
|
|
964
|
-
|
|
964
|
+
Y(A, K), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
965
965
|
}
|
|
966
966
|
/**
|
|
967
967
|
* Add multiple expressions to the SELECT list.
|
|
968
968
|
* @param {WasmExprArray} exprs
|
|
969
969
|
*/
|
|
970
970
|
select_exprs(A) {
|
|
971
|
-
|
|
971
|
+
Y(A, O), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
972
972
|
}
|
|
973
973
|
/**
|
|
974
974
|
* Add a star (*) to the SELECT list.
|
|
@@ -981,7 +981,7 @@ class j {
|
|
|
981
981
|
* @param {WasmExprArray} exprs
|
|
982
982
|
*/
|
|
983
983
|
sort_by_exprs(A) {
|
|
984
|
-
|
|
984
|
+
Y(A, O), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
985
985
|
}
|
|
986
986
|
/**
|
|
987
987
|
* Generate SQL string for the given dialect.
|
|
@@ -991,11 +991,11 @@ class j {
|
|
|
991
991
|
to_sql(A) {
|
|
992
992
|
let Q, C;
|
|
993
993
|
try {
|
|
994
|
-
const
|
|
995
|
-
I.wasmselectbuilder_to_sql(
|
|
996
|
-
var B = w().getInt32(
|
|
994
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
995
|
+
I.wasmselectbuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
996
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
997
997
|
if (o)
|
|
998
|
-
throw k = 0, M = 0,
|
|
998
|
+
throw k = 0, M = 0, H(D);
|
|
999
999
|
return Q = k, C = M, q(k, M);
|
|
1000
1000
|
} finally {
|
|
1001
1001
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -1009,10 +1009,10 @@ class j {
|
|
|
1009
1009
|
union(A) {
|
|
1010
1010
|
try {
|
|
1011
1011
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1012
|
-
|
|
1012
|
+
Y(A, t), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1013
1013
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
1014
1014
|
if (B)
|
|
1015
|
-
throw
|
|
1015
|
+
throw H(C);
|
|
1016
1016
|
return z.__wrap(Q);
|
|
1017
1017
|
} finally {
|
|
1018
1018
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1026,10 +1026,10 @@ class j {
|
|
|
1026
1026
|
union_all(A) {
|
|
1027
1027
|
try {
|
|
1028
1028
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1029
|
-
|
|
1029
|
+
Y(A, t), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1030
1030
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
1031
1031
|
if (B)
|
|
1032
|
-
throw
|
|
1032
|
+
throw H(C);
|
|
1033
1033
|
return z.__wrap(Q);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1040,7 +1040,7 @@ class j {
|
|
|
1040
1040
|
* @param {WasmExpr} condition
|
|
1041
1041
|
*/
|
|
1042
1042
|
where_expr(A) {
|
|
1043
|
-
|
|
1043
|
+
Y(A, K), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1044
1044
|
}
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Set the WHERE clause by parsing a raw SQL condition string.
|
|
@@ -1058,16 +1058,16 @@ class j {
|
|
|
1058
1058
|
window(A, Q) {
|
|
1059
1059
|
try {
|
|
1060
1060
|
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1061
|
-
|
|
1061
|
+
Y(Q, CA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, Q.__wbg_ptr);
|
|
1062
1062
|
var C = w().getInt32(E + 0, !0), B = w().getInt32(E + 4, !0);
|
|
1063
1063
|
if (B)
|
|
1064
|
-
throw
|
|
1064
|
+
throw H(C);
|
|
1065
1065
|
} finally {
|
|
1066
1066
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
Symbol.dispose && (
|
|
1070
|
+
Symbol.dispose && (t.prototype[Symbol.dispose] = t.prototype.free);
|
|
1071
1071
|
class z {
|
|
1072
1072
|
static __wrap(A) {
|
|
1073
1073
|
A = A >>> 0;
|
|
@@ -1092,8 +1092,8 @@ class z {
|
|
|
1092
1092
|
I.wasmsetopbuilder_build(B, this.__wbg_ptr);
|
|
1093
1093
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
1094
1094
|
if (C)
|
|
1095
|
-
throw
|
|
1096
|
-
return
|
|
1095
|
+
throw H(Q);
|
|
1096
|
+
return H(A);
|
|
1097
1097
|
} finally {
|
|
1098
1098
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1099
1099
|
}
|
|
@@ -1117,7 +1117,7 @@ class z {
|
|
|
1117
1117
|
* @param {WasmExprArray} exprs
|
|
1118
1118
|
*/
|
|
1119
1119
|
order_by_exprs(A) {
|
|
1120
|
-
|
|
1120
|
+
Y(A, O), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
1121
1121
|
}
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Generate SQL string for the given dialect.
|
|
@@ -1127,11 +1127,11 @@ class z {
|
|
|
1127
1127
|
to_sql(A) {
|
|
1128
1128
|
let Q, C;
|
|
1129
1129
|
try {
|
|
1130
|
-
const
|
|
1131
|
-
I.wasmsetopbuilder_to_sql(
|
|
1132
|
-
var B = w().getInt32(
|
|
1130
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
1131
|
+
I.wasmsetopbuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
1132
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
1133
1133
|
if (o)
|
|
1134
|
-
throw k = 0, M = 0,
|
|
1134
|
+
throw k = 0, M = 0, H(D);
|
|
1135
1135
|
return Q = k, C = M, q(k, M);
|
|
1136
1136
|
} finally {
|
|
1137
1137
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -1139,10 +1139,10 @@ class z {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
|
|
1142
|
-
class
|
|
1142
|
+
class NA {
|
|
1143
1143
|
__destroy_into_raw() {
|
|
1144
1144
|
const A = this.__wbg_ptr;
|
|
1145
|
-
return this.__wbg_ptr = 0,
|
|
1145
|
+
return this.__wbg_ptr = 0, bA.unregister(this), A;
|
|
1146
1146
|
}
|
|
1147
1147
|
free() {
|
|
1148
1148
|
const A = this.__destroy_into_raw();
|
|
@@ -1158,8 +1158,8 @@ class GA {
|
|
|
1158
1158
|
I.wasmupdatebuilder_build(B, this.__wbg_ptr);
|
|
1159
1159
|
var A = w().getInt32(B + 0, !0), Q = w().getInt32(B + 4, !0), C = w().getInt32(B + 8, !0);
|
|
1160
1160
|
if (C)
|
|
1161
|
-
throw
|
|
1162
|
-
return
|
|
1161
|
+
throw H(Q);
|
|
1162
|
+
return H(A);
|
|
1163
1163
|
} finally {
|
|
1164
1164
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1165
1165
|
}
|
|
@@ -1178,7 +1178,7 @@ class GA {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
constructor(A) {
|
|
1180
1180
|
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasmupdatebuilder_new(Q, C);
|
|
1181
|
-
return this.__wbg_ptr = B >>> 0,
|
|
1181
|
+
return this.__wbg_ptr = B >>> 0, bA.register(this, this.__wbg_ptr, this), this;
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Add a SET column = value assignment.
|
|
@@ -1187,7 +1187,7 @@ class GA {
|
|
|
1187
1187
|
*/
|
|
1188
1188
|
set(A, Q) {
|
|
1189
1189
|
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
1190
|
-
|
|
1190
|
+
Y(Q, K), I.wasmupdatebuilder_set(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Generate SQL string for the given dialect.
|
|
@@ -1197,11 +1197,11 @@ class GA {
|
|
|
1197
1197
|
to_sql(A) {
|
|
1198
1198
|
let Q, C;
|
|
1199
1199
|
try {
|
|
1200
|
-
const
|
|
1201
|
-
I.wasmupdatebuilder_to_sql(
|
|
1202
|
-
var B = w().getInt32(
|
|
1200
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G;
|
|
1201
|
+
I.wasmupdatebuilder_to_sql(a, this.__wbg_ptr, y, S);
|
|
1202
|
+
var B = w().getInt32(a + 0, !0), E = w().getInt32(a + 4, !0), D = w().getInt32(a + 8, !0), o = w().getInt32(a + 12, !0), k = B, M = E;
|
|
1203
1203
|
if (o)
|
|
1204
|
-
throw k = 0, M = 0,
|
|
1204
|
+
throw k = 0, M = 0, H(D);
|
|
1205
1205
|
return Q = k, C = M, q(k, M);
|
|
1206
1206
|
} finally {
|
|
1207
1207
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
@@ -1212,14 +1212,14 @@ class GA {
|
|
|
1212
1212
|
* @param {WasmExpr} condition
|
|
1213
1213
|
*/
|
|
1214
1214
|
where_expr(A) {
|
|
1215
|
-
|
|
1215
|
+
Y(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
Symbol.dispose && (
|
|
1219
|
-
class
|
|
1218
|
+
Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
|
|
1219
|
+
class CA {
|
|
1220
1220
|
__destroy_into_raw() {
|
|
1221
1221
|
const A = this.__wbg_ptr;
|
|
1222
|
-
return this.__wbg_ptr = 0,
|
|
1222
|
+
return this.__wbg_ptr = 0, fA.unregister(this), A;
|
|
1223
1223
|
}
|
|
1224
1224
|
free() {
|
|
1225
1225
|
const A = this.__destroy_into_raw();
|
|
@@ -1230,36 +1230,36 @@ class QA {
|
|
|
1230
1230
|
*/
|
|
1231
1231
|
constructor() {
|
|
1232
1232
|
const A = I.wasmwindowdefbuilder_new();
|
|
1233
|
-
return this.__wbg_ptr = A >>> 0,
|
|
1233
|
+
return this.__wbg_ptr = A >>> 0, fA.register(this, this.__wbg_ptr, this), this;
|
|
1234
1234
|
}
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Set the ORDER BY expressions.
|
|
1237
1237
|
* @param {WasmExprArray} exprs
|
|
1238
1238
|
*/
|
|
1239
1239
|
order_by(A) {
|
|
1240
|
-
|
|
1240
|
+
Y(A, O), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1241
1241
|
}
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Set the PARTITION BY expressions.
|
|
1244
1244
|
* @param {WasmExprArray} exprs
|
|
1245
1245
|
*/
|
|
1246
1246
|
partition_by(A) {
|
|
1247
|
-
|
|
1247
|
+
Y(A, O), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
Symbol.dispose && (
|
|
1251
|
-
function
|
|
1250
|
+
Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
|
|
1251
|
+
function vA(g, A, Q) {
|
|
1252
1252
|
let C, B;
|
|
1253
1253
|
try {
|
|
1254
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G,
|
|
1255
|
-
I.ast_add_where(o, k, M,
|
|
1254
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G;
|
|
1255
|
+
I.ast_add_where(o, k, M, a, y, Q);
|
|
1256
1256
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1257
1257
|
return C = E, B = D, q(E, D);
|
|
1258
1258
|
} finally {
|
|
1259
1259
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function XA(g) {
|
|
1263
1263
|
let A, Q;
|
|
1264
1264
|
try {
|
|
1265
1265
|
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
@@ -1270,7 +1270,7 @@ function uA(g) {
|
|
|
1270
1270
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function uA(g) {
|
|
1274
1274
|
let A, Q;
|
|
1275
1275
|
try {
|
|
1276
1276
|
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
@@ -1281,7 +1281,7 @@ function nA(g) {
|
|
|
1281
1281
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function nA(g) {
|
|
1285
1285
|
let A, Q;
|
|
1286
1286
|
try {
|
|
1287
1287
|
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
@@ -1350,8 +1350,8 @@ function Ig(g) {
|
|
|
1350
1350
|
function Qg(g, A) {
|
|
1351
1351
|
let Q, C;
|
|
1352
1352
|
try {
|
|
1353
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1354
|
-
I.ast_qualify_columns(D, o, k, M,
|
|
1353
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1354
|
+
I.ast_qualify_columns(D, o, k, M, a);
|
|
1355
1355
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1356
1356
|
return Q = B, C = E, q(B, E);
|
|
1357
1357
|
} finally {
|
|
@@ -1372,8 +1372,8 @@ function Cg(g) {
|
|
|
1372
1372
|
function Bg(g, A) {
|
|
1373
1373
|
let Q, C;
|
|
1374
1374
|
try {
|
|
1375
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1376
|
-
I.ast_rename_columns(D, o, k, M,
|
|
1375
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1376
|
+
I.ast_rename_columns(D, o, k, M, a);
|
|
1377
1377
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1378
1378
|
return Q = B, C = E, q(B, E);
|
|
1379
1379
|
} finally {
|
|
@@ -1383,8 +1383,8 @@ function Bg(g, A) {
|
|
|
1383
1383
|
function Eg(g, A) {
|
|
1384
1384
|
let Q, C;
|
|
1385
1385
|
try {
|
|
1386
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1387
|
-
I.ast_rename_tables(D, o, k, M,
|
|
1386
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1387
|
+
I.ast_rename_tables(D, o, k, M, a);
|
|
1388
1388
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1389
1389
|
return Q = B, C = E, q(B, E);
|
|
1390
1390
|
} finally {
|
|
@@ -1416,60 +1416,60 @@ function ig(g, A) {
|
|
|
1416
1416
|
function wg(g, A, Q, C, B, E) {
|
|
1417
1417
|
let D, o;
|
|
1418
1418
|
try {
|
|
1419
|
-
const
|
|
1420
|
-
I.diff_sql(
|
|
1421
|
-
var k = w().getInt32(
|
|
1419
|
+
const a = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(A, I.__wbindgen_export, I.__wbindgen_export2), j = G, e = N(Q, I.__wbindgen_export, I.__wbindgen_export2), u = G;
|
|
1420
|
+
I.diff_sql(a, y, S, p, j, e, u, C, B, E);
|
|
1421
|
+
var k = w().getInt32(a + 0, !0), M = w().getInt32(a + 4, !0);
|
|
1422
1422
|
return D = k, o = M, q(k, M);
|
|
1423
1423
|
} finally {
|
|
1424
1424
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, o, 1);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function NI(g, A) {
|
|
1428
1428
|
let Q, C;
|
|
1429
1429
|
try {
|
|
1430
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1431
|
-
I.format_sql(D, o, k, M,
|
|
1430
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1431
|
+
I.format_sql(D, o, k, M, a);
|
|
1432
1432
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1433
1433
|
return Q = B, C = E, q(B, E);
|
|
1434
1434
|
} finally {
|
|
1435
1435
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function kI(g, A) {
|
|
1439
1439
|
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.format_sql_value(Q, C, B, E);
|
|
1440
|
-
return
|
|
1440
|
+
return H(D);
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function MI(g, A, Q) {
|
|
1443
1443
|
let C, B;
|
|
1444
1444
|
try {
|
|
1445
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G,
|
|
1446
|
-
I.format_sql_with_options(o, k, M,
|
|
1445
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
|
|
1446
|
+
I.format_sql_with_options(o, k, M, a, y, S, p);
|
|
1447
1447
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1448
1448
|
return C = E, B = D, q(E, D);
|
|
1449
1449
|
} finally {
|
|
1450
1450
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = I.format_sql_with_options_value(C, B, E, D,
|
|
1455
|
-
return
|
|
1453
|
+
function KI(g, A, Q) {
|
|
1454
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = I.format_sql_with_options_value(C, B, E, D, F(Q));
|
|
1455
|
+
return H(o);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function aI(g, A) {
|
|
1458
1458
|
let Q, C;
|
|
1459
1459
|
try {
|
|
1460
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1461
|
-
I.generate(D, o, k, M,
|
|
1460
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1461
|
+
I.generate(D, o, k, M, a);
|
|
1462
1462
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1463
1463
|
return Q = B, C = E, q(B, E);
|
|
1464
1464
|
} finally {
|
|
1465
1465
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.generate_value(
|
|
1470
|
-
return
|
|
1468
|
+
function JI(g, A) {
|
|
1469
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.generate_value(F(g), Q, C);
|
|
1470
|
+
return H(B);
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function YI() {
|
|
1473
1473
|
let g, A;
|
|
1474
1474
|
try {
|
|
1475
1475
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1480,122 +1480,133 @@ function KI() {
|
|
|
1480
1480
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function yI() {
|
|
1484
1484
|
const g = I.get_dialects_value();
|
|
1485
|
-
return
|
|
1485
|
+
return H(g);
|
|
1486
1486
|
}
|
|
1487
1487
|
function og(g, A, Q, C) {
|
|
1488
1488
|
let B, E;
|
|
1489
1489
|
try {
|
|
1490
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1491
|
-
I.lineage_sql(k, M,
|
|
1490
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), a = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), j = G;
|
|
1491
|
+
I.lineage_sql(k, M, a, y, S, p, j, C);
|
|
1492
1492
|
var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
|
|
1493
1493
|
return B = D, E = o, q(D, o);
|
|
1494
1494
|
} finally {
|
|
1495
1495
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function Gg(g, A, Q, C, B) {
|
|
1499
|
+
let E, D;
|
|
1500
|
+
try {
|
|
1501
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), a = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(A, I.__wbindgen_export, I.__wbindgen_export2), p = G, j = N(Q, I.__wbindgen_export, I.__wbindgen_export2), e = G, u = N(C, I.__wbindgen_export, I.__wbindgen_export2), wI = G;
|
|
1502
|
+
I.lineage_sql_with_schema(M, a, y, S, p, j, e, u, wI, B);
|
|
1503
|
+
var o = w().getInt32(M + 0, !0), k = w().getInt32(M + 4, !0);
|
|
1504
|
+
return E = o, D = k, q(o, k);
|
|
1505
|
+
} finally {
|
|
1506
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
function RI(g, A) {
|
|
1499
1510
|
let Q, C;
|
|
1500
1511
|
try {
|
|
1501
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1502
|
-
I.parse(D, o, k, M,
|
|
1512
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1513
|
+
I.parse(D, o, k, M, a);
|
|
1503
1514
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1504
1515
|
return Q = B, C = E, q(B, E);
|
|
1505
1516
|
} finally {
|
|
1506
1517
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1507
1518
|
}
|
|
1508
1519
|
}
|
|
1509
|
-
function
|
|
1520
|
+
function cI(g, A) {
|
|
1510
1521
|
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.parse_value(Q, C, B, E);
|
|
1511
|
-
return
|
|
1522
|
+
return H(D);
|
|
1512
1523
|
}
|
|
1513
|
-
function
|
|
1524
|
+
function Ng(g, A) {
|
|
1514
1525
|
let Q, C;
|
|
1515
1526
|
try {
|
|
1516
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1517
|
-
I.plan(D, o, k, M,
|
|
1527
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1528
|
+
I.plan(D, o, k, M, a);
|
|
1518
1529
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1519
1530
|
return Q = B, C = E, q(B, E);
|
|
1520
1531
|
} finally {
|
|
1521
1532
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1522
1533
|
}
|
|
1523
1534
|
}
|
|
1524
|
-
function
|
|
1535
|
+
function kg(g, A, Q) {
|
|
1525
1536
|
let C, B;
|
|
1526
1537
|
try {
|
|
1527
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G,
|
|
1528
|
-
I.source_tables(o, k, M,
|
|
1538
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
|
|
1539
|
+
I.source_tables(o, k, M, a, y, S, p);
|
|
1529
1540
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1530
1541
|
return C = E, B = D, q(E, D);
|
|
1531
1542
|
} finally {
|
|
1532
1543
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1533
1544
|
}
|
|
1534
1545
|
}
|
|
1535
|
-
function
|
|
1546
|
+
function hI(g, A) {
|
|
1536
1547
|
let Q, C;
|
|
1537
1548
|
try {
|
|
1538
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1539
|
-
I.tokenize(D, o, k, M,
|
|
1549
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1550
|
+
I.tokenize(D, o, k, M, a);
|
|
1540
1551
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1541
1552
|
return Q = B, C = E, q(B, E);
|
|
1542
1553
|
} finally {
|
|
1543
1554
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1544
1555
|
}
|
|
1545
1556
|
}
|
|
1546
|
-
function
|
|
1557
|
+
function HI(g, A) {
|
|
1547
1558
|
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.tokenize_value(Q, C, B, E);
|
|
1548
|
-
return
|
|
1559
|
+
return H(D);
|
|
1549
1560
|
}
|
|
1550
|
-
function
|
|
1561
|
+
function qI(g, A, Q) {
|
|
1551
1562
|
let C, B;
|
|
1552
1563
|
try {
|
|
1553
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G,
|
|
1554
|
-
I.transpile(o, k, M,
|
|
1564
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
|
|
1565
|
+
I.transpile(o, k, M, a, y, S, p);
|
|
1555
1566
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1556
1567
|
return C = E, B = D, q(E, D);
|
|
1557
1568
|
} finally {
|
|
1558
1569
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1559
1570
|
}
|
|
1560
1571
|
}
|
|
1561
|
-
function
|
|
1572
|
+
function UI(g, A, Q) {
|
|
1562
1573
|
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = N(Q, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = I.transpile_value(C, B, E, D, o, k);
|
|
1563
|
-
return
|
|
1574
|
+
return H(M);
|
|
1564
1575
|
}
|
|
1565
|
-
function
|
|
1576
|
+
function SI(g, A) {
|
|
1566
1577
|
let Q, C;
|
|
1567
1578
|
try {
|
|
1568
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1569
|
-
I.validate(D, o, k, M,
|
|
1579
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = N(A, I.__wbindgen_export, I.__wbindgen_export2), a = G;
|
|
1580
|
+
I.validate(D, o, k, M, a);
|
|
1570
1581
|
var B = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1571
1582
|
return Q = B, C = E, q(B, E);
|
|
1572
1583
|
} finally {
|
|
1573
1584
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1574
1585
|
}
|
|
1575
1586
|
}
|
|
1576
|
-
function
|
|
1587
|
+
function FI(g, A, Q) {
|
|
1577
1588
|
let C, B;
|
|
1578
1589
|
try {
|
|
1579
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G,
|
|
1580
|
-
I.validate_with_options(o, k, M,
|
|
1590
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, a = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, S = N(Q, I.__wbindgen_export, I.__wbindgen_export2), p = G;
|
|
1591
|
+
I.validate_with_options(o, k, M, a, y, S, p);
|
|
1581
1592
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1582
1593
|
return C = E, B = D, q(E, D);
|
|
1583
1594
|
} finally {
|
|
1584
1595
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1585
1596
|
}
|
|
1586
1597
|
}
|
|
1587
|
-
function
|
|
1598
|
+
function Mg(g, A, Q, C) {
|
|
1588
1599
|
let B, E;
|
|
1589
1600
|
try {
|
|
1590
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1591
|
-
I.validate_with_schema(k, M,
|
|
1601
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), a = G, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), S = G, p = N(Q, I.__wbindgen_export, I.__wbindgen_export2), j = G, e = N(C, I.__wbindgen_export, I.__wbindgen_export2), u = G;
|
|
1602
|
+
I.validate_with_schema(k, M, a, y, S, p, j, e, u);
|
|
1592
1603
|
var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
|
|
1593
1604
|
return B = D, E = o, q(D, o);
|
|
1594
1605
|
} finally {
|
|
1595
1606
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
|
|
1596
1607
|
}
|
|
1597
1608
|
}
|
|
1598
|
-
function
|
|
1609
|
+
function LI() {
|
|
1599
1610
|
let g, A;
|
|
1600
1611
|
try {
|
|
1601
1612
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1606,13 +1617,13 @@ function cI() {
|
|
|
1606
1617
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1607
1618
|
}
|
|
1608
1619
|
}
|
|
1609
|
-
function
|
|
1610
|
-
|
|
1620
|
+
function Kg(g, A) {
|
|
1621
|
+
Y(g, K);
|
|
1611
1622
|
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasm_alias(g.__wbg_ptr, Q, C);
|
|
1612
1623
|
return K.__wrap(B);
|
|
1613
1624
|
}
|
|
1614
|
-
function
|
|
1615
|
-
|
|
1625
|
+
function ag(g, A) {
|
|
1626
|
+
Y(g, K), Y(A, K);
|
|
1616
1627
|
const Q = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
|
|
1617
1628
|
return K.__wrap(Q);
|
|
1618
1629
|
}
|
|
@@ -1621,161 +1632,161 @@ function Jg(g) {
|
|
|
1621
1632
|
return K.__wrap(A);
|
|
1622
1633
|
}
|
|
1623
1634
|
function Yg(g) {
|
|
1624
|
-
|
|
1635
|
+
Y(g, K);
|
|
1625
1636
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1626
|
-
return
|
|
1637
|
+
return b.__wrap(A);
|
|
1627
1638
|
}
|
|
1628
|
-
function
|
|
1629
|
-
|
|
1639
|
+
function yg(g, A) {
|
|
1640
|
+
Y(g, K);
|
|
1630
1641
|
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G, B = I.wasm_cast(g.__wbg_ptr, Q, C);
|
|
1631
1642
|
return K.__wrap(B);
|
|
1632
1643
|
}
|
|
1633
|
-
function
|
|
1644
|
+
function hA(g) {
|
|
1634
1645
|
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_col(A, Q);
|
|
1635
1646
|
return K.__wrap(C);
|
|
1636
1647
|
}
|
|
1637
1648
|
function Rg(g) {
|
|
1638
|
-
|
|
1649
|
+
Y(g, K);
|
|
1639
1650
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1640
1651
|
return K.__wrap(A);
|
|
1641
1652
|
}
|
|
1642
|
-
function
|
|
1653
|
+
function cg(g, A) {
|
|
1643
1654
|
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1644
|
-
|
|
1655
|
+
Y(A, K);
|
|
1645
1656
|
const B = I.wasm_extract(Q, C, A.__wbg_ptr);
|
|
1646
1657
|
return K.__wrap(B);
|
|
1647
1658
|
}
|
|
1648
|
-
function
|
|
1659
|
+
function hg(g, A) {
|
|
1649
1660
|
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1650
|
-
|
|
1661
|
+
Y(A, O);
|
|
1651
1662
|
const B = I.wasm_func(Q, C, A.__wbg_ptr);
|
|
1652
1663
|
return K.__wrap(B);
|
|
1653
1664
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const A = I.wasm_lit(
|
|
1665
|
+
function kA(g) {
|
|
1666
|
+
const A = I.wasm_lit(F(g));
|
|
1656
1667
|
return K.__wrap(A);
|
|
1657
1668
|
}
|
|
1658
1669
|
function Hg(g) {
|
|
1659
|
-
|
|
1670
|
+
Y(g, K);
|
|
1660
1671
|
const A = I.wasm_not(g.__wbg_ptr);
|
|
1661
1672
|
return K.__wrap(A);
|
|
1662
1673
|
}
|
|
1663
|
-
function
|
|
1674
|
+
function MA() {
|
|
1664
1675
|
const g = I.wasm_null();
|
|
1665
1676
|
return K.__wrap(g);
|
|
1666
1677
|
}
|
|
1667
|
-
function
|
|
1668
|
-
|
|
1678
|
+
function qg(g, A) {
|
|
1679
|
+
Y(g, K), Y(A, K);
|
|
1669
1680
|
const Q = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
|
|
1670
1681
|
return K.__wrap(Q);
|
|
1671
1682
|
}
|
|
1672
|
-
function
|
|
1683
|
+
function Ug(g) {
|
|
1673
1684
|
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_sql_expr(A, Q);
|
|
1674
1685
|
return K.__wrap(C);
|
|
1675
1686
|
}
|
|
1676
|
-
function
|
|
1687
|
+
function Sg() {
|
|
1677
1688
|
const g = I.wasm_star();
|
|
1678
1689
|
return K.__wrap(g);
|
|
1679
1690
|
}
|
|
1680
1691
|
function Fg(g, A) {
|
|
1681
1692
|
try {
|
|
1682
1693
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1683
|
-
|
|
1694
|
+
Y(g, t);
|
|
1684
1695
|
const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1685
1696
|
I.wasm_subquery(E, g.__wbg_ptr, D, o);
|
|
1686
1697
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0), B = w().getInt32(E + 8, !0);
|
|
1687
1698
|
if (B)
|
|
1688
|
-
throw
|
|
1699
|
+
throw H(C);
|
|
1689
1700
|
return K.__wrap(Q);
|
|
1690
1701
|
} finally {
|
|
1691
1702
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1692
1703
|
}
|
|
1693
1704
|
}
|
|
1694
|
-
function
|
|
1705
|
+
function Lg(g) {
|
|
1695
1706
|
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_table(A, Q);
|
|
1696
1707
|
return K.__wrap(C);
|
|
1697
1708
|
}
|
|
1698
|
-
function FI(g, A) {
|
|
1699
|
-
const Q = Error(q(g, A));
|
|
1700
|
-
return S(Q);
|
|
1701
|
-
}
|
|
1702
|
-
function SI(g) {
|
|
1703
|
-
return Number(U(g));
|
|
1704
|
-
}
|
|
1705
|
-
function LI(g, A) {
|
|
1706
|
-
const Q = String(U(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
1707
|
-
w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
|
|
1708
|
-
}
|
|
1709
1709
|
function sI(g, A) {
|
|
1710
|
-
const Q =
|
|
1711
|
-
|
|
1710
|
+
const Q = Error(q(g, A));
|
|
1711
|
+
return F(Q);
|
|
1712
1712
|
}
|
|
1713
1713
|
function pI(g) {
|
|
1714
|
-
|
|
1715
|
-
return f(Q) ? 16777215 : Q ? 1 : 0;
|
|
1714
|
+
return Number(c(g));
|
|
1716
1715
|
}
|
|
1717
|
-
function
|
|
1718
|
-
const Q =
|
|
1716
|
+
function OI(g, A) {
|
|
1717
|
+
const Q = String(c(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
1719
1718
|
w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
|
|
1720
1719
|
}
|
|
1721
1720
|
function xI(g, A) {
|
|
1722
|
-
|
|
1721
|
+
const Q = c(A), C = typeof Q == "bigint" ? Q : void 0;
|
|
1722
|
+
w().setBigInt64(g + 8, X(C) ? BigInt(0) : C, !0), w().setInt32(g + 0, !X(C), !0);
|
|
1723
1723
|
}
|
|
1724
1724
|
function jI(g) {
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
function OI(g) {
|
|
1728
|
-
return typeof U(g) == "function";
|
|
1725
|
+
const A = c(g), Q = typeof A == "boolean" ? A : void 0;
|
|
1726
|
+
return X(Q) ? 16777215 : Q ? 1 : 0;
|
|
1729
1727
|
}
|
|
1730
|
-
function tI(g) {
|
|
1731
|
-
|
|
1728
|
+
function tI(g, A) {
|
|
1729
|
+
const Q = RA(c(A)), C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
1730
|
+
w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
|
|
1732
1731
|
}
|
|
1733
|
-
function
|
|
1734
|
-
|
|
1735
|
-
return typeof A == "object" && A !== null;
|
|
1732
|
+
function TI(g, A) {
|
|
1733
|
+
return c(g) in c(A);
|
|
1736
1734
|
}
|
|
1737
1735
|
function dI(g) {
|
|
1738
|
-
return typeof
|
|
1736
|
+
return typeof c(g) == "bigint";
|
|
1737
|
+
}
|
|
1738
|
+
function lI(g) {
|
|
1739
|
+
return typeof c(g) == "function";
|
|
1739
1740
|
}
|
|
1740
1741
|
function ZI(g) {
|
|
1741
|
-
return
|
|
1742
|
+
return c(g) === null;
|
|
1742
1743
|
}
|
|
1743
|
-
function zI(g
|
|
1744
|
-
|
|
1744
|
+
function zI(g) {
|
|
1745
|
+
const A = c(g);
|
|
1746
|
+
return typeof A == "object" && A !== null;
|
|
1745
1747
|
}
|
|
1746
|
-
function
|
|
1747
|
-
return
|
|
1748
|
+
function mI(g) {
|
|
1749
|
+
return typeof c(g) == "string";
|
|
1748
1750
|
}
|
|
1749
|
-
function
|
|
1750
|
-
|
|
1751
|
-
w().setFloat64(g + 8, f(C) ? 0 : C, !0), w().setInt32(g + 0, !f(C), !0);
|
|
1751
|
+
function VI(g) {
|
|
1752
|
+
return c(g) === void 0;
|
|
1752
1753
|
}
|
|
1753
1754
|
function PI(g, A) {
|
|
1754
|
-
|
|
1755
|
-
var B = f(C) ? 0 : N(C, I.__wbindgen_export, I.__wbindgen_export2), E = G;
|
|
1756
|
-
w().setInt32(g + 4, E, !0), w().setInt32(g + 0, B, !0);
|
|
1755
|
+
return c(g) === c(A);
|
|
1757
1756
|
}
|
|
1758
1757
|
function eI(g, A) {
|
|
1758
|
+
return c(g) == c(A);
|
|
1759
|
+
}
|
|
1760
|
+
function rI(g, A) {
|
|
1761
|
+
const Q = c(A), C = typeof Q == "number" ? Q : void 0;
|
|
1762
|
+
w().setFloat64(g + 8, X(C) ? 0 : C, !0), w().setInt32(g + 0, !X(C), !0);
|
|
1763
|
+
}
|
|
1764
|
+
function bI(g, A) {
|
|
1765
|
+
const Q = c(A), C = typeof Q == "string" ? Q : void 0;
|
|
1766
|
+
var B = X(C) ? 0 : N(C, I.__wbindgen_export, I.__wbindgen_export2), E = G;
|
|
1767
|
+
w().setInt32(g + 4, E, !0), w().setInt32(g + 0, B, !0);
|
|
1768
|
+
}
|
|
1769
|
+
function fI(g, A) {
|
|
1759
1770
|
throw new Error(q(g, A));
|
|
1760
1771
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1763
|
-
const Q =
|
|
1764
|
-
return
|
|
1772
|
+
function WI() {
|
|
1773
|
+
return KA(function(g, A) {
|
|
1774
|
+
const Q = c(g).call(c(A));
|
|
1775
|
+
return F(Q);
|
|
1765
1776
|
}, arguments);
|
|
1766
1777
|
}
|
|
1767
|
-
function
|
|
1768
|
-
const Q =
|
|
1769
|
-
return
|
|
1778
|
+
function vI(g, A) {
|
|
1779
|
+
const Q = c(g).codePointAt(A >>> 0);
|
|
1780
|
+
return F(Q);
|
|
1770
1781
|
}
|
|
1771
|
-
function
|
|
1772
|
-
return
|
|
1782
|
+
function XI(g) {
|
|
1783
|
+
return c(g).done;
|
|
1773
1784
|
}
|
|
1774
|
-
function
|
|
1775
|
-
const A = Object.entries(
|
|
1776
|
-
return
|
|
1785
|
+
function uI(g) {
|
|
1786
|
+
const A = Object.entries(c(g));
|
|
1787
|
+
return F(A);
|
|
1777
1788
|
}
|
|
1778
|
-
function
|
|
1789
|
+
function nI(g, A) {
|
|
1779
1790
|
let Q, C;
|
|
1780
1791
|
try {
|
|
1781
1792
|
Q = g, C = A, console.error(q(g, A));
|
|
@@ -1783,153 +1794,153 @@ function fI(g, A) {
|
|
|
1783
1794
|
I.__wbindgen_export4(Q, C, 1);
|
|
1784
1795
|
}
|
|
1785
1796
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return
|
|
1797
|
+
function _I() {
|
|
1798
|
+
return KA(function(g) {
|
|
1788
1799
|
const A = String.fromCodePoint(g >>> 0);
|
|
1789
|
-
return
|
|
1800
|
+
return F(A);
|
|
1790
1801
|
}, arguments);
|
|
1791
1802
|
}
|
|
1792
|
-
function
|
|
1793
|
-
const Q =
|
|
1794
|
-
return
|
|
1803
|
+
function $I(g, A) {
|
|
1804
|
+
const Q = c(g)[A >>> 0];
|
|
1805
|
+
return F(Q);
|
|
1795
1806
|
}
|
|
1796
|
-
function
|
|
1797
|
-
return
|
|
1798
|
-
const Q = Reflect.get(
|
|
1799
|
-
return
|
|
1807
|
+
function AQ() {
|
|
1808
|
+
return KA(function(g, A) {
|
|
1809
|
+
const Q = Reflect.get(c(g), c(A));
|
|
1810
|
+
return F(Q);
|
|
1800
1811
|
}, arguments);
|
|
1801
1812
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const Q =
|
|
1804
|
-
return
|
|
1813
|
+
function gQ(g, A) {
|
|
1814
|
+
const Q = c(g)[c(A)];
|
|
1815
|
+
return F(Q);
|
|
1805
1816
|
}
|
|
1806
|
-
function
|
|
1817
|
+
function IQ(g) {
|
|
1807
1818
|
let A;
|
|
1808
1819
|
try {
|
|
1809
|
-
A =
|
|
1820
|
+
A = c(g) instanceof ArrayBuffer;
|
|
1810
1821
|
} catch {
|
|
1811
1822
|
A = !1;
|
|
1812
1823
|
}
|
|
1813
1824
|
return A;
|
|
1814
1825
|
}
|
|
1815
|
-
function
|
|
1826
|
+
function QQ(g) {
|
|
1816
1827
|
let A;
|
|
1817
1828
|
try {
|
|
1818
|
-
A =
|
|
1829
|
+
A = c(g) instanceof Map;
|
|
1819
1830
|
} catch {
|
|
1820
1831
|
A = !1;
|
|
1821
1832
|
}
|
|
1822
1833
|
return A;
|
|
1823
1834
|
}
|
|
1824
|
-
function
|
|
1835
|
+
function CQ(g) {
|
|
1825
1836
|
let A;
|
|
1826
1837
|
try {
|
|
1827
|
-
A =
|
|
1838
|
+
A = c(g) instanceof Uint8Array;
|
|
1828
1839
|
} catch {
|
|
1829
1840
|
A = !1;
|
|
1830
1841
|
}
|
|
1831
1842
|
return A;
|
|
1832
1843
|
}
|
|
1833
|
-
function
|
|
1834
|
-
return Array.isArray(
|
|
1844
|
+
function BQ(g) {
|
|
1845
|
+
return Array.isArray(c(g));
|
|
1835
1846
|
}
|
|
1836
|
-
function
|
|
1837
|
-
return Number.isSafeInteger(
|
|
1847
|
+
function EQ(g) {
|
|
1848
|
+
return Number.isSafeInteger(c(g));
|
|
1838
1849
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return
|
|
1850
|
+
function DQ() {
|
|
1851
|
+
return F(Symbol.iterator);
|
|
1841
1852
|
}
|
|
1842
|
-
function
|
|
1843
|
-
return
|
|
1853
|
+
function iQ(g) {
|
|
1854
|
+
return c(g).length;
|
|
1844
1855
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1856
|
+
function wQ(g) {
|
|
1857
|
+
return c(g).length;
|
|
1847
1858
|
}
|
|
1848
|
-
function
|
|
1849
|
-
return
|
|
1859
|
+
function oQ(g) {
|
|
1860
|
+
return c(g).length;
|
|
1850
1861
|
}
|
|
1851
|
-
function
|
|
1862
|
+
function GQ() {
|
|
1852
1863
|
const g = new Object();
|
|
1853
|
-
return
|
|
1864
|
+
return F(g);
|
|
1854
1865
|
}
|
|
1855
|
-
function
|
|
1866
|
+
function NQ() {
|
|
1856
1867
|
const g = new Array();
|
|
1857
|
-
return
|
|
1868
|
+
return F(g);
|
|
1858
1869
|
}
|
|
1859
|
-
function
|
|
1870
|
+
function kQ() {
|
|
1860
1871
|
const g = new Error();
|
|
1861
|
-
return
|
|
1872
|
+
return F(g);
|
|
1862
1873
|
}
|
|
1863
|
-
function
|
|
1864
|
-
return
|
|
1874
|
+
function MQ() {
|
|
1875
|
+
return F(/* @__PURE__ */ new Map());
|
|
1865
1876
|
}
|
|
1866
|
-
function
|
|
1867
|
-
const A = new Uint8Array(
|
|
1868
|
-
return
|
|
1877
|
+
function KQ(g) {
|
|
1878
|
+
const A = new Uint8Array(c(g));
|
|
1879
|
+
return F(A);
|
|
1869
1880
|
}
|
|
1870
|
-
function
|
|
1871
|
-
return
|
|
1872
|
-
const A =
|
|
1873
|
-
return
|
|
1881
|
+
function aQ() {
|
|
1882
|
+
return KA(function(g) {
|
|
1883
|
+
const A = c(g).next();
|
|
1884
|
+
return F(A);
|
|
1874
1885
|
}, arguments);
|
|
1875
1886
|
}
|
|
1876
|
-
function
|
|
1877
|
-
const A =
|
|
1878
|
-
return
|
|
1887
|
+
function JQ(g) {
|
|
1888
|
+
const A = c(g).next;
|
|
1889
|
+
return F(A);
|
|
1879
1890
|
}
|
|
1880
|
-
function
|
|
1881
|
-
Uint8Array.prototype.set.call(
|
|
1891
|
+
function YQ(g, A, Q) {
|
|
1892
|
+
Uint8Array.prototype.set.call(OQ(g, A), c(Q));
|
|
1882
1893
|
}
|
|
1883
|
-
function
|
|
1884
|
-
const C =
|
|
1885
|
-
return
|
|
1894
|
+
function yQ(g, A, Q) {
|
|
1895
|
+
const C = c(g).set(c(A), c(Q));
|
|
1896
|
+
return F(C);
|
|
1886
1897
|
}
|
|
1887
|
-
function
|
|
1888
|
-
|
|
1898
|
+
function RQ(g, A, Q) {
|
|
1899
|
+
c(g)[H(A)] = H(Q);
|
|
1889
1900
|
}
|
|
1890
|
-
function
|
|
1891
|
-
|
|
1901
|
+
function cQ(g, A, Q) {
|
|
1902
|
+
c(g)[A >>> 0] = H(Q);
|
|
1892
1903
|
}
|
|
1893
|
-
function
|
|
1894
|
-
const Q =
|
|
1904
|
+
function hQ(g, A) {
|
|
1905
|
+
const Q = c(A).stack, C = N(Q, I.__wbindgen_export, I.__wbindgen_export2), B = G;
|
|
1895
1906
|
w().setInt32(g + 4, B, !0), w().setInt32(g + 0, C, !0);
|
|
1896
1907
|
}
|
|
1897
|
-
function
|
|
1898
|
-
const A =
|
|
1899
|
-
return
|
|
1908
|
+
function HQ(g) {
|
|
1909
|
+
const A = c(g).value;
|
|
1910
|
+
return F(A);
|
|
1900
1911
|
}
|
|
1901
|
-
function
|
|
1902
|
-
return
|
|
1912
|
+
function qQ(g) {
|
|
1913
|
+
return F(g);
|
|
1903
1914
|
}
|
|
1904
|
-
function
|
|
1905
|
-
return
|
|
1915
|
+
function UQ(g) {
|
|
1916
|
+
return F(g);
|
|
1906
1917
|
}
|
|
1907
|
-
function
|
|
1918
|
+
function SQ(g, A) {
|
|
1908
1919
|
const Q = q(g, A);
|
|
1909
|
-
return
|
|
1920
|
+
return F(Q);
|
|
1910
1921
|
}
|
|
1911
|
-
function
|
|
1922
|
+
function FQ(g) {
|
|
1912
1923
|
const A = BigInt.asUintN(64, g);
|
|
1913
|
-
return
|
|
1924
|
+
return F(A);
|
|
1914
1925
|
}
|
|
1915
|
-
function
|
|
1916
|
-
const A =
|
|
1917
|
-
return
|
|
1926
|
+
function LQ(g) {
|
|
1927
|
+
const A = c(g);
|
|
1928
|
+
return F(A);
|
|
1918
1929
|
}
|
|
1919
|
-
function
|
|
1920
|
-
|
|
1930
|
+
function sQ(g) {
|
|
1931
|
+
H(g);
|
|
1921
1932
|
}
|
|
1922
|
-
const
|
|
1933
|
+
const lA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1923
1934
|
}, unregister: () => {
|
|
1924
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)),
|
|
1935
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), YA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1925
1936
|
}, unregister: () => {
|
|
1926
1937
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), ZA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1927
1938
|
}, unregister: () => {
|
|
1928
1939
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1929
1940
|
}, unregister: () => {
|
|
1930
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)),
|
|
1941
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1931
1942
|
}, unregister: () => {
|
|
1932
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)),
|
|
1943
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1933
1944
|
}, unregister: () => {
|
|
1934
1945
|
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), PA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1935
1946
|
}, unregister: () => {
|
|
@@ -1937,21 +1948,21 @@ const dA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
1937
1948
|
}, unregister: () => {
|
|
1938
1949
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1939
1950
|
}, unregister: () => {
|
|
1940
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)),
|
|
1951
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), bA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1941
1952
|
}, unregister: () => {
|
|
1942
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)),
|
|
1953
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1943
1954
|
}, unregister: () => {
|
|
1944
1955
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1947
|
-
const A =
|
|
1948
|
-
return
|
|
1956
|
+
function F(g) {
|
|
1957
|
+
AA === Z.length && Z.push(Z.length + 1);
|
|
1958
|
+
const A = AA;
|
|
1959
|
+
return AA = Z[A], Z[A] = g, A;
|
|
1949
1960
|
}
|
|
1950
|
-
function
|
|
1961
|
+
function Y(g, A) {
|
|
1951
1962
|
if (!(g instanceof A))
|
|
1952
1963
|
throw new Error(`expected instance of ${A.name}`);
|
|
1953
1964
|
}
|
|
1954
|
-
function
|
|
1965
|
+
function RA(g) {
|
|
1955
1966
|
const A = typeof g;
|
|
1956
1967
|
if (A == "number" || A == "boolean" || g == null)
|
|
1957
1968
|
return `${g}`;
|
|
@@ -1968,9 +1979,9 @@ function yA(g) {
|
|
|
1968
1979
|
if (Array.isArray(g)) {
|
|
1969
1980
|
const B = g.length;
|
|
1970
1981
|
let E = "[";
|
|
1971
|
-
B > 0 && (E +=
|
|
1982
|
+
B > 0 && (E += RA(g[0]));
|
|
1972
1983
|
for (let D = 1; D < B; D++)
|
|
1973
|
-
E += ", " +
|
|
1984
|
+
E += ", " + RA(g[D]);
|
|
1974
1985
|
return E += "]", E;
|
|
1975
1986
|
}
|
|
1976
1987
|
const Q = /\[object ([^\]]+)\]/.exec(toString.call(g));
|
|
@@ -1988,52 +1999,52 @@ function yA(g) {
|
|
|
1988
1999
|
return g instanceof Error ? `${g.name}: ${g.message}
|
|
1989
2000
|
${g.stack}` : C;
|
|
1990
2001
|
}
|
|
1991
|
-
function
|
|
1992
|
-
g < 132 || (Z[g] =
|
|
2002
|
+
function pQ(g) {
|
|
2003
|
+
g < 132 || (Z[g] = AA, AA = g);
|
|
1993
2004
|
}
|
|
1994
|
-
function
|
|
1995
|
-
return g = g >>> 0,
|
|
2005
|
+
function OQ(g, A) {
|
|
2006
|
+
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
1996
2007
|
}
|
|
1997
2008
|
let v = null;
|
|
1998
2009
|
function w() {
|
|
1999
2010
|
return (v === null || v.buffer.detached === !0 || v.buffer.detached === void 0 && v.buffer !== I.memory.buffer) && (v = new DataView(I.memory.buffer)), v;
|
|
2000
2011
|
}
|
|
2001
2012
|
function q(g, A) {
|
|
2002
|
-
return g = g >>> 0,
|
|
2013
|
+
return g = g >>> 0, jQ(g, A);
|
|
2003
2014
|
}
|
|
2004
|
-
let
|
|
2005
|
-
function
|
|
2006
|
-
return (
|
|
2015
|
+
let EA = null;
|
|
2016
|
+
function $() {
|
|
2017
|
+
return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
|
|
2007
2018
|
}
|
|
2008
|
-
function
|
|
2019
|
+
function c(g) {
|
|
2009
2020
|
return Z[g];
|
|
2010
2021
|
}
|
|
2011
|
-
function
|
|
2022
|
+
function KA(g, A) {
|
|
2012
2023
|
try {
|
|
2013
2024
|
return g.apply(this, A);
|
|
2014
2025
|
} catch (Q) {
|
|
2015
|
-
I.__wbindgen_export3(
|
|
2026
|
+
I.__wbindgen_export3(F(Q));
|
|
2016
2027
|
}
|
|
2017
2028
|
}
|
|
2018
2029
|
let Z = new Array(128).fill(void 0);
|
|
2019
2030
|
Z.push(void 0, null, !0, !1);
|
|
2020
|
-
let
|
|
2021
|
-
function
|
|
2031
|
+
let AA = Z.length;
|
|
2032
|
+
function X(g) {
|
|
2022
2033
|
return g == null;
|
|
2023
2034
|
}
|
|
2024
|
-
function
|
|
2035
|
+
function HA(g, A) {
|
|
2025
2036
|
const Q = A(g.length * 4, 4) >>> 0, C = w();
|
|
2026
2037
|
for (let B = 0; B < g.length; B++)
|
|
2027
|
-
C.setUint32(Q + 4 * B,
|
|
2038
|
+
C.setUint32(Q + 4 * B, F(g[B]), !0);
|
|
2028
2039
|
return G = g.length, Q;
|
|
2029
2040
|
}
|
|
2030
2041
|
function N(g, A, Q) {
|
|
2031
2042
|
if (Q === void 0) {
|
|
2032
|
-
const o =
|
|
2033
|
-
return
|
|
2043
|
+
const o = gA.encode(g), k = A(o.length, 1) >>> 0;
|
|
2044
|
+
return $().subarray(k, k + o.length).set(o), G = o.length, k;
|
|
2034
2045
|
}
|
|
2035
2046
|
let C = g.length, B = A(C, 1) >>> 0;
|
|
2036
|
-
const E =
|
|
2047
|
+
const E = $();
|
|
2037
2048
|
let D = 0;
|
|
2038
2049
|
for (; D < C; D++) {
|
|
2039
2050
|
const o = g.charCodeAt(D);
|
|
@@ -2042,291 +2053,292 @@ function N(g, A, Q) {
|
|
|
2042
2053
|
}
|
|
2043
2054
|
if (D !== C) {
|
|
2044
2055
|
D !== 0 && (g = g.slice(D)), B = Q(B, C, C = D + g.length * 3, 1) >>> 0;
|
|
2045
|
-
const o =
|
|
2056
|
+
const o = $().subarray(B + D, B + C), k = gA.encodeInto(g, o);
|
|
2046
2057
|
D += k.written, B = Q(B, C, D, 1) >>> 0;
|
|
2047
2058
|
}
|
|
2048
2059
|
return G = D, B;
|
|
2049
2060
|
}
|
|
2050
|
-
function
|
|
2051
|
-
const A =
|
|
2052
|
-
return
|
|
2053
|
-
}
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
const
|
|
2057
|
-
let
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2060
|
-
}
|
|
2061
|
-
const
|
|
2062
|
-
"encodeInto" in
|
|
2063
|
-
const Q =
|
|
2061
|
+
function H(g) {
|
|
2062
|
+
const A = c(g);
|
|
2063
|
+
return pQ(g), A;
|
|
2064
|
+
}
|
|
2065
|
+
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2066
|
+
DA.decode();
|
|
2067
|
+
const xQ = 2146435072;
|
|
2068
|
+
let yA = 0;
|
|
2069
|
+
function jQ(g, A) {
|
|
2070
|
+
return yA += A, yA >= xQ && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), yA = A), DA.decode($().subarray(g, g + A));
|
|
2071
|
+
}
|
|
2072
|
+
const gA = new TextEncoder();
|
|
2073
|
+
"encodeInto" in gA || (gA.encodeInto = function(g, A) {
|
|
2074
|
+
const Q = gA.encode(g);
|
|
2064
2075
|
return A.set(Q), {
|
|
2065
2076
|
read: g.length,
|
|
2066
2077
|
written: Q.length
|
|
2067
2078
|
};
|
|
2068
2079
|
});
|
|
2069
2080
|
let G = 0, I;
|
|
2070
|
-
function
|
|
2081
|
+
function tQ(g) {
|
|
2071
2082
|
I = g;
|
|
2072
2083
|
}
|
|
2073
2084
|
URL = globalThis.URL;
|
|
2074
|
-
const i = await
|
|
2075
|
-
__wbindgen_object_drop_ref:
|
|
2076
|
-
__wbindgen_object_clone_ref:
|
|
2077
|
-
__wbg_new_8a6f238a6ece86ea:
|
|
2078
|
-
__wbg_stack_0ed75d68575b0f3c:
|
|
2079
|
-
__wbg_error_7534b8e9a36f1ab4:
|
|
2080
|
-
__wbg_get_with_ref_key_1dc361bd10053bfe:
|
|
2081
|
-
__wbg_set_3f1d0b984ed272ed:
|
|
2082
|
-
__wbg_String_8f0eb39a4a4c2f66:
|
|
2083
|
-
__wbg_new_dd2b680c8bf6ae29:
|
|
2084
|
-
__wbg_length_32ed9a279acd054c:
|
|
2085
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2086
|
-
__wbg_done_57b39ecd9addfe81:
|
|
2087
|
-
__wbg_value_0546255b415e96c1:
|
|
2088
|
-
__wbg_instanceof_Map_53af74335dec57f4:
|
|
2089
|
-
__wbg_instanceof_Uint8Array_9b9075935c74707c:
|
|
2090
|
-
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:
|
|
2091
|
-
__wbg_new_dca287b076112a51:
|
|
2092
|
-
__wbg_set_1eb0999cf5d27fc8:
|
|
2093
|
-
__wbg_get_9b94d73e6221f75c:
|
|
2094
|
-
__wbg_new_3eb36ae241fe6f44:
|
|
2095
|
-
__wbg_set_f43e577aea94465b:
|
|
2096
|
-
__wbg_length_35a7bace40f36eac:
|
|
2097
|
-
__wbg_isArray_d314bb98fcf08331:
|
|
2098
|
-
__wbg_isSafeInteger_bfbc7332a9768d2a:
|
|
2099
|
-
__wbg_new_361308b2356cecd0:
|
|
2100
|
-
__wbg_entries_58c7934c745daac7:
|
|
2101
|
-
__wbg_iterator_6ff6560ca1568e55:
|
|
2102
|
-
__wbg_get_b3ed3ad4be2bc8ac:
|
|
2103
|
-
__wbg_call_389efe28435a9388:
|
|
2104
|
-
__wbg_next_418f80d8f5303233:
|
|
2105
|
-
__wbg_next_3482f54c49e8af19:
|
|
2106
|
-
__wbg_codePointAt_bf59dbf74d8db275:
|
|
2107
|
-
__wbg_fromCodePoint_22365db7b7d6ac39:
|
|
2108
|
-
__wbg_length_68dc7c5cf1b6d349:
|
|
2109
|
-
__wbg___wbindgen_in_47fa6863be6f2f25:
|
|
2110
|
-
__wbg___wbindgen_throw_be289d5034ed271b:
|
|
2111
|
-
__wbg___wbindgen_is_null_ac34f5003991759a:
|
|
2112
|
-
__wbg___wbindgen_jsval_eq_11888390b0186270:
|
|
2113
|
-
__wbg_Number_04624de7d0e8332d:
|
|
2114
|
-
__wbg_Error_8c4e43fe74559d73:
|
|
2115
|
-
__wbg___wbindgen_is_bigint_31b12575b56f32fc:
|
|
2116
|
-
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:
|
|
2117
|
-
__wbg___wbindgen_is_string_cd444516edc5b180:
|
|
2118
|
-
__wbg___wbindgen_number_get_8ff4255516ccad3e:
|
|
2119
|
-
__wbg___wbindgen_string_get_72fb696202c56729:
|
|
2120
|
-
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:
|
|
2121
|
-
__wbg___wbindgen_is_function_0095a73b8b156f76:
|
|
2122
|
-
__wbg___wbindgen_is_undefined_9e4d92534c42d778:
|
|
2123
|
-
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:
|
|
2124
|
-
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:
|
|
2125
|
-
__wbg___wbindgen_debug_string_0bc8482c6e3508ae:
|
|
2126
|
-
__wbindgen_cast_0000000000000001:
|
|
2127
|
-
__wbindgen_cast_0000000000000002:
|
|
2128
|
-
__wbindgen_cast_0000000000000003:
|
|
2129
|
-
__wbindgen_cast_0000000000000004:
|
|
2130
|
-
} },
|
|
2085
|
+
const i = await GI({ "./polyglot_sql_wasm_bg.js": {
|
|
2086
|
+
__wbindgen_object_drop_ref: sQ,
|
|
2087
|
+
__wbindgen_object_clone_ref: LQ,
|
|
2088
|
+
__wbg_new_8a6f238a6ece86ea: kQ,
|
|
2089
|
+
__wbg_stack_0ed75d68575b0f3c: hQ,
|
|
2090
|
+
__wbg_error_7534b8e9a36f1ab4: nI,
|
|
2091
|
+
__wbg_get_with_ref_key_1dc361bd10053bfe: gQ,
|
|
2092
|
+
__wbg_set_3f1d0b984ed272ed: RQ,
|
|
2093
|
+
__wbg_String_8f0eb39a4a4c2f66: OI,
|
|
2094
|
+
__wbg_new_dd2b680c8bf6ae29: KQ,
|
|
2095
|
+
__wbg_length_32ed9a279acd054c: iQ,
|
|
2096
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: YQ,
|
|
2097
|
+
__wbg_done_57b39ecd9addfe81: XI,
|
|
2098
|
+
__wbg_value_0546255b415e96c1: HQ,
|
|
2099
|
+
__wbg_instanceof_Map_53af74335dec57f4: QQ,
|
|
2100
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: CQ,
|
|
2101
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: IQ,
|
|
2102
|
+
__wbg_new_dca287b076112a51: MQ,
|
|
2103
|
+
__wbg_set_1eb0999cf5d27fc8: yQ,
|
|
2104
|
+
__wbg_get_9b94d73e6221f75c: $I,
|
|
2105
|
+
__wbg_new_3eb36ae241fe6f44: NQ,
|
|
2106
|
+
__wbg_set_f43e577aea94465b: cQ,
|
|
2107
|
+
__wbg_length_35a7bace40f36eac: wQ,
|
|
2108
|
+
__wbg_isArray_d314bb98fcf08331: BQ,
|
|
2109
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: EQ,
|
|
2110
|
+
__wbg_new_361308b2356cecd0: GQ,
|
|
2111
|
+
__wbg_entries_58c7934c745daac7: uI,
|
|
2112
|
+
__wbg_iterator_6ff6560ca1568e55: DQ,
|
|
2113
|
+
__wbg_get_b3ed3ad4be2bc8ac: AQ,
|
|
2114
|
+
__wbg_call_389efe28435a9388: WI,
|
|
2115
|
+
__wbg_next_418f80d8f5303233: JQ,
|
|
2116
|
+
__wbg_next_3482f54c49e8af19: aQ,
|
|
2117
|
+
__wbg_codePointAt_bf59dbf74d8db275: vI,
|
|
2118
|
+
__wbg_fromCodePoint_22365db7b7d6ac39: _I,
|
|
2119
|
+
__wbg_length_68dc7c5cf1b6d349: oQ,
|
|
2120
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: TI,
|
|
2121
|
+
__wbg___wbindgen_throw_be289d5034ed271b: fI,
|
|
2122
|
+
__wbg___wbindgen_is_null_ac34f5003991759a: ZI,
|
|
2123
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: PI,
|
|
2124
|
+
__wbg_Number_04624de7d0e8332d: pI,
|
|
2125
|
+
__wbg_Error_8c4e43fe74559d73: sI,
|
|
2126
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: dI,
|
|
2127
|
+
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: zI,
|
|
2128
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: mI,
|
|
2129
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: rI,
|
|
2130
|
+
__wbg___wbindgen_string_get_72fb696202c56729: bI,
|
|
2131
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: jI,
|
|
2132
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: lI,
|
|
2133
|
+
__wbg___wbindgen_is_undefined_9e4d92534c42d778: VI,
|
|
2134
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: eI,
|
|
2135
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: xI,
|
|
2136
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: tI,
|
|
2137
|
+
__wbindgen_cast_0000000000000001: qQ,
|
|
2138
|
+
__wbindgen_cast_0000000000000002: UQ,
|
|
2139
|
+
__wbindgen_cast_0000000000000003: SQ,
|
|
2140
|
+
__wbindgen_cast_0000000000000004: FQ
|
|
2141
|
+
} }, oI), TQ = i.memory, dQ = i.__wbg_wasmassignmentarray_free, lQ = i.__wbg_wasmcasebuilder_free, ZQ = i.__wbg_wasmdeletebuilder_free, zQ = i.__wbg_wasmexpr_free, mQ = i.__wbg_wasmexprarray_free, VQ = i.__wbg_wasminsertbuilder_free, PQ = i.__wbg_wasmmergebuilder_free, eQ = i.__wbg_wasmselectbuilder_free, rQ = i.__wbg_wasmsetopbuilder_free, bQ = i.__wbg_wasmupdatebuilder_free, fQ = i.__wbg_wasmwindowdefbuilder_free, WQ = i.ast_add_where, vQ = i.ast_get_aggregate_functions, XQ = i.ast_get_column_names, uQ = i.ast_get_functions, nQ = i.ast_get_literals, _Q = i.ast_get_subqueries, $Q = i.ast_get_table_names, AC = i.ast_get_window_functions, gC = i.ast_node_count, IC = i.ast_qualify_columns, QC = i.ast_remove_where, CC = i.ast_rename_columns, BC = i.ast_rename_tables, EC = i.ast_set_distinct, DC = i.ast_set_limit, iC = i.diff_sql, wC = i.format_sql, oC = i.format_sql_value, GC = i.format_sql_with_options, NC = i.format_sql_with_options_value, kC = i.generate, MC = i.generate_value, KC = i.get_dialects, aC = i.get_dialects_value, JC = i.lineage_sql, YC = i.lineage_sql_with_schema, yC = i.parse, RC = i.parse_value, cC = i.plan, hC = i.source_tables, HC = i.tokenize, qC = i.tokenize_value, UC = i.transpile, SC = i.transpile_value, FC = i.validate, LC = i.validate_with_options, sC = i.validate_with_schema, pC = i.version, OC = i.wasm_alias, xC = i.wasm_and, jC = i.wasm_boolean, tC = i.wasm_case_of, TC = i.wasm_cast, dC = i.wasm_col, lC = i.wasm_count_distinct, ZC = i.wasm_extract, zC = i.wasm_func, mC = i.wasm_lit, VC = i.wasm_not, PC = i.wasm_null, eC = i.wasm_or, rC = i.wasm_sql_expr, bC = i.wasm_star, fC = i.wasm_subquery, WC = i.wasm_table, vC = i.wasmassignmentarray_len, XC = i.wasmassignmentarray_new, uC = i.wasmassignmentarray_push, nC = i.wasmcasebuilder_build_expr, _C = i.wasmcasebuilder_else_, $C = i.wasmcasebuilder_new, AB = i.wasmcasebuilder_to_sql, gB = i.wasmcasebuilder_when, IB = i.wasmdeletebuilder_build, QB = i.wasmdeletebuilder_new, CB = i.wasmdeletebuilder_to_sql, BB = i.wasmdeletebuilder_where_expr, EB = i.wasmexpr_add, DB = i.wasmexpr_alias, iB = i.wasmexpr_and, wB = i.wasmexpr_asc, oB = i.wasmexpr_between, GB = i.wasmexpr_cast, NB = i.wasmexpr_desc, kB = i.wasmexpr_div, MB = i.wasmexpr_eq, KB = i.wasmexpr_gt, aB = i.wasmexpr_gte, JB = i.wasmexpr_ilike, YB = i.wasmexpr_in_list, yB = i.wasmexpr_is_not_null, RB = i.wasmexpr_is_null, cB = i.wasmexpr_like, hB = i.wasmexpr_lt, HB = i.wasmexpr_lte, qB = i.wasmexpr_mul, UB = i.wasmexpr_neq, SB = i.wasmexpr_not, FB = i.wasmexpr_not_in, LB = i.wasmexpr_or, sB = i.wasmexpr_rlike, pB = i.wasmexpr_sub, OB = i.wasmexpr_to_json, xB = i.wasmexpr_to_sql, jB = i.wasmexpr_xor, tB = i.wasmexprarray_len, TB = i.wasmexprarray_push, dB = i.wasmexprarray_push_col, lB = i.wasmexprarray_push_float, ZB = i.wasmexprarray_push_int, zB = i.wasmexprarray_push_star, mB = i.wasmexprarray_push_str, VB = i.wasminsertbuilder_build, PB = i.wasminsertbuilder_columns, eB = i.wasminsertbuilder_new, rB = i.wasminsertbuilder_query, bB = i.wasminsertbuilder_to_sql, fB = i.wasminsertbuilder_values, WB = i.wasmmergebuilder_build, vB = i.wasmmergebuilder_new, XB = i.wasmmergebuilder_to_sql, uB = i.wasmmergebuilder_using, nB = i.wasmmergebuilder_when_matched_delete, _B = i.wasmmergebuilder_when_matched_update, $B = i.wasmmergebuilder_when_not_matched_insert, AE = i.wasmselectbuilder_build, gE = i.wasmselectbuilder_cross_join, IE = i.wasmselectbuilder_ctas, QE = i.wasmselectbuilder_ctas_sql, CE = i.wasmselectbuilder_distinct, BE = i.wasmselectbuilder_except_, EE = i.wasmselectbuilder_for_update, DE = i.wasmselectbuilder_from, iE = i.wasmselectbuilder_from_expr, wE = i.wasmselectbuilder_group_by_cols, oE = i.wasmselectbuilder_having, GE = i.wasmselectbuilder_hint, NE = i.wasmselectbuilder_intersect, kE = i.wasmselectbuilder_join, ME = i.wasmselectbuilder_lateral_view, KE = i.wasmselectbuilder_left_join, aE = i.wasmselectbuilder_limit, JE = i.wasmselectbuilder_new, YE = i.wasmselectbuilder_offset, yE = i.wasmselectbuilder_order_by_exprs, RE = i.wasmselectbuilder_qualify, cE = i.wasmselectbuilder_right_join, hE = i.wasmselectbuilder_select_col, HE = i.wasmselectbuilder_select_expr, qE = i.wasmselectbuilder_select_exprs, UE = i.wasmselectbuilder_select_star, SE = i.wasmselectbuilder_sort_by_exprs, FE = i.wasmselectbuilder_to_sql, LE = i.wasmselectbuilder_union, sE = i.wasmselectbuilder_union_all, pE = i.wasmselectbuilder_where_expr, OE = i.wasmselectbuilder_where_sql, xE = i.wasmselectbuilder_window, jE = i.wasmsetopbuilder_build, tE = i.wasmsetopbuilder_limit, TE = i.wasmsetopbuilder_offset, dE = i.wasmsetopbuilder_order_by_exprs, lE = i.wasmsetopbuilder_to_sql, ZE = i.wasmupdatebuilder_build, zE = i.wasmupdatebuilder_from, mE = i.wasmupdatebuilder_new, VE = i.wasmupdatebuilder_set, PE = i.wasmupdatebuilder_to_sql, eE = i.wasmupdatebuilder_where_expr, rE = i.wasmwindowdefbuilder_new, bE = i.wasmwindowdefbuilder_order_by, fE = i.wasmwindowdefbuilder_partition_by, WE = i.wasmexprarray_new, vE = i.__wbindgen_export, XE = i.__wbindgen_export2, uE = i.__wbindgen_export3, nE = i.__wbindgen_export4, _E = i.__wbindgen_add_to_stack_pointer, $E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2131
2142
|
__proto__: null,
|
|
2132
|
-
__wbg_wasmassignmentarray_free:
|
|
2133
|
-
__wbg_wasmcasebuilder_free:
|
|
2134
|
-
__wbg_wasmdeletebuilder_free:
|
|
2135
|
-
__wbg_wasmexpr_free:
|
|
2136
|
-
__wbg_wasmexprarray_free:
|
|
2137
|
-
__wbg_wasminsertbuilder_free:
|
|
2138
|
-
__wbg_wasmmergebuilder_free:
|
|
2139
|
-
__wbg_wasmselectbuilder_free:
|
|
2140
|
-
__wbg_wasmsetopbuilder_free:
|
|
2141
|
-
__wbg_wasmupdatebuilder_free:
|
|
2142
|
-
__wbg_wasmwindowdefbuilder_free:
|
|
2143
|
-
__wbindgen_add_to_stack_pointer:
|
|
2144
|
-
__wbindgen_export:
|
|
2145
|
-
__wbindgen_export2:
|
|
2146
|
-
__wbindgen_export3:
|
|
2147
|
-
__wbindgen_export4:
|
|
2148
|
-
ast_add_where:
|
|
2149
|
-
ast_get_aggregate_functions:
|
|
2150
|
-
ast_get_column_names:
|
|
2151
|
-
ast_get_functions:
|
|
2152
|
-
ast_get_literals:
|
|
2153
|
-
ast_get_subqueries:
|
|
2154
|
-
ast_get_table_names:
|
|
2155
|
-
ast_get_window_functions:
|
|
2156
|
-
ast_node_count:
|
|
2157
|
-
ast_qualify_columns:
|
|
2158
|
-
ast_remove_where:
|
|
2159
|
-
ast_rename_columns:
|
|
2160
|
-
ast_rename_tables:
|
|
2161
|
-
ast_set_distinct:
|
|
2162
|
-
ast_set_limit:
|
|
2163
|
-
diff_sql:
|
|
2164
|
-
format_sql:
|
|
2165
|
-
format_sql_value:
|
|
2166
|
-
format_sql_with_options:
|
|
2167
|
-
format_sql_with_options_value:
|
|
2168
|
-
generate:
|
|
2169
|
-
generate_value:
|
|
2170
|
-
get_dialects:
|
|
2171
|
-
get_dialects_value:
|
|
2172
|
-
lineage_sql:
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2143
|
+
__wbg_wasmassignmentarray_free: dQ,
|
|
2144
|
+
__wbg_wasmcasebuilder_free: lQ,
|
|
2145
|
+
__wbg_wasmdeletebuilder_free: ZQ,
|
|
2146
|
+
__wbg_wasmexpr_free: zQ,
|
|
2147
|
+
__wbg_wasmexprarray_free: mQ,
|
|
2148
|
+
__wbg_wasminsertbuilder_free: VQ,
|
|
2149
|
+
__wbg_wasmmergebuilder_free: PQ,
|
|
2150
|
+
__wbg_wasmselectbuilder_free: eQ,
|
|
2151
|
+
__wbg_wasmsetopbuilder_free: rQ,
|
|
2152
|
+
__wbg_wasmupdatebuilder_free: bQ,
|
|
2153
|
+
__wbg_wasmwindowdefbuilder_free: fQ,
|
|
2154
|
+
__wbindgen_add_to_stack_pointer: _E,
|
|
2155
|
+
__wbindgen_export: vE,
|
|
2156
|
+
__wbindgen_export2: XE,
|
|
2157
|
+
__wbindgen_export3: uE,
|
|
2158
|
+
__wbindgen_export4: nE,
|
|
2159
|
+
ast_add_where: WQ,
|
|
2160
|
+
ast_get_aggregate_functions: vQ,
|
|
2161
|
+
ast_get_column_names: XQ,
|
|
2162
|
+
ast_get_functions: uQ,
|
|
2163
|
+
ast_get_literals: nQ,
|
|
2164
|
+
ast_get_subqueries: _Q,
|
|
2165
|
+
ast_get_table_names: $Q,
|
|
2166
|
+
ast_get_window_functions: AC,
|
|
2167
|
+
ast_node_count: gC,
|
|
2168
|
+
ast_qualify_columns: IC,
|
|
2169
|
+
ast_remove_where: QC,
|
|
2170
|
+
ast_rename_columns: CC,
|
|
2171
|
+
ast_rename_tables: BC,
|
|
2172
|
+
ast_set_distinct: EC,
|
|
2173
|
+
ast_set_limit: DC,
|
|
2174
|
+
diff_sql: iC,
|
|
2175
|
+
format_sql: wC,
|
|
2176
|
+
format_sql_value: oC,
|
|
2177
|
+
format_sql_with_options: GC,
|
|
2178
|
+
format_sql_with_options_value: NC,
|
|
2179
|
+
generate: kC,
|
|
2180
|
+
generate_value: MC,
|
|
2181
|
+
get_dialects: KC,
|
|
2182
|
+
get_dialects_value: aC,
|
|
2183
|
+
lineage_sql: JC,
|
|
2184
|
+
lineage_sql_with_schema: YC,
|
|
2185
|
+
memory: TQ,
|
|
2186
|
+
parse: yC,
|
|
2187
|
+
parse_value: RC,
|
|
2188
|
+
plan: cC,
|
|
2189
|
+
source_tables: hC,
|
|
2190
|
+
tokenize: HC,
|
|
2191
|
+
tokenize_value: qC,
|
|
2180
2192
|
transpile: UC,
|
|
2181
|
-
transpile_value:
|
|
2182
|
-
validate:
|
|
2183
|
-
validate_with_options:
|
|
2184
|
-
validate_with_schema:
|
|
2185
|
-
version:
|
|
2186
|
-
wasm_alias:
|
|
2187
|
-
wasm_and:
|
|
2188
|
-
wasm_boolean:
|
|
2189
|
-
wasm_case_of:
|
|
2193
|
+
transpile_value: SC,
|
|
2194
|
+
validate: FC,
|
|
2195
|
+
validate_with_options: LC,
|
|
2196
|
+
validate_with_schema: sC,
|
|
2197
|
+
version: pC,
|
|
2198
|
+
wasm_alias: OC,
|
|
2199
|
+
wasm_and: xC,
|
|
2200
|
+
wasm_boolean: jC,
|
|
2201
|
+
wasm_case_of: tC,
|
|
2190
2202
|
wasm_cast: TC,
|
|
2191
|
-
wasm_col:
|
|
2192
|
-
wasm_count_distinct:
|
|
2193
|
-
wasm_extract:
|
|
2194
|
-
wasm_func:
|
|
2195
|
-
wasm_lit:
|
|
2196
|
-
wasm_not:
|
|
2197
|
-
wasm_null:
|
|
2198
|
-
wasm_or:
|
|
2199
|
-
wasm_sql_expr:
|
|
2200
|
-
wasm_star:
|
|
2201
|
-
wasm_subquery:
|
|
2202
|
-
wasm_table:
|
|
2203
|
-
wasmassignmentarray_len:
|
|
2204
|
-
wasmassignmentarray_new:
|
|
2205
|
-
wasmassignmentarray_push:
|
|
2206
|
-
wasmcasebuilder_build_expr:
|
|
2207
|
-
wasmcasebuilder_else_:
|
|
2208
|
-
wasmcasebuilder_new:
|
|
2209
|
-
wasmcasebuilder_to_sql:
|
|
2210
|
-
wasmcasebuilder_when:
|
|
2211
|
-
wasmdeletebuilder_build:
|
|
2212
|
-
wasmdeletebuilder_new:
|
|
2213
|
-
wasmdeletebuilder_to_sql:
|
|
2214
|
-
wasmdeletebuilder_where_expr:
|
|
2215
|
-
wasmexpr_add:
|
|
2216
|
-
wasmexpr_alias:
|
|
2217
|
-
wasmexpr_and:
|
|
2218
|
-
wasmexpr_asc:
|
|
2219
|
-
wasmexpr_between:
|
|
2220
|
-
wasmexpr_cast:
|
|
2221
|
-
wasmexpr_desc:
|
|
2222
|
-
wasmexpr_div:
|
|
2223
|
-
wasmexpr_eq:
|
|
2224
|
-
wasmexpr_gt:
|
|
2225
|
-
wasmexpr_gte:
|
|
2226
|
-
wasmexpr_ilike:
|
|
2227
|
-
wasmexpr_in_list:
|
|
2228
|
-
wasmexpr_is_not_null:
|
|
2229
|
-
wasmexpr_is_null:
|
|
2230
|
-
wasmexpr_like:
|
|
2231
|
-
wasmexpr_lt:
|
|
2232
|
-
wasmexpr_lte:
|
|
2233
|
-
wasmexpr_mul:
|
|
2203
|
+
wasm_col: dC,
|
|
2204
|
+
wasm_count_distinct: lC,
|
|
2205
|
+
wasm_extract: ZC,
|
|
2206
|
+
wasm_func: zC,
|
|
2207
|
+
wasm_lit: mC,
|
|
2208
|
+
wasm_not: VC,
|
|
2209
|
+
wasm_null: PC,
|
|
2210
|
+
wasm_or: eC,
|
|
2211
|
+
wasm_sql_expr: rC,
|
|
2212
|
+
wasm_star: bC,
|
|
2213
|
+
wasm_subquery: fC,
|
|
2214
|
+
wasm_table: WC,
|
|
2215
|
+
wasmassignmentarray_len: vC,
|
|
2216
|
+
wasmassignmentarray_new: XC,
|
|
2217
|
+
wasmassignmentarray_push: uC,
|
|
2218
|
+
wasmcasebuilder_build_expr: nC,
|
|
2219
|
+
wasmcasebuilder_else_: _C,
|
|
2220
|
+
wasmcasebuilder_new: $C,
|
|
2221
|
+
wasmcasebuilder_to_sql: AB,
|
|
2222
|
+
wasmcasebuilder_when: gB,
|
|
2223
|
+
wasmdeletebuilder_build: IB,
|
|
2224
|
+
wasmdeletebuilder_new: QB,
|
|
2225
|
+
wasmdeletebuilder_to_sql: CB,
|
|
2226
|
+
wasmdeletebuilder_where_expr: BB,
|
|
2227
|
+
wasmexpr_add: EB,
|
|
2228
|
+
wasmexpr_alias: DB,
|
|
2229
|
+
wasmexpr_and: iB,
|
|
2230
|
+
wasmexpr_asc: wB,
|
|
2231
|
+
wasmexpr_between: oB,
|
|
2232
|
+
wasmexpr_cast: GB,
|
|
2233
|
+
wasmexpr_desc: NB,
|
|
2234
|
+
wasmexpr_div: kB,
|
|
2235
|
+
wasmexpr_eq: MB,
|
|
2236
|
+
wasmexpr_gt: KB,
|
|
2237
|
+
wasmexpr_gte: aB,
|
|
2238
|
+
wasmexpr_ilike: JB,
|
|
2239
|
+
wasmexpr_in_list: YB,
|
|
2240
|
+
wasmexpr_is_not_null: yB,
|
|
2241
|
+
wasmexpr_is_null: RB,
|
|
2242
|
+
wasmexpr_like: cB,
|
|
2243
|
+
wasmexpr_lt: hB,
|
|
2244
|
+
wasmexpr_lte: HB,
|
|
2245
|
+
wasmexpr_mul: qB,
|
|
2234
2246
|
wasmexpr_neq: UB,
|
|
2235
|
-
wasmexpr_not:
|
|
2236
|
-
wasmexpr_not_in:
|
|
2237
|
-
wasmexpr_or:
|
|
2238
|
-
wasmexpr_rlike:
|
|
2239
|
-
wasmexpr_sub:
|
|
2240
|
-
wasmexpr_to_json:
|
|
2241
|
-
wasmexpr_to_sql:
|
|
2242
|
-
wasmexpr_xor:
|
|
2243
|
-
wasmexprarray_len:
|
|
2244
|
-
wasmexprarray_new:
|
|
2247
|
+
wasmexpr_not: SB,
|
|
2248
|
+
wasmexpr_not_in: FB,
|
|
2249
|
+
wasmexpr_or: LB,
|
|
2250
|
+
wasmexpr_rlike: sB,
|
|
2251
|
+
wasmexpr_sub: pB,
|
|
2252
|
+
wasmexpr_to_json: OB,
|
|
2253
|
+
wasmexpr_to_sql: xB,
|
|
2254
|
+
wasmexpr_xor: jB,
|
|
2255
|
+
wasmexprarray_len: tB,
|
|
2256
|
+
wasmexprarray_new: WE,
|
|
2245
2257
|
wasmexprarray_push: TB,
|
|
2246
|
-
wasmexprarray_push_col:
|
|
2247
|
-
wasmexprarray_push_float:
|
|
2248
|
-
wasmexprarray_push_int:
|
|
2249
|
-
wasmexprarray_push_star:
|
|
2250
|
-
wasmexprarray_push_str:
|
|
2251
|
-
wasminsertbuilder_build:
|
|
2252
|
-
wasminsertbuilder_columns:
|
|
2253
|
-
wasminsertbuilder_new:
|
|
2254
|
-
wasminsertbuilder_query:
|
|
2255
|
-
wasminsertbuilder_to_sql:
|
|
2256
|
-
wasminsertbuilder_values:
|
|
2257
|
-
wasmmergebuilder_build:
|
|
2258
|
-
wasmmergebuilder_new:
|
|
2259
|
-
wasmmergebuilder_to_sql:
|
|
2260
|
-
wasmmergebuilder_using:
|
|
2261
|
-
wasmmergebuilder_when_matched_delete:
|
|
2262
|
-
wasmmergebuilder_when_matched_update:
|
|
2263
|
-
wasmmergebuilder_when_not_matched_insert:
|
|
2264
|
-
wasmselectbuilder_build:
|
|
2265
|
-
wasmselectbuilder_cross_join:
|
|
2266
|
-
wasmselectbuilder_ctas:
|
|
2267
|
-
wasmselectbuilder_ctas_sql:
|
|
2268
|
-
wasmselectbuilder_distinct:
|
|
2269
|
-
wasmselectbuilder_except_:
|
|
2270
|
-
wasmselectbuilder_for_update:
|
|
2271
|
-
wasmselectbuilder_from:
|
|
2272
|
-
wasmselectbuilder_from_expr:
|
|
2273
|
-
wasmselectbuilder_group_by_cols:
|
|
2274
|
-
wasmselectbuilder_having:
|
|
2275
|
-
wasmselectbuilder_hint:
|
|
2276
|
-
wasmselectbuilder_intersect:
|
|
2277
|
-
wasmselectbuilder_join:
|
|
2278
|
-
wasmselectbuilder_lateral_view:
|
|
2279
|
-
wasmselectbuilder_left_join:
|
|
2280
|
-
wasmselectbuilder_limit:
|
|
2281
|
-
wasmselectbuilder_new:
|
|
2282
|
-
wasmselectbuilder_offset:
|
|
2283
|
-
wasmselectbuilder_order_by_exprs:
|
|
2284
|
-
wasmselectbuilder_qualify:
|
|
2285
|
-
wasmselectbuilder_right_join:
|
|
2286
|
-
wasmselectbuilder_select_col:
|
|
2287
|
-
wasmselectbuilder_select_expr:
|
|
2288
|
-
wasmselectbuilder_select_exprs:
|
|
2258
|
+
wasmexprarray_push_col: dB,
|
|
2259
|
+
wasmexprarray_push_float: lB,
|
|
2260
|
+
wasmexprarray_push_int: ZB,
|
|
2261
|
+
wasmexprarray_push_star: zB,
|
|
2262
|
+
wasmexprarray_push_str: mB,
|
|
2263
|
+
wasminsertbuilder_build: VB,
|
|
2264
|
+
wasminsertbuilder_columns: PB,
|
|
2265
|
+
wasminsertbuilder_new: eB,
|
|
2266
|
+
wasminsertbuilder_query: rB,
|
|
2267
|
+
wasminsertbuilder_to_sql: bB,
|
|
2268
|
+
wasminsertbuilder_values: fB,
|
|
2269
|
+
wasmmergebuilder_build: WB,
|
|
2270
|
+
wasmmergebuilder_new: vB,
|
|
2271
|
+
wasmmergebuilder_to_sql: XB,
|
|
2272
|
+
wasmmergebuilder_using: uB,
|
|
2273
|
+
wasmmergebuilder_when_matched_delete: nB,
|
|
2274
|
+
wasmmergebuilder_when_matched_update: _B,
|
|
2275
|
+
wasmmergebuilder_when_not_matched_insert: $B,
|
|
2276
|
+
wasmselectbuilder_build: AE,
|
|
2277
|
+
wasmselectbuilder_cross_join: gE,
|
|
2278
|
+
wasmselectbuilder_ctas: IE,
|
|
2279
|
+
wasmselectbuilder_ctas_sql: QE,
|
|
2280
|
+
wasmselectbuilder_distinct: CE,
|
|
2281
|
+
wasmselectbuilder_except_: BE,
|
|
2282
|
+
wasmselectbuilder_for_update: EE,
|
|
2283
|
+
wasmselectbuilder_from: DE,
|
|
2284
|
+
wasmselectbuilder_from_expr: iE,
|
|
2285
|
+
wasmselectbuilder_group_by_cols: wE,
|
|
2286
|
+
wasmselectbuilder_having: oE,
|
|
2287
|
+
wasmselectbuilder_hint: GE,
|
|
2288
|
+
wasmselectbuilder_intersect: NE,
|
|
2289
|
+
wasmselectbuilder_join: kE,
|
|
2290
|
+
wasmselectbuilder_lateral_view: ME,
|
|
2291
|
+
wasmselectbuilder_left_join: KE,
|
|
2292
|
+
wasmselectbuilder_limit: aE,
|
|
2293
|
+
wasmselectbuilder_new: JE,
|
|
2294
|
+
wasmselectbuilder_offset: YE,
|
|
2295
|
+
wasmselectbuilder_order_by_exprs: yE,
|
|
2296
|
+
wasmselectbuilder_qualify: RE,
|
|
2297
|
+
wasmselectbuilder_right_join: cE,
|
|
2298
|
+
wasmselectbuilder_select_col: hE,
|
|
2299
|
+
wasmselectbuilder_select_expr: HE,
|
|
2300
|
+
wasmselectbuilder_select_exprs: qE,
|
|
2289
2301
|
wasmselectbuilder_select_star: UE,
|
|
2290
|
-
wasmselectbuilder_sort_by_exprs:
|
|
2291
|
-
wasmselectbuilder_to_sql:
|
|
2292
|
-
wasmselectbuilder_union:
|
|
2293
|
-
wasmselectbuilder_union_all:
|
|
2294
|
-
wasmselectbuilder_where_expr:
|
|
2295
|
-
wasmselectbuilder_where_sql:
|
|
2296
|
-
wasmselectbuilder_window:
|
|
2297
|
-
wasmsetopbuilder_build:
|
|
2298
|
-
wasmsetopbuilder_limit:
|
|
2302
|
+
wasmselectbuilder_sort_by_exprs: SE,
|
|
2303
|
+
wasmselectbuilder_to_sql: FE,
|
|
2304
|
+
wasmselectbuilder_union: LE,
|
|
2305
|
+
wasmselectbuilder_union_all: sE,
|
|
2306
|
+
wasmselectbuilder_where_expr: pE,
|
|
2307
|
+
wasmselectbuilder_where_sql: OE,
|
|
2308
|
+
wasmselectbuilder_window: xE,
|
|
2309
|
+
wasmsetopbuilder_build: jE,
|
|
2310
|
+
wasmsetopbuilder_limit: tE,
|
|
2299
2311
|
wasmsetopbuilder_offset: TE,
|
|
2300
|
-
wasmsetopbuilder_order_by_exprs:
|
|
2301
|
-
wasmsetopbuilder_to_sql:
|
|
2302
|
-
wasmupdatebuilder_build:
|
|
2303
|
-
wasmupdatebuilder_from:
|
|
2304
|
-
wasmupdatebuilder_new:
|
|
2305
|
-
wasmupdatebuilder_set:
|
|
2306
|
-
wasmupdatebuilder_to_sql:
|
|
2307
|
-
wasmupdatebuilder_where_expr:
|
|
2308
|
-
wasmwindowdefbuilder_new:
|
|
2309
|
-
wasmwindowdefbuilder_order_by:
|
|
2310
|
-
wasmwindowdefbuilder_partition_by:
|
|
2312
|
+
wasmsetopbuilder_order_by_exprs: dE,
|
|
2313
|
+
wasmsetopbuilder_to_sql: lE,
|
|
2314
|
+
wasmupdatebuilder_build: ZE,
|
|
2315
|
+
wasmupdatebuilder_from: zE,
|
|
2316
|
+
wasmupdatebuilder_new: mE,
|
|
2317
|
+
wasmupdatebuilder_set: VE,
|
|
2318
|
+
wasmupdatebuilder_to_sql: PE,
|
|
2319
|
+
wasmupdatebuilder_where_expr: eE,
|
|
2320
|
+
wasmwindowdefbuilder_new: rE,
|
|
2321
|
+
wasmwindowdefbuilder_order_by: bE,
|
|
2322
|
+
wasmwindowdefbuilder_partition_by: fE
|
|
2311
2323
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2312
|
-
|
|
2313
|
-
const
|
|
2324
|
+
tQ($E);
|
|
2325
|
+
const sg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2314
2326
|
__proto__: null,
|
|
2315
|
-
WasmAssignmentArray:
|
|
2316
|
-
WasmCaseBuilder:
|
|
2317
|
-
WasmDeleteBuilder:
|
|
2327
|
+
WasmAssignmentArray: QA,
|
|
2328
|
+
WasmCaseBuilder: b,
|
|
2329
|
+
WasmDeleteBuilder: wA,
|
|
2318
2330
|
WasmExpr: K,
|
|
2319
|
-
WasmExprArray:
|
|
2320
|
-
WasmInsertBuilder:
|
|
2321
|
-
WasmMergeBuilder:
|
|
2322
|
-
WasmSelectBuilder:
|
|
2331
|
+
WasmExprArray: O,
|
|
2332
|
+
WasmInsertBuilder: oA,
|
|
2333
|
+
WasmMergeBuilder: GA,
|
|
2334
|
+
WasmSelectBuilder: t,
|
|
2323
2335
|
WasmSetOpBuilder: z,
|
|
2324
|
-
WasmUpdateBuilder:
|
|
2325
|
-
WasmWindowDefBuilder:
|
|
2326
|
-
ast_add_where:
|
|
2327
|
-
ast_get_aggregate_functions:
|
|
2328
|
-
ast_get_column_names:
|
|
2329
|
-
ast_get_functions:
|
|
2336
|
+
WasmUpdateBuilder: NA,
|
|
2337
|
+
WasmWindowDefBuilder: CA,
|
|
2338
|
+
ast_add_where: vA,
|
|
2339
|
+
ast_get_aggregate_functions: XA,
|
|
2340
|
+
ast_get_column_names: uA,
|
|
2341
|
+
ast_get_functions: nA,
|
|
2330
2342
|
ast_get_literals: _A,
|
|
2331
2343
|
ast_get_subqueries: $A,
|
|
2332
2344
|
ast_get_table_names: Ag,
|
|
@@ -2339,44 +2351,45 @@ const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2339
2351
|
ast_set_distinct: Dg,
|
|
2340
2352
|
ast_set_limit: ig,
|
|
2341
2353
|
diff_sql: wg,
|
|
2342
|
-
format_sql:
|
|
2343
|
-
format_sql_value:
|
|
2344
|
-
format_sql_with_options:
|
|
2345
|
-
format_sql_with_options_value:
|
|
2346
|
-
generate:
|
|
2347
|
-
generate_value:
|
|
2348
|
-
get_dialects:
|
|
2349
|
-
get_dialects_value:
|
|
2354
|
+
format_sql: NI,
|
|
2355
|
+
format_sql_value: kI,
|
|
2356
|
+
format_sql_with_options: MI,
|
|
2357
|
+
format_sql_with_options_value: KI,
|
|
2358
|
+
generate: aI,
|
|
2359
|
+
generate_value: JI,
|
|
2360
|
+
get_dialects: YI,
|
|
2361
|
+
get_dialects_value: yI,
|
|
2350
2362
|
lineage_sql: og,
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2363
|
+
lineage_sql_with_schema: Gg,
|
|
2364
|
+
parse: RI,
|
|
2365
|
+
parse_value: cI,
|
|
2366
|
+
plan: Ng,
|
|
2367
|
+
source_tables: kg,
|
|
2368
|
+
tokenize: hI,
|
|
2369
|
+
tokenize_value: HI,
|
|
2370
|
+
transpile: qI,
|
|
2371
|
+
transpile_value: UI,
|
|
2372
|
+
validate: SI,
|
|
2373
|
+
validate_with_options: FI,
|
|
2374
|
+
validate_with_schema: Mg,
|
|
2375
|
+
version: LI,
|
|
2376
|
+
wasm_alias: Kg,
|
|
2377
|
+
wasm_and: ag,
|
|
2365
2378
|
wasm_boolean: Jg,
|
|
2366
2379
|
wasm_case_of: Yg,
|
|
2367
|
-
wasm_cast:
|
|
2368
|
-
wasm_col:
|
|
2380
|
+
wasm_cast: yg,
|
|
2381
|
+
wasm_col: hA,
|
|
2369
2382
|
wasm_count_distinct: Rg,
|
|
2370
|
-
wasm_extract:
|
|
2371
|
-
wasm_func:
|
|
2372
|
-
wasm_lit:
|
|
2383
|
+
wasm_extract: cg,
|
|
2384
|
+
wasm_func: hg,
|
|
2385
|
+
wasm_lit: kA,
|
|
2373
2386
|
wasm_not: Hg,
|
|
2374
|
-
wasm_null:
|
|
2375
|
-
wasm_or:
|
|
2376
|
-
wasm_sql_expr:
|
|
2377
|
-
wasm_star:
|
|
2387
|
+
wasm_null: MA,
|
|
2388
|
+
wasm_or: qg,
|
|
2389
|
+
wasm_sql_expr: Ug,
|
|
2390
|
+
wasm_star: Sg,
|
|
2378
2391
|
wasm_subquery: Fg,
|
|
2379
|
-
wasm_table:
|
|
2392
|
+
wasm_table: Lg
|
|
2380
2393
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2381
2394
|
function s(g) {
|
|
2382
2395
|
return Object.keys(g)[0];
|
|
@@ -2385,7 +2398,7 @@ function x(g) {
|
|
|
2385
2398
|
const A = Object.keys(g)[0];
|
|
2386
2399
|
return g[A];
|
|
2387
2400
|
}
|
|
2388
|
-
function
|
|
2401
|
+
function m(g) {
|
|
2389
2402
|
if (typeof g != "object" || g === null || Array.isArray(g))
|
|
2390
2403
|
return !1;
|
|
2391
2404
|
const A = Object.keys(g);
|
|
@@ -2393,64 +2406,64 @@ function V(g) {
|
|
|
2393
2406
|
const Q = g[A[0]];
|
|
2394
2407
|
return Q === null || typeof Q == "object" && !Array.isArray(Q);
|
|
2395
2408
|
}
|
|
2396
|
-
function
|
|
2409
|
+
function l(g, A) {
|
|
2397
2410
|
return { [g]: A };
|
|
2398
2411
|
}
|
|
2399
|
-
function
|
|
2412
|
+
function J(g) {
|
|
2400
2413
|
return (A) => g in A;
|
|
2401
2414
|
}
|
|
2402
|
-
const
|
|
2403
|
-
function
|
|
2415
|
+
const pg = J("select"), AD = J("insert"), gD = J("update"), ID = J("delete"), QD = J("union"), CD = J("intersect"), BD = J("except"), ED = J("subquery"), DD = J("identifier"), Og = J("column"), iD = J("table"), wD = J("star"), xg = J("literal"), oD = J("boolean"), GD = J("null"), ND = J("and"), kD = J("or"), MD = J("not"), KD = J("eq"), aD = J("neq"), JD = J("lt"), YD = J("lte"), yD = J("gt"), RD = J("gte"), cD = J("like"), hD = J("i_like"), HD = J("add"), qD = J("sub"), UD = J("mul"), SD = J("div"), FD = J("mod"), LD = J("concat"), sD = J("in"), pD = J("between"), OD = J("is_null"), xD = J("exists"), jg = J("function"), jD = J("aggregate_function"), tD = J("window_function"), TD = J("count"), dD = J("sum"), lD = J("avg"), ZD = J("min"), zD = J("max"), mD = J("coalesce"), VD = J("null_if"), PD = J("cast"), eD = J("try_cast"), rD = J("safe_cast"), bD = J("case"), fD = J("from"), WD = J("join"), vD = J("where"), XD = J("group_by"), uD = J("having"), nD = J("order_by"), _D = J("limit"), $D = J("offset"), Ai = J("with"), gi = J("cte"), Ii = J("alias"), Qi = J("paren"), Ci = J("ordered"), Bi = J("create_table"), Ei = J("drop_table"), Di = J("alter_table"), ii = J("create_index"), wi = J("drop_index"), oi = J("create_view"), Gi = J("drop_view");
|
|
2416
|
+
function Ni(g) {
|
|
2404
2417
|
const A = s(g);
|
|
2405
2418
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
2406
2419
|
}
|
|
2407
|
-
function
|
|
2420
|
+
function ki(g) {
|
|
2408
2421
|
const A = s(g);
|
|
2409
2422
|
return A === "union" || A === "intersect" || A === "except";
|
|
2410
2423
|
}
|
|
2411
|
-
function
|
|
2424
|
+
function Mi(g) {
|
|
2412
2425
|
const A = s(g);
|
|
2413
2426
|
return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
|
|
2414
2427
|
}
|
|
2415
|
-
function
|
|
2428
|
+
function Ki(g) {
|
|
2416
2429
|
const A = s(g);
|
|
2417
2430
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2418
2431
|
}
|
|
2419
|
-
function
|
|
2432
|
+
function ai(g) {
|
|
2420
2433
|
const A = s(g);
|
|
2421
2434
|
return A === "and" || A === "or" || A === "not";
|
|
2422
2435
|
}
|
|
2423
|
-
function
|
|
2436
|
+
function Ji(g) {
|
|
2424
2437
|
const A = s(g);
|
|
2425
2438
|
return A === "create_table" || A === "drop_table" || A === "alter_table" || A === "create_index" || A === "drop_index" || A === "create_view" || A === "drop_view" || A === "create_schema" || A === "drop_schema" || A === "create_database" || A === "drop_database" || A === "create_function" || A === "drop_function" || A === "create_procedure" || A === "drop_procedure" || A === "create_sequence" || A === "drop_sequence" || A === "alter_sequence" || A === "create_trigger" || A === "drop_trigger" || A === "create_type" || A === "drop_type";
|
|
2426
2439
|
}
|
|
2427
|
-
function
|
|
2440
|
+
function V(g) {
|
|
2428
2441
|
return JSON.stringify(g);
|
|
2429
2442
|
}
|
|
2430
|
-
function
|
|
2443
|
+
function W(g) {
|
|
2431
2444
|
const A = JSON.parse(g);
|
|
2432
2445
|
return A.success ? JSON.parse(A.ast) : null;
|
|
2433
2446
|
}
|
|
2434
|
-
function
|
|
2447
|
+
function tg(g, A, Q) {
|
|
2435
2448
|
if (g == null) return g;
|
|
2436
2449
|
if (Array.isArray(g))
|
|
2437
|
-
return g.length > 0 &&
|
|
2438
|
-
(C, B) =>
|
|
2439
|
-
) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) =>
|
|
2440
|
-
if (
|
|
2441
|
-
return
|
|
2450
|
+
return g.length > 0 && m(g[0]) ? g.map(
|
|
2451
|
+
(C, B) => iA(C, A, Q, null, B)
|
|
2452
|
+
) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) => m(B) ? iA(B, A, Q, null, E) : B) : C) : g;
|
|
2453
|
+
if (m(g))
|
|
2454
|
+
return iA(g, A, Q, null, null);
|
|
2442
2455
|
if (typeof g == "object") {
|
|
2443
2456
|
const B = { ...g };
|
|
2444
2457
|
let E = !1;
|
|
2445
2458
|
for (const [D, o] of Object.entries(B)) {
|
|
2446
|
-
const k =
|
|
2459
|
+
const k = tg(o, A, Q);
|
|
2447
2460
|
k !== o && (B[D] = k, E = !0);
|
|
2448
2461
|
}
|
|
2449
2462
|
return E ? B : g;
|
|
2450
2463
|
}
|
|
2451
2464
|
return g;
|
|
2452
2465
|
}
|
|
2453
|
-
function
|
|
2466
|
+
function iA(g, A, Q, C, B) {
|
|
2454
2467
|
let E = g;
|
|
2455
2468
|
if (A.enter) {
|
|
2456
2469
|
const y = A.enter(E, Q, C, B);
|
|
@@ -2466,125 +2479,125 @@ function DA(g, A, Q, C, B) {
|
|
|
2466
2479
|
y !== void 0 && (E = y);
|
|
2467
2480
|
}
|
|
2468
2481
|
const k = s(E), M = x(E);
|
|
2469
|
-
let
|
|
2482
|
+
let a;
|
|
2470
2483
|
if (M == null)
|
|
2471
|
-
|
|
2484
|
+
a = l(k, M);
|
|
2472
2485
|
else {
|
|
2473
2486
|
const y = { ...M };
|
|
2474
|
-
for (const [
|
|
2475
|
-
const
|
|
2476
|
-
|
|
2487
|
+
for (const [S, p] of Object.entries(y)) {
|
|
2488
|
+
const j = tg(p, A, E);
|
|
2489
|
+
j !== p && (y[S] = j);
|
|
2477
2490
|
}
|
|
2478
|
-
|
|
2491
|
+
a = l(k, y);
|
|
2479
2492
|
}
|
|
2480
2493
|
if (A.leave) {
|
|
2481
|
-
const y = A.leave(
|
|
2494
|
+
const y = A.leave(a, Q, C, B);
|
|
2482
2495
|
if (y != null)
|
|
2483
2496
|
return y;
|
|
2484
2497
|
}
|
|
2485
|
-
return
|
|
2498
|
+
return a;
|
|
2486
2499
|
}
|
|
2487
|
-
function
|
|
2488
|
-
return
|
|
2500
|
+
function aA(g, A) {
|
|
2501
|
+
return iA(g, A, null, null, null);
|
|
2489
2502
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2503
|
+
function Tg(g, A, Q) {
|
|
2504
|
+
return aA(g, {
|
|
2492
2505
|
enter: (C, B) => {
|
|
2493
2506
|
if (A(C, B))
|
|
2494
2507
|
return typeof Q == "function" ? Q(C) : Q;
|
|
2495
2508
|
}
|
|
2496
2509
|
});
|
|
2497
2510
|
}
|
|
2498
|
-
function
|
|
2499
|
-
return
|
|
2511
|
+
function Yi(g, A, Q) {
|
|
2512
|
+
return Tg(
|
|
2500
2513
|
g,
|
|
2501
2514
|
(C) => s(C) === A,
|
|
2502
2515
|
typeof Q == "function" ? (C) => Q(C) : Q
|
|
2503
2516
|
);
|
|
2504
2517
|
}
|
|
2505
|
-
function
|
|
2506
|
-
return
|
|
2507
|
-
Bg(
|
|
2518
|
+
function dg(g, A) {
|
|
2519
|
+
return W(
|
|
2520
|
+
Bg(V(g), JSON.stringify(A))
|
|
2508
2521
|
) ?? g;
|
|
2509
2522
|
}
|
|
2510
|
-
function
|
|
2511
|
-
return
|
|
2512
|
-
Eg(
|
|
2523
|
+
function yi(g, A) {
|
|
2524
|
+
return W(
|
|
2525
|
+
Eg(V(g), JSON.stringify(A))
|
|
2513
2526
|
) ?? g;
|
|
2514
2527
|
}
|
|
2515
|
-
function
|
|
2516
|
-
return
|
|
2517
|
-
Qg(
|
|
2528
|
+
function Ri(g, A) {
|
|
2529
|
+
return W(
|
|
2530
|
+
Qg(V(g), A)
|
|
2518
2531
|
) ?? g;
|
|
2519
2532
|
}
|
|
2520
|
-
function
|
|
2521
|
-
return
|
|
2522
|
-
|
|
2533
|
+
function ci(g, A, Q = "and") {
|
|
2534
|
+
return W(
|
|
2535
|
+
vA(V(g), V(A), Q === "or")
|
|
2523
2536
|
) ?? g;
|
|
2524
2537
|
}
|
|
2525
|
-
function
|
|
2526
|
-
return
|
|
2538
|
+
function hi(g) {
|
|
2539
|
+
return W(Cg(V(g))) ?? g;
|
|
2527
2540
|
}
|
|
2528
|
-
function
|
|
2541
|
+
function Hi(g, ...A) {
|
|
2529
2542
|
if (s(g) !== "select")
|
|
2530
2543
|
return g;
|
|
2531
2544
|
const Q = x(g);
|
|
2532
|
-
return
|
|
2545
|
+
return l("select", {
|
|
2533
2546
|
...Q,
|
|
2534
2547
|
expressions: [...Q.expressions, ...A]
|
|
2535
2548
|
});
|
|
2536
2549
|
}
|
|
2537
|
-
function
|
|
2550
|
+
function qi(g, A) {
|
|
2538
2551
|
if (s(g) !== "select")
|
|
2539
2552
|
return g;
|
|
2540
2553
|
const Q = x(g);
|
|
2541
|
-
return
|
|
2554
|
+
return l("select", {
|
|
2542
2555
|
...Q,
|
|
2543
2556
|
expressions: Q.expressions.filter((C) => !A(C))
|
|
2544
2557
|
});
|
|
2545
2558
|
}
|
|
2546
2559
|
function Ui(g, A) {
|
|
2547
2560
|
if (typeof A == "number")
|
|
2548
|
-
return
|
|
2561
|
+
return W(ig(V(g), A)) ?? g;
|
|
2549
2562
|
if (s(g) !== "select")
|
|
2550
2563
|
return g;
|
|
2551
2564
|
const Q = x(g);
|
|
2552
|
-
return
|
|
2565
|
+
return l("select", {
|
|
2553
2566
|
...Q,
|
|
2554
2567
|
limit: { this: A }
|
|
2555
2568
|
});
|
|
2556
2569
|
}
|
|
2557
|
-
function
|
|
2570
|
+
function Si(g, A) {
|
|
2558
2571
|
if (s(g) !== "select")
|
|
2559
2572
|
return g;
|
|
2560
|
-
const Q = x(g), C = typeof A == "number" ?
|
|
2561
|
-
return
|
|
2573
|
+
const Q = x(g), C = typeof A == "number" ? l("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2574
|
+
return l("select", {
|
|
2562
2575
|
...Q,
|
|
2563
2576
|
offset: { this: C }
|
|
2564
2577
|
});
|
|
2565
2578
|
}
|
|
2566
|
-
function
|
|
2579
|
+
function Fi(g) {
|
|
2567
2580
|
if (s(g) !== "select")
|
|
2568
2581
|
return g;
|
|
2569
2582
|
const A = x(g);
|
|
2570
|
-
return
|
|
2583
|
+
return l("select", {
|
|
2571
2584
|
...A,
|
|
2572
2585
|
limit: null,
|
|
2573
2586
|
offset: null
|
|
2574
2587
|
});
|
|
2575
2588
|
}
|
|
2576
|
-
function
|
|
2577
|
-
return
|
|
2589
|
+
function Li(g, A = !0) {
|
|
2590
|
+
return W(Dg(V(g), A)) ?? g;
|
|
2578
2591
|
}
|
|
2579
|
-
function
|
|
2580
|
-
return
|
|
2592
|
+
function si(g) {
|
|
2593
|
+
return aA(g, {});
|
|
2581
2594
|
}
|
|
2582
2595
|
function lg(g, A, Q) {
|
|
2583
2596
|
if (g == null) return g;
|
|
2584
2597
|
if (Array.isArray(g))
|
|
2585
|
-
return g.length > 0 &&
|
|
2586
|
-
if (
|
|
2587
|
-
return
|
|
2598
|
+
return g.length > 0 && m(g[0]) ? g.filter((C) => !A(C, Q)).map((C) => cA(C, A)) : g;
|
|
2599
|
+
if (m(g))
|
|
2600
|
+
return cA(g, A);
|
|
2588
2601
|
if (typeof g == "object") {
|
|
2589
2602
|
const B = { ...g };
|
|
2590
2603
|
let E = !1;
|
|
@@ -2596,137 +2609,137 @@ function lg(g, A, Q) {
|
|
|
2596
2609
|
}
|
|
2597
2610
|
return g;
|
|
2598
2611
|
}
|
|
2599
|
-
function
|
|
2612
|
+
function cA(g, A) {
|
|
2600
2613
|
const Q = s(g), B = { ...x(g) };
|
|
2601
2614
|
for (const [E, D] of Object.entries(B)) {
|
|
2602
2615
|
const o = lg(D, A, g);
|
|
2603
2616
|
o !== D && (B[E] = o);
|
|
2604
2617
|
}
|
|
2605
|
-
return
|
|
2618
|
+
return l(Q, B);
|
|
2606
2619
|
}
|
|
2607
2620
|
function P(g) {
|
|
2608
2621
|
return JSON.stringify(g);
|
|
2609
2622
|
}
|
|
2610
|
-
function
|
|
2623
|
+
function Zg(g, A, Q) {
|
|
2611
2624
|
if (g != null) {
|
|
2612
2625
|
if (Array.isArray(g)) {
|
|
2613
|
-
if (g.length > 0 &&
|
|
2626
|
+
if (g.length > 0 && m(g[0]))
|
|
2614
2627
|
Q.push({ key: A, value: g });
|
|
2615
2628
|
else if (g.length > 0 && Array.isArray(g[0])) {
|
|
2616
2629
|
for (const C of g)
|
|
2617
2630
|
if (Array.isArray(C))
|
|
2618
2631
|
for (const B of C)
|
|
2619
|
-
|
|
2632
|
+
m(B) && Q.push({ key: A, value: B });
|
|
2620
2633
|
}
|
|
2621
|
-
} else if (
|
|
2634
|
+
} else if (m(g))
|
|
2622
2635
|
Q.push({ key: A, value: g });
|
|
2623
2636
|
else if (typeof g == "object")
|
|
2624
2637
|
for (const [, C] of Object.entries(
|
|
2625
2638
|
g
|
|
2626
2639
|
))
|
|
2627
|
-
|
|
2640
|
+
Zg(C, A, Q);
|
|
2628
2641
|
}
|
|
2629
2642
|
}
|
|
2630
|
-
function
|
|
2643
|
+
function zg(g) {
|
|
2631
2644
|
const A = [], Q = x(g);
|
|
2632
2645
|
if (!Q || typeof Q != "object") return A;
|
|
2633
2646
|
for (const [C, B] of Object.entries(Q))
|
|
2634
|
-
|
|
2647
|
+
Zg(B, C, A);
|
|
2635
2648
|
return A;
|
|
2636
2649
|
}
|
|
2637
|
-
function
|
|
2650
|
+
function d(g, A, Q = null, C = null, B = null) {
|
|
2638
2651
|
A.enter && A.enter(g, Q, C, B);
|
|
2639
2652
|
const E = s(g), D = A[E];
|
|
2640
2653
|
D && D(g, Q, C, B);
|
|
2641
|
-
const o =
|
|
2654
|
+
const o = zg(g);
|
|
2642
2655
|
for (const k of o)
|
|
2643
|
-
Array.isArray(k.value) ? k.value.forEach((M,
|
|
2644
|
-
|
|
2645
|
-
}) :
|
|
2656
|
+
Array.isArray(k.value) ? k.value.forEach((M, a) => {
|
|
2657
|
+
d(M, A, g, k.key, a);
|
|
2658
|
+
}) : d(k.value, A, g, k.key, null);
|
|
2646
2659
|
A.leave && A.leave(g, Q, C, B);
|
|
2647
2660
|
}
|
|
2648
2661
|
function JA(g, A) {
|
|
2649
2662
|
const Q = [];
|
|
2650
|
-
return
|
|
2663
|
+
return d(g, {
|
|
2651
2664
|
enter: (C, B) => {
|
|
2652
2665
|
A(C, B) && Q.push(C);
|
|
2653
2666
|
}
|
|
2654
2667
|
}), Q;
|
|
2655
2668
|
}
|
|
2656
|
-
function
|
|
2669
|
+
function BA(g, A) {
|
|
2657
2670
|
return JA(g, (Q) => s(Q) === A);
|
|
2658
2671
|
}
|
|
2659
|
-
function
|
|
2672
|
+
function mg(g, A) {
|
|
2660
2673
|
let Q, C = !1;
|
|
2661
|
-
return
|
|
2674
|
+
return d(g, {
|
|
2662
2675
|
enter: (B, E) => {
|
|
2663
2676
|
!C && A(B, E) && (Q = B, C = !0);
|
|
2664
2677
|
}
|
|
2665
2678
|
}), Q;
|
|
2666
2679
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return
|
|
2680
|
+
function pi(g, A) {
|
|
2681
|
+
return mg(g, A) !== void 0;
|
|
2669
2682
|
}
|
|
2670
|
-
function
|
|
2683
|
+
function Oi(g, A) {
|
|
2671
2684
|
let Q = !0;
|
|
2672
|
-
return
|
|
2685
|
+
return d(g, {
|
|
2673
2686
|
enter: (C, B) => {
|
|
2674
2687
|
A(C, B) || (Q = !1);
|
|
2675
2688
|
}
|
|
2676
2689
|
}), Q;
|
|
2677
2690
|
}
|
|
2678
|
-
function
|
|
2691
|
+
function xi(g, A) {
|
|
2679
2692
|
return JA(g, A).length;
|
|
2680
2693
|
}
|
|
2681
2694
|
function Vg(g) {
|
|
2682
|
-
return
|
|
2695
|
+
return BA(g, "column");
|
|
2683
2696
|
}
|
|
2684
|
-
function
|
|
2685
|
-
return
|
|
2697
|
+
function ji(g) {
|
|
2698
|
+
return BA(g, "table");
|
|
2686
2699
|
}
|
|
2687
|
-
function
|
|
2688
|
-
return
|
|
2700
|
+
function ti(g) {
|
|
2701
|
+
return BA(g, "identifier");
|
|
2689
2702
|
}
|
|
2690
2703
|
function Ti(g) {
|
|
2691
|
-
const A = JSON.parse(
|
|
2704
|
+
const A = JSON.parse(nA(P(g)));
|
|
2692
2705
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2693
2706
|
}
|
|
2694
|
-
function
|
|
2695
|
-
const A = JSON.parse(
|
|
2707
|
+
function IA(g) {
|
|
2708
|
+
const A = JSON.parse(XA(P(g)));
|
|
2696
2709
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2697
2710
|
}
|
|
2698
|
-
function
|
|
2711
|
+
function Pg(g) {
|
|
2699
2712
|
const A = JSON.parse(gg(P(g)));
|
|
2700
2713
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2701
2714
|
}
|
|
2702
|
-
function
|
|
2715
|
+
function eg(g) {
|
|
2703
2716
|
const A = JSON.parse($A(P(g)));
|
|
2704
2717
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2705
2718
|
}
|
|
2706
|
-
function
|
|
2719
|
+
function di(g) {
|
|
2707
2720
|
const A = JSON.parse(_A(P(g)));
|
|
2708
2721
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2709
2722
|
}
|
|
2710
|
-
function
|
|
2711
|
-
const A = JSON.parse(
|
|
2723
|
+
function li(g) {
|
|
2724
|
+
const A = JSON.parse(uA(P(g)));
|
|
2712
2725
|
return A.success ? A.result : [];
|
|
2713
2726
|
}
|
|
2714
|
-
function
|
|
2727
|
+
function Zi(g) {
|
|
2715
2728
|
const A = JSON.parse(Ag(P(g)));
|
|
2716
2729
|
return A.success ? A.result : [];
|
|
2717
2730
|
}
|
|
2718
|
-
function
|
|
2719
|
-
return
|
|
2720
|
-
}
|
|
2721
|
-
function ti(g) {
|
|
2722
|
-
return mg(g).length > 0;
|
|
2731
|
+
function rg(g) {
|
|
2732
|
+
return IA(g).length > 0;
|
|
2723
2733
|
}
|
|
2724
|
-
function
|
|
2734
|
+
function zi(g) {
|
|
2725
2735
|
return Pg(g).length > 0;
|
|
2726
2736
|
}
|
|
2727
|
-
function
|
|
2737
|
+
function mi(g) {
|
|
2738
|
+
return eg(g).length > 0;
|
|
2739
|
+
}
|
|
2740
|
+
function Vi(g) {
|
|
2728
2741
|
let A = 0, Q = 0;
|
|
2729
|
-
return
|
|
2742
|
+
return d(g, {
|
|
2730
2743
|
enter: () => {
|
|
2731
2744
|
Q++, A = Math.max(A, Q);
|
|
2732
2745
|
},
|
|
@@ -2735,22 +2748,22 @@ function di(g) {
|
|
|
2735
2748
|
}
|
|
2736
2749
|
}), A;
|
|
2737
2750
|
}
|
|
2738
|
-
function
|
|
2751
|
+
function Pi(g) {
|
|
2739
2752
|
const A = JSON.parse(Ig(P(g)));
|
|
2740
2753
|
return A.success ? A.result : 0;
|
|
2741
2754
|
}
|
|
2742
|
-
function
|
|
2755
|
+
function ei(g, A) {
|
|
2743
2756
|
let Q = null;
|
|
2744
|
-
return
|
|
2757
|
+
return d(g, {
|
|
2745
2758
|
enter: (C, B) => {
|
|
2746
2759
|
C === A && (Q = B);
|
|
2747
2760
|
}
|
|
2748
2761
|
}), Q;
|
|
2749
2762
|
}
|
|
2750
|
-
function
|
|
2763
|
+
function ri(g, A, Q) {
|
|
2751
2764
|
const C = [];
|
|
2752
2765
|
let B = null;
|
|
2753
|
-
return
|
|
2766
|
+
return d(g, {
|
|
2754
2767
|
enter: (E) => {
|
|
2755
2768
|
if (B === null) {
|
|
2756
2769
|
if (E === A)
|
|
@@ -2769,9 +2782,9 @@ function Vi(g, A, Q) {
|
|
|
2769
2782
|
}
|
|
2770
2783
|
}), B;
|
|
2771
2784
|
}
|
|
2772
|
-
function
|
|
2785
|
+
function bi(g, A) {
|
|
2773
2786
|
let Q = 0, C = 0;
|
|
2774
|
-
return
|
|
2787
|
+
return d(g, {
|
|
2775
2788
|
enter: (B) => {
|
|
2776
2789
|
C++, B === A && (Q = C);
|
|
2777
2790
|
},
|
|
@@ -2780,138 +2793,138 @@ function mi(g, A) {
|
|
|
2780
2793
|
}
|
|
2781
2794
|
}), Q;
|
|
2782
2795
|
}
|
|
2783
|
-
const
|
|
2796
|
+
const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2784
2797
|
__proto__: null,
|
|
2785
|
-
addSelectColumns:
|
|
2786
|
-
addWhere:
|
|
2787
|
-
clone:
|
|
2788
|
-
countNodes:
|
|
2789
|
-
every:
|
|
2798
|
+
addSelectColumns: Hi,
|
|
2799
|
+
addWhere: ci,
|
|
2800
|
+
clone: si,
|
|
2801
|
+
countNodes: xi,
|
|
2802
|
+
every: Oi,
|
|
2790
2803
|
findAll: JA,
|
|
2791
|
-
findAncestor:
|
|
2792
|
-
findByType:
|
|
2793
|
-
findFirst:
|
|
2794
|
-
getAggregateFunctions:
|
|
2795
|
-
getChildren:
|
|
2796
|
-
getColumnNames:
|
|
2804
|
+
findAncestor: ri,
|
|
2805
|
+
findByType: BA,
|
|
2806
|
+
findFirst: mg,
|
|
2807
|
+
getAggregateFunctions: IA,
|
|
2808
|
+
getChildren: zg,
|
|
2809
|
+
getColumnNames: li,
|
|
2797
2810
|
getColumns: Vg,
|
|
2798
|
-
getDepth:
|
|
2811
|
+
getDepth: Vi,
|
|
2799
2812
|
getExprData: x,
|
|
2800
2813
|
getExprType: s,
|
|
2801
2814
|
getFunctions: Ti,
|
|
2802
|
-
getIdentifiers:
|
|
2803
|
-
getLiterals:
|
|
2804
|
-
getNodeDepth:
|
|
2805
|
-
getParent:
|
|
2806
|
-
getSubqueries:
|
|
2807
|
-
getTableNames:
|
|
2808
|
-
getTables:
|
|
2809
|
-
getWindowFunctions:
|
|
2810
|
-
hasAggregates:
|
|
2811
|
-
hasSubqueries:
|
|
2812
|
-
hasWindowFunctions:
|
|
2813
|
-
isAdd:
|
|
2814
|
-
isAggregateFunction:
|
|
2815
|
-
isAlias:
|
|
2816
|
-
isAlterTable:
|
|
2817
|
-
isAnd:
|
|
2818
|
-
isArithmetic:
|
|
2819
|
-
isAvg:
|
|
2820
|
-
isBetween:
|
|
2821
|
-
isBoolean:
|
|
2822
|
-
isCase:
|
|
2823
|
-
isCast:
|
|
2824
|
-
isCoalesce:
|
|
2825
|
-
isColumn:
|
|
2826
|
-
isComparison:
|
|
2827
|
-
isConcat:
|
|
2815
|
+
getIdentifiers: ti,
|
|
2816
|
+
getLiterals: di,
|
|
2817
|
+
getNodeDepth: bi,
|
|
2818
|
+
getParent: ei,
|
|
2819
|
+
getSubqueries: eg,
|
|
2820
|
+
getTableNames: Zi,
|
|
2821
|
+
getTables: ji,
|
|
2822
|
+
getWindowFunctions: Pg,
|
|
2823
|
+
hasAggregates: rg,
|
|
2824
|
+
hasSubqueries: mi,
|
|
2825
|
+
hasWindowFunctions: zi,
|
|
2826
|
+
isAdd: HD,
|
|
2827
|
+
isAggregateFunction: jD,
|
|
2828
|
+
isAlias: Ii,
|
|
2829
|
+
isAlterTable: Di,
|
|
2830
|
+
isAnd: ND,
|
|
2831
|
+
isArithmetic: Ki,
|
|
2832
|
+
isAvg: lD,
|
|
2833
|
+
isBetween: pD,
|
|
2834
|
+
isBoolean: oD,
|
|
2835
|
+
isCase: bD,
|
|
2836
|
+
isCast: PD,
|
|
2837
|
+
isCoalesce: mD,
|
|
2838
|
+
isColumn: Og,
|
|
2839
|
+
isComparison: Mi,
|
|
2840
|
+
isConcat: LD,
|
|
2828
2841
|
isCount: TD,
|
|
2829
|
-
isCreateIndex:
|
|
2830
|
-
isCreateTable:
|
|
2831
|
-
isCreateView:
|
|
2832
|
-
isCte:
|
|
2833
|
-
isDDL:
|
|
2834
|
-
isDelete:
|
|
2835
|
-
isDiv:
|
|
2836
|
-
isDropIndex:
|
|
2837
|
-
isDropTable:
|
|
2838
|
-
isDropView:
|
|
2839
|
-
isEq:
|
|
2840
|
-
isExcept:
|
|
2841
|
-
isExists:
|
|
2842
|
-
isExpressionValue:
|
|
2843
|
-
isFrom:
|
|
2844
|
-
isFunction:
|
|
2845
|
-
isGroupBy:
|
|
2846
|
-
isGt:
|
|
2847
|
-
isGte:
|
|
2848
|
-
isHaving:
|
|
2849
|
-
isILike:
|
|
2850
|
-
isIdentifier:
|
|
2851
|
-
isIn:
|
|
2852
|
-
isInsert:
|
|
2853
|
-
isIntersect:
|
|
2854
|
-
isIsNull:
|
|
2855
|
-
isJoin:
|
|
2856
|
-
isLike:
|
|
2857
|
-
isLimit:
|
|
2858
|
-
isLiteral:
|
|
2859
|
-
isLogical:
|
|
2860
|
-
isLt:
|
|
2861
|
-
isLte:
|
|
2862
|
-
isMax:
|
|
2863
|
-
isMin:
|
|
2864
|
-
isMod:
|
|
2842
|
+
isCreateIndex: ii,
|
|
2843
|
+
isCreateTable: Bi,
|
|
2844
|
+
isCreateView: oi,
|
|
2845
|
+
isCte: gi,
|
|
2846
|
+
isDDL: Ji,
|
|
2847
|
+
isDelete: ID,
|
|
2848
|
+
isDiv: SD,
|
|
2849
|
+
isDropIndex: wi,
|
|
2850
|
+
isDropTable: Ei,
|
|
2851
|
+
isDropView: Gi,
|
|
2852
|
+
isEq: KD,
|
|
2853
|
+
isExcept: BD,
|
|
2854
|
+
isExists: xD,
|
|
2855
|
+
isExpressionValue: m,
|
|
2856
|
+
isFrom: fD,
|
|
2857
|
+
isFunction: jg,
|
|
2858
|
+
isGroupBy: XD,
|
|
2859
|
+
isGt: yD,
|
|
2860
|
+
isGte: RD,
|
|
2861
|
+
isHaving: uD,
|
|
2862
|
+
isILike: hD,
|
|
2863
|
+
isIdentifier: DD,
|
|
2864
|
+
isIn: sD,
|
|
2865
|
+
isInsert: AD,
|
|
2866
|
+
isIntersect: CD,
|
|
2867
|
+
isIsNull: OD,
|
|
2868
|
+
isJoin: WD,
|
|
2869
|
+
isLike: cD,
|
|
2870
|
+
isLimit: _D,
|
|
2871
|
+
isLiteral: xg,
|
|
2872
|
+
isLogical: ai,
|
|
2873
|
+
isLt: JD,
|
|
2874
|
+
isLte: YD,
|
|
2875
|
+
isMax: zD,
|
|
2876
|
+
isMin: ZD,
|
|
2877
|
+
isMod: FD,
|
|
2865
2878
|
isMul: UD,
|
|
2866
|
-
isNeq:
|
|
2867
|
-
isNot:
|
|
2868
|
-
isNullIf:
|
|
2869
|
-
isNullLiteral:
|
|
2870
|
-
isOffset:
|
|
2871
|
-
isOr:
|
|
2872
|
-
isOrderBy:
|
|
2873
|
-
isOrdered:
|
|
2874
|
-
isParen:
|
|
2875
|
-
isQuery:
|
|
2876
|
-
isSafeCast:
|
|
2877
|
-
isSelect:
|
|
2878
|
-
isSetOperation:
|
|
2879
|
-
isStar:
|
|
2880
|
-
isSub:
|
|
2881
|
-
isSubquery:
|
|
2882
|
-
isSum:
|
|
2883
|
-
isTable:
|
|
2884
|
-
isTryCast:
|
|
2885
|
-
isUnion:
|
|
2886
|
-
isUpdate:
|
|
2887
|
-
isWhere:
|
|
2888
|
-
isWindowFunction:
|
|
2889
|
-
isWith:
|
|
2890
|
-
makeExpr:
|
|
2891
|
-
nodeCount:
|
|
2892
|
-
qualifyColumns:
|
|
2893
|
-
remove:
|
|
2894
|
-
removeLimitOffset:
|
|
2895
|
-
removeSelectColumns:
|
|
2896
|
-
removeWhere:
|
|
2897
|
-
renameColumns:
|
|
2898
|
-
renameTables:
|
|
2899
|
-
replaceByType:
|
|
2900
|
-
replaceNodes:
|
|
2901
|
-
setDistinct:
|
|
2879
|
+
isNeq: aD,
|
|
2880
|
+
isNot: MD,
|
|
2881
|
+
isNullIf: VD,
|
|
2882
|
+
isNullLiteral: GD,
|
|
2883
|
+
isOffset: $D,
|
|
2884
|
+
isOr: kD,
|
|
2885
|
+
isOrderBy: nD,
|
|
2886
|
+
isOrdered: Ci,
|
|
2887
|
+
isParen: Qi,
|
|
2888
|
+
isQuery: Ni,
|
|
2889
|
+
isSafeCast: rD,
|
|
2890
|
+
isSelect: pg,
|
|
2891
|
+
isSetOperation: ki,
|
|
2892
|
+
isStar: wD,
|
|
2893
|
+
isSub: qD,
|
|
2894
|
+
isSubquery: ED,
|
|
2895
|
+
isSum: dD,
|
|
2896
|
+
isTable: iD,
|
|
2897
|
+
isTryCast: eD,
|
|
2898
|
+
isUnion: QD,
|
|
2899
|
+
isUpdate: gD,
|
|
2900
|
+
isWhere: vD,
|
|
2901
|
+
isWindowFunction: tD,
|
|
2902
|
+
isWith: Ai,
|
|
2903
|
+
makeExpr: l,
|
|
2904
|
+
nodeCount: Pi,
|
|
2905
|
+
qualifyColumns: Ri,
|
|
2906
|
+
remove: cA,
|
|
2907
|
+
removeLimitOffset: Fi,
|
|
2908
|
+
removeSelectColumns: qi,
|
|
2909
|
+
removeWhere: hi,
|
|
2910
|
+
renameColumns: dg,
|
|
2911
|
+
renameTables: yi,
|
|
2912
|
+
replaceByType: Yi,
|
|
2913
|
+
replaceNodes: Tg,
|
|
2914
|
+
setDistinct: Li,
|
|
2902
2915
|
setLimit: Ui,
|
|
2903
|
-
setOffset:
|
|
2904
|
-
some:
|
|
2905
|
-
transform:
|
|
2906
|
-
walk:
|
|
2916
|
+
setOffset: Si,
|
|
2917
|
+
some: pi,
|
|
2918
|
+
transform: aA,
|
|
2919
|
+
walk: d
|
|
2907
2920
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2908
|
-
function
|
|
2909
|
-
return g instanceof R ? g._w : typeof g == "string" ?
|
|
2921
|
+
function h(g) {
|
|
2922
|
+
return g instanceof R ? g._w : typeof g == "string" ? hA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : MA();
|
|
2910
2923
|
}
|
|
2911
|
-
function
|
|
2912
|
-
const A = new
|
|
2924
|
+
function T(g) {
|
|
2925
|
+
const A = new O();
|
|
2913
2926
|
for (const Q of g)
|
|
2914
|
-
Q instanceof R ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(
|
|
2927
|
+
Q instanceof R ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(kA(Q)) : A.push(MA());
|
|
2915
2928
|
return A;
|
|
2916
2929
|
}
|
|
2917
2930
|
class R {
|
|
@@ -2923,58 +2936,58 @@ class R {
|
|
|
2923
2936
|
}
|
|
2924
2937
|
// -- Comparison --
|
|
2925
2938
|
eq(A) {
|
|
2926
|
-
return new R(this._w.eq(
|
|
2939
|
+
return new R(this._w.eq(h(A)));
|
|
2927
2940
|
}
|
|
2928
2941
|
neq(A) {
|
|
2929
|
-
return new R(this._w.neq(
|
|
2942
|
+
return new R(this._w.neq(h(A)));
|
|
2930
2943
|
}
|
|
2931
2944
|
lt(A) {
|
|
2932
|
-
return new R(this._w.lt(
|
|
2945
|
+
return new R(this._w.lt(h(A)));
|
|
2933
2946
|
}
|
|
2934
2947
|
lte(A) {
|
|
2935
|
-
return new R(this._w.lte(
|
|
2948
|
+
return new R(this._w.lte(h(A)));
|
|
2936
2949
|
}
|
|
2937
2950
|
gt(A) {
|
|
2938
|
-
return new R(this._w.gt(
|
|
2951
|
+
return new R(this._w.gt(h(A)));
|
|
2939
2952
|
}
|
|
2940
2953
|
gte(A) {
|
|
2941
|
-
return new R(this._w.gte(
|
|
2954
|
+
return new R(this._w.gte(h(A)));
|
|
2942
2955
|
}
|
|
2943
2956
|
// -- Logical --
|
|
2944
2957
|
and(A) {
|
|
2945
|
-
return new R(this._w.and(
|
|
2958
|
+
return new R(this._w.and(h(A)));
|
|
2946
2959
|
}
|
|
2947
2960
|
or(A) {
|
|
2948
|
-
return new R(this._w.or(
|
|
2961
|
+
return new R(this._w.or(h(A)));
|
|
2949
2962
|
}
|
|
2950
2963
|
not() {
|
|
2951
2964
|
return new R(this._w.not());
|
|
2952
2965
|
}
|
|
2953
2966
|
xor(A) {
|
|
2954
|
-
return new R(this._w.xor(
|
|
2967
|
+
return new R(this._w.xor(h(A)));
|
|
2955
2968
|
}
|
|
2956
2969
|
// -- Arithmetic --
|
|
2957
2970
|
add(A) {
|
|
2958
|
-
return new R(this._w.add(
|
|
2971
|
+
return new R(this._w.add(h(A)));
|
|
2959
2972
|
}
|
|
2960
2973
|
sub(A) {
|
|
2961
|
-
return new R(this._w.sub(
|
|
2974
|
+
return new R(this._w.sub(h(A)));
|
|
2962
2975
|
}
|
|
2963
2976
|
mul(A) {
|
|
2964
|
-
return new R(this._w.mul(
|
|
2977
|
+
return new R(this._w.mul(h(A)));
|
|
2965
2978
|
}
|
|
2966
2979
|
div(A) {
|
|
2967
|
-
return new R(this._w.div(
|
|
2980
|
+
return new R(this._w.div(h(A)));
|
|
2968
2981
|
}
|
|
2969
2982
|
// -- Pattern matching --
|
|
2970
2983
|
like(A) {
|
|
2971
|
-
return new R(this._w.like(
|
|
2984
|
+
return new R(this._w.like(h(A)));
|
|
2972
2985
|
}
|
|
2973
2986
|
ilike(A) {
|
|
2974
|
-
return new R(this._w.ilike(
|
|
2987
|
+
return new R(this._w.ilike(h(A)));
|
|
2975
2988
|
}
|
|
2976
2989
|
rlike(A) {
|
|
2977
|
-
return new R(this._w.rlike(
|
|
2990
|
+
return new R(this._w.rlike(h(A)));
|
|
2978
2991
|
}
|
|
2979
2992
|
// -- Predicates --
|
|
2980
2993
|
isNull() {
|
|
@@ -2984,13 +2997,13 @@ class R {
|
|
|
2984
2997
|
return new R(this._w.is_not_null());
|
|
2985
2998
|
}
|
|
2986
2999
|
between(A, Q) {
|
|
2987
|
-
return new R(this._w.between(
|
|
3000
|
+
return new R(this._w.between(h(A), h(Q)));
|
|
2988
3001
|
}
|
|
2989
3002
|
inList(...A) {
|
|
2990
|
-
return new R(this._w.in_list(
|
|
3003
|
+
return new R(this._w.in_list(T(A)));
|
|
2991
3004
|
}
|
|
2992
3005
|
notIn(...A) {
|
|
2993
|
-
return new R(this._w.not_in(
|
|
3006
|
+
return new R(this._w.not_in(T(A)));
|
|
2994
3007
|
}
|
|
2995
3008
|
// -- Transform --
|
|
2996
3009
|
alias(A) {
|
|
@@ -3022,206 +3035,206 @@ class R {
|
|
|
3022
3035
|
this._w.free();
|
|
3023
3036
|
}
|
|
3024
3037
|
}
|
|
3025
|
-
class
|
|
3038
|
+
class Wi {
|
|
3026
3039
|
/** @internal WASM handle */
|
|
3027
3040
|
_w;
|
|
3028
3041
|
constructor() {
|
|
3029
|
-
this._w = new
|
|
3042
|
+
this._w = new CA();
|
|
3030
3043
|
}
|
|
3031
3044
|
/** Set the PARTITION BY expressions. */
|
|
3032
3045
|
partitionBy(...A) {
|
|
3033
|
-
return this._w.partition_by(
|
|
3046
|
+
return this._w.partition_by(T(A)), this;
|
|
3034
3047
|
}
|
|
3035
3048
|
/** Set the ORDER BY expressions. */
|
|
3036
3049
|
orderBy(...A) {
|
|
3037
|
-
return this._w.order_by(
|
|
3050
|
+
return this._w.order_by(T(A)), this;
|
|
3038
3051
|
}
|
|
3039
3052
|
/** Free the underlying WASM handle. */
|
|
3040
3053
|
free() {
|
|
3041
3054
|
this._w.free();
|
|
3042
3055
|
}
|
|
3043
3056
|
}
|
|
3044
|
-
function
|
|
3045
|
-
return new R(
|
|
3057
|
+
function vi(g) {
|
|
3058
|
+
return new R(hA(g));
|
|
3046
3059
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return new R(
|
|
3060
|
+
function Xi(g) {
|
|
3061
|
+
return new R(kA(g));
|
|
3049
3062
|
}
|
|
3050
|
-
function
|
|
3051
|
-
return new R(
|
|
3063
|
+
function bg() {
|
|
3064
|
+
return new R(Sg());
|
|
3052
3065
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return new R(
|
|
3066
|
+
function ui() {
|
|
3067
|
+
return new R(MA());
|
|
3055
3068
|
}
|
|
3056
3069
|
function qA(g) {
|
|
3057
3070
|
return new R(Jg(g));
|
|
3058
3071
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return new R(
|
|
3072
|
+
function ni(g) {
|
|
3073
|
+
return new R(Lg(g));
|
|
3061
3074
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return new R(
|
|
3075
|
+
function fg(g) {
|
|
3076
|
+
return new R(Ug(g));
|
|
3064
3077
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return
|
|
3078
|
+
function _i(g) {
|
|
3079
|
+
return fg(g);
|
|
3067
3080
|
}
|
|
3068
|
-
function
|
|
3069
|
-
return new R(
|
|
3081
|
+
function U(g, ...A) {
|
|
3082
|
+
return new R(hg(g, T(A)));
|
|
3070
3083
|
}
|
|
3071
|
-
function
|
|
3072
|
-
return new R(Hg(
|
|
3084
|
+
function $i(g) {
|
|
3085
|
+
return new R(Hg(h(g)));
|
|
3073
3086
|
}
|
|
3074
|
-
function
|
|
3075
|
-
return new R(
|
|
3087
|
+
function Aw(g, A) {
|
|
3088
|
+
return new R(yg(h(g), A));
|
|
3076
3089
|
}
|
|
3077
|
-
function
|
|
3078
|
-
return new R(
|
|
3090
|
+
function gw(g, A) {
|
|
3091
|
+
return new R(Kg(h(g), A));
|
|
3079
3092
|
}
|
|
3080
|
-
function
|
|
3093
|
+
function Iw(g, A) {
|
|
3081
3094
|
return new R(Fg(g._w, A));
|
|
3082
3095
|
}
|
|
3083
|
-
function
|
|
3096
|
+
function Qw(...g) {
|
|
3084
3097
|
if (g.length === 0) return qA(!0);
|
|
3085
3098
|
if (g.length === 1)
|
|
3086
|
-
return g[0] instanceof R ? g[0] : new R(
|
|
3087
|
-
let A =
|
|
3099
|
+
return g[0] instanceof R ? g[0] : new R(h(g[0]));
|
|
3100
|
+
let A = h(g[0]);
|
|
3088
3101
|
for (let Q = 1; Q < g.length; Q++)
|
|
3089
|
-
A =
|
|
3102
|
+
A = ag(A, h(g[Q]));
|
|
3090
3103
|
return new R(A);
|
|
3091
3104
|
}
|
|
3092
|
-
function
|
|
3105
|
+
function Cw(...g) {
|
|
3093
3106
|
if (g.length === 0) return qA(!1);
|
|
3094
3107
|
if (g.length === 1)
|
|
3095
|
-
return g[0] instanceof R ? g[0] : new R(
|
|
3096
|
-
let A =
|
|
3108
|
+
return g[0] instanceof R ? g[0] : new R(h(g[0]));
|
|
3109
|
+
let A = h(g[0]);
|
|
3097
3110
|
for (let Q = 1; Q < g.length; Q++)
|
|
3098
|
-
A =
|
|
3111
|
+
A = qg(A, h(g[Q]));
|
|
3099
3112
|
return new R(A);
|
|
3100
3113
|
}
|
|
3101
|
-
function gw(g) {
|
|
3102
|
-
return g !== void 0 ? c("COUNT", g) : c("COUNT", rg());
|
|
3103
|
-
}
|
|
3104
|
-
function Iw(g) {
|
|
3105
|
-
return new R(Rg(H(g)));
|
|
3106
|
-
}
|
|
3107
|
-
function Qw(g) {
|
|
3108
|
-
return c("SUM", g);
|
|
3109
|
-
}
|
|
3110
|
-
function Cw(g) {
|
|
3111
|
-
return c("AVG", g);
|
|
3112
|
-
}
|
|
3113
3114
|
function Bw(g) {
|
|
3114
|
-
return
|
|
3115
|
+
return g !== void 0 ? U("COUNT", g) : U("COUNT", bg());
|
|
3115
3116
|
}
|
|
3116
3117
|
function Ew(g) {
|
|
3117
|
-
return
|
|
3118
|
+
return new R(Rg(h(g)));
|
|
3118
3119
|
}
|
|
3119
3120
|
function Dw(g) {
|
|
3120
|
-
return
|
|
3121
|
+
return U("SUM", g);
|
|
3121
3122
|
}
|
|
3122
3123
|
function iw(g) {
|
|
3123
|
-
return
|
|
3124
|
+
return U("AVG", g);
|
|
3124
3125
|
}
|
|
3125
3126
|
function ww(g) {
|
|
3126
|
-
return
|
|
3127
|
+
return U("MIN", g);
|
|
3127
3128
|
}
|
|
3128
3129
|
function ow(g) {
|
|
3129
|
-
return
|
|
3130
|
+
return U("MAX", g);
|
|
3130
3131
|
}
|
|
3131
3132
|
function Gw(g) {
|
|
3132
|
-
return
|
|
3133
|
+
return U("UPPER", g);
|
|
3133
3134
|
}
|
|
3134
3135
|
function Nw(g) {
|
|
3135
|
-
return
|
|
3136
|
+
return U("LOWER", g);
|
|
3136
3137
|
}
|
|
3137
3138
|
function kw(g) {
|
|
3138
|
-
return
|
|
3139
|
+
return U("LENGTH", g);
|
|
3139
3140
|
}
|
|
3140
3141
|
function Mw(g) {
|
|
3141
|
-
return
|
|
3142
|
+
return U("TRIM", g);
|
|
3142
3143
|
}
|
|
3143
|
-
function Kw(g
|
|
3144
|
-
return
|
|
3144
|
+
function Kw(g) {
|
|
3145
|
+
return U("LTRIM", g);
|
|
3145
3146
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return
|
|
3147
|
+
function aw(g) {
|
|
3148
|
+
return U("RTRIM", g);
|
|
3148
3149
|
}
|
|
3149
|
-
function
|
|
3150
|
-
return
|
|
3150
|
+
function Jw(g) {
|
|
3151
|
+
return U("REVERSE", g);
|
|
3151
3152
|
}
|
|
3152
|
-
function
|
|
3153
|
-
return
|
|
3153
|
+
function Yw(g) {
|
|
3154
|
+
return U("INITCAP", g);
|
|
3154
3155
|
}
|
|
3155
|
-
function
|
|
3156
|
-
return
|
|
3156
|
+
function yw(g, A, Q) {
|
|
3157
|
+
return Q !== void 0 ? U("SUBSTRING", g, A, Q) : U("SUBSTRING", g, A);
|
|
3157
3158
|
}
|
|
3158
|
-
function
|
|
3159
|
-
return
|
|
3159
|
+
function Rw(g, A, Q) {
|
|
3160
|
+
return U("REPLACE", g, A, Q);
|
|
3160
3161
|
}
|
|
3161
|
-
function
|
|
3162
|
-
return
|
|
3162
|
+
function cw(g, ...A) {
|
|
3163
|
+
return U("CONCAT_WS", g, ...A);
|
|
3164
|
+
}
|
|
3165
|
+
function hw(...g) {
|
|
3166
|
+
return U("COALESCE", ...g);
|
|
3163
3167
|
}
|
|
3164
3168
|
function Hw(g, A) {
|
|
3165
|
-
return
|
|
3169
|
+
return U("NULLIF", g, A);
|
|
3166
3170
|
}
|
|
3167
|
-
function
|
|
3168
|
-
return
|
|
3171
|
+
function qw(g, A) {
|
|
3172
|
+
return U("IFNULL", g, A);
|
|
3169
3173
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
3174
|
+
function Uw(g) {
|
|
3175
|
+
return U("ABS", g);
|
|
3172
3176
|
}
|
|
3173
|
-
function
|
|
3174
|
-
return
|
|
3177
|
+
function Sw(g, A) {
|
|
3178
|
+
return A !== void 0 ? U("ROUND", g, A) : U("ROUND", g);
|
|
3175
3179
|
}
|
|
3176
3180
|
function Fw(g) {
|
|
3177
|
-
return
|
|
3178
|
-
}
|
|
3179
|
-
function Sw(g) {
|
|
3180
|
-
return c("LN", g);
|
|
3181
|
+
return U("FLOOR", g);
|
|
3181
3182
|
}
|
|
3182
3183
|
function Lw(g) {
|
|
3183
|
-
return
|
|
3184
|
-
}
|
|
3185
|
-
function sw(g) {
|
|
3186
|
-
return c("SIGN", g);
|
|
3184
|
+
return U("CEIL", g);
|
|
3187
3185
|
}
|
|
3188
|
-
function
|
|
3189
|
-
return
|
|
3186
|
+
function sw(g, A) {
|
|
3187
|
+
return U("POWER", g, A);
|
|
3190
3188
|
}
|
|
3191
|
-
function
|
|
3192
|
-
return
|
|
3189
|
+
function pw(g) {
|
|
3190
|
+
return U("SQRT", g);
|
|
3193
3191
|
}
|
|
3194
|
-
function
|
|
3195
|
-
return
|
|
3192
|
+
function Ow(g) {
|
|
3193
|
+
return U("LN", g);
|
|
3196
3194
|
}
|
|
3197
|
-
function
|
|
3198
|
-
return
|
|
3195
|
+
function xw(g) {
|
|
3196
|
+
return U("EXP", g);
|
|
3199
3197
|
}
|
|
3200
|
-
function
|
|
3201
|
-
return
|
|
3198
|
+
function jw(g) {
|
|
3199
|
+
return U("SIGN", g);
|
|
3202
3200
|
}
|
|
3203
|
-
function tw(g
|
|
3204
|
-
return
|
|
3201
|
+
function tw(...g) {
|
|
3202
|
+
return U("GREATEST", ...g);
|
|
3205
3203
|
}
|
|
3206
|
-
function
|
|
3207
|
-
return
|
|
3204
|
+
function Tw(...g) {
|
|
3205
|
+
return U("LEAST", ...g);
|
|
3208
3206
|
}
|
|
3209
3207
|
function dw() {
|
|
3210
|
-
return
|
|
3208
|
+
return U("CURRENT_DATE");
|
|
3209
|
+
}
|
|
3210
|
+
function lw() {
|
|
3211
|
+
return U("CURRENT_TIME");
|
|
3211
3212
|
}
|
|
3212
3213
|
function Zw() {
|
|
3213
|
-
return
|
|
3214
|
+
return U("CURRENT_TIMESTAMP");
|
|
3215
|
+
}
|
|
3216
|
+
function zw(g, A) {
|
|
3217
|
+
return new R(cg(g, h(A)));
|
|
3218
|
+
}
|
|
3219
|
+
function mw() {
|
|
3220
|
+
return U("ROW_NUMBER");
|
|
3214
3221
|
}
|
|
3215
|
-
|
|
3222
|
+
function Vw() {
|
|
3223
|
+
return U("RANK");
|
|
3224
|
+
}
|
|
3225
|
+
function Pw() {
|
|
3226
|
+
return U("DENSE_RANK");
|
|
3227
|
+
}
|
|
3228
|
+
class Wg {
|
|
3216
3229
|
/** @internal */
|
|
3217
3230
|
_w;
|
|
3218
3231
|
constructor() {
|
|
3219
|
-
this._w = new
|
|
3232
|
+
this._w = new t();
|
|
3220
3233
|
}
|
|
3221
3234
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3222
3235
|
select(...A) {
|
|
3223
3236
|
for (const Q of A)
|
|
3224
|
-
Q === "*" ? this._w.select_star() : Q instanceof R ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(
|
|
3237
|
+
Q === "*" ? this._w.select_star() : Q instanceof R ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(h(Q));
|
|
3225
3238
|
return this;
|
|
3226
3239
|
}
|
|
3227
3240
|
/** Set the FROM clause. */
|
|
@@ -3230,15 +3243,15 @@ class bg {
|
|
|
3230
3243
|
}
|
|
3231
3244
|
/** Add an INNER JOIN. */
|
|
3232
3245
|
join(A, Q) {
|
|
3233
|
-
return this._w.join(A,
|
|
3246
|
+
return this._w.join(A, h(Q)), this;
|
|
3234
3247
|
}
|
|
3235
3248
|
/** Add a LEFT JOIN. */
|
|
3236
3249
|
leftJoin(A, Q) {
|
|
3237
|
-
return this._w.left_join(A,
|
|
3250
|
+
return this._w.left_join(A, h(Q)), this;
|
|
3238
3251
|
}
|
|
3239
3252
|
/** Add a RIGHT JOIN. */
|
|
3240
3253
|
rightJoin(A, Q) {
|
|
3241
|
-
return this._w.right_join(A,
|
|
3254
|
+
return this._w.right_join(A, h(Q)), this;
|
|
3242
3255
|
}
|
|
3243
3256
|
/** Add a CROSS JOIN. */
|
|
3244
3257
|
crossJoin(A) {
|
|
@@ -3246,19 +3259,19 @@ class bg {
|
|
|
3246
3259
|
}
|
|
3247
3260
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3248
3261
|
where(A) {
|
|
3249
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(
|
|
3262
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(h(A)), this;
|
|
3250
3263
|
}
|
|
3251
3264
|
/** Set the GROUP BY clause. */
|
|
3252
3265
|
groupBy(...A) {
|
|
3253
|
-
return this._w.group_by_cols(
|
|
3266
|
+
return this._w.group_by_cols(T(A)), this;
|
|
3254
3267
|
}
|
|
3255
3268
|
/** Set the HAVING clause. */
|
|
3256
3269
|
having(A) {
|
|
3257
|
-
return this._w.having(
|
|
3270
|
+
return this._w.having(h(A)), this;
|
|
3258
3271
|
}
|
|
3259
3272
|
/** Set the ORDER BY clause. */
|
|
3260
3273
|
orderBy(...A) {
|
|
3261
|
-
return this._w.order_by_exprs(
|
|
3274
|
+
return this._w.order_by_exprs(T(A)), this;
|
|
3262
3275
|
}
|
|
3263
3276
|
/** Set the LIMIT. */
|
|
3264
3277
|
limit(A) {
|
|
@@ -3274,11 +3287,11 @@ class bg {
|
|
|
3274
3287
|
}
|
|
3275
3288
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3276
3289
|
qualify(A) {
|
|
3277
|
-
return this._w.qualify(
|
|
3290
|
+
return this._w.qualify(h(A)), this;
|
|
3278
3291
|
}
|
|
3279
3292
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3280
3293
|
sortBy(...A) {
|
|
3281
|
-
return this._w.sort_by_exprs(
|
|
3294
|
+
return this._w.sort_by_exprs(T(A)), this;
|
|
3282
3295
|
}
|
|
3283
3296
|
/** Add a named WINDOW clause definition. */
|
|
3284
3297
|
window(A, Q) {
|
|
@@ -3312,19 +3325,19 @@ class bg {
|
|
|
3312
3325
|
}
|
|
3313
3326
|
/** Combine with UNION. */
|
|
3314
3327
|
union(A) {
|
|
3315
|
-
return new
|
|
3328
|
+
return new _(this._w.union(A._w));
|
|
3316
3329
|
}
|
|
3317
3330
|
/** Combine with UNION ALL. */
|
|
3318
3331
|
unionAll(A) {
|
|
3319
|
-
return new
|
|
3332
|
+
return new _(this._w.union_all(A._w));
|
|
3320
3333
|
}
|
|
3321
3334
|
/** Combine with INTERSECT. */
|
|
3322
3335
|
intersect(A) {
|
|
3323
|
-
return new
|
|
3336
|
+
return new _(this._w.intersect(A._w));
|
|
3324
3337
|
}
|
|
3325
3338
|
/** Combine with EXCEPT. */
|
|
3326
3339
|
except(A) {
|
|
3327
|
-
return new
|
|
3340
|
+
return new _(this._w.except_(A._w));
|
|
3328
3341
|
}
|
|
3329
3342
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3330
3343
|
toSql(A = "generic") {
|
|
@@ -3339,15 +3352,15 @@ class bg {
|
|
|
3339
3352
|
this._w.free();
|
|
3340
3353
|
}
|
|
3341
3354
|
}
|
|
3342
|
-
function
|
|
3343
|
-
const A = new
|
|
3355
|
+
function ew(...g) {
|
|
3356
|
+
const A = new Wg();
|
|
3344
3357
|
return g.length > 0 && A.select(...g), A;
|
|
3345
3358
|
}
|
|
3346
3359
|
class vg {
|
|
3347
3360
|
/** @internal */
|
|
3348
3361
|
_w;
|
|
3349
3362
|
constructor(A) {
|
|
3350
|
-
this._w = new
|
|
3363
|
+
this._w = new oA(A);
|
|
3351
3364
|
}
|
|
3352
3365
|
/** Set the target column names. */
|
|
3353
3366
|
columns(...A) {
|
|
@@ -3355,7 +3368,7 @@ class vg {
|
|
|
3355
3368
|
}
|
|
3356
3369
|
/** Append a row of values. Call multiple times for multiple rows. */
|
|
3357
3370
|
values(...A) {
|
|
3358
|
-
return this._w.values(
|
|
3371
|
+
return this._w.values(T(A)), this;
|
|
3359
3372
|
}
|
|
3360
3373
|
/** Set the source query for INSERT ... SELECT. */
|
|
3361
3374
|
query(A) {
|
|
@@ -3374,25 +3387,25 @@ class vg {
|
|
|
3374
3387
|
this._w.free();
|
|
3375
3388
|
}
|
|
3376
3389
|
}
|
|
3377
|
-
function
|
|
3390
|
+
function Xg(g) {
|
|
3378
3391
|
return new vg(g);
|
|
3379
3392
|
}
|
|
3380
|
-
function
|
|
3381
|
-
return
|
|
3393
|
+
function rw(g) {
|
|
3394
|
+
return Xg(g);
|
|
3382
3395
|
}
|
|
3383
3396
|
class ug {
|
|
3384
3397
|
/** @internal */
|
|
3385
3398
|
_w;
|
|
3386
3399
|
constructor(A) {
|
|
3387
|
-
this._w = new
|
|
3400
|
+
this._w = new NA(A);
|
|
3388
3401
|
}
|
|
3389
3402
|
/** Add a SET column = value assignment. */
|
|
3390
3403
|
set(A, Q) {
|
|
3391
|
-
return this._w.set(A,
|
|
3404
|
+
return this._w.set(A, h(Q)), this;
|
|
3392
3405
|
}
|
|
3393
3406
|
/** Set the WHERE clause. */
|
|
3394
3407
|
where(A) {
|
|
3395
|
-
return this._w.where_expr(
|
|
3408
|
+
return this._w.where_expr(h(A)), this;
|
|
3396
3409
|
}
|
|
3397
3410
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3398
3411
|
from(A) {
|
|
@@ -3411,18 +3424,18 @@ class ug {
|
|
|
3411
3424
|
this._w.free();
|
|
3412
3425
|
}
|
|
3413
3426
|
}
|
|
3414
|
-
function
|
|
3427
|
+
function bw(g) {
|
|
3415
3428
|
return new ug(g);
|
|
3416
3429
|
}
|
|
3417
3430
|
class ng {
|
|
3418
3431
|
/** @internal */
|
|
3419
3432
|
_w;
|
|
3420
3433
|
constructor(A) {
|
|
3421
|
-
this._w = new
|
|
3434
|
+
this._w = new wA(A);
|
|
3422
3435
|
}
|
|
3423
3436
|
/** Set the WHERE clause. */
|
|
3424
3437
|
where(A) {
|
|
3425
|
-
return this._w.where_expr(
|
|
3438
|
+
return this._w.where_expr(h(A)), this;
|
|
3426
3439
|
}
|
|
3427
3440
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3428
3441
|
toSql(A = "generic") {
|
|
@@ -3437,27 +3450,27 @@ class ng {
|
|
|
3437
3450
|
this._w.free();
|
|
3438
3451
|
}
|
|
3439
3452
|
}
|
|
3440
|
-
function
|
|
3453
|
+
function _g(g) {
|
|
3441
3454
|
return new ng(g);
|
|
3442
3455
|
}
|
|
3443
|
-
function
|
|
3444
|
-
return
|
|
3456
|
+
function fw(g) {
|
|
3457
|
+
return _g(g);
|
|
3445
3458
|
}
|
|
3446
|
-
class
|
|
3459
|
+
class $g {
|
|
3447
3460
|
/** @internal */
|
|
3448
3461
|
_w;
|
|
3449
3462
|
constructor(A) {
|
|
3450
|
-
this._w = new
|
|
3463
|
+
this._w = new GA(A);
|
|
3451
3464
|
}
|
|
3452
3465
|
/** Set the source table and ON condition. */
|
|
3453
3466
|
using(A, Q) {
|
|
3454
|
-
return this._w.using(A,
|
|
3467
|
+
return this._w.using(A, h(Q)), this;
|
|
3455
3468
|
}
|
|
3456
3469
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3457
3470
|
whenMatchedUpdate(A) {
|
|
3458
|
-
const Q = new
|
|
3471
|
+
const Q = new QA();
|
|
3459
3472
|
for (const [C, B] of Object.entries(A))
|
|
3460
|
-
Q.push(C,
|
|
3473
|
+
Q.push(C, h(B));
|
|
3461
3474
|
return this._w.when_matched_update(Q), this;
|
|
3462
3475
|
}
|
|
3463
3476
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3466,7 +3479,7 @@ class _g {
|
|
|
3466
3479
|
}
|
|
3467
3480
|
/** Add a WHEN NOT MATCHED THEN INSERT clause. */
|
|
3468
3481
|
whenNotMatchedInsert(A, Q) {
|
|
3469
|
-
return this._w.when_not_matched_insert(A,
|
|
3482
|
+
return this._w.when_not_matched_insert(A, T(Q)), this;
|
|
3470
3483
|
}
|
|
3471
3484
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3472
3485
|
toSql(A = "generic") {
|
|
@@ -3481,10 +3494,10 @@ class _g {
|
|
|
3481
3494
|
this._w.free();
|
|
3482
3495
|
}
|
|
3483
3496
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return new
|
|
3497
|
+
function Ww(g) {
|
|
3498
|
+
return new $g(g);
|
|
3486
3499
|
}
|
|
3487
|
-
class
|
|
3500
|
+
class UA {
|
|
3488
3501
|
/** @internal */
|
|
3489
3502
|
_w;
|
|
3490
3503
|
/** @internal */
|
|
@@ -3493,11 +3506,11 @@ class cA {
|
|
|
3493
3506
|
}
|
|
3494
3507
|
/** Add a WHEN condition THEN result branch. */
|
|
3495
3508
|
when(A, Q) {
|
|
3496
|
-
return this._w.when(
|
|
3509
|
+
return this._w.when(h(A), h(Q)), this;
|
|
3497
3510
|
}
|
|
3498
3511
|
/** Set the ELSE result. */
|
|
3499
3512
|
else_(A) {
|
|
3500
|
-
return this._w.else_(
|
|
3513
|
+
return this._w.else_(h(A)), this;
|
|
3501
3514
|
}
|
|
3502
3515
|
/** Build the CASE expression as an Expr. */
|
|
3503
3516
|
build() {
|
|
@@ -3508,13 +3521,13 @@ class cA {
|
|
|
3508
3521
|
return this._w.to_sql();
|
|
3509
3522
|
}
|
|
3510
3523
|
}
|
|
3511
|
-
function
|
|
3512
|
-
return new
|
|
3524
|
+
function vw() {
|
|
3525
|
+
return new UA(new b());
|
|
3513
3526
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return new
|
|
3527
|
+
function Xw(g) {
|
|
3528
|
+
return new UA(Yg(h(g)));
|
|
3516
3529
|
}
|
|
3517
|
-
class
|
|
3530
|
+
class _ {
|
|
3518
3531
|
/** @internal */
|
|
3519
3532
|
_w;
|
|
3520
3533
|
/** @internal */
|
|
@@ -3523,7 +3536,7 @@ class X {
|
|
|
3523
3536
|
}
|
|
3524
3537
|
/** Set the ORDER BY clause. */
|
|
3525
3538
|
orderBy(...A) {
|
|
3526
|
-
return this._w.order_by_exprs(
|
|
3539
|
+
return this._w.order_by_exprs(T(A)), this;
|
|
3527
3540
|
}
|
|
3528
3541
|
/** Set the LIMIT. */
|
|
3529
3542
|
limit(A) {
|
|
@@ -3546,24 +3559,24 @@ class X {
|
|
|
3546
3559
|
this._w.free();
|
|
3547
3560
|
}
|
|
3548
3561
|
}
|
|
3549
|
-
function
|
|
3562
|
+
function uw(g, A) {
|
|
3550
3563
|
return g.union(A);
|
|
3551
3564
|
}
|
|
3552
|
-
function
|
|
3565
|
+
function nw(g, A) {
|
|
3553
3566
|
return g.unionAll(A);
|
|
3554
3567
|
}
|
|
3555
|
-
function
|
|
3568
|
+
function _w(g, A) {
|
|
3556
3569
|
return g.intersect(A);
|
|
3557
3570
|
}
|
|
3558
|
-
function
|
|
3571
|
+
function $w(g, A) {
|
|
3559
3572
|
return g.except(A);
|
|
3560
3573
|
}
|
|
3561
|
-
function
|
|
3574
|
+
function Ao(g, A) {
|
|
3562
3575
|
const Q = [];
|
|
3563
|
-
return s(g) === "select" && Q.push(...
|
|
3576
|
+
return s(g) === "select" && Q.push(...go(g)), Q;
|
|
3564
3577
|
}
|
|
3565
|
-
function
|
|
3566
|
-
const Q = [], C =
|
|
3578
|
+
function go(g, A) {
|
|
3579
|
+
const Q = [], C = BA(g, "star");
|
|
3567
3580
|
if (C.length > 0) {
|
|
3568
3581
|
const D = x(C[0])?.span;
|
|
3569
3582
|
Q.push({
|
|
@@ -3577,15 +3590,15 @@ function Xw(g, A) {
|
|
|
3577
3590
|
});
|
|
3578
3591
|
}
|
|
3579
3592
|
const B = x(g);
|
|
3580
|
-
if (
|
|
3581
|
-
const E =
|
|
3593
|
+
if (rg(g) && !B.group_by) {
|
|
3594
|
+
const E = IA(g), D = B.expressions || [];
|
|
3582
3595
|
if (D.some((k) => {
|
|
3583
3596
|
const M = s(k);
|
|
3584
|
-
return M === "column" || M === "identifier" ?
|
|
3597
|
+
return M === "column" || M === "identifier" ? IA(k).length === 0 : !1;
|
|
3585
3598
|
}) && E.length > 0) {
|
|
3586
|
-
const k = D.find((
|
|
3587
|
-
const y = s(
|
|
3588
|
-
return y === "column" || y === "identifier" ?
|
|
3599
|
+
const k = D.find((a) => {
|
|
3600
|
+
const y = s(a);
|
|
3601
|
+
return y === "column" || y === "identifier" ? IA(a).length === 0 : !1;
|
|
3589
3602
|
}), M = k ? x(k)?.span : void 0;
|
|
3590
3603
|
Q.push({
|
|
3591
3604
|
message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
|
|
@@ -3616,7 +3629,7 @@ function Xw(g, A) {
|
|
|
3616
3629
|
}
|
|
3617
3630
|
return Q;
|
|
3618
3631
|
}
|
|
3619
|
-
function
|
|
3632
|
+
function Io(g) {
|
|
3620
3633
|
try {
|
|
3621
3634
|
return JSON.parse(g);
|
|
3622
3635
|
} catch {
|
|
@@ -3632,29 +3645,29 @@ function _w(g) {
|
|
|
3632
3645
|
};
|
|
3633
3646
|
}
|
|
3634
3647
|
}
|
|
3635
|
-
function
|
|
3648
|
+
function Qo(g, A, Q = "generic", C = {}) {
|
|
3636
3649
|
const B = C.strict ?? A.strict ?? !0, E = {
|
|
3637
3650
|
check_types: C.checkTypes ?? !1,
|
|
3638
3651
|
check_references: C.checkReferences ?? !1,
|
|
3639
3652
|
strict: B,
|
|
3640
3653
|
semantic: C.semantic ?? !1,
|
|
3641
3654
|
strict_syntax: C.strictSyntax ?? !1
|
|
3642
|
-
}, D =
|
|
3655
|
+
}, D = Mg(
|
|
3643
3656
|
g,
|
|
3644
3657
|
JSON.stringify(A),
|
|
3645
3658
|
Q,
|
|
3646
3659
|
JSON.stringify(E)
|
|
3647
3660
|
);
|
|
3648
|
-
return
|
|
3661
|
+
return Io(D);
|
|
3649
3662
|
}
|
|
3650
|
-
const
|
|
3663
|
+
const Co = {
|
|
3651
3664
|
Error: "error",
|
|
3652
3665
|
Warning: "warning"
|
|
3653
|
-
}, n =
|
|
3654
|
-
function
|
|
3666
|
+
}, n = sg;
|
|
3667
|
+
function WA(g) {
|
|
3655
3668
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3656
3669
|
}
|
|
3657
|
-
function
|
|
3670
|
+
function Bo(g, A = "generic", Q = {}) {
|
|
3658
3671
|
const C = Q.strictSyntax ? n.validate_with_options(
|
|
3659
3672
|
g,
|
|
3660
3673
|
A,
|
|
@@ -3662,80 +3675,90 @@ function go(g, A = "generic", Q = {}) {
|
|
|
3662
3675
|
) : n.validate(g, A), B = JSON.parse(C);
|
|
3663
3676
|
if (!B.valid || !Q.semantic)
|
|
3664
3677
|
return B;
|
|
3665
|
-
const E = typeof n.parse_value == "function" ?
|
|
3678
|
+
const E = typeof n.parse_value == "function" ? WA(
|
|
3666
3679
|
n.parse_value(g, A)
|
|
3667
|
-
) :
|
|
3680
|
+
) : WA(
|
|
3668
3681
|
n.parse(g, A)
|
|
3669
3682
|
);
|
|
3670
3683
|
if (!E.success || !E.ast)
|
|
3671
3684
|
return B;
|
|
3672
3685
|
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, o = [...B.errors];
|
|
3673
3686
|
for (const M of D) {
|
|
3674
|
-
const
|
|
3675
|
-
o.push(...
|
|
3687
|
+
const a = Ao(M);
|
|
3688
|
+
o.push(...a);
|
|
3676
3689
|
}
|
|
3677
3690
|
return {
|
|
3678
3691
|
valid: !o.some((M) => M.severity === "error"),
|
|
3679
3692
|
errors: o
|
|
3680
3693
|
};
|
|
3681
3694
|
}
|
|
3682
|
-
function
|
|
3695
|
+
function AI(g, A, Q = "generic", C = !1) {
|
|
3683
3696
|
const B = og(A, g, Q, C);
|
|
3684
3697
|
return JSON.parse(B);
|
|
3685
3698
|
}
|
|
3686
|
-
function
|
|
3687
|
-
const
|
|
3699
|
+
function gI(g, A, Q, C = "generic", B = !1) {
|
|
3700
|
+
const E = Gg(
|
|
3701
|
+
A,
|
|
3702
|
+
g,
|
|
3703
|
+
JSON.stringify(Q),
|
|
3704
|
+
C,
|
|
3705
|
+
B
|
|
3706
|
+
);
|
|
3707
|
+
return JSON.parse(E);
|
|
3708
|
+
}
|
|
3709
|
+
function II(g, A, Q = "generic") {
|
|
3710
|
+
const C = kg(A, g, Q);
|
|
3688
3711
|
return JSON.parse(C);
|
|
3689
3712
|
}
|
|
3690
|
-
function
|
|
3713
|
+
function QI(g, A, Q = "generic", C = {}) {
|
|
3691
3714
|
const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = C, o = wg(g, A, Q, B, E, D);
|
|
3692
3715
|
return JSON.parse(o);
|
|
3693
3716
|
}
|
|
3694
|
-
function
|
|
3717
|
+
function CI(g) {
|
|
3695
3718
|
return g.some((A) => A.type !== "keep");
|
|
3696
3719
|
}
|
|
3697
|
-
function
|
|
3720
|
+
function BI(g) {
|
|
3698
3721
|
return g.filter((A) => A.type !== "keep");
|
|
3699
3722
|
}
|
|
3700
|
-
function
|
|
3701
|
-
const Q =
|
|
3723
|
+
function EI(g, A = "generic") {
|
|
3724
|
+
const Q = Ng(g, A);
|
|
3702
3725
|
return JSON.parse(Q);
|
|
3703
3726
|
}
|
|
3704
|
-
var
|
|
3705
|
-
const L =
|
|
3706
|
-
function
|
|
3727
|
+
var SA = /* @__PURE__ */ ((g) => (g.Generic = "generic", g.PostgreSQL = "postgresql", g.MySQL = "mysql", g.BigQuery = "bigquery", g.Snowflake = "snowflake", g.DuckDB = "duckdb", g.SQLite = "sqlite", g.Hive = "hive", g.Spark = "spark", g.Trino = "trino", g.Presto = "presto", g.Redshift = "redshift", g.TSQL = "tsql", g.Oracle = "oracle", g.ClickHouse = "clickhouse", g.Databricks = "databricks", g.Athena = "athena", g.Teradata = "teradata", g.Doris = "doris", g.StarRocks = "starrocks", g.Materialize = "materialize", g.RisingWave = "risingwave", g.SingleStore = "singlestore", g.CockroachDB = "cockroachdb", g.TiDB = "tidb", g.Druid = "druid", g.Solr = "solr", g.Tableau = "tableau", g.Dune = "dune", g.Fabric = "fabric", g.Drill = "drill", g.Dremio = "dremio", g.Exasol = "exasol", g.DataFusion = "datafusion", g))(SA || {});
|
|
3728
|
+
const L = sg;
|
|
3729
|
+
function FA(g) {
|
|
3707
3730
|
return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
|
|
3708
3731
|
}
|
|
3709
3732
|
function LA(g, A) {
|
|
3710
3733
|
return {
|
|
3711
3734
|
success: !1,
|
|
3712
3735
|
sql: void 0,
|
|
3713
|
-
error: `WASM ${g} failed: ${
|
|
3736
|
+
error: `WASM ${g} failed: ${FA(A)}`,
|
|
3714
3737
|
errorLine: void 0,
|
|
3715
3738
|
errorColumn: void 0
|
|
3716
3739
|
};
|
|
3717
3740
|
}
|
|
3718
|
-
function
|
|
3741
|
+
function Eo(g, A) {
|
|
3719
3742
|
return {
|
|
3720
3743
|
success: !1,
|
|
3721
3744
|
ast: void 0,
|
|
3722
|
-
error: `WASM ${g} failed: ${
|
|
3745
|
+
error: `WASM ${g} failed: ${FA(A)}`,
|
|
3723
3746
|
errorLine: void 0,
|
|
3724
3747
|
errorColumn: void 0
|
|
3725
3748
|
};
|
|
3726
3749
|
}
|
|
3727
|
-
function
|
|
3750
|
+
function f(g) {
|
|
3728
3751
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3729
3752
|
}
|
|
3730
|
-
async function
|
|
3753
|
+
async function DI() {
|
|
3731
3754
|
return Promise.resolve();
|
|
3732
3755
|
}
|
|
3733
|
-
function
|
|
3756
|
+
function iI() {
|
|
3734
3757
|
return !0;
|
|
3735
3758
|
}
|
|
3736
3759
|
function sA(g, A, Q) {
|
|
3737
3760
|
try {
|
|
3738
|
-
return typeof L.transpile_value == "function" ?
|
|
3761
|
+
return typeof L.transpile_value == "function" ? f(
|
|
3739
3762
|
L.transpile_value(g, A, Q)
|
|
3740
3763
|
) : JSON.parse(L.transpile(g, A, Q));
|
|
3741
3764
|
} catch (C) {
|
|
@@ -3745,30 +3768,30 @@ function sA(g, A, Q) {
|
|
|
3745
3768
|
function pA(g, A = "generic") {
|
|
3746
3769
|
try {
|
|
3747
3770
|
if (typeof L.parse_value == "function")
|
|
3748
|
-
return
|
|
3771
|
+
return f(L.parse_value(g, A));
|
|
3749
3772
|
const Q = JSON.parse(L.parse(g, A));
|
|
3750
3773
|
return Q.success && typeof Q.ast == "string" && (Q.ast = JSON.parse(Q.ast)), Q;
|
|
3751
3774
|
} catch (Q) {
|
|
3752
|
-
return
|
|
3775
|
+
return Eo("parse", Q);
|
|
3753
3776
|
}
|
|
3754
3777
|
}
|
|
3755
|
-
function
|
|
3778
|
+
function OA(g, A = "generic") {
|
|
3756
3779
|
try {
|
|
3757
|
-
return typeof L.tokenize_value == "function" ?
|
|
3780
|
+
return typeof L.tokenize_value == "function" ? f(
|
|
3758
3781
|
L.tokenize_value(g, A)
|
|
3759
3782
|
) : JSON.parse(L.tokenize(g, A));
|
|
3760
3783
|
} catch (Q) {
|
|
3761
3784
|
return {
|
|
3762
3785
|
success: !1,
|
|
3763
3786
|
tokens: void 0,
|
|
3764
|
-
error: `WASM tokenize failed: ${
|
|
3787
|
+
error: `WASM tokenize failed: ${FA(Q)}`
|
|
3765
3788
|
};
|
|
3766
3789
|
}
|
|
3767
3790
|
}
|
|
3768
3791
|
function xA(g, A = "generic") {
|
|
3769
3792
|
try {
|
|
3770
3793
|
if (typeof L.generate_value == "function" && Array.isArray(g))
|
|
3771
|
-
return
|
|
3794
|
+
return f(
|
|
3772
3795
|
L.generate_value(g, A)
|
|
3773
3796
|
);
|
|
3774
3797
|
const Q = JSON.stringify(g);
|
|
@@ -3778,28 +3801,28 @@ function xA(g, A = "generic") {
|
|
|
3778
3801
|
}
|
|
3779
3802
|
}
|
|
3780
3803
|
function jA(g, A = "generic") {
|
|
3781
|
-
return
|
|
3804
|
+
return tA(g, A, {});
|
|
3782
3805
|
}
|
|
3783
|
-
function
|
|
3806
|
+
function tA(g, A = "generic", Q = {}) {
|
|
3784
3807
|
try {
|
|
3785
|
-
return typeof L.format_sql_with_options_value == "function" ?
|
|
3808
|
+
return typeof L.format_sql_with_options_value == "function" ? f(
|
|
3786
3809
|
L.format_sql_with_options_value(g, A, Q)
|
|
3787
3810
|
) : typeof L.format_sql_with_options == "function" ? JSON.parse(
|
|
3788
3811
|
L.format_sql_with_options(g, A, JSON.stringify(Q))
|
|
3789
|
-
) : typeof L.format_sql_value == "function" ?
|
|
3812
|
+
) : typeof L.format_sql_value == "function" ? f(
|
|
3790
3813
|
L.format_sql_value(g, A)
|
|
3791
3814
|
) : JSON.parse(L.format_sql(g, A));
|
|
3792
3815
|
} catch (C) {
|
|
3793
3816
|
return LA("format", C);
|
|
3794
3817
|
}
|
|
3795
3818
|
}
|
|
3796
|
-
function
|
|
3797
|
-
return typeof L.get_dialects_value == "function" ?
|
|
3819
|
+
function TA() {
|
|
3820
|
+
return typeof L.get_dialects_value == "function" ? f(L.get_dialects_value()) : JSON.parse(L.get_dialects());
|
|
3798
3821
|
}
|
|
3799
|
-
function
|
|
3822
|
+
function dA() {
|
|
3800
3823
|
return L.version();
|
|
3801
3824
|
}
|
|
3802
|
-
class
|
|
3825
|
+
class r {
|
|
3803
3826
|
static instance = null;
|
|
3804
3827
|
constructor() {
|
|
3805
3828
|
}
|
|
@@ -3808,7 +3831,7 @@ class e {
|
|
|
3808
3831
|
* The WASM module is automatically initialized on import.
|
|
3809
3832
|
*/
|
|
3810
3833
|
static getInstance() {
|
|
3811
|
-
return
|
|
3834
|
+
return r.instance || (r.instance = new r()), r.instance;
|
|
3812
3835
|
}
|
|
3813
3836
|
/**
|
|
3814
3837
|
* Transpile SQL from one dialect to another.
|
|
@@ -3830,7 +3853,7 @@ class e {
|
|
|
3830
3853
|
* Tokenize SQL into a token stream.
|
|
3831
3854
|
*/
|
|
3832
3855
|
tokenize(A, Q = "generic") {
|
|
3833
|
-
return
|
|
3856
|
+
return OA(A, Q);
|
|
3834
3857
|
}
|
|
3835
3858
|
/**
|
|
3836
3859
|
* Generate SQL from an AST.
|
|
@@ -3848,247 +3871,249 @@ class e {
|
|
|
3848
3871
|
* Format SQL with explicit guard limits.
|
|
3849
3872
|
*/
|
|
3850
3873
|
formatWithOptions(A, Q = "generic", C = {}) {
|
|
3851
|
-
return
|
|
3874
|
+
return tA(A, Q, C);
|
|
3852
3875
|
}
|
|
3853
3876
|
/**
|
|
3854
3877
|
* Get supported dialects in this build.
|
|
3855
3878
|
* Per-dialect builds return only `"generic"` and the selected dialect.
|
|
3856
3879
|
*/
|
|
3857
3880
|
getDialects() {
|
|
3858
|
-
return
|
|
3881
|
+
return TA();
|
|
3859
3882
|
}
|
|
3860
3883
|
/**
|
|
3861
3884
|
* Get library version.
|
|
3862
3885
|
*/
|
|
3863
3886
|
getVersion() {
|
|
3864
|
-
return
|
|
3887
|
+
return dA();
|
|
3865
3888
|
}
|
|
3866
3889
|
}
|
|
3867
|
-
const
|
|
3868
|
-
init:
|
|
3869
|
-
isInitialized:
|
|
3890
|
+
const Do = {
|
|
3891
|
+
init: DI,
|
|
3892
|
+
isInitialized: iI,
|
|
3870
3893
|
transpile: sA,
|
|
3871
3894
|
parse: pA,
|
|
3872
|
-
tokenize:
|
|
3895
|
+
tokenize: OA,
|
|
3873
3896
|
generate: xA,
|
|
3874
3897
|
format: jA,
|
|
3875
|
-
getDialects:
|
|
3876
|
-
getVersion:
|
|
3877
|
-
lineage:
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3898
|
+
getDialects: TA,
|
|
3899
|
+
getVersion: dA,
|
|
3900
|
+
lineage: AI,
|
|
3901
|
+
lineageWithSchema: gI,
|
|
3902
|
+
getSourceTables: II,
|
|
3903
|
+
diff: QI,
|
|
3904
|
+
hasChanges: CI,
|
|
3905
|
+
changesOnly: BI,
|
|
3906
|
+
plan: EI,
|
|
3907
|
+
Dialect: SA,
|
|
3908
|
+
Polyglot: r
|
|
3909
|
+
}, io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3886
3910
|
__proto__: null,
|
|
3887
|
-
CaseBuilder:
|
|
3911
|
+
CaseBuilder: UA,
|
|
3888
3912
|
DeleteBuilder: ng,
|
|
3889
|
-
Dialect:
|
|
3913
|
+
Dialect: SA,
|
|
3890
3914
|
Expr: R,
|
|
3891
3915
|
InsertBuilder: vg,
|
|
3892
|
-
MergeBuilder:
|
|
3893
|
-
Polyglot:
|
|
3894
|
-
SelectBuilder:
|
|
3895
|
-
SetOpBuilder:
|
|
3916
|
+
MergeBuilder: $g,
|
|
3917
|
+
Polyglot: r,
|
|
3918
|
+
SelectBuilder: Wg,
|
|
3919
|
+
SetOpBuilder: _,
|
|
3896
3920
|
UpdateBuilder: ug,
|
|
3897
|
-
ValidationSeverity:
|
|
3898
|
-
WindowDefBuilder:
|
|
3921
|
+
ValidationSeverity: Co,
|
|
3922
|
+
WindowDefBuilder: Wi,
|
|
3899
3923
|
abs: Uw,
|
|
3900
|
-
alias:
|
|
3901
|
-
and:
|
|
3902
|
-
ast:
|
|
3903
|
-
avg:
|
|
3924
|
+
alias: gw,
|
|
3925
|
+
and: Qw,
|
|
3926
|
+
ast: fi,
|
|
3927
|
+
avg: iw,
|
|
3904
3928
|
boolean: qA,
|
|
3905
|
-
caseOf:
|
|
3906
|
-
caseWhen:
|
|
3907
|
-
cast:
|
|
3908
|
-
ceil:
|
|
3909
|
-
changesOnly:
|
|
3910
|
-
coalesce:
|
|
3911
|
-
col:
|
|
3912
|
-
concatWs:
|
|
3913
|
-
condition:
|
|
3914
|
-
count:
|
|
3915
|
-
countDistinct:
|
|
3916
|
-
currentDate:
|
|
3917
|
-
currentTime:
|
|
3918
|
-
currentTimestamp:
|
|
3919
|
-
default:
|
|
3920
|
-
del:
|
|
3921
|
-
deleteFrom:
|
|
3922
|
-
denseRank:
|
|
3923
|
-
diff:
|
|
3924
|
-
except:
|
|
3925
|
-
exp:
|
|
3926
|
-
extract:
|
|
3929
|
+
caseOf: Xw,
|
|
3930
|
+
caseWhen: vw,
|
|
3931
|
+
cast: Aw,
|
|
3932
|
+
ceil: Lw,
|
|
3933
|
+
changesOnly: BI,
|
|
3934
|
+
coalesce: hw,
|
|
3935
|
+
col: vi,
|
|
3936
|
+
concatWs: cw,
|
|
3937
|
+
condition: _i,
|
|
3938
|
+
count: Bw,
|
|
3939
|
+
countDistinct: Ew,
|
|
3940
|
+
currentDate: dw,
|
|
3941
|
+
currentTime: lw,
|
|
3942
|
+
currentTimestamp: Zw,
|
|
3943
|
+
default: Do,
|
|
3944
|
+
del: fw,
|
|
3945
|
+
deleteFrom: _g,
|
|
3946
|
+
denseRank: Pw,
|
|
3947
|
+
diff: QI,
|
|
3948
|
+
except: $w,
|
|
3949
|
+
exp: xw,
|
|
3950
|
+
extract: zw,
|
|
3927
3951
|
findAll: JA,
|
|
3928
|
-
floor:
|
|
3952
|
+
floor: Fw,
|
|
3929
3953
|
format: jA,
|
|
3930
|
-
formatWithOptions:
|
|
3931
|
-
func:
|
|
3954
|
+
formatWithOptions: tA,
|
|
3955
|
+
func: U,
|
|
3932
3956
|
generate: xA,
|
|
3933
3957
|
getColumns: Vg,
|
|
3934
|
-
getDialects:
|
|
3935
|
-
getSourceTables:
|
|
3936
|
-
getVersion:
|
|
3937
|
-
greatest:
|
|
3938
|
-
hasChanges:
|
|
3939
|
-
ifNull:
|
|
3940
|
-
init:
|
|
3941
|
-
initcap:
|
|
3942
|
-
insert:
|
|
3943
|
-
insertInto:
|
|
3944
|
-
intersect:
|
|
3945
|
-
isColumn:
|
|
3946
|
-
isFunction:
|
|
3947
|
-
isInitialized:
|
|
3948
|
-
isLiteral:
|
|
3949
|
-
isSelect:
|
|
3958
|
+
getDialects: TA,
|
|
3959
|
+
getSourceTables: II,
|
|
3960
|
+
getVersion: dA,
|
|
3961
|
+
greatest: tw,
|
|
3962
|
+
hasChanges: CI,
|
|
3963
|
+
ifNull: qw,
|
|
3964
|
+
init: DI,
|
|
3965
|
+
initcap: Yw,
|
|
3966
|
+
insert: rw,
|
|
3967
|
+
insertInto: Xg,
|
|
3968
|
+
intersect: _w,
|
|
3969
|
+
isColumn: Og,
|
|
3970
|
+
isFunction: jg,
|
|
3971
|
+
isInitialized: iI,
|
|
3972
|
+
isLiteral: xg,
|
|
3973
|
+
isSelect: pg,
|
|
3950
3974
|
least: Tw,
|
|
3951
|
-
length:
|
|
3952
|
-
lineage:
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3975
|
+
length: kw,
|
|
3976
|
+
lineage: AI,
|
|
3977
|
+
lineageWithSchema: gI,
|
|
3978
|
+
lit: Xi,
|
|
3979
|
+
ln: Ow,
|
|
3980
|
+
lower: Nw,
|
|
3981
|
+
ltrim: Kw,
|
|
3982
|
+
max: ow,
|
|
3983
|
+
mergeInto: Ww,
|
|
3984
|
+
min: ww,
|
|
3985
|
+
not: $i,
|
|
3986
|
+
nullIf: Hw,
|
|
3987
|
+
or: Cw,
|
|
3963
3988
|
parse: pA,
|
|
3964
|
-
plan:
|
|
3965
|
-
power:
|
|
3966
|
-
rank:
|
|
3967
|
-
renameColumns:
|
|
3968
|
-
replace:
|
|
3969
|
-
reverse:
|
|
3970
|
-
round:
|
|
3971
|
-
rowNumber:
|
|
3972
|
-
rtrim:
|
|
3973
|
-
select:
|
|
3974
|
-
sign:
|
|
3975
|
-
sqlExpr:
|
|
3976
|
-
sqlNull:
|
|
3977
|
-
sqrt:
|
|
3978
|
-
star:
|
|
3979
|
-
subquery:
|
|
3980
|
-
substring:
|
|
3981
|
-
sum:
|
|
3982
|
-
table:
|
|
3983
|
-
tokenize:
|
|
3984
|
-
transform:
|
|
3989
|
+
plan: EI,
|
|
3990
|
+
power: sw,
|
|
3991
|
+
rank: Vw,
|
|
3992
|
+
renameColumns: dg,
|
|
3993
|
+
replace: Rw,
|
|
3994
|
+
reverse: Jw,
|
|
3995
|
+
round: Sw,
|
|
3996
|
+
rowNumber: mw,
|
|
3997
|
+
rtrim: aw,
|
|
3998
|
+
select: ew,
|
|
3999
|
+
sign: jw,
|
|
4000
|
+
sqlExpr: fg,
|
|
4001
|
+
sqlNull: ui,
|
|
4002
|
+
sqrt: pw,
|
|
4003
|
+
star: bg,
|
|
4004
|
+
subquery: Iw,
|
|
4005
|
+
substring: yw,
|
|
4006
|
+
sum: Dw,
|
|
4007
|
+
table: ni,
|
|
4008
|
+
tokenize: OA,
|
|
4009
|
+
transform: aA,
|
|
3985
4010
|
transpile: sA,
|
|
3986
|
-
trim:
|
|
3987
|
-
union:
|
|
3988
|
-
unionAll:
|
|
3989
|
-
update:
|
|
3990
|
-
upper:
|
|
3991
|
-
validate:
|
|
3992
|
-
validateWithSchema:
|
|
3993
|
-
walk:
|
|
4011
|
+
trim: Mw,
|
|
4012
|
+
union: uw,
|
|
4013
|
+
unionAll: nw,
|
|
4014
|
+
update: bw,
|
|
4015
|
+
upper: Gw,
|
|
4016
|
+
validate: Bo,
|
|
4017
|
+
validateWithSchema: Qo,
|
|
4018
|
+
walk: d
|
|
3994
4019
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3995
4020
|
export {
|
|
3996
|
-
|
|
4021
|
+
UA as CaseBuilder,
|
|
3997
4022
|
ng as DeleteBuilder,
|
|
3998
|
-
|
|
4023
|
+
SA as Dialect,
|
|
3999
4024
|
R as Expr,
|
|
4000
4025
|
vg as InsertBuilder,
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4026
|
+
$g as MergeBuilder,
|
|
4027
|
+
r as Polyglot,
|
|
4028
|
+
Wg as SelectBuilder,
|
|
4029
|
+
_ as SetOpBuilder,
|
|
4005
4030
|
ug as UpdateBuilder,
|
|
4006
|
-
|
|
4031
|
+
Co as ValidationSeverity,
|
|
4007
4032
|
Uw as abs,
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4033
|
+
gw as alias,
|
|
4034
|
+
Qw as and,
|
|
4035
|
+
fi as ast,
|
|
4036
|
+
iw as avg,
|
|
4012
4037
|
qA as boolean,
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4038
|
+
Xw as caseOf,
|
|
4039
|
+
vw as caseWhen,
|
|
4040
|
+
Aw as cast,
|
|
4041
|
+
Lw as ceil,
|
|
4042
|
+
hw as coalesce,
|
|
4043
|
+
vi as col,
|
|
4044
|
+
cw as concatWs,
|
|
4045
|
+
_i as condition,
|
|
4046
|
+
Bw as count,
|
|
4047
|
+
Ew as countDistinct,
|
|
4048
|
+
dw as currentDate,
|
|
4049
|
+
lw as currentTime,
|
|
4050
|
+
Zw as currentTimestamp,
|
|
4051
|
+
io as default,
|
|
4052
|
+
fw as del,
|
|
4053
|
+
_g as deleteFrom,
|
|
4054
|
+
Pw as denseRank,
|
|
4055
|
+
$w as except,
|
|
4056
|
+
xw as exp,
|
|
4057
|
+
zw as extract,
|
|
4033
4058
|
JA as findAll,
|
|
4034
|
-
|
|
4059
|
+
Fw as floor,
|
|
4035
4060
|
jA as format,
|
|
4036
|
-
|
|
4037
|
-
|
|
4061
|
+
tA as formatWithOptions,
|
|
4062
|
+
U as func,
|
|
4038
4063
|
xA as generate,
|
|
4039
4064
|
Vg as getColumns,
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4065
|
+
TA as getDialects,
|
|
4066
|
+
dA as getVersion,
|
|
4067
|
+
tw as greatest,
|
|
4068
|
+
qw as ifNull,
|
|
4069
|
+
DI as init,
|
|
4070
|
+
Yw as initcap,
|
|
4071
|
+
rw as insert,
|
|
4072
|
+
Xg as insertInto,
|
|
4073
|
+
_w as intersect,
|
|
4074
|
+
Og as isColumn,
|
|
4075
|
+
jg as isFunction,
|
|
4076
|
+
iI as isInitialized,
|
|
4077
|
+
xg as isLiteral,
|
|
4078
|
+
pg as isSelect,
|
|
4054
4079
|
Tw as least,
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4080
|
+
kw as length,
|
|
4081
|
+
Xi as lit,
|
|
4082
|
+
Ow as ln,
|
|
4083
|
+
Nw as lower,
|
|
4084
|
+
Kw as ltrim,
|
|
4085
|
+
ow as max,
|
|
4086
|
+
Ww as mergeInto,
|
|
4087
|
+
ww as min,
|
|
4088
|
+
$i as not,
|
|
4089
|
+
Hw as nullIf,
|
|
4090
|
+
Cw as or,
|
|
4066
4091
|
pA as parse,
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4092
|
+
sw as power,
|
|
4093
|
+
Vw as rank,
|
|
4094
|
+
dg as renameColumns,
|
|
4095
|
+
Rw as replace,
|
|
4096
|
+
Jw as reverse,
|
|
4097
|
+
Sw as round,
|
|
4098
|
+
mw as rowNumber,
|
|
4099
|
+
aw as rtrim,
|
|
4100
|
+
ew as select,
|
|
4101
|
+
jw as sign,
|
|
4102
|
+
fg as sqlExpr,
|
|
4103
|
+
ui as sqlNull,
|
|
4104
|
+
pw as sqrt,
|
|
4105
|
+
bg as star,
|
|
4106
|
+
yw as substring,
|
|
4107
|
+
Dw as sum,
|
|
4108
|
+
ni as table,
|
|
4109
|
+
aA as transform,
|
|
4085
4110
|
sA as transpile,
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4111
|
+
Mw as trim,
|
|
4112
|
+
uw as union,
|
|
4113
|
+
nw as unionAll,
|
|
4114
|
+
bw as update,
|
|
4115
|
+
Gw as upper,
|
|
4116
|
+
Bo as validate,
|
|
4117
|
+
Qo as validateWithSchema,
|
|
4118
|
+
d as walk
|
|
4094
4119
|
};
|