@polyglot-sql/sdk 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/polyglot.esm.js +1097 -1097
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -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 NI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, kI = async (g = {}, A) => {
|
|
3
3
|
let B;
|
|
4
4
|
if (A.startsWith("data:")) {
|
|
5
5
|
const Q = A.replace(/^data:.*?base64,/, "");
|
|
@@ -28,7 +28,7 @@ const kI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, NI = as
|
|
|
28
28
|
class BA {
|
|
29
29
|
__destroy_into_raw() {
|
|
30
30
|
const A = this.__wbg_ptr;
|
|
31
|
-
return this.__wbg_ptr = 0,
|
|
31
|
+
return this.__wbg_ptr = 0, WA.unregister(this), A;
|
|
32
32
|
}
|
|
33
33
|
free() {
|
|
34
34
|
const A = this.__destroy_into_raw();
|
|
@@ -46,7 +46,7 @@ class BA {
|
|
|
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, WA.register(this, this.__wbg_ptr, this), this;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Add a column = value assignment.
|
|
@@ -54,20 +54,20 @@ class BA {
|
|
|
54
54
|
* @param {WasmExpr} value
|
|
55
55
|
*/
|
|
56
56
|
push(A, B) {
|
|
57
|
-
const Q =
|
|
58
|
-
|
|
57
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
58
|
+
J(B, K), I.wasmassignmentarray_push(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
|
|
62
|
-
class
|
|
62
|
+
class n {
|
|
63
63
|
static __wrap(A) {
|
|
64
64
|
A = A >>> 0;
|
|
65
|
-
const B = Object.create(
|
|
66
|
-
return B.__wbg_ptr = A,
|
|
65
|
+
const B = Object.create(n.prototype);
|
|
66
|
+
return B.__wbg_ptr = A, UA.register(B, B.__wbg_ptr, B), B;
|
|
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, UA.unregister(this), A;
|
|
71
71
|
}
|
|
72
72
|
free() {
|
|
73
73
|
const A = this.__destroy_into_raw();
|
|
@@ -83,7 +83,7 @@ class l {
|
|
|
83
83
|
I.wasmcasebuilder_build_expr(C, this.__wbg_ptr);
|
|
84
84
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
85
85
|
if (Q)
|
|
86
|
-
throw
|
|
86
|
+
throw H(B);
|
|
87
87
|
return K.__wrap(A);
|
|
88
88
|
} finally {
|
|
89
89
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -94,14 +94,14 @@ class l {
|
|
|
94
94
|
* @param {WasmExpr} result
|
|
95
95
|
*/
|
|
96
96
|
else_(A) {
|
|
97
|
-
|
|
97
|
+
J(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, UA.register(this, this.__wbg_ptr, this), this;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Generate SQL string (generic dialect).
|
|
@@ -112,10 +112,10 @@ class l {
|
|
|
112
112
|
try {
|
|
113
113
|
const M = I.__wbindgen_add_to_stack_pointer(-16);
|
|
114
114
|
I.wasmcasebuilder_to_sql(M, this.__wbg_ptr);
|
|
115
|
-
var Q = w().getInt32(M + 0, !0), C = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = Q,
|
|
115
|
+
var Q = w().getInt32(M + 0, !0), C = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = Q, k = C;
|
|
116
116
|
if (D)
|
|
117
|
-
throw o = 0,
|
|
118
|
-
return A = o, B =
|
|
117
|
+
throw o = 0, k = 0, H(E);
|
|
118
|
+
return A = o, B = k, c(o, k);
|
|
119
119
|
} finally {
|
|
120
120
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
121
121
|
}
|
|
@@ -126,14 +126,14 @@ class l {
|
|
|
126
126
|
* @param {WasmExpr} result
|
|
127
127
|
*/
|
|
128
128
|
when(A, B) {
|
|
129
|
-
|
|
129
|
+
J(A, K), J(B, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, B.__wbg_ptr);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
Symbol.dispose && (
|
|
132
|
+
Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
|
|
133
133
|
class wA {
|
|
134
134
|
__destroy_into_raw() {
|
|
135
135
|
const A = this.__wbg_ptr;
|
|
136
|
-
return this.__wbg_ptr = 0,
|
|
136
|
+
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
137
137
|
}
|
|
138
138
|
free() {
|
|
139
139
|
const A = this.__destroy_into_raw();
|
|
@@ -149,8 +149,8 @@ class wA {
|
|
|
149
149
|
I.wasmdeletebuilder_build(C, this.__wbg_ptr);
|
|
150
150
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
151
151
|
if (Q)
|
|
152
|
-
throw
|
|
153
|
-
return
|
|
152
|
+
throw H(B);
|
|
153
|
+
return H(A);
|
|
154
154
|
} finally {
|
|
155
155
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
156
156
|
}
|
|
@@ -160,8 +160,8 @@ class wA {
|
|
|
160
160
|
* @param {string} table_name
|
|
161
161
|
*/
|
|
162
162
|
constructor(A) {
|
|
163
|
-
const B =
|
|
164
|
-
return this.__wbg_ptr = C >>> 0,
|
|
163
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmdeletebuilder_new(B, Q);
|
|
164
|
+
return this.__wbg_ptr = C >>> 0, lA.register(this, this.__wbg_ptr, this), this;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Generate SQL string for the given dialect.
|
|
@@ -171,12 +171,12 @@ class wA {
|
|
|
171
171
|
to_sql(A) {
|
|
172
172
|
let B, Q;
|
|
173
173
|
try {
|
|
174
|
-
const
|
|
175
|
-
I.wasmdeletebuilder_to_sql(
|
|
176
|
-
var C = w().getInt32(
|
|
174
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
175
|
+
I.wasmdeletebuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
176
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
177
177
|
if (o)
|
|
178
|
-
throw
|
|
179
|
-
return B =
|
|
178
|
+
throw k = 0, M = 0, H(D);
|
|
179
|
+
return B = k, Q = M, c(k, M);
|
|
180
180
|
} finally {
|
|
181
181
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
182
182
|
}
|
|
@@ -186,7 +186,7 @@ class wA {
|
|
|
186
186
|
* @param {WasmExpr} condition
|
|
187
187
|
*/
|
|
188
188
|
where_expr(A) {
|
|
189
|
-
|
|
189
|
+
J(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
Symbol.dispose && (wA.prototype[Symbol.dispose] = wA.prototype.free);
|
|
@@ -194,11 +194,11 @@ class K {
|
|
|
194
194
|
static __wrap(A) {
|
|
195
195
|
A = A >>> 0;
|
|
196
196
|
const B = Object.create(K.prototype);
|
|
197
|
-
return B.__wbg_ptr = A,
|
|
197
|
+
return B.__wbg_ptr = A, tA.register(B, B.__wbg_ptr, B), B;
|
|
198
198
|
}
|
|
199
199
|
__destroy_into_raw() {
|
|
200
200
|
const A = this.__wbg_ptr;
|
|
201
|
-
return this.__wbg_ptr = 0,
|
|
201
|
+
return this.__wbg_ptr = 0, tA.unregister(this), A;
|
|
202
202
|
}
|
|
203
203
|
free() {
|
|
204
204
|
const A = this.__destroy_into_raw();
|
|
@@ -210,7 +210,7 @@ class K {
|
|
|
210
210
|
* @returns {WasmExpr}
|
|
211
211
|
*/
|
|
212
212
|
add(A) {
|
|
213
|
-
|
|
213
|
+
J(A, K);
|
|
214
214
|
const B = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
|
|
215
215
|
return K.__wrap(B);
|
|
216
216
|
}
|
|
@@ -220,7 +220,7 @@ class K {
|
|
|
220
220
|
* @returns {WasmExpr}
|
|
221
221
|
*/
|
|
222
222
|
alias(A) {
|
|
223
|
-
const B =
|
|
223
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmexpr_alias(this.__wbg_ptr, B, Q);
|
|
224
224
|
return K.__wrap(C);
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
@@ -229,7 +229,7 @@ class K {
|
|
|
229
229
|
* @returns {WasmExpr}
|
|
230
230
|
*/
|
|
231
231
|
and(A) {
|
|
232
|
-
|
|
232
|
+
J(A, K);
|
|
233
233
|
const B = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
|
|
234
234
|
return K.__wrap(B);
|
|
235
235
|
}
|
|
@@ -248,7 +248,7 @@ class K {
|
|
|
248
248
|
* @returns {WasmExpr}
|
|
249
249
|
*/
|
|
250
250
|
between(A, B) {
|
|
251
|
-
|
|
251
|
+
J(A, K), J(B, K);
|
|
252
252
|
const Q = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, B.__wbg_ptr);
|
|
253
253
|
return K.__wrap(Q);
|
|
254
254
|
}
|
|
@@ -258,7 +258,7 @@ class K {
|
|
|
258
258
|
* @returns {WasmExpr}
|
|
259
259
|
*/
|
|
260
260
|
cast(A) {
|
|
261
|
-
const B =
|
|
261
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmexpr_cast(this.__wbg_ptr, B, Q);
|
|
262
262
|
return K.__wrap(C);
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
@@ -275,7 +275,7 @@ class K {
|
|
|
275
275
|
* @returns {WasmExpr}
|
|
276
276
|
*/
|
|
277
277
|
div(A) {
|
|
278
|
-
|
|
278
|
+
J(A, K);
|
|
279
279
|
const B = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
|
|
280
280
|
return K.__wrap(B);
|
|
281
281
|
}
|
|
@@ -285,7 +285,7 @@ class K {
|
|
|
285
285
|
* @returns {WasmExpr}
|
|
286
286
|
*/
|
|
287
287
|
eq(A) {
|
|
288
|
-
|
|
288
|
+
J(A, K);
|
|
289
289
|
const B = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
|
|
290
290
|
return K.__wrap(B);
|
|
291
291
|
}
|
|
@@ -295,7 +295,7 @@ class K {
|
|
|
295
295
|
* @returns {WasmExpr}
|
|
296
296
|
*/
|
|
297
297
|
gt(A) {
|
|
298
|
-
|
|
298
|
+
J(A, K);
|
|
299
299
|
const B = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
|
|
300
300
|
return K.__wrap(B);
|
|
301
301
|
}
|
|
@@ -305,7 +305,7 @@ class K {
|
|
|
305
305
|
* @returns {WasmExpr}
|
|
306
306
|
*/
|
|
307
307
|
gte(A) {
|
|
308
|
-
|
|
308
|
+
J(A, K);
|
|
309
309
|
const B = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
|
|
310
310
|
return K.__wrap(B);
|
|
311
311
|
}
|
|
@@ -315,7 +315,7 @@ class K {
|
|
|
315
315
|
* @returns {WasmExpr}
|
|
316
316
|
*/
|
|
317
317
|
ilike(A) {
|
|
318
|
-
|
|
318
|
+
J(A, K);
|
|
319
319
|
const B = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
|
|
320
320
|
return K.__wrap(B);
|
|
321
321
|
}
|
|
@@ -325,7 +325,7 @@ class K {
|
|
|
325
325
|
* @returns {WasmExpr}
|
|
326
326
|
*/
|
|
327
327
|
in_list(A) {
|
|
328
|
-
|
|
328
|
+
J(A, x);
|
|
329
329
|
const B = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
|
|
330
330
|
return K.__wrap(B);
|
|
331
331
|
}
|
|
@@ -351,7 +351,7 @@ class K {
|
|
|
351
351
|
* @returns {WasmExpr}
|
|
352
352
|
*/
|
|
353
353
|
like(A) {
|
|
354
|
-
|
|
354
|
+
J(A, K);
|
|
355
355
|
const B = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
|
|
356
356
|
return K.__wrap(B);
|
|
357
357
|
}
|
|
@@ -361,7 +361,7 @@ class K {
|
|
|
361
361
|
* @returns {WasmExpr}
|
|
362
362
|
*/
|
|
363
363
|
lt(A) {
|
|
364
|
-
|
|
364
|
+
J(A, K);
|
|
365
365
|
const B = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
|
|
366
366
|
return K.__wrap(B);
|
|
367
367
|
}
|
|
@@ -371,7 +371,7 @@ class K {
|
|
|
371
371
|
* @returns {WasmExpr}
|
|
372
372
|
*/
|
|
373
373
|
lte(A) {
|
|
374
|
-
|
|
374
|
+
J(A, K);
|
|
375
375
|
const B = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
|
|
376
376
|
return K.__wrap(B);
|
|
377
377
|
}
|
|
@@ -381,7 +381,7 @@ class K {
|
|
|
381
381
|
* @returns {WasmExpr}
|
|
382
382
|
*/
|
|
383
383
|
mul(A) {
|
|
384
|
-
|
|
384
|
+
J(A, K);
|
|
385
385
|
const B = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
|
|
386
386
|
return K.__wrap(B);
|
|
387
387
|
}
|
|
@@ -391,7 +391,7 @@ class K {
|
|
|
391
391
|
* @returns {WasmExpr}
|
|
392
392
|
*/
|
|
393
393
|
neq(A) {
|
|
394
|
-
|
|
394
|
+
J(A, K);
|
|
395
395
|
const B = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
|
|
396
396
|
return K.__wrap(B);
|
|
397
397
|
}
|
|
@@ -409,7 +409,7 @@ class K {
|
|
|
409
409
|
* @returns {WasmExpr}
|
|
410
410
|
*/
|
|
411
411
|
not_in(A) {
|
|
412
|
-
|
|
412
|
+
J(A, x);
|
|
413
413
|
const B = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
|
|
414
414
|
return K.__wrap(B);
|
|
415
415
|
}
|
|
@@ -419,7 +419,7 @@ class K {
|
|
|
419
419
|
* @returns {WasmExpr}
|
|
420
420
|
*/
|
|
421
421
|
or(A) {
|
|
422
|
-
|
|
422
|
+
J(A, K);
|
|
423
423
|
const B = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
|
|
424
424
|
return K.__wrap(B);
|
|
425
425
|
}
|
|
@@ -429,7 +429,7 @@ class K {
|
|
|
429
429
|
* @returns {WasmExpr}
|
|
430
430
|
*/
|
|
431
431
|
rlike(A) {
|
|
432
|
-
|
|
432
|
+
J(A, K);
|
|
433
433
|
const B = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
|
|
434
434
|
return K.__wrap(B);
|
|
435
435
|
}
|
|
@@ -439,7 +439,7 @@ class K {
|
|
|
439
439
|
* @returns {WasmExpr}
|
|
440
440
|
*/
|
|
441
441
|
sub(A) {
|
|
442
|
-
|
|
442
|
+
J(A, K);
|
|
443
443
|
const B = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
|
|
444
444
|
return K.__wrap(B);
|
|
445
445
|
}
|
|
@@ -453,8 +453,8 @@ class K {
|
|
|
453
453
|
I.wasmexpr_to_json(C, this.__wbg_ptr);
|
|
454
454
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
455
455
|
if (Q)
|
|
456
|
-
throw
|
|
457
|
-
return
|
|
456
|
+
throw H(B);
|
|
457
|
+
return H(A);
|
|
458
458
|
} finally {
|
|
459
459
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
460
460
|
}
|
|
@@ -468,10 +468,10 @@ class K {
|
|
|
468
468
|
try {
|
|
469
469
|
const M = I.__wbindgen_add_to_stack_pointer(-16);
|
|
470
470
|
I.wasmexpr_to_sql(M, this.__wbg_ptr);
|
|
471
|
-
var Q = w().getInt32(M + 0, !0), C = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = Q,
|
|
471
|
+
var Q = w().getInt32(M + 0, !0), C = w().getInt32(M + 4, !0), E = w().getInt32(M + 8, !0), D = w().getInt32(M + 12, !0), o = Q, k = C;
|
|
472
472
|
if (D)
|
|
473
|
-
throw o = 0,
|
|
474
|
-
return A = o, B =
|
|
473
|
+
throw o = 0, k = 0, H(E);
|
|
474
|
+
return A = o, B = k, c(o, k);
|
|
475
475
|
} finally {
|
|
476
476
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
477
477
|
}
|
|
@@ -482,13 +482,13 @@ class K {
|
|
|
482
482
|
* @returns {WasmExpr}
|
|
483
483
|
*/
|
|
484
484
|
xor(A) {
|
|
485
|
-
|
|
485
|
+
J(A, K);
|
|
486
486
|
const B = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
|
|
487
487
|
return K.__wrap(B);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
|
|
491
|
-
class
|
|
491
|
+
class x {
|
|
492
492
|
__destroy_into_raw() {
|
|
493
493
|
const A = this.__wbg_ptr;
|
|
494
494
|
return this.__wbg_ptr = 0, PA.unregister(this), A;
|
|
@@ -516,14 +516,14 @@ class O {
|
|
|
516
516
|
* @param {WasmExpr} expr
|
|
517
517
|
*/
|
|
518
518
|
push(A) {
|
|
519
|
-
|
|
519
|
+
J(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
|
|
520
520
|
}
|
|
521
521
|
/**
|
|
522
522
|
* Push a column reference by name.
|
|
523
523
|
* @param {string} name
|
|
524
524
|
*/
|
|
525
525
|
push_col(A) {
|
|
526
|
-
const B =
|
|
526
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
527
527
|
I.wasmexprarray_push_col(this.__wbg_ptr, B, Q);
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
@@ -551,15 +551,15 @@ class O {
|
|
|
551
551
|
* @param {string} value
|
|
552
552
|
*/
|
|
553
553
|
push_str(A) {
|
|
554
|
-
const B =
|
|
554
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
555
555
|
I.wasmexprarray_push_str(this.__wbg_ptr, B, Q);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
Symbol.dispose && (
|
|
558
|
+
Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
|
|
559
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, eA.unregister(this), A;
|
|
563
563
|
}
|
|
564
564
|
free() {
|
|
565
565
|
const A = this.__destroy_into_raw();
|
|
@@ -575,8 +575,8 @@ class oA {
|
|
|
575
575
|
I.wasminsertbuilder_build(C, this.__wbg_ptr);
|
|
576
576
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
577
577
|
if (Q)
|
|
578
|
-
throw
|
|
579
|
-
return
|
|
578
|
+
throw H(B);
|
|
579
|
+
return H(A);
|
|
580
580
|
} finally {
|
|
581
581
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
582
582
|
}
|
|
@@ -586,7 +586,7 @@ class oA {
|
|
|
586
586
|
* @param {string[]} cols
|
|
587
587
|
*/
|
|
588
588
|
columns(A) {
|
|
589
|
-
const B =
|
|
589
|
+
const B = cA(A, I.__wbindgen_export), Q = G;
|
|
590
590
|
I.wasminsertbuilder_columns(this.__wbg_ptr, B, Q);
|
|
591
591
|
}
|
|
592
592
|
/**
|
|
@@ -594,8 +594,8 @@ class oA {
|
|
|
594
594
|
* @param {string} table_name
|
|
595
595
|
*/
|
|
596
596
|
constructor(A) {
|
|
597
|
-
const B =
|
|
598
|
-
return this.__wbg_ptr = C >>> 0,
|
|
597
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasminsertbuilder_new(B, Q);
|
|
598
|
+
return this.__wbg_ptr = C >>> 0, eA.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 oA {
|
|
|
604
604
|
query(A) {
|
|
605
605
|
try {
|
|
606
606
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
607
|
-
|
|
607
|
+
J(A, T), I.wasminsertbuilder_query(C, this.__wbg_ptr, A.__wbg_ptr);
|
|
608
608
|
var B = w().getInt32(C + 0, !0), Q = w().getInt32(C + 4, !0);
|
|
609
609
|
if (Q)
|
|
610
|
-
throw
|
|
610
|
+
throw H(B);
|
|
611
611
|
} finally {
|
|
612
612
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
613
613
|
}
|
|
@@ -620,12 +620,12 @@ class oA {
|
|
|
620
620
|
to_sql(A) {
|
|
621
621
|
let B, Q;
|
|
622
622
|
try {
|
|
623
|
-
const
|
|
624
|
-
I.wasminsertbuilder_to_sql(
|
|
625
|
-
var C = w().getInt32(
|
|
623
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
624
|
+
I.wasminsertbuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
625
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
626
626
|
if (o)
|
|
627
|
-
throw
|
|
628
|
-
return B =
|
|
627
|
+
throw k = 0, M = 0, H(D);
|
|
628
|
+
return B = k, Q = M, c(k, M);
|
|
629
629
|
} finally {
|
|
630
630
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
631
631
|
}
|
|
@@ -635,7 +635,7 @@ class oA {
|
|
|
635
635
|
* @param {WasmExprArray} vals
|
|
636
636
|
*/
|
|
637
637
|
values(A) {
|
|
638
|
-
|
|
638
|
+
J(A, x), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
|
|
@@ -658,8 +658,8 @@ class GA {
|
|
|
658
658
|
I.wasmmergebuilder_build(C, this.__wbg_ptr);
|
|
659
659
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
660
660
|
if (Q)
|
|
661
|
-
throw
|
|
662
|
-
return
|
|
661
|
+
throw H(B);
|
|
662
|
+
return H(A);
|
|
663
663
|
} finally {
|
|
664
664
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
665
665
|
}
|
|
@@ -669,7 +669,7 @@ class GA {
|
|
|
669
669
|
* @param {string} target
|
|
670
670
|
*/
|
|
671
671
|
constructor(A) {
|
|
672
|
-
const B =
|
|
672
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmmergebuilder_new(B, Q);
|
|
673
673
|
return this.__wbg_ptr = C >>> 0, zA.register(this, this.__wbg_ptr, this), this;
|
|
674
674
|
}
|
|
675
675
|
/**
|
|
@@ -680,12 +680,12 @@ class GA {
|
|
|
680
680
|
to_sql(A) {
|
|
681
681
|
let B, Q;
|
|
682
682
|
try {
|
|
683
|
-
const
|
|
684
|
-
I.wasmmergebuilder_to_sql(
|
|
685
|
-
var C = w().getInt32(
|
|
683
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
684
|
+
I.wasmmergebuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
685
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
686
686
|
if (o)
|
|
687
|
-
throw
|
|
688
|
-
return B =
|
|
687
|
+
throw k = 0, M = 0, H(D);
|
|
688
|
+
return B = k, Q = M, c(k, M);
|
|
689
689
|
} finally {
|
|
690
690
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
691
691
|
}
|
|
@@ -696,8 +696,8 @@ class GA {
|
|
|
696
696
|
* @param {WasmExpr} on
|
|
697
697
|
*/
|
|
698
698
|
using(A, B) {
|
|
699
|
-
const Q =
|
|
700
|
-
|
|
699
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
700
|
+
J(B, K), I.wasmmergebuilder_using(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
701
701
|
}
|
|
702
702
|
/**
|
|
703
703
|
* Add a WHEN MATCHED THEN DELETE clause.
|
|
@@ -710,7 +710,7 @@ class GA {
|
|
|
710
710
|
* @param {WasmAssignmentArray} assignments
|
|
711
711
|
*/
|
|
712
712
|
when_matched_update(A) {
|
|
713
|
-
|
|
713
|
+
J(A, BA), 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,15 +718,15 @@ class GA {
|
|
|
718
718
|
* @param {WasmExprArray} values
|
|
719
719
|
*/
|
|
720
720
|
when_not_matched_insert(A, B) {
|
|
721
|
-
const Q =
|
|
722
|
-
|
|
721
|
+
const Q = cA(A, I.__wbindgen_export), C = G;
|
|
722
|
+
J(B, x), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
Symbol.dispose && (GA.prototype[Symbol.dispose] = GA.prototype.free);
|
|
726
726
|
class T {
|
|
727
727
|
__destroy_into_raw() {
|
|
728
728
|
const A = this.__wbg_ptr;
|
|
729
|
-
return this.__wbg_ptr = 0,
|
|
729
|
+
return this.__wbg_ptr = 0, mA.unregister(this), A;
|
|
730
730
|
}
|
|
731
731
|
free() {
|
|
732
732
|
const A = this.__destroy_into_raw();
|
|
@@ -742,8 +742,8 @@ class T {
|
|
|
742
742
|
I.wasmselectbuilder_build(C, this.__wbg_ptr);
|
|
743
743
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
744
744
|
if (Q)
|
|
745
|
-
throw
|
|
746
|
-
return
|
|
745
|
+
throw H(B);
|
|
746
|
+
return H(A);
|
|
747
747
|
} finally {
|
|
748
748
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
749
749
|
}
|
|
@@ -753,7 +753,7 @@ class T {
|
|
|
753
753
|
* @param {string} table
|
|
754
754
|
*/
|
|
755
755
|
cross_join(A) {
|
|
756
|
-
const B =
|
|
756
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
757
757
|
I.wasmselectbuilder_cross_join(this.__wbg_ptr, B, Q);
|
|
758
758
|
}
|
|
759
759
|
/**
|
|
@@ -763,12 +763,12 @@ class T {
|
|
|
763
763
|
*/
|
|
764
764
|
ctas(A) {
|
|
765
765
|
try {
|
|
766
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
766
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
767
767
|
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, o);
|
|
768
768
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
769
769
|
if (C)
|
|
770
|
-
throw
|
|
771
|
-
return
|
|
770
|
+
throw H(Q);
|
|
771
|
+
return H(B);
|
|
772
772
|
} finally {
|
|
773
773
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
774
774
|
}
|
|
@@ -782,12 +782,12 @@ class T {
|
|
|
782
782
|
ctas_sql(A, B) {
|
|
783
783
|
let Q, C;
|
|
784
784
|
try {
|
|
785
|
-
const
|
|
786
|
-
I.wasmselectbuilder_ctas_sql(
|
|
787
|
-
var E = w().getInt32(
|
|
788
|
-
if (
|
|
789
|
-
throw M = 0,
|
|
790
|
-
return Q = M, C =
|
|
785
|
+
const U = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), s = G, Z = N(B, I.__wbindgen_export, I.__wbindgen_export2), m = G;
|
|
786
|
+
I.wasmselectbuilder_ctas_sql(U, this.__wbg_ptr, h, s, Z, m);
|
|
787
|
+
var E = w().getInt32(U + 0, !0), D = w().getInt32(U + 4, !0), o = w().getInt32(U + 8, !0), k = w().getInt32(U + 12, !0), M = E, Y = D;
|
|
788
|
+
if (k)
|
|
789
|
+
throw M = 0, Y = 0, H(o);
|
|
790
|
+
return Q = M, C = Y, c(M, Y);
|
|
791
791
|
} finally {
|
|
792
792
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
793
793
|
}
|
|
@@ -806,11 +806,11 @@ class T {
|
|
|
806
806
|
except_(A) {
|
|
807
807
|
try {
|
|
808
808
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
809
|
-
|
|
809
|
+
J(A, T), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
810
810
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
811
811
|
if (C)
|
|
812
|
-
throw
|
|
813
|
-
return
|
|
812
|
+
throw H(Q);
|
|
813
|
+
return l.__wrap(B);
|
|
814
814
|
} finally {
|
|
815
815
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
816
816
|
}
|
|
@@ -826,7 +826,7 @@ class T {
|
|
|
826
826
|
* @param {string} table
|
|
827
827
|
*/
|
|
828
828
|
from(A) {
|
|
829
|
-
const B =
|
|
829
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
830
830
|
I.wasmselectbuilder_from(this.__wbg_ptr, B, Q);
|
|
831
831
|
}
|
|
832
832
|
/**
|
|
@@ -834,28 +834,28 @@ class T {
|
|
|
834
834
|
* @param {WasmExpr} expr
|
|
835
835
|
*/
|
|
836
836
|
from_expr(A) {
|
|
837
|
-
|
|
837
|
+
J(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
|
+
J(A, x), 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
|
+
J(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Add a query hint.
|
|
855
855
|
* @param {string} hint_text
|
|
856
856
|
*/
|
|
857
857
|
hint(A) {
|
|
858
|
-
const B =
|
|
858
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
859
859
|
I.wasmselectbuilder_hint(this.__wbg_ptr, B, Q);
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
@@ -866,11 +866,11 @@ class T {
|
|
|
866
866
|
intersect(A) {
|
|
867
867
|
try {
|
|
868
868
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
869
|
-
|
|
869
|
+
J(A, T), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
870
870
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
871
871
|
if (C)
|
|
872
|
-
throw
|
|
873
|
-
return
|
|
872
|
+
throw H(Q);
|
|
873
|
+
return l.__wrap(B);
|
|
874
874
|
} finally {
|
|
875
875
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
876
876
|
}
|
|
@@ -881,8 +881,8 @@ class T {
|
|
|
881
881
|
* @param {WasmExpr} on
|
|
882
882
|
*/
|
|
883
883
|
join(A, B) {
|
|
884
|
-
const Q =
|
|
885
|
-
|
|
884
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
885
|
+
J(B, K), I.wasmselectbuilder_join(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
886
886
|
}
|
|
887
887
|
/**
|
|
888
888
|
* Add a LATERAL VIEW clause (Hive/Spark).
|
|
@@ -891,8 +891,8 @@ class T {
|
|
|
891
891
|
* @param {string[]} col_aliases
|
|
892
892
|
*/
|
|
893
893
|
lateral_view(A, B, Q) {
|
|
894
|
-
|
|
895
|
-
const C =
|
|
894
|
+
J(A, K);
|
|
895
|
+
const C = N(B, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = cA(Q, I.__wbindgen_export), o = G;
|
|
896
896
|
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, C, E, D, o);
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
@@ -901,8 +901,8 @@ class T {
|
|
|
901
901
|
* @param {WasmExpr} on
|
|
902
902
|
*/
|
|
903
903
|
left_join(A, B) {
|
|
904
|
-
const Q =
|
|
905
|
-
|
|
904
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
905
|
+
J(B, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
908
908
|
* Set the LIMIT clause.
|
|
@@ -916,7 +916,7 @@ class T {
|
|
|
916
916
|
*/
|
|
917
917
|
constructor() {
|
|
918
918
|
const A = I.wasmselectbuilder_new();
|
|
919
|
-
return this.__wbg_ptr = A >>> 0,
|
|
919
|
+
return this.__wbg_ptr = A >>> 0, mA.register(this, this.__wbg_ptr, this), this;
|
|
920
920
|
}
|
|
921
921
|
/**
|
|
922
922
|
* Set the OFFSET clause.
|
|
@@ -930,14 +930,14 @@ class T {
|
|
|
930
930
|
* @param {WasmExprArray} exprs
|
|
931
931
|
*/
|
|
932
932
|
order_by_exprs(A) {
|
|
933
|
-
|
|
933
|
+
J(A, x), 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
|
+
J(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
|
|
941
941
|
}
|
|
942
942
|
/**
|
|
943
943
|
* Add a RIGHT JOIN.
|
|
@@ -945,15 +945,15 @@ class T {
|
|
|
945
945
|
* @param {WasmExpr} on
|
|
946
946
|
*/
|
|
947
947
|
right_join(A, B) {
|
|
948
|
-
const Q =
|
|
949
|
-
|
|
948
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
949
|
+
J(B, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
950
950
|
}
|
|
951
951
|
/**
|
|
952
952
|
* Add a column by name to the SELECT list.
|
|
953
953
|
* @param {string} name
|
|
954
954
|
*/
|
|
955
955
|
select_col(A) {
|
|
956
|
-
const B =
|
|
956
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
957
957
|
I.wasmselectbuilder_select_col(this.__wbg_ptr, B, Q);
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
@@ -961,14 +961,14 @@ class T {
|
|
|
961
961
|
* @param {WasmExpr} expr
|
|
962
962
|
*/
|
|
963
963
|
select_expr(A) {
|
|
964
|
-
|
|
964
|
+
J(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
|
+
J(A, x), 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 T {
|
|
|
981
981
|
* @param {WasmExprArray} exprs
|
|
982
982
|
*/
|
|
983
983
|
sort_by_exprs(A) {
|
|
984
|
-
|
|
984
|
+
J(A, x), 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,12 +991,12 @@ class T {
|
|
|
991
991
|
to_sql(A) {
|
|
992
992
|
let B, Q;
|
|
993
993
|
try {
|
|
994
|
-
const
|
|
995
|
-
I.wasmselectbuilder_to_sql(
|
|
996
|
-
var C = w().getInt32(
|
|
994
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
995
|
+
I.wasmselectbuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
996
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
997
997
|
if (o)
|
|
998
|
-
throw
|
|
999
|
-
return B =
|
|
998
|
+
throw k = 0, M = 0, H(D);
|
|
999
|
+
return B = k, Q = M, c(k, M);
|
|
1000
1000
|
} finally {
|
|
1001
1001
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1002
1002
|
}
|
|
@@ -1009,11 +1009,11 @@ class T {
|
|
|
1009
1009
|
union(A) {
|
|
1010
1010
|
try {
|
|
1011
1011
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1012
|
-
|
|
1012
|
+
J(A, T), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1013
1013
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
1014
1014
|
if (C)
|
|
1015
|
-
throw
|
|
1016
|
-
return
|
|
1015
|
+
throw H(Q);
|
|
1016
|
+
return l.__wrap(B);
|
|
1017
1017
|
} finally {
|
|
1018
1018
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1019
1019
|
}
|
|
@@ -1026,11 +1026,11 @@ class T {
|
|
|
1026
1026
|
union_all(A) {
|
|
1027
1027
|
try {
|
|
1028
1028
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1029
|
-
|
|
1029
|
+
J(A, T), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1030
1030
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
1031
1031
|
if (C)
|
|
1032
|
-
throw
|
|
1033
|
-
return
|
|
1032
|
+
throw H(Q);
|
|
1033
|
+
return l.__wrap(B);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1036
1036
|
}
|
|
@@ -1040,14 +1040,14 @@ class T {
|
|
|
1040
1040
|
* @param {WasmExpr} condition
|
|
1041
1041
|
*/
|
|
1042
1042
|
where_expr(A) {
|
|
1043
|
-
|
|
1043
|
+
J(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.
|
|
1047
1047
|
* @param {string} sql
|
|
1048
1048
|
*/
|
|
1049
1049
|
where_sql(A) {
|
|
1050
|
-
const B =
|
|
1050
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1051
1051
|
I.wasmselectbuilder_where_sql(this.__wbg_ptr, B, Q);
|
|
1052
1052
|
}
|
|
1053
1053
|
/**
|
|
@@ -1057,21 +1057,21 @@ class T {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
window(A, B) {
|
|
1059
1059
|
try {
|
|
1060
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1061
|
-
|
|
1060
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1061
|
+
J(B, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, B.__wbg_ptr);
|
|
1062
1062
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1063
1063
|
if (C)
|
|
1064
|
-
throw
|
|
1064
|
+
throw H(Q);
|
|
1065
1065
|
} finally {
|
|
1066
1066
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
Symbol.dispose && (T.prototype[Symbol.dispose] = T.prototype.free);
|
|
1071
|
-
class
|
|
1071
|
+
class l {
|
|
1072
1072
|
static __wrap(A) {
|
|
1073
1073
|
A = A >>> 0;
|
|
1074
|
-
const B = Object.create(
|
|
1074
|
+
const B = Object.create(l.prototype);
|
|
1075
1075
|
return B.__wbg_ptr = A, fA.register(B, B.__wbg_ptr, B), B;
|
|
1076
1076
|
}
|
|
1077
1077
|
__destroy_into_raw() {
|
|
@@ -1092,8 +1092,8 @@ class d {
|
|
|
1092
1092
|
I.wasmsetopbuilder_build(C, this.__wbg_ptr);
|
|
1093
1093
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
1094
1094
|
if (Q)
|
|
1095
|
-
throw
|
|
1096
|
-
return
|
|
1095
|
+
throw H(B);
|
|
1096
|
+
return H(A);
|
|
1097
1097
|
} finally {
|
|
1098
1098
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1099
1099
|
}
|
|
@@ -1117,7 +1117,7 @@ class d {
|
|
|
1117
1117
|
* @param {WasmExprArray} exprs
|
|
1118
1118
|
*/
|
|
1119
1119
|
order_by_exprs(A) {
|
|
1120
|
-
|
|
1120
|
+
J(A, x), 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,22 +1127,22 @@ class d {
|
|
|
1127
1127
|
to_sql(A) {
|
|
1128
1128
|
let B, Q;
|
|
1129
1129
|
try {
|
|
1130
|
-
const
|
|
1131
|
-
I.wasmsetopbuilder_to_sql(
|
|
1132
|
-
var C = w().getInt32(
|
|
1130
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
1131
|
+
I.wasmsetopbuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
1132
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
1133
1133
|
if (o)
|
|
1134
|
-
throw
|
|
1135
|
-
return B =
|
|
1134
|
+
throw k = 0, M = 0, H(D);
|
|
1135
|
+
return B = k, Q = M, c(k, M);
|
|
1136
1136
|
} finally {
|
|
1137
1137
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
Symbol.dispose && (
|
|
1142
|
-
class
|
|
1141
|
+
Symbol.dispose && (l.prototype[Symbol.dispose] = l.prototype.free);
|
|
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, nA.unregister(this), A;
|
|
1146
1146
|
}
|
|
1147
1147
|
free() {
|
|
1148
1148
|
const A = this.__destroy_into_raw();
|
|
@@ -1158,8 +1158,8 @@ class kA {
|
|
|
1158
1158
|
I.wasmupdatebuilder_build(C, this.__wbg_ptr);
|
|
1159
1159
|
var A = w().getInt32(C + 0, !0), B = w().getInt32(C + 4, !0), Q = w().getInt32(C + 8, !0);
|
|
1160
1160
|
if (Q)
|
|
1161
|
-
throw
|
|
1162
|
-
return
|
|
1161
|
+
throw H(B);
|
|
1162
|
+
return H(A);
|
|
1163
1163
|
} finally {
|
|
1164
1164
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1165
1165
|
}
|
|
@@ -1169,7 +1169,7 @@ class kA {
|
|
|
1169
1169
|
* @param {string} table
|
|
1170
1170
|
*/
|
|
1171
1171
|
from(A) {
|
|
1172
|
-
const B =
|
|
1172
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1173
1173
|
I.wasmupdatebuilder_from(this.__wbg_ptr, B, Q);
|
|
1174
1174
|
}
|
|
1175
1175
|
/**
|
|
@@ -1177,8 +1177,8 @@ class kA {
|
|
|
1177
1177
|
* @param {string} table_name
|
|
1178
1178
|
*/
|
|
1179
1179
|
constructor(A) {
|
|
1180
|
-
const B =
|
|
1181
|
-
return this.__wbg_ptr = C >>> 0,
|
|
1180
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmupdatebuilder_new(B, Q);
|
|
1181
|
+
return this.__wbg_ptr = C >>> 0, nA.register(this, this.__wbg_ptr, this), this;
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Add a SET column = value assignment.
|
|
@@ -1186,8 +1186,8 @@ class kA {
|
|
|
1186
1186
|
* @param {WasmExpr} value
|
|
1187
1187
|
*/
|
|
1188
1188
|
set(A, B) {
|
|
1189
|
-
const Q =
|
|
1190
|
-
|
|
1189
|
+
const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1190
|
+
J(B, K), I.wasmupdatebuilder_set(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Generate SQL string for the given dialect.
|
|
@@ -1197,12 +1197,12 @@ class kA {
|
|
|
1197
1197
|
to_sql(A) {
|
|
1198
1198
|
let B, Q;
|
|
1199
1199
|
try {
|
|
1200
|
-
const
|
|
1201
|
-
I.wasmupdatebuilder_to_sql(
|
|
1202
|
-
var C = w().getInt32(
|
|
1200
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
1201
|
+
I.wasmupdatebuilder_to_sql(Y, this.__wbg_ptr, U, h);
|
|
1202
|
+
var C = w().getInt32(Y + 0, !0), E = w().getInt32(Y + 4, !0), D = w().getInt32(Y + 8, !0), o = w().getInt32(Y + 12, !0), k = C, M = E;
|
|
1203
1203
|
if (o)
|
|
1204
|
-
throw
|
|
1205
|
-
return B =
|
|
1204
|
+
throw k = 0, M = 0, H(D);
|
|
1205
|
+
return B = k, Q = M, c(k, M);
|
|
1206
1206
|
} finally {
|
|
1207
1207
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1208
1208
|
}
|
|
@@ -1212,10 +1212,10 @@ class kA {
|
|
|
1212
1212
|
* @param {WasmExpr} condition
|
|
1213
1213
|
*/
|
|
1214
1214
|
where_expr(A) {
|
|
1215
|
-
|
|
1215
|
+
J(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
Symbol.dispose && (
|
|
1218
|
+
Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
|
|
1219
1219
|
class QA {
|
|
1220
1220
|
__destroy_into_raw() {
|
|
1221
1221
|
const A = this.__wbg_ptr;
|
|
@@ -1237,61 +1237,61 @@ class QA {
|
|
|
1237
1237
|
* @param {WasmExprArray} exprs
|
|
1238
1238
|
*/
|
|
1239
1239
|
order_by(A) {
|
|
1240
|
-
|
|
1240
|
+
J(A, x), 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
|
+
J(A, x), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
1251
1251
|
function MI(g, A, B) {
|
|
1252
1252
|
let Q, C;
|
|
1253
1253
|
try {
|
|
1254
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1255
|
-
I.annotate_types(o,
|
|
1254
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1255
|
+
I.annotate_types(o, k, M, Y, U, h, s);
|
|
1256
1256
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1257
|
-
return Q = E, C = D,
|
|
1257
|
+
return Q = E, C = D, c(E, D);
|
|
1258
1258
|
} finally {
|
|
1259
1259
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
function KI(g, A, B) {
|
|
1263
|
-
const Q =
|
|
1264
|
-
return
|
|
1263
|
+
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = N(B, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = I.annotate_types_value(Q, C, E, D, o, k);
|
|
1264
|
+
return H(M);
|
|
1265
1265
|
}
|
|
1266
1266
|
function uA(g, A, B) {
|
|
1267
1267
|
let Q, C;
|
|
1268
1268
|
try {
|
|
1269
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1270
|
-
I.ast_add_where(o,
|
|
1269
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G;
|
|
1270
|
+
I.ast_add_where(o, k, M, Y, U, B);
|
|
1271
1271
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1272
|
-
return Q = E, C = D,
|
|
1272
|
+
return Q = E, C = D, c(E, D);
|
|
1273
1273
|
} finally {
|
|
1274
1274
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function vA(g) {
|
|
1278
1278
|
let A, B;
|
|
1279
1279
|
try {
|
|
1280
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1280
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1281
1281
|
I.ast_get_aggregate_functions(E, D, o);
|
|
1282
1282
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1283
|
-
return A = Q, B = C,
|
|
1283
|
+
return A = Q, B = C, c(Q, C);
|
|
1284
1284
|
} finally {
|
|
1285
1285
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function XA(g) {
|
|
1289
1289
|
let A, B;
|
|
1290
1290
|
try {
|
|
1291
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1291
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1292
1292
|
I.ast_get_column_names(E, D, o);
|
|
1293
1293
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1294
|
-
return A = Q, B = C,
|
|
1294
|
+
return A = Q, B = C, c(Q, C);
|
|
1295
1295
|
} finally {
|
|
1296
1296
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1297
1297
|
}
|
|
@@ -1299,10 +1299,10 @@ function vA(g) {
|
|
|
1299
1299
|
function _A(g) {
|
|
1300
1300
|
let A, B;
|
|
1301
1301
|
try {
|
|
1302
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1302
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1303
1303
|
I.ast_get_functions(E, D, o);
|
|
1304
1304
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1305
|
-
return A = Q, B = C,
|
|
1305
|
+
return A = Q, B = C, c(Q, C);
|
|
1306
1306
|
} finally {
|
|
1307
1307
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1308
1308
|
}
|
|
@@ -1310,10 +1310,10 @@ function _A(g) {
|
|
|
1310
1310
|
function $A(g) {
|
|
1311
1311
|
let A, B;
|
|
1312
1312
|
try {
|
|
1313
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1313
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1314
1314
|
I.ast_get_literals(E, D, o);
|
|
1315
1315
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1316
|
-
return A = Q, B = C,
|
|
1316
|
+
return A = Q, B = C, c(Q, C);
|
|
1317
1317
|
} finally {
|
|
1318
1318
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1319
1319
|
}
|
|
@@ -1321,10 +1321,10 @@ function $A(g) {
|
|
|
1321
1321
|
function Ag(g) {
|
|
1322
1322
|
let A, B;
|
|
1323
1323
|
try {
|
|
1324
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1324
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1325
1325
|
I.ast_get_subqueries(E, D, o);
|
|
1326
1326
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1327
|
-
return A = Q, B = C,
|
|
1327
|
+
return A = Q, B = C, c(Q, C);
|
|
1328
1328
|
} finally {
|
|
1329
1329
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1330
1330
|
}
|
|
@@ -1332,10 +1332,10 @@ function Ag(g) {
|
|
|
1332
1332
|
function gg(g) {
|
|
1333
1333
|
let A, B;
|
|
1334
1334
|
try {
|
|
1335
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1335
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1336
1336
|
I.ast_get_table_names(E, D, o);
|
|
1337
1337
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1338
|
-
return A = Q, B = C,
|
|
1338
|
+
return A = Q, B = C, c(Q, C);
|
|
1339
1339
|
} finally {
|
|
1340
1340
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1341
1341
|
}
|
|
@@ -1343,10 +1343,10 @@ function gg(g) {
|
|
|
1343
1343
|
function Ig(g) {
|
|
1344
1344
|
let A, B;
|
|
1345
1345
|
try {
|
|
1346
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1346
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1347
1347
|
I.ast_get_window_functions(E, D, o);
|
|
1348
1348
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1349
|
-
return A = Q, B = C,
|
|
1349
|
+
return A = Q, B = C, c(Q, C);
|
|
1350
1350
|
} finally {
|
|
1351
1351
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1352
1352
|
}
|
|
@@ -1354,10 +1354,10 @@ function Ig(g) {
|
|
|
1354
1354
|
function Bg(g) {
|
|
1355
1355
|
let A, B;
|
|
1356
1356
|
try {
|
|
1357
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1357
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1358
1358
|
I.ast_node_count(E, D, o);
|
|
1359
1359
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1360
|
-
return A = Q, B = C,
|
|
1360
|
+
return A = Q, B = C, c(Q, C);
|
|
1361
1361
|
} finally {
|
|
1362
1362
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1363
1363
|
}
|
|
@@ -1365,10 +1365,10 @@ function Bg(g) {
|
|
|
1365
1365
|
function Qg(g, A) {
|
|
1366
1366
|
let B, Q;
|
|
1367
1367
|
try {
|
|
1368
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1369
|
-
I.ast_qualify_columns(D, o,
|
|
1368
|
+
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), Y = G;
|
|
1369
|
+
I.ast_qualify_columns(D, o, k, M, Y);
|
|
1370
1370
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1371
|
-
return B = C, Q = E,
|
|
1371
|
+
return B = C, Q = E, c(C, E);
|
|
1372
1372
|
} finally {
|
|
1373
1373
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1374
1374
|
}
|
|
@@ -1376,10 +1376,10 @@ function Qg(g, A) {
|
|
|
1376
1376
|
function Cg(g) {
|
|
1377
1377
|
let A, B;
|
|
1378
1378
|
try {
|
|
1379
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1379
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1380
1380
|
I.ast_remove_where(E, D, o);
|
|
1381
1381
|
var Q = w().getInt32(E + 0, !0), C = w().getInt32(E + 4, !0);
|
|
1382
|
-
return A = Q, B = C,
|
|
1382
|
+
return A = Q, B = C, c(Q, C);
|
|
1383
1383
|
} finally {
|
|
1384
1384
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1385
1385
|
}
|
|
@@ -1387,10 +1387,10 @@ function Cg(g) {
|
|
|
1387
1387
|
function Eg(g, A) {
|
|
1388
1388
|
let B, Q;
|
|
1389
1389
|
try {
|
|
1390
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1391
|
-
I.ast_rename_columns(D, o,
|
|
1390
|
+
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), Y = G;
|
|
1391
|
+
I.ast_rename_columns(D, o, k, M, Y);
|
|
1392
1392
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1393
|
-
return B = C, Q = E,
|
|
1393
|
+
return B = C, Q = E, c(C, E);
|
|
1394
1394
|
} finally {
|
|
1395
1395
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1396
1396
|
}
|
|
@@ -1398,10 +1398,10 @@ function Eg(g, A) {
|
|
|
1398
1398
|
function Dg(g, A) {
|
|
1399
1399
|
let B, Q;
|
|
1400
1400
|
try {
|
|
1401
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1402
|
-
I.ast_rename_tables(D, o,
|
|
1401
|
+
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), Y = G;
|
|
1402
|
+
I.ast_rename_tables(D, o, k, M, Y);
|
|
1403
1403
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1404
|
-
return B = C, Q = E,
|
|
1404
|
+
return B = C, Q = E, c(C, E);
|
|
1405
1405
|
} finally {
|
|
1406
1406
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1407
1407
|
}
|
|
@@ -1409,10 +1409,10 @@ function Dg(g, A) {
|
|
|
1409
1409
|
function ig(g, A) {
|
|
1410
1410
|
let B, Q;
|
|
1411
1411
|
try {
|
|
1412
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1413
|
-
I.ast_set_distinct(D, o,
|
|
1412
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G;
|
|
1413
|
+
I.ast_set_distinct(D, o, k, A);
|
|
1414
1414
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1415
|
-
return B = C, Q = E,
|
|
1415
|
+
return B = C, Q = E, c(C, E);
|
|
1416
1416
|
} finally {
|
|
1417
1417
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1418
1418
|
}
|
|
@@ -1420,10 +1420,10 @@ function ig(g, A) {
|
|
|
1420
1420
|
function wg(g, A) {
|
|
1421
1421
|
let B, Q;
|
|
1422
1422
|
try {
|
|
1423
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1424
|
-
I.ast_set_limit(D, o,
|
|
1423
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = G;
|
|
1424
|
+
I.ast_set_limit(D, o, k, A);
|
|
1425
1425
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1426
|
-
return B = C, Q = E,
|
|
1426
|
+
return B = C, Q = E, c(C, E);
|
|
1427
1427
|
} finally {
|
|
1428
1428
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1429
1429
|
}
|
|
@@ -1431,118 +1431,118 @@ function wg(g, A) {
|
|
|
1431
1431
|
function og(g, A, B, Q, C, E) {
|
|
1432
1432
|
let D, o;
|
|
1433
1433
|
try {
|
|
1434
|
-
const
|
|
1435
|
-
I.diff_sql(
|
|
1436
|
-
var
|
|
1437
|
-
return D =
|
|
1434
|
+
const Y = I.__wbindgen_add_to_stack_pointer(-16), U = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = N(A, I.__wbindgen_export, I.__wbindgen_export2), Z = G, m = N(B, I.__wbindgen_export, I.__wbindgen_export2), v = G;
|
|
1435
|
+
I.diff_sql(Y, U, h, s, Z, m, v, Q, C, E);
|
|
1436
|
+
var k = w().getInt32(Y + 0, !0), M = w().getInt32(Y + 4, !0);
|
|
1437
|
+
return D = k, o = M, c(k, M);
|
|
1438
1438
|
} finally {
|
|
1439
1439
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, o, 1);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function YI(g, A) {
|
|
1443
1443
|
let B, Q;
|
|
1444
1444
|
try {
|
|
1445
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1446
|
-
I.format_sql(D, o,
|
|
1445
|
+
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), Y = G;
|
|
1446
|
+
I.format_sql(D, o, k, M, Y);
|
|
1447
1447
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1448
|
-
return B = C, Q = E,
|
|
1448
|
+
return B = C, Q = E, c(C, E);
|
|
1449
1449
|
} finally {
|
|
1450
1450
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const B =
|
|
1455
|
-
return
|
|
1453
|
+
function aI(g, A) {
|
|
1454
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.format_sql_value(B, Q, C, E);
|
|
1455
|
+
return H(D);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function JI(g, A, B) {
|
|
1458
1458
|
let Q, C;
|
|
1459
1459
|
try {
|
|
1460
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1461
|
-
I.format_sql_with_options(o,
|
|
1460
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1461
|
+
I.format_sql_with_options(o, k, M, Y, U, h, s);
|
|
1462
1462
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1463
|
-
return Q = E, C = D,
|
|
1463
|
+
return Q = E, C = D, c(E, D);
|
|
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 =
|
|
1470
|
-
return
|
|
1468
|
+
function UI(g, A, B) {
|
|
1469
|
+
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = I.format_sql_with_options_value(Q, C, E, D, S(B));
|
|
1470
|
+
return H(o);
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function yI(g, A) {
|
|
1473
1473
|
let B, Q;
|
|
1474
1474
|
try {
|
|
1475
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1476
|
-
I.generate(D, o,
|
|
1475
|
+
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), Y = G;
|
|
1476
|
+
I.generate(D, o, k, M, Y);
|
|
1477
1477
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1478
|
-
return B = C, Q = E,
|
|
1478
|
+
return B = C, Q = E, c(C, E);
|
|
1479
1479
|
} finally {
|
|
1480
1480
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
function FI(g, A) {
|
|
1484
|
-
const B =
|
|
1485
|
-
return
|
|
1484
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.generate_value(S(g), B, Q);
|
|
1485
|
+
return H(C);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function RI() {
|
|
1488
1488
|
let g, A;
|
|
1489
1489
|
try {
|
|
1490
1490
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1491
1491
|
I.get_dialects(C);
|
|
1492
1492
|
var B = w().getInt32(C + 0, !0), Q = w().getInt32(C + 4, !0);
|
|
1493
|
-
return g = B, A = Q,
|
|
1493
|
+
return g = B, A = Q, c(B, Q);
|
|
1494
1494
|
} finally {
|
|
1495
1495
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function HI() {
|
|
1499
1499
|
const g = I.get_dialects_value();
|
|
1500
|
-
return
|
|
1500
|
+
return H(g);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Gg(g, A, B, Q) {
|
|
1503
1503
|
let C, E;
|
|
1504
1504
|
try {
|
|
1505
|
-
const
|
|
1506
|
-
I.lineage_sql(
|
|
1507
|
-
var D = w().getInt32(
|
|
1508
|
-
return C = D, E = o,
|
|
1505
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), Y = G, U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = N(B, I.__wbindgen_export, I.__wbindgen_export2), Z = G;
|
|
1506
|
+
I.lineage_sql(k, M, Y, U, h, s, Z, Q);
|
|
1507
|
+
var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
|
|
1508
|
+
return C = D, E = o, c(D, o);
|
|
1509
1509
|
} finally {
|
|
1510
1510
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, E, 1);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Ng(g, A, B, Q, C) {
|
|
1514
1514
|
let E, D;
|
|
1515
1515
|
try {
|
|
1516
|
-
const M = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1517
|
-
I.lineage_sql_with_schema(M,
|
|
1518
|
-
var o = w().getInt32(M + 0, !0),
|
|
1519
|
-
return E = o, D =
|
|
1516
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), Y = N(g, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), s = G, Z = N(B, I.__wbindgen_export, I.__wbindgen_export2), m = G, v = N(Q, I.__wbindgen_export, I.__wbindgen_export2), GI = G;
|
|
1517
|
+
I.lineage_sql_with_schema(M, Y, U, h, s, Z, m, v, GI, C);
|
|
1518
|
+
var o = w().getInt32(M + 0, !0), k = w().getInt32(M + 4, !0);
|
|
1519
|
+
return E = o, D = k, c(o, k);
|
|
1520
1520
|
} finally {
|
|
1521
1521
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function cI(g, A) {
|
|
1525
1525
|
let B, Q;
|
|
1526
1526
|
try {
|
|
1527
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1528
|
-
I.parse(D, o,
|
|
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), Y = G;
|
|
1528
|
+
I.parse(D, o, k, M, Y);
|
|
1529
1529
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1530
|
-
return B = C, Q = E,
|
|
1530
|
+
return B = C, Q = E, c(C, E);
|
|
1531
1531
|
} finally {
|
|
1532
1532
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
const B =
|
|
1537
|
-
return
|
|
1535
|
+
function qI(g, A) {
|
|
1536
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.parse_value(B, Q, C, E);
|
|
1537
|
+
return H(D);
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function kg(g, A) {
|
|
1540
1540
|
let B, Q;
|
|
1541
1541
|
try {
|
|
1542
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1543
|
-
I.plan(D, o,
|
|
1542
|
+
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), Y = G;
|
|
1543
|
+
I.plan(D, o, k, M, Y);
|
|
1544
1544
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1545
|
-
return B = C, Q = E,
|
|
1545
|
+
return B = C, Q = E, c(C, E);
|
|
1546
1546
|
} finally {
|
|
1547
1547
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1548
1548
|
}
|
|
@@ -1550,10 +1550,10 @@ function Ng(g, A) {
|
|
|
1550
1550
|
function Mg(g, A, B) {
|
|
1551
1551
|
let Q, C;
|
|
1552
1552
|
try {
|
|
1553
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1554
|
-
I.source_tables(o,
|
|
1553
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1554
|
+
I.source_tables(o, k, M, Y, U, h, s);
|
|
1555
1555
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1556
|
-
return Q = E, C = D,
|
|
1556
|
+
return Q = E, C = D, c(E, D);
|
|
1557
1557
|
} finally {
|
|
1558
1558
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1559
1559
|
}
|
|
@@ -1561,51 +1561,51 @@ function Mg(g, A, B) {
|
|
|
1561
1561
|
function hI(g, A) {
|
|
1562
1562
|
let B, Q;
|
|
1563
1563
|
try {
|
|
1564
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1565
|
-
I.tokenize(D, o,
|
|
1564
|
+
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), Y = G;
|
|
1565
|
+
I.tokenize(D, o, k, M, Y);
|
|
1566
1566
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1567
|
-
return B = C, Q = E,
|
|
1567
|
+
return B = C, Q = E, c(C, E);
|
|
1568
1568
|
} finally {
|
|
1569
1569
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
const B =
|
|
1574
|
-
return
|
|
1572
|
+
function SI(g, A) {
|
|
1573
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.tokenize_value(B, Q, C, E);
|
|
1574
|
+
return H(D);
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function LI(g, A, B) {
|
|
1577
1577
|
let Q, C;
|
|
1578
1578
|
try {
|
|
1579
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1580
|
-
I.transpile(o,
|
|
1579
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1580
|
+
I.transpile(o, k, M, Y, U, h, s);
|
|
1581
1581
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1582
|
-
return Q = E, C = D,
|
|
1582
|
+
return Q = E, C = D, c(E, D);
|
|
1583
1583
|
} finally {
|
|
1584
1584
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
const Q =
|
|
1589
|
-
return
|
|
1587
|
+
function sI(g, A, B) {
|
|
1588
|
+
const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, o = N(B, I.__wbindgen_export, I.__wbindgen_export2), k = G, M = I.transpile_value(Q, C, E, D, o, k);
|
|
1589
|
+
return H(M);
|
|
1590
1590
|
}
|
|
1591
1591
|
function pI(g, A) {
|
|
1592
1592
|
let B, Q;
|
|
1593
1593
|
try {
|
|
1594
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1595
|
-
I.validate(D, o,
|
|
1594
|
+
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), Y = G;
|
|
1595
|
+
I.validate(D, o, k, M, Y);
|
|
1596
1596
|
var C = w().getInt32(D + 0, !0), E = w().getInt32(D + 4, !0);
|
|
1597
|
-
return B = C, Q = E,
|
|
1597
|
+
return B = C, Q = E, c(C, E);
|
|
1598
1598
|
} finally {
|
|
1599
1599
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function xI(g, A, B) {
|
|
1603
1603
|
let Q, C;
|
|
1604
1604
|
try {
|
|
1605
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1606
|
-
I.validate_with_options(o,
|
|
1605
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, Y = N(A, I.__wbindgen_export, I.__wbindgen_export2), U = G, h = N(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1606
|
+
I.validate_with_options(o, k, M, Y, U, h, s);
|
|
1607
1607
|
var E = w().getInt32(o + 0, !0), D = w().getInt32(o + 4, !0);
|
|
1608
|
-
return Q = E, C = D,
|
|
1608
|
+
return Q = E, C = D, c(E, D);
|
|
1609
1609
|
} finally {
|
|
1610
1610
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1611
1611
|
}
|
|
@@ -1613,76 +1613,76 @@ function OI(g, A, B) {
|
|
|
1613
1613
|
function Kg(g, A, B, Q) {
|
|
1614
1614
|
let C, E;
|
|
1615
1615
|
try {
|
|
1616
|
-
const
|
|
1617
|
-
I.validate_with_schema(
|
|
1618
|
-
var D = w().getInt32(
|
|
1619
|
-
return C = D, E = o,
|
|
1616
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), Y = G, U = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = N(B, I.__wbindgen_export, I.__wbindgen_export2), Z = G, m = N(Q, I.__wbindgen_export, I.__wbindgen_export2), v = G;
|
|
1617
|
+
I.validate_with_schema(k, M, Y, U, h, s, Z, m, v);
|
|
1618
|
+
var D = w().getInt32(k + 0, !0), o = w().getInt32(k + 4, !0);
|
|
1619
|
+
return C = D, E = o, c(D, o);
|
|
1620
1620
|
} finally {
|
|
1621
1621
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, E, 1);
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function OI() {
|
|
1625
1625
|
let g, A;
|
|
1626
1626
|
try {
|
|
1627
1627
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1628
1628
|
I.version(C);
|
|
1629
1629
|
var B = w().getInt32(C + 0, !0), Q = w().getInt32(C + 4, !0);
|
|
1630
|
-
return g = B, A = Q,
|
|
1630
|
+
return g = B, A = Q, c(B, Q);
|
|
1631
1631
|
} finally {
|
|
1632
1632
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1636
|
-
|
|
1637
|
-
const B =
|
|
1635
|
+
function Yg(g, A) {
|
|
1636
|
+
J(g, K);
|
|
1637
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_alias(g.__wbg_ptr, B, Q);
|
|
1638
1638
|
return K.__wrap(C);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
|
|
1640
|
+
function ag(g, A) {
|
|
1641
|
+
J(g, K), J(A, K);
|
|
1642
1642
|
const B = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
|
|
1643
1643
|
return K.__wrap(B);
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function Jg(g) {
|
|
1646
1646
|
const A = I.wasm_boolean(g);
|
|
1647
1647
|
return K.__wrap(A);
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1650
|
-
|
|
1649
|
+
function Ug(g) {
|
|
1650
|
+
J(g, K);
|
|
1651
1651
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1652
|
-
return
|
|
1652
|
+
return n.__wrap(A);
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1655
|
-
|
|
1656
|
-
const B =
|
|
1654
|
+
function yg(g, A) {
|
|
1655
|
+
J(g, K);
|
|
1656
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_cast(g.__wbg_ptr, B, Q);
|
|
1657
1657
|
return K.__wrap(C);
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const A =
|
|
1659
|
+
function HA(g) {
|
|
1660
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, Q = I.wasm_col(A, B);
|
|
1661
1661
|
return K.__wrap(Q);
|
|
1662
1662
|
}
|
|
1663
1663
|
function Fg(g) {
|
|
1664
|
-
|
|
1664
|
+
J(g, K);
|
|
1665
1665
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1666
1666
|
return K.__wrap(A);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1669
|
-
const B =
|
|
1670
|
-
|
|
1668
|
+
function Rg(g, A) {
|
|
1669
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1670
|
+
J(A, K);
|
|
1671
1671
|
const C = I.wasm_extract(B, Q, A.__wbg_ptr);
|
|
1672
1672
|
return K.__wrap(C);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
const B =
|
|
1676
|
-
|
|
1674
|
+
function Hg(g, A) {
|
|
1675
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1676
|
+
J(A, x);
|
|
1677
1677
|
const C = I.wasm_func(B, Q, A.__wbg_ptr);
|
|
1678
1678
|
return K.__wrap(C);
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1681
|
-
const A = I.wasm_lit(
|
|
1680
|
+
function kA(g) {
|
|
1681
|
+
const A = I.wasm_lit(S(g));
|
|
1682
1682
|
return K.__wrap(A);
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1685
|
-
|
|
1684
|
+
function cg(g) {
|
|
1685
|
+
J(g, K);
|
|
1686
1686
|
const A = I.wasm_not(g.__wbg_ptr);
|
|
1687
1687
|
return K.__wrap(A);
|
|
1688
1688
|
}
|
|
@@ -1690,121 +1690,121 @@ function MA() {
|
|
|
1690
1690
|
const g = I.wasm_null();
|
|
1691
1691
|
return K.__wrap(g);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
|
|
1693
|
+
function qg(g, A) {
|
|
1694
|
+
J(g, K), J(A, K);
|
|
1695
1695
|
const B = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
|
|
1696
1696
|
return K.__wrap(B);
|
|
1697
1697
|
}
|
|
1698
1698
|
function hg(g) {
|
|
1699
|
-
const A =
|
|
1699
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, Q = I.wasm_sql_expr(A, B);
|
|
1700
1700
|
return K.__wrap(Q);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Sg() {
|
|
1703
1703
|
const g = I.wasm_star();
|
|
1704
1704
|
return K.__wrap(g);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function Lg(g, A) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1709
|
-
|
|
1710
|
-
const D =
|
|
1709
|
+
J(g, T);
|
|
1710
|
+
const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = G;
|
|
1711
1711
|
I.wasm_subquery(E, g.__wbg_ptr, D, o);
|
|
1712
1712
|
var B = w().getInt32(E + 0, !0), Q = w().getInt32(E + 4, !0), C = w().getInt32(E + 8, !0);
|
|
1713
1713
|
if (C)
|
|
1714
|
-
throw
|
|
1714
|
+
throw H(Q);
|
|
1715
1715
|
return K.__wrap(B);
|
|
1716
1716
|
} finally {
|
|
1717
1717
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1721
|
-
const A =
|
|
1720
|
+
function sg(g) {
|
|
1721
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, Q = I.wasm_table(A, B);
|
|
1722
1722
|
return K.__wrap(Q);
|
|
1723
1723
|
}
|
|
1724
1724
|
function ZI(g, A) {
|
|
1725
|
-
const B = Error(
|
|
1726
|
-
return
|
|
1725
|
+
const B = Error(c(g, A));
|
|
1726
|
+
return S(B);
|
|
1727
1727
|
}
|
|
1728
1728
|
function TI(g) {
|
|
1729
1729
|
return Number(F(g));
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1732
|
-
const B = String(F(A)), Q =
|
|
1731
|
+
function VI(g, A) {
|
|
1732
|
+
const B = String(F(A)), Q = N(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1733
1733
|
w().setInt32(g + 4, C, !0), w().setInt32(g + 0, Q, !0);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function jI(g, A) {
|
|
1736
1736
|
const B = F(A), Q = typeof B == "bigint" ? B : void 0;
|
|
1737
1737
|
w().setBigInt64(g + 8, u(Q) ? BigInt(0) : Q, !0), w().setInt32(g + 0, !u(Q), !0);
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function dI(g) {
|
|
1740
1740
|
const A = F(g), B = typeof A == "boolean" ? A : void 0;
|
|
1741
1741
|
return u(B) ? 16777215 : B ? 1 : 0;
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1744
|
-
const B = FA(F(A)), Q =
|
|
1743
|
+
function WI(g, A) {
|
|
1744
|
+
const B = FA(F(A)), Q = N(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1745
1745
|
w().setInt32(g + 4, C, !0), w().setInt32(g + 0, Q, !0);
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function lI(g, A) {
|
|
1748
1748
|
return F(g) in F(A);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function tI(g) {
|
|
1751
1751
|
return typeof F(g) == "bigint";
|
|
1752
1752
|
}
|
|
1753
1753
|
function PI(g) {
|
|
1754
1754
|
return typeof F(g) == "function";
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function eI(g) {
|
|
1757
1757
|
return F(g) === null;
|
|
1758
1758
|
}
|
|
1759
1759
|
function zI(g) {
|
|
1760
1760
|
const A = F(g);
|
|
1761
1761
|
return typeof A == "object" && A !== null;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function mI(g) {
|
|
1764
1764
|
return typeof F(g) == "string";
|
|
1765
1765
|
}
|
|
1766
1766
|
function fI(g) {
|
|
1767
1767
|
return F(g) === void 0;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function nI(g, A) {
|
|
1770
1770
|
return F(g) === F(A);
|
|
1771
1771
|
}
|
|
1772
1772
|
function rI(g, A) {
|
|
1773
1773
|
return F(g) == F(A);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function bI(g, A) {
|
|
1776
1776
|
const B = F(A), Q = typeof B == "number" ? B : void 0;
|
|
1777
1777
|
w().setFloat64(g + 8, u(Q) ? 0 : Q, !0), w().setInt32(g + 0, !u(Q), !0);
|
|
1778
1778
|
}
|
|
1779
1779
|
function uI(g, A) {
|
|
1780
1780
|
const B = F(A), Q = typeof B == "string" ? B : void 0;
|
|
1781
|
-
var C = u(Q) ? 0 :
|
|
1781
|
+
var C = u(Q) ? 0 : N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G;
|
|
1782
1782
|
w().setInt32(g + 4, E, !0), w().setInt32(g + 0, C, !0);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1785
|
-
throw new Error(
|
|
1784
|
+
function vI(g, A) {
|
|
1785
|
+
throw new Error(c(g, A));
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function XI() {
|
|
1788
1788
|
return KA(function(g, A) {
|
|
1789
1789
|
const B = F(g).call(F(A));
|
|
1790
|
-
return
|
|
1790
|
+
return S(B);
|
|
1791
1791
|
}, arguments);
|
|
1792
1792
|
}
|
|
1793
1793
|
function _I(g, A) {
|
|
1794
1794
|
const B = F(g).codePointAt(A >>> 0);
|
|
1795
|
-
return
|
|
1795
|
+
return S(B);
|
|
1796
1796
|
}
|
|
1797
1797
|
function $I(g) {
|
|
1798
1798
|
return F(g).done;
|
|
1799
1799
|
}
|
|
1800
1800
|
function AB(g) {
|
|
1801
1801
|
const A = Object.entries(F(g));
|
|
1802
|
-
return
|
|
1802
|
+
return S(A);
|
|
1803
1803
|
}
|
|
1804
1804
|
function gB(g, A) {
|
|
1805
1805
|
let B, Q;
|
|
1806
1806
|
try {
|
|
1807
|
-
B = g, Q = A, console.error(
|
|
1807
|
+
B = g, Q = A, console.error(c(g, A));
|
|
1808
1808
|
} finally {
|
|
1809
1809
|
I.__wbindgen_export4(B, Q, 1);
|
|
1810
1810
|
}
|
|
@@ -1812,22 +1812,22 @@ function gB(g, A) {
|
|
|
1812
1812
|
function IB() {
|
|
1813
1813
|
return KA(function(g) {
|
|
1814
1814
|
const A = String.fromCodePoint(g >>> 0);
|
|
1815
|
-
return
|
|
1815
|
+
return S(A);
|
|
1816
1816
|
}, arguments);
|
|
1817
1817
|
}
|
|
1818
1818
|
function BB(g, A) {
|
|
1819
1819
|
const B = F(g)[A >>> 0];
|
|
1820
|
-
return
|
|
1820
|
+
return S(B);
|
|
1821
1821
|
}
|
|
1822
1822
|
function QB() {
|
|
1823
1823
|
return KA(function(g, A) {
|
|
1824
1824
|
const B = Reflect.get(F(g), F(A));
|
|
1825
|
-
return
|
|
1825
|
+
return S(B);
|
|
1826
1826
|
}, arguments);
|
|
1827
1827
|
}
|
|
1828
1828
|
function CB(g, A) {
|
|
1829
1829
|
const B = F(g)[F(A)];
|
|
1830
|
-
return
|
|
1830
|
+
return S(B);
|
|
1831
1831
|
}
|
|
1832
1832
|
function EB(g) {
|
|
1833
1833
|
let A;
|
|
@@ -1863,12 +1863,12 @@ function oB(g) {
|
|
|
1863
1863
|
return Number.isSafeInteger(F(g));
|
|
1864
1864
|
}
|
|
1865
1865
|
function GB() {
|
|
1866
|
-
return
|
|
1866
|
+
return S(Symbol.iterator);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function NB(g) {
|
|
1869
1869
|
return F(g).length;
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function kB(g) {
|
|
1872
1872
|
return F(g).length;
|
|
1873
1873
|
}
|
|
1874
1874
|
function MB(g) {
|
|
@@ -1876,104 +1876,104 @@ function MB(g) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
function KB() {
|
|
1878
1878
|
const g = new Object();
|
|
1879
|
-
return
|
|
1879
|
+
return S(g);
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function YB() {
|
|
1882
1882
|
const g = new Array();
|
|
1883
|
-
return
|
|
1883
|
+
return S(g);
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function aB() {
|
|
1886
1886
|
const g = new Error();
|
|
1887
|
-
return
|
|
1887
|
+
return S(g);
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1890
|
-
return
|
|
1889
|
+
function JB() {
|
|
1890
|
+
return S(/* @__PURE__ */ new Map());
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function UB(g) {
|
|
1893
1893
|
const A = new Uint8Array(F(g));
|
|
1894
|
-
return
|
|
1894
|
+
return S(A);
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function yB() {
|
|
1897
1897
|
return KA(function(g) {
|
|
1898
1898
|
const A = F(g).next();
|
|
1899
|
-
return
|
|
1899
|
+
return S(A);
|
|
1900
1900
|
}, arguments);
|
|
1901
1901
|
}
|
|
1902
1902
|
function FB(g) {
|
|
1903
1903
|
const A = F(g).next;
|
|
1904
|
-
return
|
|
1904
|
+
return S(A);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
Uint8Array.prototype.set.call(
|
|
1906
|
+
function RB(g, A, B) {
|
|
1907
|
+
Uint8Array.prototype.set.call(VB(g, A), F(B));
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function HB(g, A, B) {
|
|
1910
1910
|
const Q = F(g).set(F(A), F(B));
|
|
1911
|
-
return
|
|
1911
|
+
return S(Q);
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1914
|
-
F(g)[
|
|
1913
|
+
function cB(g, A, B) {
|
|
1914
|
+
F(g)[H(A)] = H(B);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
F(g)[A >>> 0] =
|
|
1916
|
+
function qB(g, A, B) {
|
|
1917
|
+
F(g)[A >>> 0] = H(B);
|
|
1918
1918
|
}
|
|
1919
1919
|
function hB(g, A) {
|
|
1920
|
-
const B = F(A).stack, Q =
|
|
1920
|
+
const B = F(A).stack, Q = N(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1921
1921
|
w().setInt32(g + 4, C, !0), w().setInt32(g + 0, Q, !0);
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function SB(g) {
|
|
1924
1924
|
const A = F(g).value;
|
|
1925
|
-
return
|
|
1926
|
-
}
|
|
1927
|
-
function sB(g) {
|
|
1928
|
-
return c(g);
|
|
1925
|
+
return S(A);
|
|
1929
1926
|
}
|
|
1930
1927
|
function LB(g) {
|
|
1931
|
-
return
|
|
1928
|
+
return S(g);
|
|
1929
|
+
}
|
|
1930
|
+
function sB(g) {
|
|
1931
|
+
return S(g);
|
|
1932
1932
|
}
|
|
1933
1933
|
function pB(g, A) {
|
|
1934
|
-
const B =
|
|
1935
|
-
return
|
|
1934
|
+
const B = c(g, A);
|
|
1935
|
+
return S(B);
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function xB(g) {
|
|
1938
1938
|
const A = BigInt.asUintN(64, g);
|
|
1939
|
-
return
|
|
1939
|
+
return S(A);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function OB(g) {
|
|
1942
1942
|
const A = F(g);
|
|
1943
|
-
return
|
|
1943
|
+
return S(A);
|
|
1944
1944
|
}
|
|
1945
1945
|
function ZB(g) {
|
|
1946
|
-
|
|
1946
|
+
H(g);
|
|
1947
1947
|
}
|
|
1948
|
-
const
|
|
1948
|
+
const WA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1949
1949
|
}, unregister: () => {
|
|
1950
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)),
|
|
1950
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), UA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1951
1951
|
}, unregister: () => {
|
|
1952
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)),
|
|
1952
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1953
1953
|
}, unregister: () => {
|
|
1954
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)),
|
|
1954
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), tA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1955
1955
|
}, unregister: () => {
|
|
1956
1956
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), PA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1957
1957
|
}, unregister: () => {
|
|
1958
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)),
|
|
1958
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), eA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1959
1959
|
}, unregister: () => {
|
|
1960
1960
|
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1961
1961
|
}, unregister: () => {
|
|
1962
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)),
|
|
1962
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1963
1963
|
}, unregister: () => {
|
|
1964
1964
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1965
1965
|
}, unregister: () => {
|
|
1966
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)),
|
|
1966
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1967
1967
|
}, unregister: () => {
|
|
1968
1968
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1969
1969
|
}, unregister: () => {
|
|
1970
1970
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
|
|
1971
|
-
function
|
|
1972
|
-
AA ===
|
|
1971
|
+
function S(g) {
|
|
1972
|
+
AA === W.length && W.push(W.length + 1);
|
|
1973
1973
|
const A = AA;
|
|
1974
|
-
return AA =
|
|
1974
|
+
return AA = W[A], W[A] = g, A;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function J(g, A) {
|
|
1977
1977
|
if (!(g instanceof A))
|
|
1978
1978
|
throw new Error(`expected instance of ${A.name}`);
|
|
1979
1979
|
}
|
|
@@ -2015,48 +2015,48 @@ function FA(g) {
|
|
|
2015
2015
|
${g.stack}` : Q;
|
|
2016
2016
|
}
|
|
2017
2017
|
function TB(g) {
|
|
2018
|
-
g < 132 || (
|
|
2018
|
+
g < 132 || (W[g] = AA, AA = g);
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function VB(g, A) {
|
|
2021
2021
|
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2023
|
+
let b = null;
|
|
2024
2024
|
function w() {
|
|
2025
|
-
return (
|
|
2025
|
+
return (b === null || b.buffer.detached === !0 || b.buffer.detached === void 0 && b.buffer !== I.memory.buffer) && (b = new DataView(I.memory.buffer)), b;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return g = g >>> 0,
|
|
2027
|
+
function c(g, A) {
|
|
2028
|
+
return g = g >>> 0, dB(g, A);
|
|
2029
2029
|
}
|
|
2030
2030
|
let EA = null;
|
|
2031
2031
|
function $() {
|
|
2032
2032
|
return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
|
|
2033
2033
|
}
|
|
2034
2034
|
function F(g) {
|
|
2035
|
-
return
|
|
2035
|
+
return W[g];
|
|
2036
2036
|
}
|
|
2037
2037
|
function KA(g, A) {
|
|
2038
2038
|
try {
|
|
2039
2039
|
return g.apply(this, A);
|
|
2040
2040
|
} catch (B) {
|
|
2041
|
-
I.__wbindgen_export3(
|
|
2041
|
+
I.__wbindgen_export3(S(B));
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
|
-
let
|
|
2045
|
-
|
|
2046
|
-
let AA =
|
|
2044
|
+
let W = new Array(128).fill(void 0);
|
|
2045
|
+
W.push(void 0, null, !0, !1);
|
|
2046
|
+
let AA = W.length;
|
|
2047
2047
|
function u(g) {
|
|
2048
2048
|
return g == null;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function cA(g, A) {
|
|
2051
2051
|
const B = A(g.length * 4, 4) >>> 0, Q = w();
|
|
2052
2052
|
for (let C = 0; C < g.length; C++)
|
|
2053
|
-
Q.setUint32(B + 4 * C,
|
|
2053
|
+
Q.setUint32(B + 4 * C, S(g[C]), !0);
|
|
2054
2054
|
return G = g.length, B;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function N(g, A, B) {
|
|
2057
2057
|
if (B === void 0) {
|
|
2058
|
-
const o = gA.encode(g),
|
|
2059
|
-
return $().subarray(
|
|
2058
|
+
const o = gA.encode(g), k = A(o.length, 1) >>> 0;
|
|
2059
|
+
return $().subarray(k, k + o.length).set(o), G = o.length, k;
|
|
2060
2060
|
}
|
|
2061
2061
|
let Q = g.length, C = A(Q, 1) >>> 0;
|
|
2062
2062
|
const E = $();
|
|
@@ -2068,21 +2068,21 @@ function k(g, A, B) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
if (D !== Q) {
|
|
2070
2070
|
D !== 0 && (g = g.slice(D)), C = B(C, Q, Q = D + g.length * 3, 1) >>> 0;
|
|
2071
|
-
const o = $().subarray(C + D, C + Q),
|
|
2072
|
-
D +=
|
|
2071
|
+
const o = $().subarray(C + D, C + Q), k = gA.encodeInto(g, o);
|
|
2072
|
+
D += k.written, C = B(C, Q, D, 1) >>> 0;
|
|
2073
2073
|
}
|
|
2074
2074
|
return G = D, C;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function H(g) {
|
|
2077
2077
|
const A = F(g);
|
|
2078
2078
|
return TB(g), A;
|
|
2079
2079
|
}
|
|
2080
2080
|
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2081
2081
|
DA.decode();
|
|
2082
|
-
const
|
|
2083
|
-
let
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2082
|
+
const jB = 2146435072;
|
|
2083
|
+
let yA = 0;
|
|
2084
|
+
function dB(g, A) {
|
|
2085
|
+
return yA += A, yA >= jB && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), yA = A), DA.decode($().subarray(g, g + A));
|
|
2086
2086
|
}
|
|
2087
2087
|
const gA = new TextEncoder();
|
|
2088
2088
|
"encodeInto" in gA || (gA.encodeInto = function(g, A) {
|
|
@@ -2093,85 +2093,85 @@ const gA = new TextEncoder();
|
|
|
2093
2093
|
};
|
|
2094
2094
|
});
|
|
2095
2095
|
let G = 0, I;
|
|
2096
|
-
function
|
|
2096
|
+
function WB(g) {
|
|
2097
2097
|
I = g;
|
|
2098
2098
|
}
|
|
2099
2099
|
URL = globalThis.URL;
|
|
2100
|
-
const i = await
|
|
2100
|
+
const i = await kI({ "./polyglot_sql_wasm_bg.js": {
|
|
2101
2101
|
__wbindgen_object_drop_ref: ZB,
|
|
2102
|
-
__wbindgen_object_clone_ref:
|
|
2103
|
-
__wbg_new_8a6f238a6ece86ea:
|
|
2102
|
+
__wbindgen_object_clone_ref: OB,
|
|
2103
|
+
__wbg_new_8a6f238a6ece86ea: aB,
|
|
2104
2104
|
__wbg_stack_0ed75d68575b0f3c: hB,
|
|
2105
2105
|
__wbg_error_7534b8e9a36f1ab4: gB,
|
|
2106
2106
|
__wbg_get_with_ref_key_1dc361bd10053bfe: CB,
|
|
2107
|
-
__wbg_set_3f1d0b984ed272ed:
|
|
2108
|
-
__wbg_String_8f0eb39a4a4c2f66:
|
|
2109
|
-
__wbg_new_dd2b680c8bf6ae29:
|
|
2110
|
-
__wbg_length_32ed9a279acd054c:
|
|
2111
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2107
|
+
__wbg_set_3f1d0b984ed272ed: cB,
|
|
2108
|
+
__wbg_String_8f0eb39a4a4c2f66: VI,
|
|
2109
|
+
__wbg_new_dd2b680c8bf6ae29: UB,
|
|
2110
|
+
__wbg_length_32ed9a279acd054c: NB,
|
|
2111
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: RB,
|
|
2112
2112
|
__wbg_done_57b39ecd9addfe81: $I,
|
|
2113
|
-
__wbg_value_0546255b415e96c1:
|
|
2113
|
+
__wbg_value_0546255b415e96c1: SB,
|
|
2114
2114
|
__wbg_instanceof_Map_53af74335dec57f4: DB,
|
|
2115
2115
|
__wbg_instanceof_Uint8Array_9b9075935c74707c: iB,
|
|
2116
2116
|
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: EB,
|
|
2117
|
-
__wbg_new_dca287b076112a51:
|
|
2118
|
-
__wbg_set_1eb0999cf5d27fc8:
|
|
2117
|
+
__wbg_new_dca287b076112a51: JB,
|
|
2118
|
+
__wbg_set_1eb0999cf5d27fc8: HB,
|
|
2119
2119
|
__wbg_get_9b94d73e6221f75c: BB,
|
|
2120
|
-
__wbg_new_3eb36ae241fe6f44:
|
|
2121
|
-
__wbg_set_f43e577aea94465b:
|
|
2122
|
-
__wbg_length_35a7bace40f36eac:
|
|
2120
|
+
__wbg_new_3eb36ae241fe6f44: YB,
|
|
2121
|
+
__wbg_set_f43e577aea94465b: qB,
|
|
2122
|
+
__wbg_length_35a7bace40f36eac: kB,
|
|
2123
2123
|
__wbg_isArray_d314bb98fcf08331: wB,
|
|
2124
2124
|
__wbg_isSafeInteger_bfbc7332a9768d2a: oB,
|
|
2125
2125
|
__wbg_new_361308b2356cecd0: KB,
|
|
2126
2126
|
__wbg_entries_58c7934c745daac7: AB,
|
|
2127
2127
|
__wbg_iterator_6ff6560ca1568e55: GB,
|
|
2128
2128
|
__wbg_get_b3ed3ad4be2bc8ac: QB,
|
|
2129
|
-
__wbg_call_389efe28435a9388:
|
|
2129
|
+
__wbg_call_389efe28435a9388: XI,
|
|
2130
2130
|
__wbg_next_418f80d8f5303233: FB,
|
|
2131
|
-
__wbg_next_3482f54c49e8af19:
|
|
2131
|
+
__wbg_next_3482f54c49e8af19: yB,
|
|
2132
2132
|
__wbg_codePointAt_bf59dbf74d8db275: _I,
|
|
2133
2133
|
__wbg_fromCodePoint_22365db7b7d6ac39: IB,
|
|
2134
2134
|
__wbg_length_68dc7c5cf1b6d349: MB,
|
|
2135
|
-
__wbg___wbindgen_in_47fa6863be6f2f25:
|
|
2136
|
-
__wbg___wbindgen_throw_be289d5034ed271b:
|
|
2137
|
-
__wbg___wbindgen_is_null_ac34f5003991759a:
|
|
2138
|
-
__wbg___wbindgen_jsval_eq_11888390b0186270:
|
|
2135
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: lI,
|
|
2136
|
+
__wbg___wbindgen_throw_be289d5034ed271b: vI,
|
|
2137
|
+
__wbg___wbindgen_is_null_ac34f5003991759a: eI,
|
|
2138
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: nI,
|
|
2139
2139
|
__wbg_Number_04624de7d0e8332d: TI,
|
|
2140
2140
|
__wbg_Error_8c4e43fe74559d73: ZI,
|
|
2141
|
-
__wbg___wbindgen_is_bigint_31b12575b56f32fc:
|
|
2141
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: tI,
|
|
2142
2142
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: zI,
|
|
2143
|
-
__wbg___wbindgen_is_string_cd444516edc5b180:
|
|
2144
|
-
__wbg___wbindgen_number_get_8ff4255516ccad3e:
|
|
2143
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: mI,
|
|
2144
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: bI,
|
|
2145
2145
|
__wbg___wbindgen_string_get_72fb696202c56729: uI,
|
|
2146
|
-
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:
|
|
2146
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: dI,
|
|
2147
2147
|
__wbg___wbindgen_is_function_0095a73b8b156f76: PI,
|
|
2148
2148
|
__wbg___wbindgen_is_undefined_9e4d92534c42d778: fI,
|
|
2149
2149
|
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: rI,
|
|
2150
|
-
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:
|
|
2151
|
-
__wbg___wbindgen_debug_string_0bc8482c6e3508ae:
|
|
2152
|
-
__wbindgen_cast_0000000000000001:
|
|
2153
|
-
__wbindgen_cast_0000000000000002:
|
|
2150
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: jI,
|
|
2151
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: WI,
|
|
2152
|
+
__wbindgen_cast_0000000000000001: LB,
|
|
2153
|
+
__wbindgen_cast_0000000000000002: sB,
|
|
2154
2154
|
__wbindgen_cast_0000000000000003: pB,
|
|
2155
|
-
__wbindgen_cast_0000000000000004:
|
|
2156
|
-
} },
|
|
2155
|
+
__wbindgen_cast_0000000000000004: xB
|
|
2156
|
+
} }, NI), lB = i.memory, tB = i.__wbg_wasmassignmentarray_free, PB = i.__wbg_wasmcasebuilder_free, eB = i.__wbg_wasmdeletebuilder_free, zB = i.__wbg_wasmexpr_free, mB = i.__wbg_wasmexprarray_free, fB = i.__wbg_wasminsertbuilder_free, nB = i.__wbg_wasmmergebuilder_free, rB = i.__wbg_wasmselectbuilder_free, bB = i.__wbg_wasmsetopbuilder_free, uB = i.__wbg_wasmupdatebuilder_free, vB = i.__wbg_wasmwindowdefbuilder_free, XB = i.annotate_types, _B = i.annotate_types_value, $B = i.ast_add_where, AQ = i.ast_get_aggregate_functions, gQ = i.ast_get_column_names, IQ = i.ast_get_functions, BQ = i.ast_get_literals, QQ = i.ast_get_subqueries, CQ = i.ast_get_table_names, EQ = i.ast_get_window_functions, DQ = i.ast_node_count, iQ = i.ast_qualify_columns, wQ = i.ast_remove_where, oQ = i.ast_rename_columns, GQ = i.ast_rename_tables, NQ = i.ast_set_distinct, kQ = i.ast_set_limit, MQ = i.diff_sql, KQ = i.format_sql, YQ = i.format_sql_value, aQ = i.format_sql_with_options, JQ = i.format_sql_with_options_value, UQ = i.generate, yQ = i.generate_value, FQ = i.get_dialects, RQ = i.get_dialects_value, HQ = i.lineage_sql, cQ = i.lineage_sql_with_schema, qQ = i.parse, hQ = i.parse_value, SQ = i.plan, LQ = i.source_tables, sQ = i.tokenize, pQ = i.tokenize_value, xQ = i.transpile, OQ = i.transpile_value, ZQ = i.validate, TQ = i.validate_with_options, VQ = i.validate_with_schema, jQ = i.version, dQ = i.wasm_alias, WQ = i.wasm_and, lQ = i.wasm_boolean, tQ = i.wasm_case_of, PQ = i.wasm_cast, eQ = i.wasm_col, zQ = i.wasm_count_distinct, mQ = i.wasm_extract, fQ = i.wasm_func, nQ = i.wasm_lit, rQ = i.wasm_not, bQ = i.wasm_null, uQ = i.wasm_or, vQ = i.wasm_sql_expr, XQ = i.wasm_star, _Q = i.wasm_subquery, $Q = i.wasm_table, AC = i.wasmassignmentarray_len, gC = i.wasmassignmentarray_new, IC = i.wasmassignmentarray_push, BC = i.wasmcasebuilder_build_expr, QC = i.wasmcasebuilder_else_, CC = i.wasmcasebuilder_new, EC = i.wasmcasebuilder_to_sql, DC = i.wasmcasebuilder_when, iC = i.wasmdeletebuilder_build, wC = i.wasmdeletebuilder_new, oC = i.wasmdeletebuilder_to_sql, GC = i.wasmdeletebuilder_where_expr, NC = i.wasmexpr_add, kC = i.wasmexpr_alias, MC = i.wasmexpr_and, KC = i.wasmexpr_asc, YC = i.wasmexpr_between, aC = i.wasmexpr_cast, JC = i.wasmexpr_desc, UC = i.wasmexpr_div, yC = i.wasmexpr_eq, FC = i.wasmexpr_gt, RC = i.wasmexpr_gte, HC = i.wasmexpr_ilike, cC = i.wasmexpr_in_list, qC = i.wasmexpr_is_not_null, hC = i.wasmexpr_is_null, SC = i.wasmexpr_like, LC = i.wasmexpr_lt, sC = i.wasmexpr_lte, pC = i.wasmexpr_mul, xC = i.wasmexpr_neq, OC = i.wasmexpr_not, ZC = i.wasmexpr_not_in, TC = i.wasmexpr_or, VC = i.wasmexpr_rlike, jC = i.wasmexpr_sub, dC = i.wasmexpr_to_json, WC = i.wasmexpr_to_sql, lC = i.wasmexpr_xor, tC = i.wasmexprarray_len, PC = i.wasmexprarray_push, eC = i.wasmexprarray_push_col, zC = i.wasmexprarray_push_float, mC = i.wasmexprarray_push_int, fC = i.wasmexprarray_push_star, nC = i.wasmexprarray_push_str, rC = i.wasminsertbuilder_build, bC = i.wasminsertbuilder_columns, uC = i.wasminsertbuilder_new, vC = i.wasminsertbuilder_query, XC = i.wasminsertbuilder_to_sql, _C = i.wasminsertbuilder_values, $C = i.wasmmergebuilder_build, AE = i.wasmmergebuilder_new, gE = i.wasmmergebuilder_to_sql, IE = i.wasmmergebuilder_using, BE = i.wasmmergebuilder_when_matched_delete, QE = i.wasmmergebuilder_when_matched_update, CE = i.wasmmergebuilder_when_not_matched_insert, EE = i.wasmselectbuilder_build, DE = i.wasmselectbuilder_cross_join, iE = i.wasmselectbuilder_ctas, wE = i.wasmselectbuilder_ctas_sql, oE = i.wasmselectbuilder_distinct, GE = i.wasmselectbuilder_except_, NE = i.wasmselectbuilder_for_update, kE = i.wasmselectbuilder_from, ME = i.wasmselectbuilder_from_expr, KE = i.wasmselectbuilder_group_by_cols, YE = i.wasmselectbuilder_having, aE = i.wasmselectbuilder_hint, JE = i.wasmselectbuilder_intersect, UE = i.wasmselectbuilder_join, yE = i.wasmselectbuilder_lateral_view, FE = i.wasmselectbuilder_left_join, RE = i.wasmselectbuilder_limit, HE = i.wasmselectbuilder_new, cE = i.wasmselectbuilder_offset, qE = i.wasmselectbuilder_order_by_exprs, hE = i.wasmselectbuilder_qualify, SE = i.wasmselectbuilder_right_join, LE = i.wasmselectbuilder_select_col, sE = i.wasmselectbuilder_select_expr, pE = i.wasmselectbuilder_select_exprs, xE = i.wasmselectbuilder_select_star, OE = i.wasmselectbuilder_sort_by_exprs, ZE = i.wasmselectbuilder_to_sql, TE = i.wasmselectbuilder_union, VE = i.wasmselectbuilder_union_all, jE = i.wasmselectbuilder_where_expr, dE = i.wasmselectbuilder_where_sql, WE = i.wasmselectbuilder_window, lE = i.wasmsetopbuilder_build, tE = i.wasmsetopbuilder_limit, PE = i.wasmsetopbuilder_offset, eE = i.wasmsetopbuilder_order_by_exprs, zE = i.wasmsetopbuilder_to_sql, mE = i.wasmupdatebuilder_build, fE = i.wasmupdatebuilder_from, nE = i.wasmupdatebuilder_new, rE = i.wasmupdatebuilder_set, bE = i.wasmupdatebuilder_to_sql, uE = i.wasmupdatebuilder_where_expr, vE = i.wasmwindowdefbuilder_new, XE = i.wasmwindowdefbuilder_order_by, _E = i.wasmwindowdefbuilder_partition_by, $E = i.wasmexprarray_new, AD = i.__wbindgen_export, gD = i.__wbindgen_export2, ID = i.__wbindgen_export3, BD = i.__wbindgen_export4, QD = i.__wbindgen_add_to_stack_pointer, CD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2157
2157
|
__proto__: null,
|
|
2158
|
-
__wbg_wasmassignmentarray_free:
|
|
2158
|
+
__wbg_wasmassignmentarray_free: tB,
|
|
2159
2159
|
__wbg_wasmcasebuilder_free: PB,
|
|
2160
|
-
__wbg_wasmdeletebuilder_free:
|
|
2160
|
+
__wbg_wasmdeletebuilder_free: eB,
|
|
2161
2161
|
__wbg_wasmexpr_free: zB,
|
|
2162
|
-
__wbg_wasmexprarray_free:
|
|
2162
|
+
__wbg_wasmexprarray_free: mB,
|
|
2163
2163
|
__wbg_wasminsertbuilder_free: fB,
|
|
2164
|
-
__wbg_wasmmergebuilder_free:
|
|
2164
|
+
__wbg_wasmmergebuilder_free: nB,
|
|
2165
2165
|
__wbg_wasmselectbuilder_free: rB,
|
|
2166
|
-
__wbg_wasmsetopbuilder_free:
|
|
2166
|
+
__wbg_wasmsetopbuilder_free: bB,
|
|
2167
2167
|
__wbg_wasmupdatebuilder_free: uB,
|
|
2168
|
-
__wbg_wasmwindowdefbuilder_free:
|
|
2168
|
+
__wbg_wasmwindowdefbuilder_free: vB,
|
|
2169
2169
|
__wbindgen_add_to_stack_pointer: QD,
|
|
2170
2170
|
__wbindgen_export: AD,
|
|
2171
2171
|
__wbindgen_export2: gD,
|
|
2172
2172
|
__wbindgen_export3: ID,
|
|
2173
2173
|
__wbindgen_export4: BD,
|
|
2174
|
-
annotate_types:
|
|
2174
|
+
annotate_types: XB,
|
|
2175
2175
|
annotate_types_value: _B,
|
|
2176
2176
|
ast_add_where: $B,
|
|
2177
2177
|
ast_get_aggregate_functions: AQ,
|
|
@@ -2186,47 +2186,47 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2186
2186
|
ast_remove_where: wQ,
|
|
2187
2187
|
ast_rename_columns: oQ,
|
|
2188
2188
|
ast_rename_tables: GQ,
|
|
2189
|
-
ast_set_distinct:
|
|
2190
|
-
ast_set_limit:
|
|
2189
|
+
ast_set_distinct: NQ,
|
|
2190
|
+
ast_set_limit: kQ,
|
|
2191
2191
|
diff_sql: MQ,
|
|
2192
2192
|
format_sql: KQ,
|
|
2193
|
-
format_sql_value:
|
|
2194
|
-
format_sql_with_options:
|
|
2195
|
-
format_sql_with_options_value:
|
|
2196
|
-
generate:
|
|
2197
|
-
generate_value:
|
|
2193
|
+
format_sql_value: YQ,
|
|
2194
|
+
format_sql_with_options: aQ,
|
|
2195
|
+
format_sql_with_options_value: JQ,
|
|
2196
|
+
generate: UQ,
|
|
2197
|
+
generate_value: yQ,
|
|
2198
2198
|
get_dialects: FQ,
|
|
2199
|
-
get_dialects_value:
|
|
2200
|
-
lineage_sql:
|
|
2201
|
-
lineage_sql_with_schema:
|
|
2202
|
-
memory:
|
|
2203
|
-
parse:
|
|
2199
|
+
get_dialects_value: RQ,
|
|
2200
|
+
lineage_sql: HQ,
|
|
2201
|
+
lineage_sql_with_schema: cQ,
|
|
2202
|
+
memory: lB,
|
|
2203
|
+
parse: qQ,
|
|
2204
2204
|
parse_value: hQ,
|
|
2205
|
-
plan:
|
|
2206
|
-
source_tables:
|
|
2207
|
-
tokenize:
|
|
2205
|
+
plan: SQ,
|
|
2206
|
+
source_tables: LQ,
|
|
2207
|
+
tokenize: sQ,
|
|
2208
2208
|
tokenize_value: pQ,
|
|
2209
|
-
transpile:
|
|
2210
|
-
transpile_value:
|
|
2209
|
+
transpile: xQ,
|
|
2210
|
+
transpile_value: OQ,
|
|
2211
2211
|
validate: ZQ,
|
|
2212
2212
|
validate_with_options: TQ,
|
|
2213
|
-
validate_with_schema:
|
|
2214
|
-
version:
|
|
2215
|
-
wasm_alias:
|
|
2216
|
-
wasm_and:
|
|
2217
|
-
wasm_boolean:
|
|
2218
|
-
wasm_case_of:
|
|
2213
|
+
validate_with_schema: VQ,
|
|
2214
|
+
version: jQ,
|
|
2215
|
+
wasm_alias: dQ,
|
|
2216
|
+
wasm_and: WQ,
|
|
2217
|
+
wasm_boolean: lQ,
|
|
2218
|
+
wasm_case_of: tQ,
|
|
2219
2219
|
wasm_cast: PQ,
|
|
2220
|
-
wasm_col:
|
|
2220
|
+
wasm_col: eQ,
|
|
2221
2221
|
wasm_count_distinct: zQ,
|
|
2222
|
-
wasm_extract:
|
|
2222
|
+
wasm_extract: mQ,
|
|
2223
2223
|
wasm_func: fQ,
|
|
2224
|
-
wasm_lit:
|
|
2224
|
+
wasm_lit: nQ,
|
|
2225
2225
|
wasm_not: rQ,
|
|
2226
|
-
wasm_null:
|
|
2226
|
+
wasm_null: bQ,
|
|
2227
2227
|
wasm_or: uQ,
|
|
2228
|
-
wasm_sql_expr:
|
|
2229
|
-
wasm_star:
|
|
2228
|
+
wasm_sql_expr: vQ,
|
|
2229
|
+
wasm_star: XQ,
|
|
2230
2230
|
wasm_subquery: _Q,
|
|
2231
2231
|
wasm_table: $Q,
|
|
2232
2232
|
wasmassignmentarray_len: AC,
|
|
@@ -2241,47 +2241,47 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2241
2241
|
wasmdeletebuilder_new: wC,
|
|
2242
2242
|
wasmdeletebuilder_to_sql: oC,
|
|
2243
2243
|
wasmdeletebuilder_where_expr: GC,
|
|
2244
|
-
wasmexpr_add:
|
|
2245
|
-
wasmexpr_alias:
|
|
2244
|
+
wasmexpr_add: NC,
|
|
2245
|
+
wasmexpr_alias: kC,
|
|
2246
2246
|
wasmexpr_and: MC,
|
|
2247
2247
|
wasmexpr_asc: KC,
|
|
2248
|
-
wasmexpr_between:
|
|
2249
|
-
wasmexpr_cast:
|
|
2250
|
-
wasmexpr_desc:
|
|
2251
|
-
wasmexpr_div:
|
|
2252
|
-
wasmexpr_eq:
|
|
2248
|
+
wasmexpr_between: YC,
|
|
2249
|
+
wasmexpr_cast: aC,
|
|
2250
|
+
wasmexpr_desc: JC,
|
|
2251
|
+
wasmexpr_div: UC,
|
|
2252
|
+
wasmexpr_eq: yC,
|
|
2253
2253
|
wasmexpr_gt: FC,
|
|
2254
|
-
wasmexpr_gte:
|
|
2255
|
-
wasmexpr_ilike:
|
|
2256
|
-
wasmexpr_in_list:
|
|
2257
|
-
wasmexpr_is_not_null:
|
|
2254
|
+
wasmexpr_gte: RC,
|
|
2255
|
+
wasmexpr_ilike: HC,
|
|
2256
|
+
wasmexpr_in_list: cC,
|
|
2257
|
+
wasmexpr_is_not_null: qC,
|
|
2258
2258
|
wasmexpr_is_null: hC,
|
|
2259
|
-
wasmexpr_like:
|
|
2260
|
-
wasmexpr_lt:
|
|
2261
|
-
wasmexpr_lte:
|
|
2259
|
+
wasmexpr_like: SC,
|
|
2260
|
+
wasmexpr_lt: LC,
|
|
2261
|
+
wasmexpr_lte: sC,
|
|
2262
2262
|
wasmexpr_mul: pC,
|
|
2263
|
-
wasmexpr_neq:
|
|
2264
|
-
wasmexpr_not:
|
|
2263
|
+
wasmexpr_neq: xC,
|
|
2264
|
+
wasmexpr_not: OC,
|
|
2265
2265
|
wasmexpr_not_in: ZC,
|
|
2266
2266
|
wasmexpr_or: TC,
|
|
2267
|
-
wasmexpr_rlike:
|
|
2268
|
-
wasmexpr_sub:
|
|
2269
|
-
wasmexpr_to_json:
|
|
2270
|
-
wasmexpr_to_sql:
|
|
2271
|
-
wasmexpr_xor:
|
|
2272
|
-
wasmexprarray_len:
|
|
2267
|
+
wasmexpr_rlike: VC,
|
|
2268
|
+
wasmexpr_sub: jC,
|
|
2269
|
+
wasmexpr_to_json: dC,
|
|
2270
|
+
wasmexpr_to_sql: WC,
|
|
2271
|
+
wasmexpr_xor: lC,
|
|
2272
|
+
wasmexprarray_len: tC,
|
|
2273
2273
|
wasmexprarray_new: $E,
|
|
2274
2274
|
wasmexprarray_push: PC,
|
|
2275
|
-
wasmexprarray_push_col:
|
|
2275
|
+
wasmexprarray_push_col: eC,
|
|
2276
2276
|
wasmexprarray_push_float: zC,
|
|
2277
|
-
wasmexprarray_push_int:
|
|
2277
|
+
wasmexprarray_push_int: mC,
|
|
2278
2278
|
wasmexprarray_push_star: fC,
|
|
2279
|
-
wasmexprarray_push_str:
|
|
2279
|
+
wasmexprarray_push_str: nC,
|
|
2280
2280
|
wasminsertbuilder_build: rC,
|
|
2281
|
-
wasminsertbuilder_columns:
|
|
2281
|
+
wasminsertbuilder_columns: bC,
|
|
2282
2282
|
wasminsertbuilder_new: uC,
|
|
2283
|
-
wasminsertbuilder_query:
|
|
2284
|
-
wasminsertbuilder_to_sql:
|
|
2283
|
+
wasminsertbuilder_query: vC,
|
|
2284
|
+
wasminsertbuilder_to_sql: XC,
|
|
2285
2285
|
wasminsertbuilder_values: _C,
|
|
2286
2286
|
wasmmergebuilder_build: $C,
|
|
2287
2287
|
wasmmergebuilder_new: AE,
|
|
@@ -2296,67 +2296,67 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2296
2296
|
wasmselectbuilder_ctas_sql: wE,
|
|
2297
2297
|
wasmselectbuilder_distinct: oE,
|
|
2298
2298
|
wasmselectbuilder_except_: GE,
|
|
2299
|
-
wasmselectbuilder_for_update:
|
|
2300
|
-
wasmselectbuilder_from:
|
|
2299
|
+
wasmselectbuilder_for_update: NE,
|
|
2300
|
+
wasmselectbuilder_from: kE,
|
|
2301
2301
|
wasmselectbuilder_from_expr: ME,
|
|
2302
2302
|
wasmselectbuilder_group_by_cols: KE,
|
|
2303
|
-
wasmselectbuilder_having:
|
|
2304
|
-
wasmselectbuilder_hint:
|
|
2305
|
-
wasmselectbuilder_intersect:
|
|
2306
|
-
wasmselectbuilder_join:
|
|
2307
|
-
wasmselectbuilder_lateral_view:
|
|
2303
|
+
wasmselectbuilder_having: YE,
|
|
2304
|
+
wasmselectbuilder_hint: aE,
|
|
2305
|
+
wasmselectbuilder_intersect: JE,
|
|
2306
|
+
wasmselectbuilder_join: UE,
|
|
2307
|
+
wasmselectbuilder_lateral_view: yE,
|
|
2308
2308
|
wasmselectbuilder_left_join: FE,
|
|
2309
|
-
wasmselectbuilder_limit:
|
|
2310
|
-
wasmselectbuilder_new:
|
|
2311
|
-
wasmselectbuilder_offset:
|
|
2312
|
-
wasmselectbuilder_order_by_exprs:
|
|
2309
|
+
wasmselectbuilder_limit: RE,
|
|
2310
|
+
wasmselectbuilder_new: HE,
|
|
2311
|
+
wasmselectbuilder_offset: cE,
|
|
2312
|
+
wasmselectbuilder_order_by_exprs: qE,
|
|
2313
2313
|
wasmselectbuilder_qualify: hE,
|
|
2314
|
-
wasmselectbuilder_right_join:
|
|
2315
|
-
wasmselectbuilder_select_col:
|
|
2316
|
-
wasmselectbuilder_select_expr:
|
|
2314
|
+
wasmselectbuilder_right_join: SE,
|
|
2315
|
+
wasmselectbuilder_select_col: LE,
|
|
2316
|
+
wasmselectbuilder_select_expr: sE,
|
|
2317
2317
|
wasmselectbuilder_select_exprs: pE,
|
|
2318
|
-
wasmselectbuilder_select_star:
|
|
2319
|
-
wasmselectbuilder_sort_by_exprs:
|
|
2318
|
+
wasmselectbuilder_select_star: xE,
|
|
2319
|
+
wasmselectbuilder_sort_by_exprs: OE,
|
|
2320
2320
|
wasmselectbuilder_to_sql: ZE,
|
|
2321
2321
|
wasmselectbuilder_union: TE,
|
|
2322
|
-
wasmselectbuilder_union_all:
|
|
2323
|
-
wasmselectbuilder_where_expr:
|
|
2324
|
-
wasmselectbuilder_where_sql:
|
|
2325
|
-
wasmselectbuilder_window:
|
|
2326
|
-
wasmsetopbuilder_build:
|
|
2327
|
-
wasmsetopbuilder_limit:
|
|
2322
|
+
wasmselectbuilder_union_all: VE,
|
|
2323
|
+
wasmselectbuilder_where_expr: jE,
|
|
2324
|
+
wasmselectbuilder_where_sql: dE,
|
|
2325
|
+
wasmselectbuilder_window: WE,
|
|
2326
|
+
wasmsetopbuilder_build: lE,
|
|
2327
|
+
wasmsetopbuilder_limit: tE,
|
|
2328
2328
|
wasmsetopbuilder_offset: PE,
|
|
2329
|
-
wasmsetopbuilder_order_by_exprs:
|
|
2329
|
+
wasmsetopbuilder_order_by_exprs: eE,
|
|
2330
2330
|
wasmsetopbuilder_to_sql: zE,
|
|
2331
|
-
wasmupdatebuilder_build:
|
|
2331
|
+
wasmupdatebuilder_build: mE,
|
|
2332
2332
|
wasmupdatebuilder_from: fE,
|
|
2333
|
-
wasmupdatebuilder_new:
|
|
2333
|
+
wasmupdatebuilder_new: nE,
|
|
2334
2334
|
wasmupdatebuilder_set: rE,
|
|
2335
|
-
wasmupdatebuilder_to_sql:
|
|
2335
|
+
wasmupdatebuilder_to_sql: bE,
|
|
2336
2336
|
wasmupdatebuilder_where_expr: uE,
|
|
2337
|
-
wasmwindowdefbuilder_new:
|
|
2338
|
-
wasmwindowdefbuilder_order_by:
|
|
2337
|
+
wasmwindowdefbuilder_new: vE,
|
|
2338
|
+
wasmwindowdefbuilder_order_by: XE,
|
|
2339
2339
|
wasmwindowdefbuilder_partition_by: _E
|
|
2340
2340
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2341
|
-
|
|
2341
|
+
WB(CD);
|
|
2342
2342
|
const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2343
2343
|
__proto__: null,
|
|
2344
2344
|
WasmAssignmentArray: BA,
|
|
2345
|
-
WasmCaseBuilder:
|
|
2345
|
+
WasmCaseBuilder: n,
|
|
2346
2346
|
WasmDeleteBuilder: wA,
|
|
2347
2347
|
WasmExpr: K,
|
|
2348
|
-
WasmExprArray:
|
|
2348
|
+
WasmExprArray: x,
|
|
2349
2349
|
WasmInsertBuilder: oA,
|
|
2350
2350
|
WasmMergeBuilder: GA,
|
|
2351
2351
|
WasmSelectBuilder: T,
|
|
2352
|
-
WasmSetOpBuilder:
|
|
2353
|
-
WasmUpdateBuilder:
|
|
2352
|
+
WasmSetOpBuilder: l,
|
|
2353
|
+
WasmUpdateBuilder: NA,
|
|
2354
2354
|
WasmWindowDefBuilder: QA,
|
|
2355
2355
|
annotate_types: MI,
|
|
2356
2356
|
annotate_types_value: KI,
|
|
2357
2357
|
ast_add_where: uA,
|
|
2358
|
-
ast_get_aggregate_functions:
|
|
2359
|
-
ast_get_column_names:
|
|
2358
|
+
ast_get_aggregate_functions: vA,
|
|
2359
|
+
ast_get_column_names: XA,
|
|
2360
2360
|
ast_get_functions: _A,
|
|
2361
2361
|
ast_get_literals: $A,
|
|
2362
2362
|
ast_get_subqueries: Ag,
|
|
@@ -2370,54 +2370,54 @@ const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2370
2370
|
ast_set_distinct: ig,
|
|
2371
2371
|
ast_set_limit: wg,
|
|
2372
2372
|
diff_sql: og,
|
|
2373
|
-
format_sql:
|
|
2374
|
-
format_sql_value:
|
|
2375
|
-
format_sql_with_options:
|
|
2376
|
-
format_sql_with_options_value:
|
|
2377
|
-
generate:
|
|
2373
|
+
format_sql: YI,
|
|
2374
|
+
format_sql_value: aI,
|
|
2375
|
+
format_sql_with_options: JI,
|
|
2376
|
+
format_sql_with_options_value: UI,
|
|
2377
|
+
generate: yI,
|
|
2378
2378
|
generate_value: FI,
|
|
2379
|
-
get_dialects:
|
|
2380
|
-
get_dialects_value:
|
|
2379
|
+
get_dialects: RI,
|
|
2380
|
+
get_dialects_value: HI,
|
|
2381
2381
|
lineage_sql: Gg,
|
|
2382
|
-
lineage_sql_with_schema:
|
|
2383
|
-
parse:
|
|
2384
|
-
parse_value:
|
|
2385
|
-
plan:
|
|
2382
|
+
lineage_sql_with_schema: Ng,
|
|
2383
|
+
parse: cI,
|
|
2384
|
+
parse_value: qI,
|
|
2385
|
+
plan: kg,
|
|
2386
2386
|
source_tables: Mg,
|
|
2387
2387
|
tokenize: hI,
|
|
2388
|
-
tokenize_value:
|
|
2389
|
-
transpile:
|
|
2390
|
-
transpile_value:
|
|
2388
|
+
tokenize_value: SI,
|
|
2389
|
+
transpile: LI,
|
|
2390
|
+
transpile_value: sI,
|
|
2391
2391
|
validate: pI,
|
|
2392
|
-
validate_with_options:
|
|
2392
|
+
validate_with_options: xI,
|
|
2393
2393
|
validate_with_schema: Kg,
|
|
2394
|
-
version:
|
|
2395
|
-
wasm_alias:
|
|
2396
|
-
wasm_and:
|
|
2397
|
-
wasm_boolean:
|
|
2398
|
-
wasm_case_of:
|
|
2399
|
-
wasm_cast:
|
|
2400
|
-
wasm_col:
|
|
2394
|
+
version: OI,
|
|
2395
|
+
wasm_alias: Yg,
|
|
2396
|
+
wasm_and: ag,
|
|
2397
|
+
wasm_boolean: Jg,
|
|
2398
|
+
wasm_case_of: Ug,
|
|
2399
|
+
wasm_cast: yg,
|
|
2400
|
+
wasm_col: HA,
|
|
2401
2401
|
wasm_count_distinct: Fg,
|
|
2402
|
-
wasm_extract:
|
|
2403
|
-
wasm_func:
|
|
2404
|
-
wasm_lit:
|
|
2405
|
-
wasm_not:
|
|
2402
|
+
wasm_extract: Rg,
|
|
2403
|
+
wasm_func: Hg,
|
|
2404
|
+
wasm_lit: kA,
|
|
2405
|
+
wasm_not: cg,
|
|
2406
2406
|
wasm_null: MA,
|
|
2407
|
-
wasm_or:
|
|
2407
|
+
wasm_or: qg,
|
|
2408
2408
|
wasm_sql_expr: hg,
|
|
2409
|
-
wasm_star:
|
|
2410
|
-
wasm_subquery:
|
|
2411
|
-
wasm_table:
|
|
2409
|
+
wasm_star: Sg,
|
|
2410
|
+
wasm_subquery: Lg,
|
|
2411
|
+
wasm_table: sg
|
|
2412
2412
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2413
2413
|
function p(g) {
|
|
2414
2414
|
return Object.keys(g)[0];
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function O(g) {
|
|
2417
2417
|
const A = Object.keys(g)[0];
|
|
2418
2418
|
return g[A];
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function t(g) {
|
|
2421
2421
|
if (typeof g != "object" || g === null || Array.isArray(g))
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
const A = Object.keys(g);
|
|
@@ -2425,30 +2425,30 @@ function m(g) {
|
|
|
2425
2425
|
const B = g[A[0]];
|
|
2426
2426
|
return B === null || typeof B == "object" && !Array.isArray(B);
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function d(g, A) {
|
|
2429
2429
|
return { [g]: A };
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2432
|
-
const A =
|
|
2431
|
+
function xg(g) {
|
|
2432
|
+
const A = O(g);
|
|
2433
2433
|
if (A && typeof A == "object" && "inferred_type" in A) {
|
|
2434
2434
|
const B = A.inferred_type;
|
|
2435
2435
|
if (B != null)
|
|
2436
2436
|
return B;
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function a(g) {
|
|
2440
2440
|
return (A) => g in A;
|
|
2441
2441
|
}
|
|
2442
|
-
const
|
|
2443
|
-
function
|
|
2442
|
+
const Og = a("select"), ED = a("insert"), DD = a("update"), iD = a("delete"), wD = a("union"), oD = a("intersect"), GD = a("except"), ND = a("subquery"), kD = a("identifier"), Zg = a("column"), MD = a("table"), KD = a("star"), Tg = a("literal"), YD = a("boolean"), aD = a("null"), JD = a("and"), UD = a("or"), yD = a("not"), FD = a("eq"), RD = a("neq"), HD = a("lt"), cD = a("lte"), qD = a("gt"), hD = a("gte"), SD = a("like"), LD = a("i_like"), sD = a("add"), pD = a("sub"), xD = a("mul"), OD = a("div"), ZD = a("mod"), TD = a("concat"), VD = a("in"), jD = a("between"), dD = a("is_null"), WD = a("exists"), Vg = a("function"), lD = a("aggregate_function"), tD = a("window_function"), PD = a("count"), eD = a("sum"), zD = a("avg"), mD = a("min"), fD = a("max"), nD = a("coalesce"), rD = a("null_if"), bD = a("cast"), uD = a("try_cast"), vD = a("safe_cast"), XD = a("case"), _D = a("from"), $D = a("join"), Ai = a("where"), gi = a("group_by"), Ii = a("having"), Bi = a("order_by"), Qi = a("limit"), Ci = a("offset"), Ei = a("with"), Di = a("cte"), ii = a("alias"), wi = a("paren"), oi = a("ordered"), Gi = a("create_table"), Ni = a("drop_table"), ki = a("alter_table"), Mi = a("create_index"), Ki = a("drop_index"), Yi = a("create_view"), ai = a("drop_view");
|
|
2443
|
+
function Ji(g) {
|
|
2444
2444
|
const A = p(g);
|
|
2445
2445
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Ui(g) {
|
|
2448
2448
|
const A = p(g);
|
|
2449
2449
|
return A === "union" || A === "intersect" || A === "except";
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function yi(g) {
|
|
2452
2452
|
const A = p(g);
|
|
2453
2453
|
return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
|
|
2454
2454
|
}
|
|
@@ -2456,11 +2456,11 @@ function Fi(g) {
|
|
|
2456
2456
|
const A = p(g);
|
|
2457
2457
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Ri(g) {
|
|
2460
2460
|
const A = p(g);
|
|
2461
2461
|
return A === "and" || A === "or" || A === "not";
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function Hi(g) {
|
|
2464
2464
|
const A = p(g);
|
|
2465
2465
|
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";
|
|
2466
2466
|
}
|
|
@@ -2471,20 +2471,20 @@ function r(g) {
|
|
|
2471
2471
|
const A = JSON.parse(g);
|
|
2472
2472
|
return A.success ? JSON.parse(A.ast) : null;
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function jg(g, A, B) {
|
|
2475
2475
|
if (g == null) return g;
|
|
2476
2476
|
if (Array.isArray(g))
|
|
2477
|
-
return g.length > 0 &&
|
|
2477
|
+
return g.length > 0 && t(g[0]) ? g.map(
|
|
2478
2478
|
(Q, C) => iA(Q, A, B, null, C)
|
|
2479
|
-
) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((C, E) =>
|
|
2480
|
-
if (
|
|
2479
|
+
) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((C, E) => t(C) ? iA(C, A, B, null, E) : C) : Q) : g;
|
|
2480
|
+
if (t(g))
|
|
2481
2481
|
return iA(g, A, B, null, null);
|
|
2482
2482
|
if (typeof g == "object") {
|
|
2483
2483
|
const C = { ...g };
|
|
2484
2484
|
let E = !1;
|
|
2485
2485
|
for (const [D, o] of Object.entries(C)) {
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2486
|
+
const k = jg(o, A, B);
|
|
2487
|
+
k !== o && (C[D] = k, E = !0);
|
|
2488
2488
|
}
|
|
2489
2489
|
return E ? C : g;
|
|
2490
2490
|
}
|
|
@@ -2493,61 +2493,61 @@ function xg(g, A, B) {
|
|
|
2493
2493
|
function iA(g, A, B, Q, C) {
|
|
2494
2494
|
let E = g;
|
|
2495
2495
|
if (A.enter) {
|
|
2496
|
-
const
|
|
2497
|
-
if (
|
|
2496
|
+
const U = A.enter(E, B, Q, C);
|
|
2497
|
+
if (U === null)
|
|
2498
2498
|
return E;
|
|
2499
|
-
|
|
2499
|
+
U !== void 0 && (E = U);
|
|
2500
2500
|
}
|
|
2501
2501
|
const D = p(E), o = A[D];
|
|
2502
2502
|
if (o) {
|
|
2503
|
-
const
|
|
2504
|
-
if (
|
|
2503
|
+
const U = o(E, B, Q, C);
|
|
2504
|
+
if (U === null)
|
|
2505
2505
|
return E;
|
|
2506
|
-
|
|
2506
|
+
U !== void 0 && (E = U);
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2509
|
-
let
|
|
2508
|
+
const k = p(E), M = O(E);
|
|
2509
|
+
let Y;
|
|
2510
2510
|
if (M == null)
|
|
2511
|
-
|
|
2511
|
+
Y = d(k, M);
|
|
2512
2512
|
else {
|
|
2513
|
-
const
|
|
2514
|
-
for (const [h,
|
|
2515
|
-
const Z =
|
|
2516
|
-
Z !==
|
|
2513
|
+
const U = { ...M };
|
|
2514
|
+
for (const [h, s] of Object.entries(U)) {
|
|
2515
|
+
const Z = jg(s, A, E);
|
|
2516
|
+
Z !== s && (U[h] = Z);
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2518
|
+
Y = d(k, U);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (A.leave) {
|
|
2521
|
-
const
|
|
2522
|
-
if (
|
|
2523
|
-
return
|
|
2521
|
+
const U = A.leave(Y, B, Q, C);
|
|
2522
|
+
if (U != null)
|
|
2523
|
+
return U;
|
|
2524
2524
|
}
|
|
2525
|
-
return
|
|
2525
|
+
return Y;
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2527
|
+
function YA(g, A) {
|
|
2528
2528
|
return iA(g, A, null, null, null);
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2531
|
-
return
|
|
2530
|
+
function dg(g, A, B) {
|
|
2531
|
+
return YA(g, {
|
|
2532
2532
|
enter: (Q, C) => {
|
|
2533
2533
|
if (A(Q, C))
|
|
2534
2534
|
return typeof B == "function" ? B(Q) : B;
|
|
2535
2535
|
}
|
|
2536
2536
|
});
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
return
|
|
2538
|
+
function ci(g, A, B) {
|
|
2539
|
+
return dg(
|
|
2540
2540
|
g,
|
|
2541
2541
|
(Q) => p(Q) === A,
|
|
2542
2542
|
typeof B == "function" ? (Q) => B(Q) : B
|
|
2543
2543
|
);
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function Wg(g, A) {
|
|
2546
2546
|
return r(
|
|
2547
2547
|
Eg(P(g), JSON.stringify(A))
|
|
2548
2548
|
) ?? g;
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2550
|
+
function qi(g, A) {
|
|
2551
2551
|
return r(
|
|
2552
2552
|
Dg(P(g), JSON.stringify(A))
|
|
2553
2553
|
) ?? g;
|
|
@@ -2557,19 +2557,19 @@ function hi(g, A) {
|
|
|
2557
2557
|
Qg(P(g), A)
|
|
2558
2558
|
) ?? g;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function Si(g, A, B = "and") {
|
|
2561
2561
|
return r(
|
|
2562
2562
|
uA(P(g), P(A), B === "or")
|
|
2563
2563
|
) ?? g;
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function Li(g) {
|
|
2566
2566
|
return r(Cg(P(g))) ?? g;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function si(g, ...A) {
|
|
2569
2569
|
if (p(g) !== "select")
|
|
2570
2570
|
return g;
|
|
2571
|
-
const B =
|
|
2572
|
-
return
|
|
2571
|
+
const B = O(g);
|
|
2572
|
+
return d("select", {
|
|
2573
2573
|
...B,
|
|
2574
2574
|
expressions: [...B.expressions, ...A]
|
|
2575
2575
|
});
|
|
@@ -2577,28 +2577,28 @@ function Li(g, ...A) {
|
|
|
2577
2577
|
function pi(g, A) {
|
|
2578
2578
|
if (p(g) !== "select")
|
|
2579
2579
|
return g;
|
|
2580
|
-
const B =
|
|
2581
|
-
return
|
|
2580
|
+
const B = O(g);
|
|
2581
|
+
return d("select", {
|
|
2582
2582
|
...B,
|
|
2583
2583
|
expressions: B.expressions.filter((Q) => !A(Q))
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function xi(g, A) {
|
|
2587
2587
|
if (typeof A == "number")
|
|
2588
2588
|
return r(wg(P(g), A)) ?? g;
|
|
2589
2589
|
if (p(g) !== "select")
|
|
2590
2590
|
return g;
|
|
2591
|
-
const B =
|
|
2592
|
-
return
|
|
2591
|
+
const B = O(g);
|
|
2592
|
+
return d("select", {
|
|
2593
2593
|
...B,
|
|
2594
2594
|
limit: { this: A }
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function Oi(g, A) {
|
|
2598
2598
|
if (p(g) !== "select")
|
|
2599
2599
|
return g;
|
|
2600
|
-
const B =
|
|
2601
|
-
return
|
|
2600
|
+
const B = O(g), Q = typeof A == "number" ? d("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2601
|
+
return d("select", {
|
|
2602
2602
|
...B,
|
|
2603
2603
|
offset: { this: Q }
|
|
2604
2604
|
});
|
|
@@ -2606,8 +2606,8 @@ function Vi(g, A) {
|
|
|
2606
2606
|
function Zi(g) {
|
|
2607
2607
|
if (p(g) !== "select")
|
|
2608
2608
|
return g;
|
|
2609
|
-
const A =
|
|
2610
|
-
return
|
|
2609
|
+
const A = O(g);
|
|
2610
|
+
return d("select", {
|
|
2611
2611
|
...A,
|
|
2612
2612
|
limit: null,
|
|
2613
2613
|
offset: null
|
|
@@ -2616,115 +2616,115 @@ function Zi(g) {
|
|
|
2616
2616
|
function Ti(g, A = !0) {
|
|
2617
2617
|
return r(ig(P(g), A)) ?? g;
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return
|
|
2619
|
+
function Vi(g) {
|
|
2620
|
+
return YA(g, {});
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function lg(g, A, B) {
|
|
2623
2623
|
if (g == null) return g;
|
|
2624
2624
|
if (Array.isArray(g))
|
|
2625
|
-
return g.length > 0 &&
|
|
2626
|
-
if (
|
|
2627
|
-
return
|
|
2625
|
+
return g.length > 0 && t(g[0]) ? g.filter((Q) => !A(Q, B)).map((Q) => RA(Q, A)) : g;
|
|
2626
|
+
if (t(g))
|
|
2627
|
+
return RA(g, A);
|
|
2628
2628
|
if (typeof g == "object") {
|
|
2629
2629
|
const C = { ...g };
|
|
2630
2630
|
let E = !1;
|
|
2631
2631
|
for (const [D, o] of Object.entries(C)) {
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const k = lg(o, A, B);
|
|
2633
|
+
k !== o && (C[D] = k, E = !0);
|
|
2634
2634
|
}
|
|
2635
2635
|
return E ? C : g;
|
|
2636
2636
|
}
|
|
2637
2637
|
return g;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const B = p(g), C = { ...
|
|
2639
|
+
function RA(g, A) {
|
|
2640
|
+
const B = p(g), C = { ...O(g) };
|
|
2641
2641
|
for (const [E, D] of Object.entries(C)) {
|
|
2642
|
-
const o =
|
|
2642
|
+
const o = lg(D, A, g);
|
|
2643
2643
|
o !== D && (C[E] = o);
|
|
2644
2644
|
}
|
|
2645
|
-
return
|
|
2645
|
+
return d(B, C);
|
|
2646
2646
|
}
|
|
2647
2647
|
function z(g) {
|
|
2648
2648
|
return JSON.stringify(g);
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function tg(g, A, B) {
|
|
2651
2651
|
if (g != null) {
|
|
2652
2652
|
if (Array.isArray(g)) {
|
|
2653
|
-
if (g.length > 0 &&
|
|
2653
|
+
if (g.length > 0 && t(g[0]))
|
|
2654
2654
|
B.push({ key: A, value: g });
|
|
2655
2655
|
else if (g.length > 0 && Array.isArray(g[0])) {
|
|
2656
2656
|
for (const Q of g)
|
|
2657
2657
|
if (Array.isArray(Q))
|
|
2658
2658
|
for (const C of Q)
|
|
2659
|
-
|
|
2659
|
+
t(C) && B.push({ key: A, value: C });
|
|
2660
2660
|
}
|
|
2661
|
-
} else if (
|
|
2661
|
+
} else if (t(g))
|
|
2662
2662
|
B.push({ key: A, value: g });
|
|
2663
2663
|
else if (typeof g == "object")
|
|
2664
2664
|
for (const [, Q] of Object.entries(
|
|
2665
2665
|
g
|
|
2666
2666
|
))
|
|
2667
|
-
|
|
2667
|
+
tg(Q, A, B);
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
2670
|
function Pg(g) {
|
|
2671
|
-
const A = [], B =
|
|
2671
|
+
const A = [], B = O(g);
|
|
2672
2672
|
if (!B || typeof B != "object") return A;
|
|
2673
2673
|
for (const [Q, C] of Object.entries(B))
|
|
2674
|
-
|
|
2674
|
+
tg(C, Q, A);
|
|
2675
2675
|
return A;
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function j(g, A, B = null, Q = null, C = null) {
|
|
2678
2678
|
A.enter && A.enter(g, B, Q, C);
|
|
2679
2679
|
const E = p(g), D = A[E];
|
|
2680
2680
|
D && D(g, B, Q, C);
|
|
2681
2681
|
const o = Pg(g);
|
|
2682
|
-
for (const
|
|
2683
|
-
Array.isArray(
|
|
2684
|
-
|
|
2685
|
-
}) :
|
|
2682
|
+
for (const k of o)
|
|
2683
|
+
Array.isArray(k.value) ? k.value.forEach((M, Y) => {
|
|
2684
|
+
j(M, A, g, k.key, Y);
|
|
2685
|
+
}) : j(k.value, A, g, k.key, null);
|
|
2686
2686
|
A.leave && A.leave(g, B, Q, C);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function aA(g, A) {
|
|
2689
2689
|
const B = [];
|
|
2690
|
-
return
|
|
2690
|
+
return j(g, {
|
|
2691
2691
|
enter: (Q, C) => {
|
|
2692
2692
|
A(Q, C) && B.push(Q);
|
|
2693
2693
|
}
|
|
2694
2694
|
}), B;
|
|
2695
2695
|
}
|
|
2696
2696
|
function CA(g, A) {
|
|
2697
|
-
return
|
|
2697
|
+
return aA(g, (B) => p(B) === A);
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function eg(g, A) {
|
|
2700
2700
|
let B, Q = !1;
|
|
2701
|
-
return
|
|
2701
|
+
return j(g, {
|
|
2702
2702
|
enter: (C, E) => {
|
|
2703
2703
|
!Q && A(C, E) && (B = C, Q = !0);
|
|
2704
2704
|
}
|
|
2705
2705
|
}), B;
|
|
2706
2706
|
}
|
|
2707
|
-
function xi(g, A) {
|
|
2708
|
-
return bg(g, A) !== void 0;
|
|
2709
|
-
}
|
|
2710
2707
|
function ji(g, A) {
|
|
2708
|
+
return eg(g, A) !== void 0;
|
|
2709
|
+
}
|
|
2710
|
+
function di(g, A) {
|
|
2711
2711
|
let B = !0;
|
|
2712
|
-
return
|
|
2712
|
+
return j(g, {
|
|
2713
2713
|
enter: (Q, C) => {
|
|
2714
2714
|
A(Q, C) || (B = !1);
|
|
2715
2715
|
}
|
|
2716
2716
|
}), B;
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2719
|
-
return
|
|
2718
|
+
function Wi(g, A) {
|
|
2719
|
+
return aA(g, A).length;
|
|
2720
2720
|
}
|
|
2721
2721
|
function zg(g) {
|
|
2722
2722
|
return CA(g, "column");
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function li(g) {
|
|
2725
2725
|
return CA(g, "table");
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function ti(g) {
|
|
2728
2728
|
return CA(g, "identifier");
|
|
2729
2729
|
}
|
|
2730
2730
|
function Pi(g) {
|
|
@@ -2732,10 +2732,10 @@ function Pi(g) {
|
|
|
2732
2732
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2733
2733
|
}
|
|
2734
2734
|
function IA(g) {
|
|
2735
|
-
const A = JSON.parse(
|
|
2735
|
+
const A = JSON.parse(vA(z(g)));
|
|
2736
2736
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function mg(g) {
|
|
2739
2739
|
const A = JSON.parse(Ig(z(g)));
|
|
2740
2740
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2741
2741
|
}
|
|
@@ -2743,30 +2743,30 @@ function fg(g) {
|
|
|
2743
2743
|
const A = JSON.parse(Ag(z(g)));
|
|
2744
2744
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function ei(g) {
|
|
2747
2747
|
const A = JSON.parse($A(z(g)));
|
|
2748
2748
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2749
2749
|
}
|
|
2750
2750
|
function zi(g) {
|
|
2751
|
-
const A = JSON.parse(
|
|
2751
|
+
const A = JSON.parse(XA(z(g)));
|
|
2752
2752
|
return A.success ? A.result : [];
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function mi(g) {
|
|
2755
2755
|
const A = JSON.parse(gg(z(g)));
|
|
2756
2756
|
return A.success ? A.result : [];
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function ng(g) {
|
|
2759
2759
|
return IA(g).length > 0;
|
|
2760
2760
|
}
|
|
2761
2761
|
function fi(g) {
|
|
2762
|
-
return
|
|
2762
|
+
return mg(g).length > 0;
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function ni(g) {
|
|
2765
2765
|
return fg(g).length > 0;
|
|
2766
2766
|
}
|
|
2767
2767
|
function ri(g) {
|
|
2768
2768
|
let A = 0, B = 0;
|
|
2769
|
-
return
|
|
2769
|
+
return j(g, {
|
|
2770
2770
|
enter: () => {
|
|
2771
2771
|
B++, A = Math.max(A, B);
|
|
2772
2772
|
},
|
|
@@ -2775,22 +2775,22 @@ function ri(g) {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
}), A;
|
|
2777
2777
|
}
|
|
2778
|
-
function
|
|
2778
|
+
function bi(g) {
|
|
2779
2779
|
const A = JSON.parse(Bg(z(g)));
|
|
2780
2780
|
return A.success ? A.result : 0;
|
|
2781
2781
|
}
|
|
2782
2782
|
function ui(g, A) {
|
|
2783
2783
|
let B = null;
|
|
2784
|
-
return
|
|
2784
|
+
return j(g, {
|
|
2785
2785
|
enter: (Q, C) => {
|
|
2786
2786
|
Q === A && (B = C);
|
|
2787
2787
|
}
|
|
2788
2788
|
}), B;
|
|
2789
2789
|
}
|
|
2790
|
-
function
|
|
2790
|
+
function vi(g, A, B) {
|
|
2791
2791
|
const Q = [];
|
|
2792
2792
|
let C = null;
|
|
2793
|
-
return
|
|
2793
|
+
return j(g, {
|
|
2794
2794
|
enter: (E) => {
|
|
2795
2795
|
if (C === null) {
|
|
2796
2796
|
if (E === A)
|
|
@@ -2809,9 +2809,9 @@ function Xi(g, A, B) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
}), C;
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function Xi(g, A) {
|
|
2813
2813
|
let B = 0, Q = 0;
|
|
2814
|
-
return
|
|
2814
|
+
return j(g, {
|
|
2815
2815
|
enter: (C) => {
|
|
2816
2816
|
Q++, C === A && (B = Q);
|
|
2817
2817
|
},
|
|
@@ -2822,140 +2822,140 @@ function vi(g, A) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2824
2824
|
__proto__: null,
|
|
2825
|
-
addSelectColumns:
|
|
2826
|
-
addWhere:
|
|
2827
|
-
clone:
|
|
2828
|
-
countNodes:
|
|
2829
|
-
every:
|
|
2830
|
-
findAll:
|
|
2831
|
-
findAncestor:
|
|
2825
|
+
addSelectColumns: si,
|
|
2826
|
+
addWhere: Si,
|
|
2827
|
+
clone: Vi,
|
|
2828
|
+
countNodes: Wi,
|
|
2829
|
+
every: di,
|
|
2830
|
+
findAll: aA,
|
|
2831
|
+
findAncestor: vi,
|
|
2832
2832
|
findByType: CA,
|
|
2833
|
-
findFirst:
|
|
2833
|
+
findFirst: eg,
|
|
2834
2834
|
getAggregateFunctions: IA,
|
|
2835
2835
|
getChildren: Pg,
|
|
2836
2836
|
getColumnNames: zi,
|
|
2837
2837
|
getColumns: zg,
|
|
2838
2838
|
getDepth: ri,
|
|
2839
|
-
getExprData:
|
|
2839
|
+
getExprData: O,
|
|
2840
2840
|
getExprType: p,
|
|
2841
2841
|
getFunctions: Pi,
|
|
2842
|
-
getIdentifiers:
|
|
2843
|
-
getInferredType:
|
|
2844
|
-
getLiterals:
|
|
2845
|
-
getNodeDepth:
|
|
2842
|
+
getIdentifiers: ti,
|
|
2843
|
+
getInferredType: xg,
|
|
2844
|
+
getLiterals: ei,
|
|
2845
|
+
getNodeDepth: Xi,
|
|
2846
2846
|
getParent: ui,
|
|
2847
2847
|
getSubqueries: fg,
|
|
2848
|
-
getTableNames:
|
|
2849
|
-
getTables:
|
|
2850
|
-
getWindowFunctions:
|
|
2851
|
-
hasAggregates:
|
|
2852
|
-
hasSubqueries:
|
|
2848
|
+
getTableNames: mi,
|
|
2849
|
+
getTables: li,
|
|
2850
|
+
getWindowFunctions: mg,
|
|
2851
|
+
hasAggregates: ng,
|
|
2852
|
+
hasSubqueries: ni,
|
|
2853
2853
|
hasWindowFunctions: fi,
|
|
2854
|
-
isAdd:
|
|
2855
|
-
isAggregateFunction:
|
|
2854
|
+
isAdd: sD,
|
|
2855
|
+
isAggregateFunction: lD,
|
|
2856
2856
|
isAlias: ii,
|
|
2857
|
-
isAlterTable:
|
|
2858
|
-
isAnd:
|
|
2857
|
+
isAlterTable: ki,
|
|
2858
|
+
isAnd: JD,
|
|
2859
2859
|
isArithmetic: Fi,
|
|
2860
2860
|
isAvg: zD,
|
|
2861
|
-
isBetween:
|
|
2862
|
-
isBoolean:
|
|
2863
|
-
isCase:
|
|
2864
|
-
isCast:
|
|
2865
|
-
isCoalesce:
|
|
2861
|
+
isBetween: jD,
|
|
2862
|
+
isBoolean: YD,
|
|
2863
|
+
isCase: XD,
|
|
2864
|
+
isCast: bD,
|
|
2865
|
+
isCoalesce: nD,
|
|
2866
2866
|
isColumn: Zg,
|
|
2867
|
-
isComparison:
|
|
2867
|
+
isComparison: yi,
|
|
2868
2868
|
isConcat: TD,
|
|
2869
2869
|
isCount: PD,
|
|
2870
2870
|
isCreateIndex: Mi,
|
|
2871
2871
|
isCreateTable: Gi,
|
|
2872
|
-
isCreateView:
|
|
2872
|
+
isCreateView: Yi,
|
|
2873
2873
|
isCte: Di,
|
|
2874
|
-
isDDL:
|
|
2874
|
+
isDDL: Hi,
|
|
2875
2875
|
isDelete: iD,
|
|
2876
|
-
isDiv:
|
|
2876
|
+
isDiv: OD,
|
|
2877
2877
|
isDropIndex: Ki,
|
|
2878
|
-
isDropTable:
|
|
2879
|
-
isDropView:
|
|
2878
|
+
isDropTable: Ni,
|
|
2879
|
+
isDropView: ai,
|
|
2880
2880
|
isEq: FD,
|
|
2881
2881
|
isExcept: GD,
|
|
2882
|
-
isExists:
|
|
2883
|
-
isExpressionValue:
|
|
2882
|
+
isExists: WD,
|
|
2883
|
+
isExpressionValue: t,
|
|
2884
2884
|
isFrom: _D,
|
|
2885
|
-
isFunction:
|
|
2885
|
+
isFunction: Vg,
|
|
2886
2886
|
isGroupBy: gi,
|
|
2887
|
-
isGt:
|
|
2887
|
+
isGt: qD,
|
|
2888
2888
|
isGte: hD,
|
|
2889
2889
|
isHaving: Ii,
|
|
2890
|
-
isILike:
|
|
2891
|
-
isIdentifier:
|
|
2892
|
-
isIn:
|
|
2890
|
+
isILike: LD,
|
|
2891
|
+
isIdentifier: kD,
|
|
2892
|
+
isIn: VD,
|
|
2893
2893
|
isInsert: ED,
|
|
2894
2894
|
isIntersect: oD,
|
|
2895
|
-
isIsNull:
|
|
2895
|
+
isIsNull: dD,
|
|
2896
2896
|
isJoin: $D,
|
|
2897
|
-
isLike:
|
|
2897
|
+
isLike: SD,
|
|
2898
2898
|
isLimit: Qi,
|
|
2899
2899
|
isLiteral: Tg,
|
|
2900
|
-
isLogical:
|
|
2901
|
-
isLt:
|
|
2902
|
-
isLte:
|
|
2900
|
+
isLogical: Ri,
|
|
2901
|
+
isLt: HD,
|
|
2902
|
+
isLte: cD,
|
|
2903
2903
|
isMax: fD,
|
|
2904
|
-
isMin:
|
|
2904
|
+
isMin: mD,
|
|
2905
2905
|
isMod: ZD,
|
|
2906
|
-
isMul:
|
|
2907
|
-
isNeq:
|
|
2908
|
-
isNot:
|
|
2906
|
+
isMul: xD,
|
|
2907
|
+
isNeq: RD,
|
|
2908
|
+
isNot: yD,
|
|
2909
2909
|
isNullIf: rD,
|
|
2910
|
-
isNullLiteral:
|
|
2910
|
+
isNullLiteral: aD,
|
|
2911
2911
|
isOffset: Ci,
|
|
2912
|
-
isOr:
|
|
2912
|
+
isOr: UD,
|
|
2913
2913
|
isOrderBy: Bi,
|
|
2914
2914
|
isOrdered: oi,
|
|
2915
2915
|
isParen: wi,
|
|
2916
|
-
isQuery:
|
|
2917
|
-
isSafeCast:
|
|
2918
|
-
isSelect:
|
|
2919
|
-
isSetOperation:
|
|
2916
|
+
isQuery: Ji,
|
|
2917
|
+
isSafeCast: vD,
|
|
2918
|
+
isSelect: Og,
|
|
2919
|
+
isSetOperation: Ui,
|
|
2920
2920
|
isStar: KD,
|
|
2921
2921
|
isSub: pD,
|
|
2922
|
-
isSubquery:
|
|
2923
|
-
isSum:
|
|
2922
|
+
isSubquery: ND,
|
|
2923
|
+
isSum: eD,
|
|
2924
2924
|
isTable: MD,
|
|
2925
2925
|
isTryCast: uD,
|
|
2926
2926
|
isUnion: wD,
|
|
2927
2927
|
isUpdate: DD,
|
|
2928
2928
|
isWhere: Ai,
|
|
2929
|
-
isWindowFunction:
|
|
2929
|
+
isWindowFunction: tD,
|
|
2930
2930
|
isWith: Ei,
|
|
2931
|
-
makeExpr:
|
|
2932
|
-
nodeCount:
|
|
2931
|
+
makeExpr: d,
|
|
2932
|
+
nodeCount: bi,
|
|
2933
2933
|
qualifyColumns: hi,
|
|
2934
|
-
remove:
|
|
2934
|
+
remove: RA,
|
|
2935
2935
|
removeLimitOffset: Zi,
|
|
2936
2936
|
removeSelectColumns: pi,
|
|
2937
|
-
removeWhere:
|
|
2938
|
-
renameColumns:
|
|
2939
|
-
renameTables:
|
|
2940
|
-
replaceByType:
|
|
2941
|
-
replaceNodes:
|
|
2937
|
+
removeWhere: Li,
|
|
2938
|
+
renameColumns: Wg,
|
|
2939
|
+
renameTables: qi,
|
|
2940
|
+
replaceByType: ci,
|
|
2941
|
+
replaceNodes: dg,
|
|
2942
2942
|
setDistinct: Ti,
|
|
2943
|
-
setLimit:
|
|
2944
|
-
setOffset:
|
|
2945
|
-
some:
|
|
2946
|
-
transform:
|
|
2947
|
-
walk:
|
|
2943
|
+
setLimit: xi,
|
|
2944
|
+
setOffset: Oi,
|
|
2945
|
+
some: ji,
|
|
2946
|
+
transform: YA,
|
|
2947
|
+
walk: j
|
|
2948
2948
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2949
|
-
function
|
|
2950
|
-
return g instanceof
|
|
2949
|
+
function R(g) {
|
|
2950
|
+
return g instanceof y ? g._w : typeof g == "string" ? HA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : MA();
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2953
|
-
const A = new
|
|
2952
|
+
function V(g) {
|
|
2953
|
+
const A = new x();
|
|
2954
2954
|
for (const B of g)
|
|
2955
|
-
B instanceof
|
|
2955
|
+
B instanceof y ? A.push(B._w) : typeof B == "string" ? A.push_col(B) : typeof B == "number" ? Number.isInteger(B) ? A.push_int(B) : A.push_float(B) : typeof B == "boolean" || B === null ? A.push(kA(B)) : A.push(MA());
|
|
2956
2956
|
return A;
|
|
2957
2957
|
}
|
|
2958
|
-
class
|
|
2958
|
+
class y {
|
|
2959
2959
|
/** @internal WASM handle — do not use directly */
|
|
2960
2960
|
_w;
|
|
2961
2961
|
/** @internal */
|
|
@@ -2964,90 +2964,90 @@ class R {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
// -- Comparison --
|
|
2966
2966
|
eq(A) {
|
|
2967
|
-
return new
|
|
2967
|
+
return new y(this._w.eq(R(A)));
|
|
2968
2968
|
}
|
|
2969
2969
|
neq(A) {
|
|
2970
|
-
return new
|
|
2970
|
+
return new y(this._w.neq(R(A)));
|
|
2971
2971
|
}
|
|
2972
2972
|
lt(A) {
|
|
2973
|
-
return new
|
|
2973
|
+
return new y(this._w.lt(R(A)));
|
|
2974
2974
|
}
|
|
2975
2975
|
lte(A) {
|
|
2976
|
-
return new
|
|
2976
|
+
return new y(this._w.lte(R(A)));
|
|
2977
2977
|
}
|
|
2978
2978
|
gt(A) {
|
|
2979
|
-
return new
|
|
2979
|
+
return new y(this._w.gt(R(A)));
|
|
2980
2980
|
}
|
|
2981
2981
|
gte(A) {
|
|
2982
|
-
return new
|
|
2982
|
+
return new y(this._w.gte(R(A)));
|
|
2983
2983
|
}
|
|
2984
2984
|
// -- Logical --
|
|
2985
2985
|
and(A) {
|
|
2986
|
-
return new
|
|
2986
|
+
return new y(this._w.and(R(A)));
|
|
2987
2987
|
}
|
|
2988
2988
|
or(A) {
|
|
2989
|
-
return new
|
|
2989
|
+
return new y(this._w.or(R(A)));
|
|
2990
2990
|
}
|
|
2991
2991
|
not() {
|
|
2992
|
-
return new
|
|
2992
|
+
return new y(this._w.not());
|
|
2993
2993
|
}
|
|
2994
2994
|
xor(A) {
|
|
2995
|
-
return new
|
|
2995
|
+
return new y(this._w.xor(R(A)));
|
|
2996
2996
|
}
|
|
2997
2997
|
// -- Arithmetic --
|
|
2998
2998
|
add(A) {
|
|
2999
|
-
return new
|
|
2999
|
+
return new y(this._w.add(R(A)));
|
|
3000
3000
|
}
|
|
3001
3001
|
sub(A) {
|
|
3002
|
-
return new
|
|
3002
|
+
return new y(this._w.sub(R(A)));
|
|
3003
3003
|
}
|
|
3004
3004
|
mul(A) {
|
|
3005
|
-
return new
|
|
3005
|
+
return new y(this._w.mul(R(A)));
|
|
3006
3006
|
}
|
|
3007
3007
|
div(A) {
|
|
3008
|
-
return new
|
|
3008
|
+
return new y(this._w.div(R(A)));
|
|
3009
3009
|
}
|
|
3010
3010
|
// -- Pattern matching --
|
|
3011
3011
|
like(A) {
|
|
3012
|
-
return new
|
|
3012
|
+
return new y(this._w.like(R(A)));
|
|
3013
3013
|
}
|
|
3014
3014
|
ilike(A) {
|
|
3015
|
-
return new
|
|
3015
|
+
return new y(this._w.ilike(R(A)));
|
|
3016
3016
|
}
|
|
3017
3017
|
rlike(A) {
|
|
3018
|
-
return new
|
|
3018
|
+
return new y(this._w.rlike(R(A)));
|
|
3019
3019
|
}
|
|
3020
3020
|
// -- Predicates --
|
|
3021
3021
|
isNull() {
|
|
3022
|
-
return new
|
|
3022
|
+
return new y(this._w.is_null());
|
|
3023
3023
|
}
|
|
3024
3024
|
isNotNull() {
|
|
3025
|
-
return new
|
|
3025
|
+
return new y(this._w.is_not_null());
|
|
3026
3026
|
}
|
|
3027
3027
|
between(A, B) {
|
|
3028
|
-
return new
|
|
3028
|
+
return new y(this._w.between(R(A), R(B)));
|
|
3029
3029
|
}
|
|
3030
3030
|
inList(...A) {
|
|
3031
|
-
return new
|
|
3031
|
+
return new y(this._w.in_list(V(A)));
|
|
3032
3032
|
}
|
|
3033
3033
|
notIn(...A) {
|
|
3034
|
-
return new
|
|
3034
|
+
return new y(this._w.not_in(V(A)));
|
|
3035
3035
|
}
|
|
3036
3036
|
// -- Transform --
|
|
3037
3037
|
alias(A) {
|
|
3038
|
-
return new
|
|
3038
|
+
return new y(this._w.alias(A));
|
|
3039
3039
|
}
|
|
3040
3040
|
as(A) {
|
|
3041
3041
|
return this.alias(A);
|
|
3042
3042
|
}
|
|
3043
3043
|
cast(A) {
|
|
3044
|
-
return new
|
|
3044
|
+
return new y(this._w.cast(A));
|
|
3045
3045
|
}
|
|
3046
3046
|
asc() {
|
|
3047
|
-
return new
|
|
3047
|
+
return new y(this._w.asc());
|
|
3048
3048
|
}
|
|
3049
3049
|
desc() {
|
|
3050
|
-
return new
|
|
3050
|
+
return new y(this._w.desc());
|
|
3051
3051
|
}
|
|
3052
3052
|
// -- Output --
|
|
3053
3053
|
/** Generate SQL string (generic dialect). */
|
|
@@ -3071,11 +3071,11 @@ class $i {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
/** Set the PARTITION BY expressions. */
|
|
3073
3073
|
partitionBy(...A) {
|
|
3074
|
-
return this._w.partition_by(
|
|
3074
|
+
return this._w.partition_by(V(A)), this;
|
|
3075
3075
|
}
|
|
3076
3076
|
/** Set the ORDER BY expressions. */
|
|
3077
3077
|
orderBy(...A) {
|
|
3078
|
-
return this._w.order_by(
|
|
3078
|
+
return this._w.order_by(V(A)), this;
|
|
3079
3079
|
}
|
|
3080
3080
|
/** Free the underlying WASM handle. */
|
|
3081
3081
|
free() {
|
|
@@ -3083,175 +3083,175 @@ class $i {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
function Aw(g) {
|
|
3086
|
-
return new
|
|
3086
|
+
return new y(HA(g));
|
|
3087
3087
|
}
|
|
3088
3088
|
function gw(g) {
|
|
3089
|
-
return new
|
|
3089
|
+
return new y(kA(g));
|
|
3090
3090
|
}
|
|
3091
3091
|
function rg() {
|
|
3092
|
-
return new
|
|
3092
|
+
return new y(Sg());
|
|
3093
3093
|
}
|
|
3094
3094
|
function Iw() {
|
|
3095
|
-
return new
|
|
3095
|
+
return new y(MA());
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3098
|
-
return new
|
|
3097
|
+
function qA(g) {
|
|
3098
|
+
return new y(Jg(g));
|
|
3099
3099
|
}
|
|
3100
3100
|
function Bw(g) {
|
|
3101
|
-
return new
|
|
3101
|
+
return new y(sg(g));
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3104
|
-
return new
|
|
3103
|
+
function bg(g) {
|
|
3104
|
+
return new y(hg(g));
|
|
3105
3105
|
}
|
|
3106
3106
|
function Qw(g) {
|
|
3107
|
-
return
|
|
3107
|
+
return bg(g);
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3110
|
-
return new
|
|
3109
|
+
function q(g, ...A) {
|
|
3110
|
+
return new y(Hg(g, V(A)));
|
|
3111
3111
|
}
|
|
3112
3112
|
function Cw(g) {
|
|
3113
|
-
return new
|
|
3113
|
+
return new y(cg(R(g)));
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ew(g, A) {
|
|
3116
|
-
return new
|
|
3116
|
+
return new y(yg(R(g), A));
|
|
3117
3117
|
}
|
|
3118
3118
|
function Dw(g, A) {
|
|
3119
|
-
return new
|
|
3119
|
+
return new y(Yg(R(g), A));
|
|
3120
3120
|
}
|
|
3121
3121
|
function iw(g, A) {
|
|
3122
|
-
return new
|
|
3122
|
+
return new y(Lg(g._w, A));
|
|
3123
3123
|
}
|
|
3124
3124
|
function ww(...g) {
|
|
3125
|
-
if (g.length === 0) return
|
|
3125
|
+
if (g.length === 0) return qA(!0);
|
|
3126
3126
|
if (g.length === 1)
|
|
3127
|
-
return g[0] instanceof
|
|
3128
|
-
let A =
|
|
3127
|
+
return g[0] instanceof y ? g[0] : new y(R(g[0]));
|
|
3128
|
+
let A = R(g[0]);
|
|
3129
3129
|
for (let B = 1; B < g.length; B++)
|
|
3130
|
-
A =
|
|
3131
|
-
return new
|
|
3130
|
+
A = ag(A, R(g[B]));
|
|
3131
|
+
return new y(A);
|
|
3132
3132
|
}
|
|
3133
3133
|
function ow(...g) {
|
|
3134
|
-
if (g.length === 0) return
|
|
3134
|
+
if (g.length === 0) return qA(!1);
|
|
3135
3135
|
if (g.length === 1)
|
|
3136
|
-
return g[0] instanceof
|
|
3137
|
-
let A =
|
|
3136
|
+
return g[0] instanceof y ? g[0] : new y(R(g[0]));
|
|
3137
|
+
let A = R(g[0]);
|
|
3138
3138
|
for (let B = 1; B < g.length; B++)
|
|
3139
|
-
A =
|
|
3140
|
-
return new
|
|
3139
|
+
A = qg(A, R(g[B]));
|
|
3140
|
+
return new y(A);
|
|
3141
3141
|
}
|
|
3142
3142
|
function Gw(g) {
|
|
3143
|
-
return g !== void 0 ?
|
|
3144
|
-
}
|
|
3145
|
-
function kw(g) {
|
|
3146
|
-
return new R(Fg(H(g)));
|
|
3143
|
+
return g !== void 0 ? q("COUNT", g) : q("COUNT", rg());
|
|
3147
3144
|
}
|
|
3148
3145
|
function Nw(g) {
|
|
3149
|
-
return
|
|
3146
|
+
return new y(Fg(R(g)));
|
|
3147
|
+
}
|
|
3148
|
+
function kw(g) {
|
|
3149
|
+
return q("SUM", g);
|
|
3150
3150
|
}
|
|
3151
3151
|
function Mw(g) {
|
|
3152
|
-
return
|
|
3152
|
+
return q("AVG", g);
|
|
3153
3153
|
}
|
|
3154
3154
|
function Kw(g) {
|
|
3155
|
-
return
|
|
3156
|
-
}
|
|
3157
|
-
function Jw(g) {
|
|
3158
|
-
return S("MAX", g);
|
|
3155
|
+
return q("MIN", g);
|
|
3159
3156
|
}
|
|
3160
3157
|
function Yw(g) {
|
|
3161
|
-
return
|
|
3158
|
+
return q("MAX", g);
|
|
3162
3159
|
}
|
|
3163
3160
|
function aw(g) {
|
|
3164
|
-
return
|
|
3161
|
+
return q("UPPER", g);
|
|
3165
3162
|
}
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3163
|
+
function Jw(g) {
|
|
3164
|
+
return q("LOWER", g);
|
|
3168
3165
|
}
|
|
3169
|
-
function
|
|
3170
|
-
return
|
|
3166
|
+
function Uw(g) {
|
|
3167
|
+
return q("LENGTH", g);
|
|
3168
|
+
}
|
|
3169
|
+
function yw(g) {
|
|
3170
|
+
return q("TRIM", g);
|
|
3171
3171
|
}
|
|
3172
3172
|
function Fw(g) {
|
|
3173
|
-
return
|
|
3173
|
+
return q("LTRIM", g);
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3176
|
-
return
|
|
3175
|
+
function Rw(g) {
|
|
3176
|
+
return q("RTRIM", g);
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3179
|
-
return
|
|
3178
|
+
function Hw(g) {
|
|
3179
|
+
return q("REVERSE", g);
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3182
|
-
return
|
|
3181
|
+
function cw(g) {
|
|
3182
|
+
return q("INITCAP", g);
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3185
|
-
return B !== void 0 ?
|
|
3184
|
+
function qw(g, A, B) {
|
|
3185
|
+
return B !== void 0 ? q("SUBSTRING", g, A, B) : q("SUBSTRING", g, A);
|
|
3186
3186
|
}
|
|
3187
3187
|
function hw(g, A, B) {
|
|
3188
|
-
return
|
|
3188
|
+
return q("REPLACE", g, A, B);
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3190
|
+
function Sw(g, ...A) {
|
|
3191
|
+
return q("CONCAT_WS", g, ...A);
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3194
|
-
return
|
|
3193
|
+
function Lw(...g) {
|
|
3194
|
+
return q("COALESCE", ...g);
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3196
|
+
function sw(g, A) {
|
|
3197
|
+
return q("NULLIF", g, A);
|
|
3198
3198
|
}
|
|
3199
3199
|
function pw(g, A) {
|
|
3200
|
-
return
|
|
3200
|
+
return q("IFNULL", g, A);
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3203
|
-
return
|
|
3202
|
+
function xw(g) {
|
|
3203
|
+
return q("ABS", g);
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3206
|
-
return A !== void 0 ?
|
|
3205
|
+
function Ow(g, A) {
|
|
3206
|
+
return A !== void 0 ? q("ROUND", g, A) : q("ROUND", g);
|
|
3207
3207
|
}
|
|
3208
3208
|
function Zw(g) {
|
|
3209
|
-
return
|
|
3209
|
+
return q("FLOOR", g);
|
|
3210
3210
|
}
|
|
3211
3211
|
function Tw(g) {
|
|
3212
|
-
return
|
|
3212
|
+
return q("CEIL", g);
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3215
|
-
return
|
|
3216
|
-
}
|
|
3217
|
-
function xw(g) {
|
|
3218
|
-
return S("SQRT", g);
|
|
3214
|
+
function Vw(g, A) {
|
|
3215
|
+
return q("POWER", g, A);
|
|
3219
3216
|
}
|
|
3220
3217
|
function jw(g) {
|
|
3221
|
-
return
|
|
3222
|
-
}
|
|
3223
|
-
function tw(g) {
|
|
3224
|
-
return S("EXP", g);
|
|
3218
|
+
return q("SQRT", g);
|
|
3225
3219
|
}
|
|
3226
3220
|
function dw(g) {
|
|
3227
|
-
return
|
|
3221
|
+
return q("LN", g);
|
|
3222
|
+
}
|
|
3223
|
+
function Ww(g) {
|
|
3224
|
+
return q("EXP", g);
|
|
3228
3225
|
}
|
|
3229
|
-
function
|
|
3230
|
-
return
|
|
3226
|
+
function lw(g) {
|
|
3227
|
+
return q("SIGN", g);
|
|
3228
|
+
}
|
|
3229
|
+
function tw(...g) {
|
|
3230
|
+
return q("GREATEST", ...g);
|
|
3231
3231
|
}
|
|
3232
3232
|
function Pw(...g) {
|
|
3233
|
-
return
|
|
3233
|
+
return q("LEAST", ...g);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3236
|
-
return
|
|
3235
|
+
function ew() {
|
|
3236
|
+
return q("CURRENT_DATE");
|
|
3237
3237
|
}
|
|
3238
3238
|
function zw() {
|
|
3239
|
-
return
|
|
3239
|
+
return q("CURRENT_TIME");
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3242
|
-
return
|
|
3241
|
+
function mw() {
|
|
3242
|
+
return q("CURRENT_TIMESTAMP");
|
|
3243
3243
|
}
|
|
3244
3244
|
function fw(g, A) {
|
|
3245
|
-
return new
|
|
3245
|
+
return new y(Rg(g, R(A)));
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return
|
|
3247
|
+
function nw() {
|
|
3248
|
+
return q("ROW_NUMBER");
|
|
3249
3249
|
}
|
|
3250
3250
|
function rw() {
|
|
3251
|
-
return
|
|
3251
|
+
return q("RANK");
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3254
|
-
return
|
|
3253
|
+
function bw() {
|
|
3254
|
+
return q("DENSE_RANK");
|
|
3255
3255
|
}
|
|
3256
3256
|
class ug {
|
|
3257
3257
|
/** @internal */
|
|
@@ -3262,7 +3262,7 @@ class ug {
|
|
|
3262
3262
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3263
3263
|
select(...A) {
|
|
3264
3264
|
for (const B of A)
|
|
3265
|
-
B === "*" ? this._w.select_star() : B instanceof
|
|
3265
|
+
B === "*" ? this._w.select_star() : B instanceof y ? this._w.select_expr(B._w) : typeof B == "string" ? this._w.select_col(B) : this._w.select_expr(R(B));
|
|
3266
3266
|
return this;
|
|
3267
3267
|
}
|
|
3268
3268
|
/** Set the FROM clause. */
|
|
@@ -3271,15 +3271,15 @@ class ug {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
/** Add an INNER JOIN. */
|
|
3273
3273
|
join(A, B) {
|
|
3274
|
-
return this._w.join(A,
|
|
3274
|
+
return this._w.join(A, R(B)), this;
|
|
3275
3275
|
}
|
|
3276
3276
|
/** Add a LEFT JOIN. */
|
|
3277
3277
|
leftJoin(A, B) {
|
|
3278
|
-
return this._w.left_join(A,
|
|
3278
|
+
return this._w.left_join(A, R(B)), this;
|
|
3279
3279
|
}
|
|
3280
3280
|
/** Add a RIGHT JOIN. */
|
|
3281
3281
|
rightJoin(A, B) {
|
|
3282
|
-
return this._w.right_join(A,
|
|
3282
|
+
return this._w.right_join(A, R(B)), this;
|
|
3283
3283
|
}
|
|
3284
3284
|
/** Add a CROSS JOIN. */
|
|
3285
3285
|
crossJoin(A) {
|
|
@@ -3287,19 +3287,19 @@ class ug {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3289
3289
|
where(A) {
|
|
3290
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof
|
|
3290
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof y ? this._w.where_expr(A._w) : this._w.where_expr(R(A)), this;
|
|
3291
3291
|
}
|
|
3292
3292
|
/** Set the GROUP BY clause. */
|
|
3293
3293
|
groupBy(...A) {
|
|
3294
|
-
return this._w.group_by_cols(
|
|
3294
|
+
return this._w.group_by_cols(V(A)), this;
|
|
3295
3295
|
}
|
|
3296
3296
|
/** Set the HAVING clause. */
|
|
3297
3297
|
having(A) {
|
|
3298
|
-
return this._w.having(
|
|
3298
|
+
return this._w.having(R(A)), this;
|
|
3299
3299
|
}
|
|
3300
3300
|
/** Set the ORDER BY clause. */
|
|
3301
3301
|
orderBy(...A) {
|
|
3302
|
-
return this._w.order_by_exprs(
|
|
3302
|
+
return this._w.order_by_exprs(V(A)), this;
|
|
3303
3303
|
}
|
|
3304
3304
|
/** Set the LIMIT. */
|
|
3305
3305
|
limit(A) {
|
|
@@ -3315,11 +3315,11 @@ class ug {
|
|
|
3315
3315
|
}
|
|
3316
3316
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3317
3317
|
qualify(A) {
|
|
3318
|
-
return this._w.qualify(
|
|
3318
|
+
return this._w.qualify(R(A)), this;
|
|
3319
3319
|
}
|
|
3320
3320
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3321
3321
|
sortBy(...A) {
|
|
3322
|
-
return this._w.sort_by_exprs(
|
|
3322
|
+
return this._w.sort_by_exprs(V(A)), this;
|
|
3323
3323
|
}
|
|
3324
3324
|
/** Add a named WINDOW clause definition. */
|
|
3325
3325
|
window(A, B) {
|
|
@@ -3384,7 +3384,7 @@ function uw(...g) {
|
|
|
3384
3384
|
const A = new ug();
|
|
3385
3385
|
return g.length > 0 && A.select(...g), A;
|
|
3386
3386
|
}
|
|
3387
|
-
class
|
|
3387
|
+
class vg {
|
|
3388
3388
|
/** @internal */
|
|
3389
3389
|
_w;
|
|
3390
3390
|
constructor(A) {
|
|
@@ -3396,7 +3396,7 @@ class Xg {
|
|
|
3396
3396
|
}
|
|
3397
3397
|
/** Append a row of values. Call multiple times for multiple rows. */
|
|
3398
3398
|
values(...A) {
|
|
3399
|
-
return this._w.values(
|
|
3399
|
+
return this._w.values(V(A)), this;
|
|
3400
3400
|
}
|
|
3401
3401
|
/** Set the source query for INSERT ... SELECT. */
|
|
3402
3402
|
query(A) {
|
|
@@ -3415,25 +3415,25 @@ class Xg {
|
|
|
3415
3415
|
this._w.free();
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3419
|
-
return new
|
|
3418
|
+
function Xg(g) {
|
|
3419
|
+
return new vg(g);
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3422
|
-
return
|
|
3421
|
+
function vw(g) {
|
|
3422
|
+
return Xg(g);
|
|
3423
3423
|
}
|
|
3424
3424
|
class _g {
|
|
3425
3425
|
/** @internal */
|
|
3426
3426
|
_w;
|
|
3427
3427
|
constructor(A) {
|
|
3428
|
-
this._w = new
|
|
3428
|
+
this._w = new NA(A);
|
|
3429
3429
|
}
|
|
3430
3430
|
/** Add a SET column = value assignment. */
|
|
3431
3431
|
set(A, B) {
|
|
3432
|
-
return this._w.set(A,
|
|
3432
|
+
return this._w.set(A, R(B)), this;
|
|
3433
3433
|
}
|
|
3434
3434
|
/** Set the WHERE clause. */
|
|
3435
3435
|
where(A) {
|
|
3436
|
-
return this._w.where_expr(
|
|
3436
|
+
return this._w.where_expr(R(A)), this;
|
|
3437
3437
|
}
|
|
3438
3438
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3439
3439
|
from(A) {
|
|
@@ -3452,7 +3452,7 @@ class _g {
|
|
|
3452
3452
|
this._w.free();
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function Xw(g) {
|
|
3456
3456
|
return new _g(g);
|
|
3457
3457
|
}
|
|
3458
3458
|
class $g {
|
|
@@ -3463,7 +3463,7 @@ class $g {
|
|
|
3463
3463
|
}
|
|
3464
3464
|
/** Set the WHERE clause. */
|
|
3465
3465
|
where(A) {
|
|
3466
|
-
return this._w.where_expr(
|
|
3466
|
+
return this._w.where_expr(R(A)), this;
|
|
3467
3467
|
}
|
|
3468
3468
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3469
3469
|
toSql(A = "generic") {
|
|
@@ -3492,13 +3492,13 @@ class gI {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
/** Set the source table and ON condition. */
|
|
3494
3494
|
using(A, B) {
|
|
3495
|
-
return this._w.using(A,
|
|
3495
|
+
return this._w.using(A, R(B)), this;
|
|
3496
3496
|
}
|
|
3497
3497
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3498
3498
|
whenMatchedUpdate(A) {
|
|
3499
3499
|
const B = new BA();
|
|
3500
3500
|
for (const [Q, C] of Object.entries(A))
|
|
3501
|
-
B.push(Q,
|
|
3501
|
+
B.push(Q, R(C));
|
|
3502
3502
|
return this._w.when_matched_update(B), this;
|
|
3503
3503
|
}
|
|
3504
3504
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3507,7 +3507,7 @@ class gI {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
/** Add a WHEN NOT MATCHED THEN INSERT clause. */
|
|
3509
3509
|
whenNotMatchedInsert(A, B) {
|
|
3510
|
-
return this._w.when_not_matched_insert(A,
|
|
3510
|
+
return this._w.when_not_matched_insert(A, V(B)), this;
|
|
3511
3511
|
}
|
|
3512
3512
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3513
3513
|
toSql(A = "generic") {
|
|
@@ -3534,15 +3534,15 @@ class hA {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
/** Add a WHEN condition THEN result branch. */
|
|
3536
3536
|
when(A, B) {
|
|
3537
|
-
return this._w.when(
|
|
3537
|
+
return this._w.when(R(A), R(B)), this;
|
|
3538
3538
|
}
|
|
3539
3539
|
/** Set the ELSE result. */
|
|
3540
3540
|
else_(A) {
|
|
3541
|
-
return this._w.else_(
|
|
3541
|
+
return this._w.else_(R(A)), this;
|
|
3542
3542
|
}
|
|
3543
3543
|
/** Build the CASE expression as an Expr. */
|
|
3544
3544
|
build() {
|
|
3545
|
-
return new
|
|
3545
|
+
return new y(this._w.build_expr());
|
|
3546
3546
|
}
|
|
3547
3547
|
/** Generate SQL string (generic dialect). */
|
|
3548
3548
|
toSql() {
|
|
@@ -3550,10 +3550,10 @@ class hA {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
3552
|
function Ao() {
|
|
3553
|
-
return new hA(new
|
|
3553
|
+
return new hA(new n());
|
|
3554
3554
|
}
|
|
3555
3555
|
function go(g) {
|
|
3556
|
-
return new hA(
|
|
3556
|
+
return new hA(Ug(R(g)));
|
|
3557
3557
|
}
|
|
3558
3558
|
class _ {
|
|
3559
3559
|
/** @internal */
|
|
@@ -3564,7 +3564,7 @@ class _ {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
/** Set the ORDER BY clause. */
|
|
3566
3566
|
orderBy(...A) {
|
|
3567
|
-
return this._w.order_by_exprs(
|
|
3567
|
+
return this._w.order_by_exprs(V(A)), this;
|
|
3568
3568
|
}
|
|
3569
3569
|
/** Set the LIMIT. */
|
|
3570
3570
|
limit(A) {
|
|
@@ -3606,7 +3606,7 @@ function Eo(g, A) {
|
|
|
3606
3606
|
function Do(g, A) {
|
|
3607
3607
|
const B = [], Q = CA(g, "star");
|
|
3608
3608
|
if (Q.length > 0) {
|
|
3609
|
-
const D =
|
|
3609
|
+
const D = O(Q[0])?.span;
|
|
3610
3610
|
B.push({
|
|
3611
3611
|
message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
|
|
3612
3612
|
severity: "warning",
|
|
@@ -3617,17 +3617,17 @@ function Do(g, A) {
|
|
|
3617
3617
|
end: D?.end
|
|
3618
3618
|
});
|
|
3619
3619
|
}
|
|
3620
|
-
const C =
|
|
3621
|
-
if (
|
|
3620
|
+
const C = O(g);
|
|
3621
|
+
if (ng(g) && !C.group_by) {
|
|
3622
3622
|
const E = IA(g), D = C.expressions || [];
|
|
3623
|
-
if (D.some((
|
|
3624
|
-
const M = p(
|
|
3625
|
-
return M === "column" || M === "identifier" ? IA(
|
|
3623
|
+
if (D.some((k) => {
|
|
3624
|
+
const M = p(k);
|
|
3625
|
+
return M === "column" || M === "identifier" ? IA(k).length === 0 : !1;
|
|
3626
3626
|
}) && E.length > 0) {
|
|
3627
|
-
const
|
|
3628
|
-
const
|
|
3629
|
-
return
|
|
3630
|
-
}), M =
|
|
3627
|
+
const k = D.find((Y) => {
|
|
3628
|
+
const U = p(Y);
|
|
3629
|
+
return U === "column" || U === "identifier" ? IA(Y).length === 0 : !1;
|
|
3630
|
+
}), M = k ? O(k)?.span : void 0;
|
|
3631
3631
|
B.push({
|
|
3632
3632
|
message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
|
|
3633
3633
|
severity: "warning",
|
|
@@ -3644,7 +3644,7 @@ function Do(g, A) {
|
|
|
3644
3644
|
severity: "warning",
|
|
3645
3645
|
code: "W003"
|
|
3646
3646
|
}), C.limit && !C.order_by) {
|
|
3647
|
-
const E = C.limit, D = E ?
|
|
3647
|
+
const E = C.limit, D = E ? O(E)?.span : void 0;
|
|
3648
3648
|
B.push({
|
|
3649
3649
|
message: "LIMIT without ORDER BY produces non-deterministic results",
|
|
3650
3650
|
severity: "warning",
|
|
@@ -3691,29 +3691,29 @@ function wo(g, A, B = "generic", Q = {}) {
|
|
|
3691
3691
|
const oo = {
|
|
3692
3692
|
Error: "error",
|
|
3693
3693
|
Warning: "warning"
|
|
3694
|
-
},
|
|
3695
|
-
function
|
|
3694
|
+
}, X = pg;
|
|
3695
|
+
function bA(g) {
|
|
3696
3696
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3697
3697
|
}
|
|
3698
3698
|
function Go(g, A = "generic", B = {}) {
|
|
3699
|
-
const Q = B.strictSyntax ?
|
|
3699
|
+
const Q = B.strictSyntax ? X.validate_with_options(
|
|
3700
3700
|
g,
|
|
3701
3701
|
A,
|
|
3702
3702
|
JSON.stringify({ strictSyntax: !0 })
|
|
3703
|
-
) :
|
|
3703
|
+
) : X.validate(g, A), C = JSON.parse(Q);
|
|
3704
3704
|
if (!C.valid || !B.semantic)
|
|
3705
3705
|
return C;
|
|
3706
|
-
const E = typeof
|
|
3707
|
-
|
|
3708
|
-
) :
|
|
3709
|
-
|
|
3706
|
+
const E = typeof X.parse_value == "function" ? bA(
|
|
3707
|
+
X.parse_value(g, A)
|
|
3708
|
+
) : bA(
|
|
3709
|
+
X.parse(g, A)
|
|
3710
3710
|
);
|
|
3711
3711
|
if (!E.success || !E.ast)
|
|
3712
3712
|
return C;
|
|
3713
3713
|
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, o = [...C.errors];
|
|
3714
3714
|
for (const M of D) {
|
|
3715
|
-
const
|
|
3716
|
-
o.push(...
|
|
3715
|
+
const Y = Eo(M);
|
|
3716
|
+
o.push(...Y);
|
|
3717
3717
|
}
|
|
3718
3718
|
return {
|
|
3719
3719
|
valid: !o.some((M) => M.severity === "error"),
|
|
@@ -3725,7 +3725,7 @@ function II(g, A, B = "generic", Q = !1) {
|
|
|
3725
3725
|
return JSON.parse(C);
|
|
3726
3726
|
}
|
|
3727
3727
|
function BI(g, A, B, Q = "generic", C = !1) {
|
|
3728
|
-
const E =
|
|
3728
|
+
const E = Ng(
|
|
3729
3729
|
A,
|
|
3730
3730
|
g,
|
|
3731
3731
|
JSON.stringify(B),
|
|
@@ -3749,33 +3749,33 @@ function DI(g) {
|
|
|
3749
3749
|
return g.filter((A) => A.type !== "keep");
|
|
3750
3750
|
}
|
|
3751
3751
|
function iI(g, A = "generic") {
|
|
3752
|
-
const B =
|
|
3752
|
+
const B = kg(g, A);
|
|
3753
3753
|
return JSON.parse(B);
|
|
3754
3754
|
}
|
|
3755
|
-
var
|
|
3756
|
-
const
|
|
3757
|
-
function
|
|
3755
|
+
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 || {});
|
|
3756
|
+
const L = pg;
|
|
3757
|
+
function JA(g) {
|
|
3758
3758
|
return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function LA(g, A) {
|
|
3761
3761
|
return {
|
|
3762
3762
|
success: !1,
|
|
3763
3763
|
sql: void 0,
|
|
3764
|
-
error: `WASM ${g} failed: ${
|
|
3764
|
+
error: `WASM ${g} failed: ${JA(A)}`,
|
|
3765
3765
|
errorLine: void 0,
|
|
3766
3766
|
errorColumn: void 0
|
|
3767
3767
|
};
|
|
3768
3768
|
}
|
|
3769
|
-
function
|
|
3769
|
+
function No(g, A) {
|
|
3770
3770
|
return {
|
|
3771
3771
|
success: !1,
|
|
3772
3772
|
ast: void 0,
|
|
3773
|
-
error: `WASM ${g} failed: ${
|
|
3773
|
+
error: `WASM ${g} failed: ${JA(A)}`,
|
|
3774
3774
|
errorLine: void 0,
|
|
3775
3775
|
errorColumn: void 0
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function e(g) {
|
|
3779
3779
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3780
3780
|
}
|
|
3781
3781
|
async function wI() {
|
|
@@ -3784,48 +3784,48 @@ async function wI() {
|
|
|
3784
3784
|
function oI() {
|
|
3785
3785
|
return !0;
|
|
3786
3786
|
}
|
|
3787
|
-
function
|
|
3787
|
+
function sA(g, A, B) {
|
|
3788
3788
|
try {
|
|
3789
|
-
return typeof
|
|
3790
|
-
|
|
3791
|
-
) : JSON.parse(
|
|
3789
|
+
return typeof L.transpile_value == "function" ? e(
|
|
3790
|
+
L.transpile_value(g, A, B)
|
|
3791
|
+
) : JSON.parse(L.transpile(g, A, B));
|
|
3792
3792
|
} catch (Q) {
|
|
3793
|
-
return
|
|
3793
|
+
return LA("transpile", Q);
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
function pA(g, A = "generic") {
|
|
3797
3797
|
try {
|
|
3798
|
-
if (typeof
|
|
3799
|
-
return
|
|
3800
|
-
const B = JSON.parse(
|
|
3798
|
+
if (typeof L.parse_value == "function")
|
|
3799
|
+
return e(L.parse_value(g, A));
|
|
3800
|
+
const B = JSON.parse(L.parse(g, A));
|
|
3801
3801
|
return B.success && typeof B.ast == "string" && (B.ast = JSON.parse(B.ast)), B;
|
|
3802
3802
|
} catch (B) {
|
|
3803
|
-
return
|
|
3803
|
+
return No("parse", B);
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function xA(g, A = "generic") {
|
|
3807
3807
|
try {
|
|
3808
|
-
return typeof
|
|
3809
|
-
|
|
3810
|
-
) : JSON.parse(
|
|
3808
|
+
return typeof L.tokenize_value == "function" ? e(
|
|
3809
|
+
L.tokenize_value(g, A)
|
|
3810
|
+
) : JSON.parse(L.tokenize(g, A));
|
|
3811
3811
|
} catch (B) {
|
|
3812
3812
|
return {
|
|
3813
3813
|
success: !1,
|
|
3814
3814
|
tokens: void 0,
|
|
3815
|
-
error: `WASM tokenize failed: ${
|
|
3815
|
+
error: `WASM tokenize failed: ${JA(B)}`
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
3818
|
}
|
|
3819
|
-
function
|
|
3819
|
+
function OA(g, A = "generic") {
|
|
3820
3820
|
try {
|
|
3821
|
-
if (typeof
|
|
3822
|
-
return
|
|
3823
|
-
|
|
3821
|
+
if (typeof L.generate_value == "function" && Array.isArray(g))
|
|
3822
|
+
return e(
|
|
3823
|
+
L.generate_value(g, A)
|
|
3824
3824
|
);
|
|
3825
3825
|
const B = JSON.stringify(g);
|
|
3826
|
-
return JSON.parse(
|
|
3826
|
+
return JSON.parse(L.generate(B, A));
|
|
3827
3827
|
} catch (B) {
|
|
3828
|
-
return
|
|
3828
|
+
return LA("generate", B);
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
function ZA(g, A = "generic") {
|
|
@@ -3833,30 +3833,30 @@ function ZA(g, A = "generic") {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
function TA(g, A = "generic", B = {}) {
|
|
3835
3835
|
try {
|
|
3836
|
-
return typeof
|
|
3837
|
-
|
|
3838
|
-
) : typeof
|
|
3839
|
-
|
|
3840
|
-
) : typeof
|
|
3841
|
-
|
|
3842
|
-
) : JSON.parse(
|
|
3836
|
+
return typeof L.format_sql_with_options_value == "function" ? e(
|
|
3837
|
+
L.format_sql_with_options_value(g, A, B)
|
|
3838
|
+
) : typeof L.format_sql_with_options == "function" ? JSON.parse(
|
|
3839
|
+
L.format_sql_with_options(g, A, JSON.stringify(B))
|
|
3840
|
+
) : typeof L.format_sql_value == "function" ? e(
|
|
3841
|
+
L.format_sql_value(g, A)
|
|
3842
|
+
) : JSON.parse(L.format_sql(g, A));
|
|
3843
3843
|
} catch (Q) {
|
|
3844
|
-
return
|
|
3844
|
+
return LA("format", Q);
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
|
-
function
|
|
3848
|
-
return typeof
|
|
3847
|
+
function VA() {
|
|
3848
|
+
return typeof L.get_dialects_value == "function" ? e(L.get_dialects_value()) : JSON.parse(L.get_dialects());
|
|
3849
3849
|
}
|
|
3850
|
-
function
|
|
3851
|
-
return
|
|
3850
|
+
function jA() {
|
|
3851
|
+
return L.version();
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function dA(g, A = "generic", B) {
|
|
3854
3854
|
try {
|
|
3855
3855
|
const Q = B ? JSON.stringify(B) : "";
|
|
3856
|
-
return typeof
|
|
3857
|
-
|
|
3858
|
-
) : typeof
|
|
3859
|
-
|
|
3856
|
+
return typeof L.annotate_types_value == "function" ? e(
|
|
3857
|
+
L.annotate_types_value(g, A, Q)
|
|
3858
|
+
) : typeof L.annotate_types == "function" ? JSON.parse(
|
|
3859
|
+
L.annotate_types(g, A, Q)
|
|
3860
3860
|
) : {
|
|
3861
3861
|
success: !1,
|
|
3862
3862
|
error: "annotate_types not available in this WASM build"
|
|
@@ -3864,7 +3864,7 @@ function jA(g, A = "generic", B) {
|
|
|
3864
3864
|
} catch (Q) {
|
|
3865
3865
|
return {
|
|
3866
3866
|
success: !1,
|
|
3867
|
-
error: `WASM annotate_types failed: ${
|
|
3867
|
+
error: `WASM annotate_types failed: ${JA(Q)}`
|
|
3868
3868
|
};
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
@@ -3887,7 +3887,7 @@ class f {
|
|
|
3887
3887
|
* Use {@link Polyglot.getDialects} to check available dialects.
|
|
3888
3888
|
*/
|
|
3889
3889
|
transpile(A, B, Q) {
|
|
3890
|
-
return
|
|
3890
|
+
return sA(A, B, Q);
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
3893
3893
|
* Parse SQL into an AST.
|
|
@@ -3899,13 +3899,13 @@ class f {
|
|
|
3899
3899
|
* Tokenize SQL into a token stream.
|
|
3900
3900
|
*/
|
|
3901
3901
|
tokenize(A, B = "generic") {
|
|
3902
|
-
return
|
|
3902
|
+
return xA(A, B);
|
|
3903
3903
|
}
|
|
3904
3904
|
/**
|
|
3905
3905
|
* Generate SQL from an AST.
|
|
3906
3906
|
*/
|
|
3907
3907
|
generate(A, B = "generic") {
|
|
3908
|
-
return
|
|
3908
|
+
return OA(A, B);
|
|
3909
3909
|
}
|
|
3910
3910
|
/**
|
|
3911
3911
|
* Format SQL.
|
|
@@ -3924,32 +3924,32 @@ class f {
|
|
|
3924
3924
|
* Per-dialect builds return only `"generic"` and the selected dialect.
|
|
3925
3925
|
*/
|
|
3926
3926
|
getDialects() {
|
|
3927
|
-
return
|
|
3927
|
+
return VA();
|
|
3928
3928
|
}
|
|
3929
3929
|
/**
|
|
3930
3930
|
* Get library version.
|
|
3931
3931
|
*/
|
|
3932
3932
|
getVersion() {
|
|
3933
|
-
return
|
|
3933
|
+
return jA();
|
|
3934
3934
|
}
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Parse SQL and annotate the AST with inferred type information.
|
|
3937
3937
|
*/
|
|
3938
3938
|
annotateTypes(A, B = "generic", Q) {
|
|
3939
|
-
return
|
|
3939
|
+
return dA(A, B, Q);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3942
|
+
const ko = {
|
|
3943
3943
|
init: wI,
|
|
3944
3944
|
isInitialized: oI,
|
|
3945
|
-
transpile:
|
|
3945
|
+
transpile: sA,
|
|
3946
3946
|
parse: pA,
|
|
3947
|
-
tokenize:
|
|
3948
|
-
generate:
|
|
3947
|
+
tokenize: xA,
|
|
3948
|
+
generate: OA,
|
|
3949
3949
|
format: ZA,
|
|
3950
|
-
annotateTypes:
|
|
3951
|
-
getDialects:
|
|
3952
|
-
getVersion:
|
|
3950
|
+
annotateTypes: dA,
|
|
3951
|
+
getDialects: VA,
|
|
3952
|
+
getVersion: jA,
|
|
3953
3953
|
lineage: II,
|
|
3954
3954
|
lineageWithSchema: BI,
|
|
3955
3955
|
getSourceTables: QI,
|
|
@@ -3957,15 +3957,15 @@ const No = {
|
|
|
3957
3957
|
hasChanges: EI,
|
|
3958
3958
|
changesOnly: DI,
|
|
3959
3959
|
plan: iI,
|
|
3960
|
-
Dialect:
|
|
3960
|
+
Dialect: SA,
|
|
3961
3961
|
Polyglot: f
|
|
3962
3962
|
}, Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3963
3963
|
__proto__: null,
|
|
3964
3964
|
CaseBuilder: hA,
|
|
3965
3965
|
DeleteBuilder: $g,
|
|
3966
|
-
Dialect:
|
|
3967
|
-
Expr:
|
|
3968
|
-
InsertBuilder:
|
|
3966
|
+
Dialect: SA,
|
|
3967
|
+
Expr: y,
|
|
3968
|
+
InsertBuilder: vg,
|
|
3969
3969
|
MergeBuilder: gI,
|
|
3970
3970
|
Polyglot: f,
|
|
3971
3971
|
SelectBuilder: ug,
|
|
@@ -3973,204 +3973,204 @@ const No = {
|
|
|
3973
3973
|
UpdateBuilder: _g,
|
|
3974
3974
|
ValidationSeverity: oo,
|
|
3975
3975
|
WindowDefBuilder: $i,
|
|
3976
|
-
abs:
|
|
3976
|
+
abs: xw,
|
|
3977
3977
|
alias: Dw,
|
|
3978
3978
|
and: ww,
|
|
3979
|
-
annotateTypes:
|
|
3979
|
+
annotateTypes: dA,
|
|
3980
3980
|
ast: _i,
|
|
3981
3981
|
avg: Mw,
|
|
3982
|
-
boolean:
|
|
3982
|
+
boolean: qA,
|
|
3983
3983
|
caseOf: go,
|
|
3984
3984
|
caseWhen: Ao,
|
|
3985
3985
|
cast: Ew,
|
|
3986
3986
|
ceil: Tw,
|
|
3987
3987
|
changesOnly: DI,
|
|
3988
|
-
coalesce:
|
|
3988
|
+
coalesce: Lw,
|
|
3989
3989
|
col: Aw,
|
|
3990
|
-
concatWs:
|
|
3990
|
+
concatWs: Sw,
|
|
3991
3991
|
condition: Qw,
|
|
3992
3992
|
count: Gw,
|
|
3993
|
-
countDistinct:
|
|
3994
|
-
currentDate:
|
|
3993
|
+
countDistinct: Nw,
|
|
3994
|
+
currentDate: ew,
|
|
3995
3995
|
currentTime: zw,
|
|
3996
|
-
currentTimestamp:
|
|
3997
|
-
default:
|
|
3996
|
+
currentTimestamp: mw,
|
|
3997
|
+
default: ko,
|
|
3998
3998
|
del: _w,
|
|
3999
3999
|
deleteFrom: AI,
|
|
4000
|
-
denseRank:
|
|
4000
|
+
denseRank: bw,
|
|
4001
4001
|
diff: CI,
|
|
4002
4002
|
except: Co,
|
|
4003
|
-
exp:
|
|
4003
|
+
exp: Ww,
|
|
4004
4004
|
extract: fw,
|
|
4005
|
-
findAll:
|
|
4005
|
+
findAll: aA,
|
|
4006
4006
|
floor: Zw,
|
|
4007
4007
|
format: ZA,
|
|
4008
4008
|
formatWithOptions: TA,
|
|
4009
|
-
func:
|
|
4010
|
-
generate:
|
|
4009
|
+
func: q,
|
|
4010
|
+
generate: OA,
|
|
4011
4011
|
getColumns: zg,
|
|
4012
|
-
getDialects:
|
|
4013
|
-
getInferredType:
|
|
4012
|
+
getDialects: VA,
|
|
4013
|
+
getInferredType: xg,
|
|
4014
4014
|
getSourceTables: QI,
|
|
4015
|
-
getVersion:
|
|
4016
|
-
greatest:
|
|
4015
|
+
getVersion: jA,
|
|
4016
|
+
greatest: tw,
|
|
4017
4017
|
hasChanges: EI,
|
|
4018
4018
|
ifNull: pw,
|
|
4019
4019
|
init: wI,
|
|
4020
|
-
initcap:
|
|
4021
|
-
insert:
|
|
4022
|
-
insertInto:
|
|
4020
|
+
initcap: cw,
|
|
4021
|
+
insert: vw,
|
|
4022
|
+
insertInto: Xg,
|
|
4023
4023
|
intersect: Qo,
|
|
4024
4024
|
isColumn: Zg,
|
|
4025
|
-
isFunction:
|
|
4025
|
+
isFunction: Vg,
|
|
4026
4026
|
isInitialized: oI,
|
|
4027
4027
|
isLiteral: Tg,
|
|
4028
|
-
isSelect:
|
|
4028
|
+
isSelect: Og,
|
|
4029
4029
|
least: Pw,
|
|
4030
|
-
length:
|
|
4030
|
+
length: Uw,
|
|
4031
4031
|
lineage: II,
|
|
4032
4032
|
lineageWithSchema: BI,
|
|
4033
4033
|
lit: gw,
|
|
4034
|
-
ln:
|
|
4035
|
-
lower:
|
|
4034
|
+
ln: dw,
|
|
4035
|
+
lower: Jw,
|
|
4036
4036
|
ltrim: Fw,
|
|
4037
|
-
max:
|
|
4037
|
+
max: Yw,
|
|
4038
4038
|
mergeInto: $w,
|
|
4039
4039
|
min: Kw,
|
|
4040
4040
|
not: Cw,
|
|
4041
|
-
nullIf:
|
|
4041
|
+
nullIf: sw,
|
|
4042
4042
|
or: ow,
|
|
4043
4043
|
parse: pA,
|
|
4044
4044
|
plan: iI,
|
|
4045
|
-
power:
|
|
4045
|
+
power: Vw,
|
|
4046
4046
|
rank: rw,
|
|
4047
|
-
renameColumns:
|
|
4047
|
+
renameColumns: Wg,
|
|
4048
4048
|
replace: hw,
|
|
4049
|
-
reverse:
|
|
4050
|
-
round:
|
|
4051
|
-
rowNumber:
|
|
4052
|
-
rtrim:
|
|
4049
|
+
reverse: Hw,
|
|
4050
|
+
round: Ow,
|
|
4051
|
+
rowNumber: nw,
|
|
4052
|
+
rtrim: Rw,
|
|
4053
4053
|
select: uw,
|
|
4054
|
-
sign:
|
|
4055
|
-
sqlExpr:
|
|
4054
|
+
sign: lw,
|
|
4055
|
+
sqlExpr: bg,
|
|
4056
4056
|
sqlNull: Iw,
|
|
4057
|
-
sqrt:
|
|
4057
|
+
sqrt: jw,
|
|
4058
4058
|
star: rg,
|
|
4059
4059
|
subquery: iw,
|
|
4060
|
-
substring:
|
|
4061
|
-
sum:
|
|
4060
|
+
substring: qw,
|
|
4061
|
+
sum: kw,
|
|
4062
4062
|
table: Bw,
|
|
4063
|
-
tokenize:
|
|
4064
|
-
transform:
|
|
4065
|
-
transpile:
|
|
4066
|
-
trim:
|
|
4063
|
+
tokenize: xA,
|
|
4064
|
+
transform: YA,
|
|
4065
|
+
transpile: sA,
|
|
4066
|
+
trim: yw,
|
|
4067
4067
|
union: Io,
|
|
4068
4068
|
unionAll: Bo,
|
|
4069
|
-
update:
|
|
4070
|
-
upper:
|
|
4069
|
+
update: Xw,
|
|
4070
|
+
upper: aw,
|
|
4071
4071
|
validate: Go,
|
|
4072
4072
|
validateWithSchema: wo,
|
|
4073
|
-
walk:
|
|
4073
|
+
walk: j
|
|
4074
4074
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4075
4075
|
export {
|
|
4076
4076
|
hA as CaseBuilder,
|
|
4077
4077
|
$g as DeleteBuilder,
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4078
|
+
SA as Dialect,
|
|
4079
|
+
y as Expr,
|
|
4080
|
+
vg as InsertBuilder,
|
|
4081
4081
|
gI as MergeBuilder,
|
|
4082
4082
|
f as Polyglot,
|
|
4083
4083
|
ug as SelectBuilder,
|
|
4084
4084
|
_ as SetOpBuilder,
|
|
4085
4085
|
_g as UpdateBuilder,
|
|
4086
4086
|
oo as ValidationSeverity,
|
|
4087
|
-
|
|
4087
|
+
xw as abs,
|
|
4088
4088
|
Dw as alias,
|
|
4089
4089
|
ww as and,
|
|
4090
|
-
|
|
4090
|
+
dA as annotateTypes,
|
|
4091
4091
|
_i as ast,
|
|
4092
4092
|
Mw as avg,
|
|
4093
|
-
|
|
4093
|
+
qA as boolean,
|
|
4094
4094
|
go as caseOf,
|
|
4095
4095
|
Ao as caseWhen,
|
|
4096
4096
|
Ew as cast,
|
|
4097
4097
|
Tw as ceil,
|
|
4098
|
-
|
|
4098
|
+
Lw as coalesce,
|
|
4099
4099
|
Aw as col,
|
|
4100
|
-
|
|
4100
|
+
Sw as concatWs,
|
|
4101
4101
|
Qw as condition,
|
|
4102
4102
|
Gw as count,
|
|
4103
|
-
|
|
4104
|
-
|
|
4103
|
+
Nw as countDistinct,
|
|
4104
|
+
ew as currentDate,
|
|
4105
4105
|
zw as currentTime,
|
|
4106
|
-
|
|
4106
|
+
mw as currentTimestamp,
|
|
4107
4107
|
Mo as default,
|
|
4108
4108
|
_w as del,
|
|
4109
4109
|
AI as deleteFrom,
|
|
4110
|
-
|
|
4110
|
+
bw as denseRank,
|
|
4111
4111
|
Co as except,
|
|
4112
|
-
|
|
4112
|
+
Ww as exp,
|
|
4113
4113
|
fw as extract,
|
|
4114
|
-
|
|
4114
|
+
aA as findAll,
|
|
4115
4115
|
Zw as floor,
|
|
4116
4116
|
ZA as format,
|
|
4117
4117
|
TA as formatWithOptions,
|
|
4118
|
-
|
|
4119
|
-
|
|
4118
|
+
q as func,
|
|
4119
|
+
OA as generate,
|
|
4120
4120
|
zg as getColumns,
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4121
|
+
VA as getDialects,
|
|
4122
|
+
xg as getInferredType,
|
|
4123
|
+
jA as getVersion,
|
|
4124
|
+
tw as greatest,
|
|
4125
4125
|
pw as ifNull,
|
|
4126
4126
|
wI as init,
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4127
|
+
cw as initcap,
|
|
4128
|
+
vw as insert,
|
|
4129
|
+
Xg as insertInto,
|
|
4130
4130
|
Qo as intersect,
|
|
4131
4131
|
Zg as isColumn,
|
|
4132
|
-
|
|
4132
|
+
Vg as isFunction,
|
|
4133
4133
|
oI as isInitialized,
|
|
4134
4134
|
Tg as isLiteral,
|
|
4135
|
-
|
|
4135
|
+
Og as isSelect,
|
|
4136
4136
|
Pw as least,
|
|
4137
|
-
|
|
4137
|
+
Uw as length,
|
|
4138
4138
|
gw as lit,
|
|
4139
|
-
|
|
4140
|
-
|
|
4139
|
+
dw as ln,
|
|
4140
|
+
Jw as lower,
|
|
4141
4141
|
Fw as ltrim,
|
|
4142
|
-
|
|
4142
|
+
Yw as max,
|
|
4143
4143
|
$w as mergeInto,
|
|
4144
4144
|
Kw as min,
|
|
4145
4145
|
Cw as not,
|
|
4146
|
-
|
|
4146
|
+
sw as nullIf,
|
|
4147
4147
|
ow as or,
|
|
4148
4148
|
pA as parse,
|
|
4149
|
-
|
|
4149
|
+
Vw as power,
|
|
4150
4150
|
rw as rank,
|
|
4151
|
-
|
|
4151
|
+
Wg as renameColumns,
|
|
4152
4152
|
hw as replace,
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4153
|
+
Hw as reverse,
|
|
4154
|
+
Ow as round,
|
|
4155
|
+
nw as rowNumber,
|
|
4156
|
+
Rw as rtrim,
|
|
4157
4157
|
uw as select,
|
|
4158
|
-
|
|
4159
|
-
|
|
4158
|
+
lw as sign,
|
|
4159
|
+
bg as sqlExpr,
|
|
4160
4160
|
Iw as sqlNull,
|
|
4161
|
-
|
|
4161
|
+
jw as sqrt,
|
|
4162
4162
|
rg as star,
|
|
4163
|
-
|
|
4164
|
-
|
|
4163
|
+
qw as substring,
|
|
4164
|
+
kw as sum,
|
|
4165
4165
|
Bw as table,
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4166
|
+
YA as transform,
|
|
4167
|
+
sA as transpile,
|
|
4168
|
+
yw as trim,
|
|
4169
4169
|
Io as union,
|
|
4170
4170
|
Bo as unionAll,
|
|
4171
|
-
|
|
4172
|
-
|
|
4171
|
+
Xw as update,
|
|
4172
|
+
aw as upper,
|
|
4173
4173
|
Go as validate,
|
|
4174
4174
|
wo as validateWithSchema,
|
|
4175
|
-
|
|
4175
|
+
j as walk
|
|
4176
4176
|
};
|