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