@polyglot-sql/sdk 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/cdn/polyglot.esm.js +1468 -1468
- package/dist/index.cjs +61 -61
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +65 -65
- package/dist/index.node.js +61 -61
- package/dist/manual.js +65 -65
- package/dist/polyglot_sql.wasm +0 -0
- package/package.json +1 -1
package/dist/cdn/polyglot.esm.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const cI = new URL("../polyglot_sql.wasm",import.meta.url).href,
|
|
1
|
+
const cI = new URL("../polyglot_sql.wasm",import.meta.url).href, FI = async (g = {}, A) => {
|
|
2
2
|
let C;
|
|
3
3
|
if (A.startsWith("data:")) {
|
|
4
|
-
const
|
|
5
|
-
let
|
|
4
|
+
const B = A.replace(/^data:.*?base64,/, "");
|
|
5
|
+
let Q;
|
|
6
6
|
if (typeof Buffer == "function" && typeof Buffer.from == "function")
|
|
7
|
-
|
|
7
|
+
Q = Buffer.from(B, "base64");
|
|
8
8
|
else if (typeof atob == "function") {
|
|
9
|
-
const E = atob(
|
|
10
|
-
|
|
9
|
+
const E = atob(B);
|
|
10
|
+
Q = new Uint8Array(E.length);
|
|
11
11
|
for (let D = 0; D < E.length; D++)
|
|
12
|
-
|
|
12
|
+
Q[D] = E.charCodeAt(D);
|
|
13
13
|
} else
|
|
14
14
|
throw new Error("Cannot decode base64-encoded data URL");
|
|
15
|
-
C = await WebAssembly.instantiate(
|
|
15
|
+
C = await WebAssembly.instantiate(Q, g);
|
|
16
16
|
} else {
|
|
17
|
-
const
|
|
18
|
-
if ("instantiateStreaming" in WebAssembly &&
|
|
19
|
-
C = await WebAssembly.instantiateStreaming(
|
|
17
|
+
const B = await fetch(A), Q = B.headers.get("Content-Type") || "";
|
|
18
|
+
if ("instantiateStreaming" in WebAssembly && Q.startsWith("application/wasm"))
|
|
19
|
+
C = await WebAssembly.instantiateStreaming(B, g);
|
|
20
20
|
else {
|
|
21
|
-
const E = await
|
|
21
|
+
const E = await B.arrayBuffer();
|
|
22
22
|
C = await WebAssembly.instantiate(E, g);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -53,8 +53,8 @@ class CA {
|
|
|
53
53
|
* @param {WasmExpr} value
|
|
54
54
|
*/
|
|
55
55
|
push(A, C) {
|
|
56
|
-
const
|
|
57
|
-
H(C, G), I.wasmassignmentarray_push(this.__wbg_ptr,
|
|
56
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
57
|
+
H(C, G), I.wasmassignmentarray_push(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
|
|
@@ -78,10 +78,10 @@ class m {
|
|
|
78
78
|
*/
|
|
79
79
|
build_expr() {
|
|
80
80
|
try {
|
|
81
|
-
const
|
|
82
|
-
I.wasmcasebuilder_build_expr(
|
|
83
|
-
var A =
|
|
84
|
-
if (
|
|
81
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
82
|
+
I.wasmcasebuilder_build_expr(Q, this.__wbg_ptr);
|
|
83
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
84
|
+
if (B)
|
|
85
85
|
throw J(C);
|
|
86
86
|
return G.__wrap(A);
|
|
87
87
|
} finally {
|
|
@@ -108,16 +108,16 @@ class m {
|
|
|
108
108
|
* @returns {string}
|
|
109
109
|
*/
|
|
110
110
|
to_sql(A) {
|
|
111
|
-
let C,
|
|
111
|
+
let C, B;
|
|
112
112
|
try {
|
|
113
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
114
|
-
I.wasmcasebuilder_to_sql(y, this.__wbg_ptr, h,
|
|
115
|
-
var
|
|
116
|
-
if (
|
|
113
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
114
|
+
I.wasmcasebuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
115
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
116
|
+
if (M)
|
|
117
117
|
throw k = 0, K = 0, J(D);
|
|
118
|
-
return C = k,
|
|
118
|
+
return C = k, B = K, F(k, K);
|
|
119
119
|
} finally {
|
|
120
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
120
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
@@ -130,10 +130,10 @@ class m {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
Symbol.dispose && (m.prototype[Symbol.dispose] = m.prototype.free);
|
|
133
|
-
class
|
|
133
|
+
class iA {
|
|
134
134
|
__destroy_into_raw() {
|
|
135
135
|
const A = this.__wbg_ptr;
|
|
136
|
-
return this.__wbg_ptr = 0,
|
|
136
|
+
return this.__wbg_ptr = 0, dA.unregister(this), A;
|
|
137
137
|
}
|
|
138
138
|
free() {
|
|
139
139
|
const A = this.__destroy_into_raw();
|
|
@@ -145,10 +145,10 @@ class MA {
|
|
|
145
145
|
*/
|
|
146
146
|
build() {
|
|
147
147
|
try {
|
|
148
|
-
const
|
|
149
|
-
I.wasmdeletebuilder_build(
|
|
150
|
-
var A =
|
|
151
|
-
if (
|
|
148
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
149
|
+
I.wasmdeletebuilder_build(Q, this.__wbg_ptr);
|
|
150
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
151
|
+
if (B)
|
|
152
152
|
throw J(C);
|
|
153
153
|
return J(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), B = o, Q = I.wasmdeletebuilder_new(C, B);
|
|
164
|
+
return this.__wbg_ptr = Q >>> 0, dA.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, B;
|
|
173
173
|
try {
|
|
174
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
175
|
-
I.wasmdeletebuilder_to_sql(y, this.__wbg_ptr, h,
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
174
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
175
|
+
I.wasmdeletebuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
176
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
177
|
+
if (M)
|
|
178
178
|
throw k = 0, K = 0, J(D);
|
|
179
|
-
return C = k,
|
|
179
|
+
return C = k, B = K, F(k, K);
|
|
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, B, 1);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
@@ -189,16 +189,16 @@ class MA {
|
|
|
189
189
|
H(A, G), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
Symbol.dispose && (
|
|
192
|
+
Symbol.dispose && (iA.prototype[Symbol.dispose] = iA.prototype.free);
|
|
193
193
|
class G {
|
|
194
194
|
static __wrap(A) {
|
|
195
195
|
A = A >>> 0;
|
|
196
196
|
const C = Object.create(G.prototype);
|
|
197
|
-
return C.__wbg_ptr = A,
|
|
197
|
+
return C.__wbg_ptr = A, eA.register(C, C.__wbg_ptr, C), C;
|
|
198
198
|
}
|
|
199
199
|
__destroy_into_raw() {
|
|
200
200
|
const A = this.__wbg_ptr;
|
|
201
|
-
return this.__wbg_ptr = 0,
|
|
201
|
+
return this.__wbg_ptr = 0, eA.unregister(this), A;
|
|
202
202
|
}
|
|
203
203
|
free() {
|
|
204
204
|
const A = this.__destroy_into_raw();
|
|
@@ -220,8 +220,8 @@ class G {
|
|
|
220
220
|
* @returns {WasmExpr}
|
|
221
221
|
*/
|
|
222
222
|
alias(A) {
|
|
223
|
-
const C =
|
|
224
|
-
return G.__wrap(
|
|
223
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_alias(this.__wbg_ptr, C, B);
|
|
224
|
+
return G.__wrap(Q);
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
227
|
* Produce `self AND other`.
|
|
@@ -249,8 +249,8 @@ class G {
|
|
|
249
249
|
*/
|
|
250
250
|
between(A, C) {
|
|
251
251
|
H(A, G), H(C, G);
|
|
252
|
-
const
|
|
253
|
-
return G.__wrap(
|
|
252
|
+
const B = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
|
|
253
|
+
return G.__wrap(B);
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Produce `CAST(self AS type)`.
|
|
@@ -258,8 +258,8 @@ class G {
|
|
|
258
258
|
* @returns {WasmExpr}
|
|
259
259
|
*/
|
|
260
260
|
cast(A) {
|
|
261
|
-
const C =
|
|
262
|
-
return G.__wrap(
|
|
261
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_cast(this.__wbg_ptr, C, B);
|
|
262
|
+
return G.__wrap(Q);
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* Wrap with descending sort order.
|
|
@@ -325,7 +325,7 @@ class G {
|
|
|
325
325
|
* @returns {WasmExpr}
|
|
326
326
|
*/
|
|
327
327
|
in_list(A) {
|
|
328
|
-
H(A,
|
|
328
|
+
H(A, P);
|
|
329
329
|
const C = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
|
|
330
330
|
return G.__wrap(C);
|
|
331
331
|
}
|
|
@@ -409,7 +409,7 @@ class G {
|
|
|
409
409
|
* @returns {WasmExpr}
|
|
410
410
|
*/
|
|
411
411
|
not_in(A) {
|
|
412
|
-
H(A,
|
|
412
|
+
H(A, P);
|
|
413
413
|
const C = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
|
|
414
414
|
return G.__wrap(C);
|
|
415
415
|
}
|
|
@@ -449,10 +449,10 @@ class G {
|
|
|
449
449
|
*/
|
|
450
450
|
to_json() {
|
|
451
451
|
try {
|
|
452
|
-
const
|
|
453
|
-
I.wasmexpr_to_json(
|
|
454
|
-
var A =
|
|
455
|
-
if (
|
|
452
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
453
|
+
I.wasmexpr_to_json(Q, this.__wbg_ptr);
|
|
454
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
455
|
+
if (B)
|
|
456
456
|
throw J(C);
|
|
457
457
|
return J(A);
|
|
458
458
|
} finally {
|
|
@@ -465,16 +465,16 @@ class G {
|
|
|
465
465
|
* @returns {string}
|
|
466
466
|
*/
|
|
467
467
|
to_sql(A) {
|
|
468
|
-
let C,
|
|
468
|
+
let C, B;
|
|
469
469
|
try {
|
|
470
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
471
|
-
I.wasmexpr_to_sql(y, this.__wbg_ptr, h,
|
|
472
|
-
var
|
|
473
|
-
if (
|
|
470
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
471
|
+
I.wasmexpr_to_sql(y, this.__wbg_ptr, h, L);
|
|
472
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
473
|
+
if (M)
|
|
474
474
|
throw k = 0, K = 0, J(D);
|
|
475
|
-
return C = k,
|
|
475
|
+
return C = k, B = K, F(k, K);
|
|
476
476
|
} finally {
|
|
477
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
477
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
@@ -489,10 +489,10 @@ class G {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
|
|
492
|
-
class
|
|
492
|
+
class P {
|
|
493
493
|
__destroy_into_raw() {
|
|
494
494
|
const A = this.__wbg_ptr;
|
|
495
|
-
return this.__wbg_ptr = 0,
|
|
495
|
+
return this.__wbg_ptr = 0, xA.unregister(this), A;
|
|
496
496
|
}
|
|
497
497
|
free() {
|
|
498
498
|
const A = this.__destroy_into_raw();
|
|
@@ -510,7 +510,7 @@ class T {
|
|
|
510
510
|
*/
|
|
511
511
|
constructor() {
|
|
512
512
|
const A = I.wasmassignmentarray_new();
|
|
513
|
-
return this.__wbg_ptr = A >>> 0,
|
|
513
|
+
return this.__wbg_ptr = A >>> 0, xA.register(this, this.__wbg_ptr, this), this;
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
516
|
* Push an expression.
|
|
@@ -524,8 +524,8 @@ class T {
|
|
|
524
524
|
* @param {string} name
|
|
525
525
|
*/
|
|
526
526
|
push_col(A) {
|
|
527
|
-
const C =
|
|
528
|
-
I.wasmexprarray_push_col(this.__wbg_ptr, C,
|
|
527
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
528
|
+
I.wasmexprarray_push_col(this.__wbg_ptr, C, B);
|
|
529
529
|
}
|
|
530
530
|
/**
|
|
531
531
|
* Push a float literal.
|
|
@@ -552,15 +552,15 @@ class T {
|
|
|
552
552
|
* @param {string} value
|
|
553
553
|
*/
|
|
554
554
|
push_str(A) {
|
|
555
|
-
const C =
|
|
556
|
-
I.wasmexprarray_push_str(this.__wbg_ptr, C,
|
|
555
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
556
|
+
I.wasmexprarray_push_str(this.__wbg_ptr, C, B);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
Symbol.dispose && (
|
|
560
|
-
class
|
|
559
|
+
Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
|
|
560
|
+
class MA {
|
|
561
561
|
__destroy_into_raw() {
|
|
562
562
|
const A = this.__wbg_ptr;
|
|
563
|
-
return this.__wbg_ptr = 0,
|
|
563
|
+
return this.__wbg_ptr = 0, WA.unregister(this), A;
|
|
564
564
|
}
|
|
565
565
|
free() {
|
|
566
566
|
const A = this.__destroy_into_raw();
|
|
@@ -572,10 +572,10 @@ class iA {
|
|
|
572
572
|
*/
|
|
573
573
|
build() {
|
|
574
574
|
try {
|
|
575
|
-
const
|
|
576
|
-
I.wasminsertbuilder_build(
|
|
577
|
-
var A =
|
|
578
|
-
if (
|
|
575
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
576
|
+
I.wasminsertbuilder_build(Q, this.__wbg_ptr);
|
|
577
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
578
|
+
if (B)
|
|
579
579
|
throw J(C);
|
|
580
580
|
return J(A);
|
|
581
581
|
} finally {
|
|
@@ -587,16 +587,16 @@ class iA {
|
|
|
587
587
|
* @param {string[]} cols
|
|
588
588
|
*/
|
|
589
589
|
columns(A) {
|
|
590
|
-
const C = JA(A, I.__wbindgen_export),
|
|
591
|
-
I.wasminsertbuilder_columns(this.__wbg_ptr, C,
|
|
590
|
+
const C = JA(A, I.__wbindgen_export), B = o;
|
|
591
|
+
I.wasminsertbuilder_columns(this.__wbg_ptr, C, B);
|
|
592
592
|
}
|
|
593
593
|
/**
|
|
594
594
|
* Create a new INSERT INTO builder for the given table.
|
|
595
595
|
* @param {string} table_name
|
|
596
596
|
*/
|
|
597
597
|
constructor(A) {
|
|
598
|
-
const C =
|
|
599
|
-
return this.__wbg_ptr =
|
|
598
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasminsertbuilder_new(C, B);
|
|
599
|
+
return this.__wbg_ptr = Q >>> 0, WA.register(this, this.__wbg_ptr, this), this;
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
602
|
* Set the source query for INSERT ... SELECT.
|
|
@@ -604,10 +604,10 @@ class iA {
|
|
|
604
604
|
*/
|
|
605
605
|
query(A) {
|
|
606
606
|
try {
|
|
607
|
-
const
|
|
608
|
-
H(A,
|
|
609
|
-
var C =
|
|
610
|
-
if (
|
|
607
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
608
|
+
H(A, j), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
|
|
609
|
+
var C = i().getInt32(Q + 0, !0), B = i().getInt32(Q + 4, !0);
|
|
610
|
+
if (B)
|
|
611
611
|
throw J(C);
|
|
612
612
|
} finally {
|
|
613
613
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -619,16 +619,16 @@ class iA {
|
|
|
619
619
|
* @returns {string}
|
|
620
620
|
*/
|
|
621
621
|
to_sql(A) {
|
|
622
|
-
let C,
|
|
622
|
+
let C, B;
|
|
623
623
|
try {
|
|
624
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
625
|
-
I.wasminsertbuilder_to_sql(y, this.__wbg_ptr, h,
|
|
626
|
-
var
|
|
627
|
-
if (
|
|
624
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
625
|
+
I.wasminsertbuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
626
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
627
|
+
if (M)
|
|
628
628
|
throw k = 0, K = 0, J(D);
|
|
629
|
-
return C = k,
|
|
629
|
+
return C = k, B = K, F(k, K);
|
|
630
630
|
} finally {
|
|
631
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
631
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
@@ -636,11 +636,11 @@ class iA {
|
|
|
636
636
|
* @param {WasmExprArray} vals
|
|
637
637
|
*/
|
|
638
638
|
values(A) {
|
|
639
|
-
H(A,
|
|
639
|
+
H(A, P), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
Symbol.dispose && (
|
|
643
|
-
class
|
|
642
|
+
Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
|
|
643
|
+
class oA {
|
|
644
644
|
__destroy_into_raw() {
|
|
645
645
|
const A = this.__wbg_ptr;
|
|
646
646
|
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
@@ -655,10 +655,10 @@ class NA {
|
|
|
655
655
|
*/
|
|
656
656
|
build() {
|
|
657
657
|
try {
|
|
658
|
-
const
|
|
659
|
-
I.wasmmergebuilder_build(
|
|
660
|
-
var A =
|
|
661
|
-
if (
|
|
658
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
659
|
+
I.wasmmergebuilder_build(Q, this.__wbg_ptr);
|
|
660
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
661
|
+
if (B)
|
|
662
662
|
throw J(C);
|
|
663
663
|
return J(A);
|
|
664
664
|
} finally {
|
|
@@ -670,8 +670,8 @@ class NA {
|
|
|
670
670
|
* @param {string} target
|
|
671
671
|
*/
|
|
672
672
|
constructor(A) {
|
|
673
|
-
const C =
|
|
674
|
-
return this.__wbg_ptr =
|
|
673
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmmergebuilder_new(C, B);
|
|
674
|
+
return this.__wbg_ptr = Q >>> 0, lA.register(this, this.__wbg_ptr, this), this;
|
|
675
675
|
}
|
|
676
676
|
/**
|
|
677
677
|
* Generate SQL string for the given dialect.
|
|
@@ -679,16 +679,16 @@ class NA {
|
|
|
679
679
|
* @returns {string}
|
|
680
680
|
*/
|
|
681
681
|
to_sql(A) {
|
|
682
|
-
let C,
|
|
682
|
+
let C, B;
|
|
683
683
|
try {
|
|
684
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
685
|
-
I.wasmmergebuilder_to_sql(y, this.__wbg_ptr, h,
|
|
686
|
-
var
|
|
687
|
-
if (
|
|
684
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
685
|
+
I.wasmmergebuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
686
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
687
|
+
if (M)
|
|
688
688
|
throw k = 0, K = 0, J(D);
|
|
689
|
-
return C = k,
|
|
689
|
+
return C = k, B = K, F(k, K);
|
|
690
690
|
} finally {
|
|
691
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
691
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
/**
|
|
@@ -697,8 +697,8 @@ class NA {
|
|
|
697
697
|
* @param {WasmExpr} on
|
|
698
698
|
*/
|
|
699
699
|
using(A, C) {
|
|
700
|
-
const
|
|
701
|
-
H(C, G), I.wasmmergebuilder_using(this.__wbg_ptr,
|
|
700
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
701
|
+
H(C, G), I.wasmmergebuilder_using(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
702
702
|
}
|
|
703
703
|
/**
|
|
704
704
|
* Add a WHEN MATCHED THEN DELETE clause.
|
|
@@ -719,12 +719,12 @@ class NA {
|
|
|
719
719
|
* @param {WasmExprArray} values
|
|
720
720
|
*/
|
|
721
721
|
when_not_matched_insert(A, C) {
|
|
722
|
-
const
|
|
723
|
-
H(C,
|
|
722
|
+
const B = JA(A, I.__wbindgen_export), Q = o;
|
|
723
|
+
H(C, P), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
Symbol.dispose && (
|
|
727
|
-
class
|
|
726
|
+
Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
|
|
727
|
+
class j {
|
|
728
728
|
__destroy_into_raw() {
|
|
729
729
|
const A = this.__wbg_ptr;
|
|
730
730
|
return this.__wbg_ptr = 0, rA.unregister(this), A;
|
|
@@ -739,10 +739,10 @@ class t {
|
|
|
739
739
|
*/
|
|
740
740
|
build() {
|
|
741
741
|
try {
|
|
742
|
-
const
|
|
743
|
-
I.wasmselectbuilder_build(
|
|
744
|
-
var A =
|
|
745
|
-
if (
|
|
742
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
743
|
+
I.wasmselectbuilder_build(Q, this.__wbg_ptr);
|
|
744
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
745
|
+
if (B)
|
|
746
746
|
throw J(C);
|
|
747
747
|
return J(A);
|
|
748
748
|
} finally {
|
|
@@ -754,8 +754,8 @@ class t {
|
|
|
754
754
|
* @param {string} table
|
|
755
755
|
*/
|
|
756
756
|
cross_join(A) {
|
|
757
|
-
const C =
|
|
758
|
-
I.wasmselectbuilder_cross_join(this.__wbg_ptr, C,
|
|
757
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
758
|
+
I.wasmselectbuilder_cross_join(this.__wbg_ptr, C, B);
|
|
759
759
|
}
|
|
760
760
|
/**
|
|
761
761
|
* Convert to CREATE TABLE AS SELECT. Returns the AST JSON.
|
|
@@ -764,11 +764,11 @@ class t {
|
|
|
764
764
|
*/
|
|
765
765
|
ctas(A) {
|
|
766
766
|
try {
|
|
767
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
768
|
-
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D,
|
|
769
|
-
var C =
|
|
770
|
-
if (
|
|
771
|
-
throw J(
|
|
767
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
768
|
+
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, M);
|
|
769
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
770
|
+
if (Q)
|
|
771
|
+
throw J(B);
|
|
772
772
|
return J(C);
|
|
773
773
|
} finally {
|
|
774
774
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -781,16 +781,16 @@ class t {
|
|
|
781
781
|
* @returns {string}
|
|
782
782
|
*/
|
|
783
783
|
ctas_sql(A, C) {
|
|
784
|
-
let
|
|
784
|
+
let B, Q;
|
|
785
785
|
try {
|
|
786
|
-
const h = I.__wbindgen_add_to_stack_pointer(-16),
|
|
787
|
-
I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr,
|
|
788
|
-
var E =
|
|
786
|
+
const h = I.__wbindgen_add_to_stack_pointer(-16), L = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, T = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = o;
|
|
787
|
+
I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, L, q, T, r);
|
|
788
|
+
var E = i().getInt32(h + 0, !0), D = i().getInt32(h + 4, !0), M = i().getInt32(h + 8, !0), k = i().getInt32(h + 12, !0), K = E, y = D;
|
|
789
789
|
if (k)
|
|
790
|
-
throw K = 0, y = 0, J(
|
|
791
|
-
return
|
|
790
|
+
throw K = 0, y = 0, J(M);
|
|
791
|
+
return B = K, Q = y, F(K, y);
|
|
792
792
|
} finally {
|
|
793
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
793
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
/**
|
|
@@ -807,11 +807,11 @@ class t {
|
|
|
807
807
|
except_(A) {
|
|
808
808
|
try {
|
|
809
809
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
810
|
-
H(A,
|
|
811
|
-
var C =
|
|
812
|
-
if (
|
|
813
|
-
throw J(
|
|
814
|
-
return
|
|
810
|
+
H(A, j), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
811
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
812
|
+
if (Q)
|
|
813
|
+
throw J(B);
|
|
814
|
+
return d.__wrap(C);
|
|
815
815
|
} finally {
|
|
816
816
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
817
817
|
}
|
|
@@ -827,8 +827,8 @@ class t {
|
|
|
827
827
|
* @param {string} table
|
|
828
828
|
*/
|
|
829
829
|
from(A) {
|
|
830
|
-
const C =
|
|
831
|
-
I.wasmselectbuilder_from(this.__wbg_ptr, C,
|
|
830
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
831
|
+
I.wasmselectbuilder_from(this.__wbg_ptr, C, B);
|
|
832
832
|
}
|
|
833
833
|
/**
|
|
834
834
|
* Set the FROM clause to an arbitrary expression.
|
|
@@ -842,7 +842,7 @@ class t {
|
|
|
842
842
|
* @param {WasmExprArray} cols
|
|
843
843
|
*/
|
|
844
844
|
group_by_cols(A) {
|
|
845
|
-
H(A,
|
|
845
|
+
H(A, P), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
|
|
846
846
|
}
|
|
847
847
|
/**
|
|
848
848
|
* Set the HAVING clause.
|
|
@@ -856,8 +856,8 @@ class t {
|
|
|
856
856
|
* @param {string} hint_text
|
|
857
857
|
*/
|
|
858
858
|
hint(A) {
|
|
859
|
-
const C =
|
|
860
|
-
I.wasmselectbuilder_hint(this.__wbg_ptr, C,
|
|
859
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
860
|
+
I.wasmselectbuilder_hint(this.__wbg_ptr, C, B);
|
|
861
861
|
}
|
|
862
862
|
/**
|
|
863
863
|
* Combine with INTERSECT. Consumes both builders.
|
|
@@ -867,11 +867,11 @@ class t {
|
|
|
867
867
|
intersect(A) {
|
|
868
868
|
try {
|
|
869
869
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
870
|
-
H(A,
|
|
871
|
-
var C =
|
|
872
|
-
if (
|
|
873
|
-
throw J(
|
|
874
|
-
return
|
|
870
|
+
H(A, j), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
871
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
872
|
+
if (Q)
|
|
873
|
+
throw J(B);
|
|
874
|
+
return d.__wrap(C);
|
|
875
875
|
} finally {
|
|
876
876
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
877
877
|
}
|
|
@@ -882,8 +882,8 @@ class t {
|
|
|
882
882
|
* @param {WasmExpr} on
|
|
883
883
|
*/
|
|
884
884
|
join(A, C) {
|
|
885
|
-
const
|
|
886
|
-
H(C, G), I.wasmselectbuilder_join(this.__wbg_ptr,
|
|
885
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
886
|
+
H(C, G), I.wasmselectbuilder_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* Add a LATERAL VIEW clause (Hive/Spark).
|
|
@@ -891,10 +891,10 @@ class t {
|
|
|
891
891
|
* @param {string} table_alias
|
|
892
892
|
* @param {string[]} col_aliases
|
|
893
893
|
*/
|
|
894
|
-
lateral_view(A, C,
|
|
894
|
+
lateral_view(A, C, B) {
|
|
895
895
|
H(A, G);
|
|
896
|
-
const
|
|
897
|
-
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr,
|
|
896
|
+
const Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = JA(B, I.__wbindgen_export), M = o;
|
|
897
|
+
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, Q, E, D, M);
|
|
898
898
|
}
|
|
899
899
|
/**
|
|
900
900
|
* Add a LEFT JOIN.
|
|
@@ -902,8 +902,8 @@ class t {
|
|
|
902
902
|
* @param {WasmExpr} on
|
|
903
903
|
*/
|
|
904
904
|
left_join(A, C) {
|
|
905
|
-
const
|
|
906
|
-
H(C, G), I.wasmselectbuilder_left_join(this.__wbg_ptr,
|
|
905
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
906
|
+
H(C, G), I.wasmselectbuilder_left_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
907
907
|
}
|
|
908
908
|
/**
|
|
909
909
|
* Set the LIMIT clause.
|
|
@@ -931,7 +931,7 @@ class t {
|
|
|
931
931
|
* @param {WasmExprArray} exprs
|
|
932
932
|
*/
|
|
933
933
|
order_by_exprs(A) {
|
|
934
|
-
H(A,
|
|
934
|
+
H(A, P), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
935
935
|
}
|
|
936
936
|
/**
|
|
937
937
|
* Set the QUALIFY clause.
|
|
@@ -946,16 +946,16 @@ class t {
|
|
|
946
946
|
* @param {WasmExpr} on
|
|
947
947
|
*/
|
|
948
948
|
right_join(A, C) {
|
|
949
|
-
const
|
|
950
|
-
H(C, G), I.wasmselectbuilder_right_join(this.__wbg_ptr,
|
|
949
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
950
|
+
H(C, G), I.wasmselectbuilder_right_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
951
951
|
}
|
|
952
952
|
/**
|
|
953
953
|
* Add a column by name to the SELECT list.
|
|
954
954
|
* @param {string} name
|
|
955
955
|
*/
|
|
956
956
|
select_col(A) {
|
|
957
|
-
const C =
|
|
958
|
-
I.wasmselectbuilder_select_col(this.__wbg_ptr, C,
|
|
957
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
958
|
+
I.wasmselectbuilder_select_col(this.__wbg_ptr, C, B);
|
|
959
959
|
}
|
|
960
960
|
/**
|
|
961
961
|
* Add a single expression to the SELECT list.
|
|
@@ -969,7 +969,7 @@ class t {
|
|
|
969
969
|
* @param {WasmExprArray} exprs
|
|
970
970
|
*/
|
|
971
971
|
select_exprs(A) {
|
|
972
|
-
H(A,
|
|
972
|
+
H(A, P), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
973
973
|
}
|
|
974
974
|
/**
|
|
975
975
|
* Add a star (*) to the SELECT list.
|
|
@@ -982,7 +982,7 @@ class t {
|
|
|
982
982
|
* @param {WasmExprArray} exprs
|
|
983
983
|
*/
|
|
984
984
|
sort_by_exprs(A) {
|
|
985
|
-
H(A,
|
|
985
|
+
H(A, P), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
986
986
|
}
|
|
987
987
|
/**
|
|
988
988
|
* Generate SQL string for the given dialect.
|
|
@@ -990,16 +990,16 @@ class t {
|
|
|
990
990
|
* @returns {string}
|
|
991
991
|
*/
|
|
992
992
|
to_sql(A) {
|
|
993
|
-
let C,
|
|
993
|
+
let C, B;
|
|
994
994
|
try {
|
|
995
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
996
|
-
I.wasmselectbuilder_to_sql(y, this.__wbg_ptr, h,
|
|
997
|
-
var
|
|
998
|
-
if (
|
|
995
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
996
|
+
I.wasmselectbuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
997
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
998
|
+
if (M)
|
|
999
999
|
throw k = 0, K = 0, J(D);
|
|
1000
|
-
return C = k,
|
|
1000
|
+
return C = k, B = K, F(k, K);
|
|
1001
1001
|
} finally {
|
|
1002
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1002
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
/**
|
|
@@ -1010,11 +1010,11 @@ class t {
|
|
|
1010
1010
|
union(A) {
|
|
1011
1011
|
try {
|
|
1012
1012
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1013
|
-
H(A,
|
|
1014
|
-
var C =
|
|
1015
|
-
if (
|
|
1016
|
-
throw J(
|
|
1017
|
-
return
|
|
1013
|
+
H(A, j), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1014
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
1015
|
+
if (Q)
|
|
1016
|
+
throw J(B);
|
|
1017
|
+
return d.__wrap(C);
|
|
1018
1018
|
} finally {
|
|
1019
1019
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1020
1020
|
}
|
|
@@ -1027,11 +1027,11 @@ class t {
|
|
|
1027
1027
|
union_all(A) {
|
|
1028
1028
|
try {
|
|
1029
1029
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1030
|
-
H(A,
|
|
1031
|
-
var C =
|
|
1032
|
-
if (
|
|
1033
|
-
throw J(
|
|
1034
|
-
return
|
|
1030
|
+
H(A, j), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1031
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
1032
|
+
if (Q)
|
|
1033
|
+
throw J(B);
|
|
1034
|
+
return d.__wrap(C);
|
|
1035
1035
|
} finally {
|
|
1036
1036
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1037
1037
|
}
|
|
@@ -1048,8 +1048,8 @@ class t {
|
|
|
1048
1048
|
* @param {string} sql
|
|
1049
1049
|
*/
|
|
1050
1050
|
where_sql(A) {
|
|
1051
|
-
const C =
|
|
1052
|
-
I.wasmselectbuilder_where_sql(this.__wbg_ptr, C,
|
|
1051
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
1052
|
+
I.wasmselectbuilder_where_sql(this.__wbg_ptr, C, B);
|
|
1053
1053
|
}
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Add a named WINDOW clause definition.
|
|
@@ -1058,21 +1058,21 @@ class t {
|
|
|
1058
1058
|
*/
|
|
1059
1059
|
window(A, C) {
|
|
1060
1060
|
try {
|
|
1061
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1062
|
-
H(C,
|
|
1063
|
-
var
|
|
1064
|
-
if (
|
|
1065
|
-
throw J(
|
|
1061
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1062
|
+
H(C, BA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, M, C.__wbg_ptr);
|
|
1063
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1064
|
+
if (Q)
|
|
1065
|
+
throw J(B);
|
|
1066
1066
|
} finally {
|
|
1067
1067
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
Symbol.dispose && (
|
|
1072
|
-
class
|
|
1071
|
+
Symbol.dispose && (j.prototype[Symbol.dispose] = j.prototype.free);
|
|
1072
|
+
class d {
|
|
1073
1073
|
static __wrap(A) {
|
|
1074
1074
|
A = A >>> 0;
|
|
1075
|
-
const C = Object.create(
|
|
1075
|
+
const C = Object.create(d.prototype);
|
|
1076
1076
|
return C.__wbg_ptr = A, nA.register(C, C.__wbg_ptr, C), C;
|
|
1077
1077
|
}
|
|
1078
1078
|
__destroy_into_raw() {
|
|
@@ -1089,10 +1089,10 @@ class x {
|
|
|
1089
1089
|
*/
|
|
1090
1090
|
build() {
|
|
1091
1091
|
try {
|
|
1092
|
-
const
|
|
1093
|
-
I.wasmsetopbuilder_build(
|
|
1094
|
-
var A =
|
|
1095
|
-
if (
|
|
1092
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1093
|
+
I.wasmsetopbuilder_build(Q, this.__wbg_ptr);
|
|
1094
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
1095
|
+
if (B)
|
|
1096
1096
|
throw J(C);
|
|
1097
1097
|
return J(A);
|
|
1098
1098
|
} finally {
|
|
@@ -1118,7 +1118,7 @@ class x {
|
|
|
1118
1118
|
* @param {WasmExprArray} exprs
|
|
1119
1119
|
*/
|
|
1120
1120
|
order_by_exprs(A) {
|
|
1121
|
-
H(A,
|
|
1121
|
+
H(A, P), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
1122
1122
|
}
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Generate SQL string for the given dialect.
|
|
@@ -1126,21 +1126,21 @@ class x {
|
|
|
1126
1126
|
* @returns {string}
|
|
1127
1127
|
*/
|
|
1128
1128
|
to_sql(A) {
|
|
1129
|
-
let C,
|
|
1129
|
+
let C, B;
|
|
1130
1130
|
try {
|
|
1131
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
1132
|
-
I.wasmsetopbuilder_to_sql(y, this.__wbg_ptr, h,
|
|
1133
|
-
var
|
|
1134
|
-
if (
|
|
1131
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
1132
|
+
I.wasmsetopbuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
1133
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
1134
|
+
if (M)
|
|
1135
1135
|
throw k = 0, K = 0, J(D);
|
|
1136
|
-
return C = k,
|
|
1136
|
+
return C = k, B = K, F(k, K);
|
|
1137
1137
|
} finally {
|
|
1138
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1138
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
Symbol.dispose && (
|
|
1143
|
-
class
|
|
1142
|
+
Symbol.dispose && (d.prototype[Symbol.dispose] = d.prototype.free);
|
|
1143
|
+
class NA {
|
|
1144
1144
|
__destroy_into_raw() {
|
|
1145
1145
|
const A = this.__wbg_ptr;
|
|
1146
1146
|
return this.__wbg_ptr = 0, mA.unregister(this), A;
|
|
@@ -1155,10 +1155,10 @@ class oA {
|
|
|
1155
1155
|
*/
|
|
1156
1156
|
build() {
|
|
1157
1157
|
try {
|
|
1158
|
-
const
|
|
1159
|
-
I.wasmupdatebuilder_build(
|
|
1160
|
-
var A =
|
|
1161
|
-
if (
|
|
1158
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1159
|
+
I.wasmupdatebuilder_build(Q, this.__wbg_ptr);
|
|
1160
|
+
var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
|
|
1161
|
+
if (B)
|
|
1162
1162
|
throw J(C);
|
|
1163
1163
|
return J(A);
|
|
1164
1164
|
} finally {
|
|
@@ -1170,16 +1170,16 @@ class oA {
|
|
|
1170
1170
|
* @param {string} table
|
|
1171
1171
|
*/
|
|
1172
1172
|
from(A) {
|
|
1173
|
-
const C =
|
|
1174
|
-
I.wasmupdatebuilder_from(this.__wbg_ptr, C,
|
|
1173
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
1174
|
+
I.wasmupdatebuilder_from(this.__wbg_ptr, C, B);
|
|
1175
1175
|
}
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Create a new UPDATE builder for the given table.
|
|
1178
1178
|
* @param {string} table_name
|
|
1179
1179
|
*/
|
|
1180
1180
|
constructor(A) {
|
|
1181
|
-
const C =
|
|
1182
|
-
return this.__wbg_ptr =
|
|
1181
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmupdatebuilder_new(C, B);
|
|
1182
|
+
return this.__wbg_ptr = Q >>> 0, mA.register(this, this.__wbg_ptr, this), this;
|
|
1183
1183
|
}
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Add a SET column = value assignment.
|
|
@@ -1187,8 +1187,8 @@ class oA {
|
|
|
1187
1187
|
* @param {WasmExpr} value
|
|
1188
1188
|
*/
|
|
1189
1189
|
set(A, C) {
|
|
1190
|
-
const
|
|
1191
|
-
H(C, G), I.wasmupdatebuilder_set(this.__wbg_ptr,
|
|
1190
|
+
const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
1191
|
+
H(C, G), I.wasmupdatebuilder_set(this.__wbg_ptr, B, Q, C.__wbg_ptr);
|
|
1192
1192
|
}
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Generate SQL string for the given dialect.
|
|
@@ -1196,16 +1196,16 @@ class oA {
|
|
|
1196
1196
|
* @returns {string}
|
|
1197
1197
|
*/
|
|
1198
1198
|
to_sql(A) {
|
|
1199
|
-
let C,
|
|
1199
|
+
let C, B;
|
|
1200
1200
|
try {
|
|
1201
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
1202
|
-
I.wasmupdatebuilder_to_sql(y, this.__wbg_ptr, h,
|
|
1203
|
-
var
|
|
1204
|
-
if (
|
|
1201
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o;
|
|
1202
|
+
I.wasmupdatebuilder_to_sql(y, this.__wbg_ptr, h, L);
|
|
1203
|
+
var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), M = i().getInt32(y + 12, !0), k = Q, K = E;
|
|
1204
|
+
if (M)
|
|
1205
1205
|
throw k = 0, K = 0, J(D);
|
|
1206
|
-
return C = k,
|
|
1206
|
+
return C = k, B = K, F(k, K);
|
|
1207
1207
|
} finally {
|
|
1208
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1208
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
/**
|
|
@@ -1216,8 +1216,8 @@ class oA {
|
|
|
1216
1216
|
H(A, G), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
Symbol.dispose && (
|
|
1220
|
-
class
|
|
1219
|
+
Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
|
|
1220
|
+
class BA {
|
|
1221
1221
|
__destroy_into_raw() {
|
|
1222
1222
|
const A = this.__wbg_ptr;
|
|
1223
1223
|
return this.__wbg_ptr = 0, uA.unregister(this), A;
|
|
@@ -1238,50 +1238,50 @@ class QA {
|
|
|
1238
1238
|
* @param {WasmExprArray} exprs
|
|
1239
1239
|
*/
|
|
1240
1240
|
order_by(A) {
|
|
1241
|
-
H(A,
|
|
1241
|
+
H(A, P), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1242
1242
|
}
|
|
1243
1243
|
/**
|
|
1244
1244
|
* Set the PARTITION BY expressions.
|
|
1245
1245
|
* @param {WasmExprArray} exprs
|
|
1246
1246
|
*/
|
|
1247
1247
|
partition_by(A) {
|
|
1248
|
-
H(A,
|
|
1248
|
+
H(A, P), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
Symbol.dispose && (
|
|
1252
|
-
function
|
|
1253
|
-
let
|
|
1251
|
+
Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
|
|
1252
|
+
function UI(g, A, C) {
|
|
1253
|
+
let B, Q;
|
|
1254
1254
|
try {
|
|
1255
|
-
const
|
|
1256
|
-
I.annotate_types(
|
|
1257
|
-
var E =
|
|
1258
|
-
return
|
|
1255
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1256
|
+
I.annotate_types(M, k, K, y, h, L, q);
|
|
1257
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1258
|
+
return B = E, Q = D, F(E, D);
|
|
1259
1259
|
} finally {
|
|
1260
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1260
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
function JI(g, A, C) {
|
|
1264
|
-
const
|
|
1264
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, M = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = I.annotate_types_value(B, Q, E, D, M, k);
|
|
1265
1265
|
return J(K);
|
|
1266
1266
|
}
|
|
1267
1267
|
function vA(g, A, C) {
|
|
1268
|
-
let
|
|
1268
|
+
let B, Q;
|
|
1269
1269
|
try {
|
|
1270
|
-
const
|
|
1271
|
-
I.ast_add_where(
|
|
1272
|
-
var E =
|
|
1273
|
-
return
|
|
1270
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o;
|
|
1271
|
+
I.ast_add_where(M, k, K, y, h, C);
|
|
1272
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1273
|
+
return B = E, Q = D, F(E, D);
|
|
1274
1274
|
} finally {
|
|
1275
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1275
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
function XA(g) {
|
|
1279
1279
|
let A, C;
|
|
1280
1280
|
try {
|
|
1281
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1282
|
-
I.ast_get_aggregate_functions(E, D,
|
|
1283
|
-
var
|
|
1284
|
-
return A =
|
|
1281
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1282
|
+
I.ast_get_aggregate_functions(E, D, M);
|
|
1283
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1284
|
+
return A = B, C = Q, F(B, Q);
|
|
1285
1285
|
} finally {
|
|
1286
1286
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1287
1287
|
}
|
|
@@ -1289,10 +1289,10 @@ function XA(g) {
|
|
|
1289
1289
|
function _A(g) {
|
|
1290
1290
|
let A, C;
|
|
1291
1291
|
try {
|
|
1292
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1293
|
-
I.ast_get_column_names(E, D,
|
|
1294
|
-
var
|
|
1295
|
-
return A =
|
|
1292
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1293
|
+
I.ast_get_column_names(E, D, M);
|
|
1294
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1295
|
+
return A = B, C = Q, F(B, Q);
|
|
1296
1296
|
} finally {
|
|
1297
1297
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1298
1298
|
}
|
|
@@ -1300,10 +1300,10 @@ function _A(g) {
|
|
|
1300
1300
|
function $A(g) {
|
|
1301
1301
|
let A, C;
|
|
1302
1302
|
try {
|
|
1303
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1304
|
-
I.ast_get_functions(E, D,
|
|
1305
|
-
var
|
|
1306
|
-
return A =
|
|
1303
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1304
|
+
I.ast_get_functions(E, D, M);
|
|
1305
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1306
|
+
return A = B, C = Q, F(B, Q);
|
|
1307
1307
|
} finally {
|
|
1308
1308
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1309
1309
|
}
|
|
@@ -1311,10 +1311,10 @@ function $A(g) {
|
|
|
1311
1311
|
function Ag(g) {
|
|
1312
1312
|
let A, C;
|
|
1313
1313
|
try {
|
|
1314
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1315
|
-
I.ast_get_literals(E, D,
|
|
1316
|
-
var
|
|
1317
|
-
return A =
|
|
1314
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1315
|
+
I.ast_get_literals(E, D, M);
|
|
1316
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1317
|
+
return A = B, C = Q, F(B, Q);
|
|
1318
1318
|
} finally {
|
|
1319
1319
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1320
1320
|
}
|
|
@@ -1322,10 +1322,10 @@ function Ag(g) {
|
|
|
1322
1322
|
function gg(g) {
|
|
1323
1323
|
let A, C;
|
|
1324
1324
|
try {
|
|
1325
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1326
|
-
I.ast_get_subqueries(E, D,
|
|
1327
|
-
var
|
|
1328
|
-
return A =
|
|
1325
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1326
|
+
I.ast_get_subqueries(E, D, M);
|
|
1327
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1328
|
+
return A = B, C = Q, F(B, Q);
|
|
1329
1329
|
} finally {
|
|
1330
1330
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1331
1331
|
}
|
|
@@ -1333,10 +1333,10 @@ function gg(g) {
|
|
|
1333
1333
|
function Ig(g) {
|
|
1334
1334
|
let A, C;
|
|
1335
1335
|
try {
|
|
1336
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1337
|
-
I.ast_get_table_names(E, D,
|
|
1338
|
-
var
|
|
1339
|
-
return A =
|
|
1336
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1337
|
+
I.ast_get_table_names(E, D, M);
|
|
1338
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1339
|
+
return A = B, C = Q, F(B, Q);
|
|
1340
1340
|
} finally {
|
|
1341
1341
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1342
1342
|
}
|
|
@@ -1344,176 +1344,176 @@ function Ig(g) {
|
|
|
1344
1344
|
function Cg(g) {
|
|
1345
1345
|
let A, C;
|
|
1346
1346
|
try {
|
|
1347
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1348
|
-
I.ast_get_window_functions(E, D,
|
|
1349
|
-
var
|
|
1350
|
-
return A =
|
|
1347
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1348
|
+
I.ast_get_window_functions(E, D, M);
|
|
1349
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1350
|
+
return A = B, C = Q, F(B, Q);
|
|
1351
1351
|
} finally {
|
|
1352
1352
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Bg(g) {
|
|
1356
1356
|
let A, C;
|
|
1357
1357
|
try {
|
|
1358
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1359
|
-
I.ast_node_count(E, D,
|
|
1360
|
-
var
|
|
1361
|
-
return A =
|
|
1358
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1359
|
+
I.ast_node_count(E, D, M);
|
|
1360
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1361
|
+
return A = B, C = Q, F(B, Q);
|
|
1362
1362
|
} finally {
|
|
1363
1363
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
let C,
|
|
1366
|
+
function Qg(g, A) {
|
|
1367
|
+
let C, B;
|
|
1368
1368
|
try {
|
|
1369
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1370
|
-
I.ast_qualify_columns(D,
|
|
1371
|
-
var
|
|
1372
|
-
return C =
|
|
1369
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1370
|
+
I.ast_qualify_columns(D, M, k, K, y);
|
|
1371
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1372
|
+
return C = Q, B = E, F(Q, E);
|
|
1373
1373
|
} finally {
|
|
1374
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1374
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
function Eg(g, A) {
|
|
1378
|
-
let C,
|
|
1378
|
+
let C, B;
|
|
1379
1379
|
try {
|
|
1380
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1381
|
-
I.ast_qualify_tables(D,
|
|
1382
|
-
var
|
|
1383
|
-
return C =
|
|
1380
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1381
|
+
I.ast_qualify_tables(D, M, k, K, y);
|
|
1382
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1383
|
+
return C = Q, B = E, F(Q, E);
|
|
1384
1384
|
} finally {
|
|
1385
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1385
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
function Dg(g) {
|
|
1389
1389
|
let A, C;
|
|
1390
1390
|
try {
|
|
1391
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1392
|
-
I.ast_remove_where(E, D,
|
|
1393
|
-
var
|
|
1394
|
-
return A =
|
|
1391
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1392
|
+
I.ast_remove_where(E, D, M);
|
|
1393
|
+
var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
|
|
1394
|
+
return A = B, C = Q, F(B, Q);
|
|
1395
1395
|
} finally {
|
|
1396
1396
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
function wg(g, A) {
|
|
1400
|
-
let C,
|
|
1400
|
+
let C, B;
|
|
1401
1401
|
try {
|
|
1402
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1403
|
-
I.ast_rename_columns(D,
|
|
1404
|
-
var
|
|
1405
|
-
return C =
|
|
1402
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1403
|
+
I.ast_rename_columns(D, M, k, K, y);
|
|
1404
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1405
|
+
return C = Q, B = E, F(Q, E);
|
|
1406
1406
|
} finally {
|
|
1407
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1407
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1411
|
-
let C,
|
|
1410
|
+
function ig(g, A) {
|
|
1411
|
+
let C, B;
|
|
1412
1412
|
try {
|
|
1413
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1414
|
-
I.ast_rename_tables(D,
|
|
1415
|
-
var
|
|
1416
|
-
return C =
|
|
1413
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1414
|
+
I.ast_rename_tables(D, M, k, K, y);
|
|
1415
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1416
|
+
return C = Q, B = E, F(Q, E);
|
|
1417
1417
|
} finally {
|
|
1418
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1418
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1422
|
-
let
|
|
1421
|
+
function Mg(g, A, C) {
|
|
1422
|
+
let B, Q;
|
|
1423
1423
|
try {
|
|
1424
|
-
const
|
|
1425
|
-
I.ast_rename_tables_with_options(
|
|
1426
|
-
var E =
|
|
1427
|
-
return
|
|
1424
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1425
|
+
I.ast_rename_tables_with_options(M, k, K, y, h, L, q);
|
|
1426
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1427
|
+
return B = E, Q = D, F(E, D);
|
|
1428
1428
|
} finally {
|
|
1429
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1429
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1433
|
-
let C,
|
|
1432
|
+
function og(g, A) {
|
|
1433
|
+
let C, B;
|
|
1434
1434
|
try {
|
|
1435
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1436
|
-
I.ast_set_distinct(D,
|
|
1437
|
-
var
|
|
1438
|
-
return C =
|
|
1435
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
|
|
1436
|
+
I.ast_set_distinct(D, M, k, A);
|
|
1437
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1438
|
+
return C = Q, B = E, F(Q, E);
|
|
1439
1439
|
} finally {
|
|
1440
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1440
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1444
|
-
let C,
|
|
1443
|
+
function Ng(g, A) {
|
|
1444
|
+
let C, B;
|
|
1445
1445
|
try {
|
|
1446
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1447
|
-
I.ast_set_limit(D,
|
|
1448
|
-
var
|
|
1449
|
-
return C =
|
|
1446
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
|
|
1447
|
+
I.ast_set_limit(D, M, k, A);
|
|
1448
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1449
|
+
return C = Q, B = E, F(Q, E);
|
|
1450
1450
|
} finally {
|
|
1451
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1451
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
|
-
function kg(g, A, C,
|
|
1455
|
-
let D,
|
|
1454
|
+
function kg(g, A, C, B, Q, E) {
|
|
1455
|
+
let D, M;
|
|
1456
1456
|
try {
|
|
1457
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h =
|
|
1458
|
-
I.diff_sql(y, h,
|
|
1459
|
-
var k =
|
|
1460
|
-
return D = k,
|
|
1457
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), L = o, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), T = o, r = N(C, I.__wbindgen_export, I.__wbindgen_export2), v = o;
|
|
1458
|
+
I.diff_sql(y, h, L, q, T, r, v, B, Q, E);
|
|
1459
|
+
var k = i().getInt32(y + 0, !0), K = i().getInt32(y + 4, !0);
|
|
1460
|
+
return D = k, M = K, F(k, K);
|
|
1461
1461
|
} finally {
|
|
1462
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D,
|
|
1462
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, M, 1);
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
let C,
|
|
1465
|
+
function RI(g, A) {
|
|
1466
|
+
let C, B;
|
|
1467
1467
|
try {
|
|
1468
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1469
|
-
I.format_sql(D,
|
|
1470
|
-
var
|
|
1471
|
-
return C =
|
|
1468
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1469
|
+
I.format_sql(D, M, k, K, y);
|
|
1470
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1471
|
+
return C = Q, B = E, F(Q, E);
|
|
1472
1472
|
} finally {
|
|
1473
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1473
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1477
|
-
const C =
|
|
1476
|
+
function LI(g, A) {
|
|
1477
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.format_sql_value(C, B, Q, E);
|
|
1478
1478
|
return J(D);
|
|
1479
1479
|
}
|
|
1480
1480
|
function sI(g, A, C) {
|
|
1481
|
-
let
|
|
1481
|
+
let B, Q;
|
|
1482
1482
|
try {
|
|
1483
|
-
const
|
|
1484
|
-
I.format_sql_with_options(
|
|
1485
|
-
var E =
|
|
1486
|
-
return
|
|
1483
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1484
|
+
I.format_sql_with_options(M, k, K, y, h, L, q);
|
|
1485
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1486
|
+
return B = E, Q = D, F(E, D);
|
|
1487
1487
|
} finally {
|
|
1488
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1488
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
function aI(g, A, C) {
|
|
1492
|
-
const
|
|
1493
|
-
return J(
|
|
1492
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, M = I.format_sql_with_options_value(B, Q, E, D, s(C));
|
|
1493
|
+
return J(M);
|
|
1494
1494
|
}
|
|
1495
1495
|
function qI(g, A) {
|
|
1496
|
-
let C,
|
|
1496
|
+
let C, B;
|
|
1497
1497
|
try {
|
|
1498
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1499
|
-
I.generate(D,
|
|
1500
|
-
var
|
|
1501
|
-
return C =
|
|
1498
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1499
|
+
I.generate(D, M, k, K, y);
|
|
1500
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1501
|
+
return C = Q, B = E, F(Q, E);
|
|
1502
1502
|
} finally {
|
|
1503
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1503
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
function pI(g, A) {
|
|
1507
|
-
const C =
|
|
1508
|
-
return J(
|
|
1507
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.generate_value(s(g), C, B);
|
|
1508
|
+
return J(Q);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function PI() {
|
|
1511
1511
|
let g, A;
|
|
1512
1512
|
try {
|
|
1513
|
-
const
|
|
1514
|
-
I.get_dialects(
|
|
1515
|
-
var C =
|
|
1516
|
-
return g = C, A =
|
|
1513
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1514
|
+
I.get_dialects(Q);
|
|
1515
|
+
var C = i().getInt32(Q + 0, !0), B = i().getInt32(Q + 4, !0);
|
|
1516
|
+
return g = C, A = B, F(C, B);
|
|
1517
1517
|
} finally {
|
|
1518
1518
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1519
1519
|
}
|
|
@@ -1522,178 +1522,178 @@ function OI() {
|
|
|
1522
1522
|
const g = I.get_dialects_value();
|
|
1523
1523
|
return J(g);
|
|
1524
1524
|
}
|
|
1525
|
-
function yg(g, A, C,
|
|
1526
|
-
let
|
|
1525
|
+
function yg(g, A, C, B) {
|
|
1526
|
+
let Q, E;
|
|
1527
1527
|
try {
|
|
1528
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16), K =
|
|
1529
|
-
I.lineage_sql(k, K, y, h,
|
|
1530
|
-
var D =
|
|
1531
|
-
return
|
|
1528
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), T = o;
|
|
1529
|
+
I.lineage_sql(k, K, y, h, L, q, T, B);
|
|
1530
|
+
var D = i().getInt32(k + 0, !0), M = i().getInt32(k + 4, !0);
|
|
1531
|
+
return Q = D, E = M, F(D, M);
|
|
1532
1532
|
} finally {
|
|
1533
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1533
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
function Kg(g, A, C,
|
|
1536
|
+
function Kg(g, A, C, B, Q) {
|
|
1537
1537
|
let E, D;
|
|
1538
1538
|
try {
|
|
1539
|
-
const K = I.__wbindgen_add_to_stack_pointer(-16), y =
|
|
1540
|
-
I.lineage_sql_with_schema(K, y, h,
|
|
1541
|
-
var
|
|
1542
|
-
return E =
|
|
1539
|
+
const K = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, T = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = o, v = N(B, I.__wbindgen_export, I.__wbindgen_export2), SI = o;
|
|
1540
|
+
I.lineage_sql_with_schema(K, y, h, L, q, T, r, v, SI, Q);
|
|
1541
|
+
var M = i().getInt32(K + 0, !0), k = i().getInt32(K + 4, !0);
|
|
1542
|
+
return E = M, D = k, F(M, k);
|
|
1543
1543
|
} finally {
|
|
1544
1544
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
1547
|
function Gg(g, A) {
|
|
1548
|
-
let C,
|
|
1548
|
+
let C, B;
|
|
1549
1549
|
try {
|
|
1550
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1551
|
-
I.openlineage_column_lineage(D,
|
|
1552
|
-
var
|
|
1553
|
-
return C =
|
|
1550
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1551
|
+
I.openlineage_column_lineage(D, M, k, K, y);
|
|
1552
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1553
|
+
return C = Q, B = E, F(Q, E);
|
|
1554
1554
|
} finally {
|
|
1555
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1555
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
function Yg(g, A) {
|
|
1559
|
-
let C,
|
|
1559
|
+
let C, B;
|
|
1560
1560
|
try {
|
|
1561
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1562
|
-
I.openlineage_job_event(D,
|
|
1563
|
-
var
|
|
1564
|
-
return C =
|
|
1561
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1562
|
+
I.openlineage_job_event(D, M, k, K, y);
|
|
1563
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1564
|
+
return C = Q, B = E, F(Q, E);
|
|
1565
1565
|
} finally {
|
|
1566
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1566
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
function Hg(g, A) {
|
|
1570
|
-
let C,
|
|
1570
|
+
let C, B;
|
|
1571
1571
|
try {
|
|
1572
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1573
|
-
I.openlineage_run_event(D,
|
|
1574
|
-
var
|
|
1575
|
-
return C =
|
|
1572
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1573
|
+
I.openlineage_run_event(D, M, k, K, y);
|
|
1574
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1575
|
+
return C = Q, B = E, F(Q, E);
|
|
1576
1576
|
} finally {
|
|
1577
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1577
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1581
|
-
let C,
|
|
1580
|
+
function TI(g, A) {
|
|
1581
|
+
let C, B;
|
|
1582
1582
|
try {
|
|
1583
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1584
|
-
I.parse(D,
|
|
1585
|
-
var
|
|
1586
|
-
return C =
|
|
1583
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1584
|
+
I.parse(D, M, k, K, y);
|
|
1585
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1586
|
+
return C = Q, B = E, F(Q, E);
|
|
1587
1587
|
} finally {
|
|
1588
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1588
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1592
|
-
const C =
|
|
1591
|
+
function jI(g, A) {
|
|
1592
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.parse_value(C, B, Q, E);
|
|
1593
1593
|
return J(D);
|
|
1594
1594
|
}
|
|
1595
1595
|
function hg(g, A) {
|
|
1596
|
-
let C,
|
|
1596
|
+
let C, B;
|
|
1597
1597
|
try {
|
|
1598
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1599
|
-
I.plan(D,
|
|
1600
|
-
var
|
|
1601
|
-
return C =
|
|
1598
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1599
|
+
I.plan(D, M, k, K, y);
|
|
1600
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1601
|
+
return C = Q, B = E, F(Q, E);
|
|
1602
1602
|
} finally {
|
|
1603
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1603
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
1606
|
function Sg(g, A, C) {
|
|
1607
|
-
let
|
|
1607
|
+
let B, Q;
|
|
1608
1608
|
try {
|
|
1609
|
-
const
|
|
1610
|
-
I.source_tables(
|
|
1611
|
-
var E =
|
|
1612
|
-
return
|
|
1609
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1610
|
+
I.source_tables(M, k, K, y, h, L, q);
|
|
1611
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1612
|
+
return B = E, Q = D, F(E, D);
|
|
1613
1613
|
} finally {
|
|
1614
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1614
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
let C,
|
|
1617
|
+
function tI(g, A) {
|
|
1618
|
+
let C, B;
|
|
1619
1619
|
try {
|
|
1620
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1621
|
-
I.tokenize(D,
|
|
1622
|
-
var
|
|
1623
|
-
return C =
|
|
1620
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1621
|
+
I.tokenize(D, M, k, K, y);
|
|
1622
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1623
|
+
return C = Q, B = E, F(Q, E);
|
|
1624
1624
|
} finally {
|
|
1625
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1625
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const C =
|
|
1628
|
+
function VI(g, A) {
|
|
1629
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.tokenize_value(C, B, Q, E);
|
|
1630
1630
|
return J(D);
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
let
|
|
1632
|
+
function zI(g, A, C) {
|
|
1633
|
+
let B, Q;
|
|
1634
1634
|
try {
|
|
1635
|
-
const
|
|
1636
|
-
I.transpile(
|
|
1637
|
-
var E =
|
|
1638
|
-
return
|
|
1635
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1636
|
+
I.transpile(M, k, K, y, h, L, q);
|
|
1637
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1638
|
+
return B = E, Q = D, F(E, D);
|
|
1639
1639
|
} finally {
|
|
1640
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1640
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1644
|
-
const
|
|
1643
|
+
function fI(g, A, C) {
|
|
1644
|
+
const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, M = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = I.transpile_value(B, Q, E, D, M, k);
|
|
1645
1645
|
return J(K);
|
|
1646
1646
|
}
|
|
1647
1647
|
function ZI(g, A) {
|
|
1648
|
-
let C,
|
|
1648
|
+
let C, B;
|
|
1649
1649
|
try {
|
|
1650
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1651
|
-
I.validate(D,
|
|
1652
|
-
var
|
|
1653
|
-
return C =
|
|
1650
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), M = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
|
|
1651
|
+
I.validate(D, M, k, K, y);
|
|
1652
|
+
var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1653
|
+
return C = Q, B = E, F(Q, E);
|
|
1654
1654
|
} finally {
|
|
1655
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C,
|
|
1655
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1659
|
-
let
|
|
1658
|
+
function dI(g, A, C) {
|
|
1659
|
+
let B, Q;
|
|
1660
1660
|
try {
|
|
1661
|
-
const
|
|
1662
|
-
I.validate_with_options(
|
|
1663
|
-
var E =
|
|
1664
|
-
return
|
|
1661
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, L = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
|
|
1662
|
+
I.validate_with_options(M, k, K, y, h, L, q);
|
|
1663
|
+
var E = i().getInt32(M + 0, !0), D = i().getInt32(M + 4, !0);
|
|
1664
|
+
return B = E, Q = D, F(E, D);
|
|
1665
1665
|
} finally {
|
|
1666
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1666
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
function cg(g, A, C,
|
|
1670
|
-
let
|
|
1669
|
+
function cg(g, A, C, B) {
|
|
1670
|
+
let Q, E;
|
|
1671
1671
|
try {
|
|
1672
|
-
const k = I.__wbindgen_add_to_stack_pointer(-16), K =
|
|
1673
|
-
I.validate_with_schema(k, K, y, h,
|
|
1674
|
-
var D =
|
|
1675
|
-
return
|
|
1672
|
+
const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), L = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), T = o, r = N(B, I.__wbindgen_export, I.__wbindgen_export2), v = o;
|
|
1673
|
+
I.validate_with_schema(k, K, y, h, L, q, T, r, v);
|
|
1674
|
+
var D = i().getInt32(k + 0, !0), M = i().getInt32(k + 4, !0);
|
|
1675
|
+
return Q = D, E = M, F(D, M);
|
|
1676
1676
|
} finally {
|
|
1677
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(
|
|
1677
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function eI() {
|
|
1681
1681
|
let g, A;
|
|
1682
1682
|
try {
|
|
1683
|
-
const
|
|
1684
|
-
I.version(
|
|
1685
|
-
var C =
|
|
1686
|
-
return g = C, A =
|
|
1683
|
+
const Q = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1684
|
+
I.version(Q);
|
|
1685
|
+
var C = i().getInt32(Q + 0, !0), B = i().getInt32(Q + 4, !0);
|
|
1686
|
+
return g = C, A = B, F(C, B);
|
|
1687
1687
|
} finally {
|
|
1688
1688
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Fg(g, A) {
|
|
1692
1692
|
H(g, G);
|
|
1693
|
-
const C =
|
|
1694
|
-
return G.__wrap(
|
|
1693
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_alias(g.__wbg_ptr, C, B);
|
|
1694
|
+
return G.__wrap(Q);
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Ug(g, A) {
|
|
1697
1697
|
H(g, G), H(A, G);
|
|
1698
1698
|
const C = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
|
|
1699
1699
|
return G.__wrap(C);
|
|
@@ -1702,36 +1702,36 @@ function Jg(g) {
|
|
|
1702
1702
|
const A = I.wasm_boolean(g);
|
|
1703
1703
|
return G.__wrap(A);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function Rg(g) {
|
|
1706
1706
|
H(g, G);
|
|
1707
1707
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1708
1708
|
return m.__wrap(A);
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Lg(g, A) {
|
|
1711
1711
|
H(g, G);
|
|
1712
|
-
const C =
|
|
1713
|
-
return G.__wrap(B);
|
|
1714
|
-
}
|
|
1715
|
-
function FA(g) {
|
|
1716
|
-
const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, Q = I.wasm_col(A, C);
|
|
1712
|
+
const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_cast(g.__wbg_ptr, C, B);
|
|
1717
1713
|
return G.__wrap(Q);
|
|
1718
1714
|
}
|
|
1715
|
+
function UA(g) {
|
|
1716
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_col(A, C);
|
|
1717
|
+
return G.__wrap(B);
|
|
1718
|
+
}
|
|
1719
1719
|
function sg(g) {
|
|
1720
1720
|
H(g, G);
|
|
1721
1721
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1722
1722
|
return G.__wrap(A);
|
|
1723
1723
|
}
|
|
1724
1724
|
function ag(g, A) {
|
|
1725
|
-
const C =
|
|
1725
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
1726
1726
|
H(A, G);
|
|
1727
|
-
const
|
|
1728
|
-
return G.__wrap(
|
|
1727
|
+
const Q = I.wasm_extract(C, B, A.__wbg_ptr);
|
|
1728
|
+
return G.__wrap(Q);
|
|
1729
1729
|
}
|
|
1730
1730
|
function qg(g, A) {
|
|
1731
|
-
const C =
|
|
1732
|
-
H(A,
|
|
1733
|
-
const
|
|
1734
|
-
return G.__wrap(
|
|
1731
|
+
const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
|
|
1732
|
+
H(A, P);
|
|
1733
|
+
const Q = I.wasm_func(C, B, A.__wbg_ptr);
|
|
1734
|
+
return G.__wrap(Q);
|
|
1735
1735
|
}
|
|
1736
1736
|
function kA(g) {
|
|
1737
1737
|
const A = I.wasm_lit(s(g));
|
|
@@ -1746,59 +1746,59 @@ function yA() {
|
|
|
1746
1746
|
const g = I.wasm_null();
|
|
1747
1747
|
return G.__wrap(g);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Pg(g, A) {
|
|
1750
1750
|
H(g, G), H(A, G);
|
|
1751
1751
|
const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
|
|
1752
1752
|
return G.__wrap(C);
|
|
1753
1753
|
}
|
|
1754
1754
|
function Og(g) {
|
|
1755
|
-
const A =
|
|
1756
|
-
return G.__wrap(
|
|
1755
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_sql_expr(A, C);
|
|
1756
|
+
return G.__wrap(B);
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Tg() {
|
|
1759
1759
|
const g = I.wasm_star();
|
|
1760
1760
|
return G.__wrap(g);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function jg(g, A) {
|
|
1763
1763
|
try {
|
|
1764
1764
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1765
|
-
H(g,
|
|
1766
|
-
const D =
|
|
1767
|
-
I.wasm_subquery(E, g.__wbg_ptr, D,
|
|
1768
|
-
var C =
|
|
1769
|
-
if (
|
|
1770
|
-
throw J(
|
|
1765
|
+
H(g, j);
|
|
1766
|
+
const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), M = o;
|
|
1767
|
+
I.wasm_subquery(E, g.__wbg_ptr, D, M);
|
|
1768
|
+
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
|
|
1769
|
+
if (Q)
|
|
1770
|
+
throw J(B);
|
|
1771
1771
|
return G.__wrap(C);
|
|
1772
1772
|
} finally {
|
|
1773
1773
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1777
|
-
const A =
|
|
1778
|
-
return G.__wrap(
|
|
1776
|
+
function tg(g) {
|
|
1777
|
+
const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_table(A, C);
|
|
1778
|
+
return G.__wrap(B);
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1781
|
-
const C = Error(
|
|
1780
|
+
function xI(g, A) {
|
|
1781
|
+
const C = Error(F(g, A));
|
|
1782
1782
|
return s(C);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function WI(g) {
|
|
1785
1785
|
return Number(c(g));
|
|
1786
1786
|
}
|
|
1787
1787
|
function lI(g, A) {
|
|
1788
|
-
const C = String(c(A)),
|
|
1789
|
-
|
|
1788
|
+
const C = String(c(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
1789
|
+
i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
|
|
1790
1790
|
}
|
|
1791
1791
|
function rI(g, A) {
|
|
1792
|
-
const C = c(A),
|
|
1793
|
-
|
|
1792
|
+
const C = c(A), B = typeof C == "bigint" ? C : void 0;
|
|
1793
|
+
i().setBigInt64(g + 8, b(B) ? BigInt(0) : B, !0), i().setInt32(g + 0, !b(B), !0);
|
|
1794
1794
|
}
|
|
1795
1795
|
function nI(g) {
|
|
1796
1796
|
const A = c(g), C = typeof A == "boolean" ? A : void 0;
|
|
1797
1797
|
return b(C) ? 16777215 : C ? 1 : 0;
|
|
1798
1798
|
}
|
|
1799
1799
|
function mI(g, A) {
|
|
1800
|
-
const C = cA(c(A)),
|
|
1801
|
-
|
|
1800
|
+
const C = cA(c(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
1801
|
+
i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
|
|
1802
1802
|
}
|
|
1803
1803
|
function uI(g, A) {
|
|
1804
1804
|
return c(g) in c(A);
|
|
@@ -1829,16 +1829,16 @@ function IC(g, A) {
|
|
|
1829
1829
|
return c(g) == c(A);
|
|
1830
1830
|
}
|
|
1831
1831
|
function CC(g, A) {
|
|
1832
|
-
const C = c(A),
|
|
1833
|
-
|
|
1834
|
-
}
|
|
1835
|
-
function QC(g, A) {
|
|
1836
|
-
const C = c(A), Q = typeof C == "string" ? C : void 0;
|
|
1837
|
-
var B = b(Q) ? 0 : o(Q, I.__wbindgen_export, I.__wbindgen_export2), E = N;
|
|
1838
|
-
M().setInt32(g + 4, E, !0), M().setInt32(g + 0, B, !0);
|
|
1832
|
+
const C = c(A), B = typeof C == "number" ? C : void 0;
|
|
1833
|
+
i().setFloat64(g + 8, b(B) ? 0 : B, !0), i().setInt32(g + 0, !b(B), !0);
|
|
1839
1834
|
}
|
|
1840
1835
|
function BC(g, A) {
|
|
1841
|
-
|
|
1836
|
+
const C = c(A), B = typeof C == "string" ? C : void 0;
|
|
1837
|
+
var Q = b(B) ? 0 : N(B, I.__wbindgen_export, I.__wbindgen_export2), E = o;
|
|
1838
|
+
i().setInt32(g + 4, E, !0), i().setInt32(g + 0, Q, !0);
|
|
1839
|
+
}
|
|
1840
|
+
function QC(g, A) {
|
|
1841
|
+
throw new Error(F(g, A));
|
|
1842
1842
|
}
|
|
1843
1843
|
function EC() {
|
|
1844
1844
|
return KA(function(g, A) {
|
|
@@ -1853,25 +1853,25 @@ function DC(g, A) {
|
|
|
1853
1853
|
function wC(g) {
|
|
1854
1854
|
return c(g).done;
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function iC(g) {
|
|
1857
1857
|
const A = Object.entries(c(g));
|
|
1858
1858
|
return s(A);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1861
|
-
let C,
|
|
1860
|
+
function MC(g, A) {
|
|
1861
|
+
let C, B;
|
|
1862
1862
|
try {
|
|
1863
|
-
C = g,
|
|
1863
|
+
C = g, B = A, console.error(F(g, A));
|
|
1864
1864
|
} finally {
|
|
1865
|
-
I.__wbindgen_export4(C,
|
|
1865
|
+
I.__wbindgen_export4(C, B, 1);
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function oC() {
|
|
1869
1869
|
return KA(function(g) {
|
|
1870
1870
|
const A = String.fromCodePoint(g >>> 0);
|
|
1871
1871
|
return s(A);
|
|
1872
1872
|
}, arguments);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function NC(g, A) {
|
|
1875
1875
|
const C = c(g)[A >>> 0];
|
|
1876
1876
|
return s(C);
|
|
1877
1877
|
}
|
|
@@ -1924,21 +1924,21 @@ function SC() {
|
|
|
1924
1924
|
function cC(g) {
|
|
1925
1925
|
return c(g).length;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function FC(g) {
|
|
1928
1928
|
return c(g).length;
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function UC(g) {
|
|
1931
1931
|
return c(g).length;
|
|
1932
1932
|
}
|
|
1933
1933
|
function JC() {
|
|
1934
1934
|
const g = new Object();
|
|
1935
1935
|
return s(g);
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function RC() {
|
|
1938
1938
|
const g = new Array();
|
|
1939
1939
|
return s(g);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function LC() {
|
|
1942
1942
|
const g = new Error();
|
|
1943
1943
|
return s(g);
|
|
1944
1944
|
}
|
|
@@ -1959,59 +1959,59 @@ function pC(g) {
|
|
|
1959
1959
|
const A = c(g).next;
|
|
1960
1960
|
return s(A);
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function PC(g, A, C) {
|
|
1963
1963
|
Uint8Array.prototype.set.call(lC(g, A), c(C));
|
|
1964
1964
|
}
|
|
1965
1965
|
function OC(g, A, C) {
|
|
1966
|
-
const
|
|
1967
|
-
return s(
|
|
1966
|
+
const B = c(g).set(c(A), c(C));
|
|
1967
|
+
return s(B);
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function TC(g, A, C) {
|
|
1970
1970
|
c(g)[J(A)] = J(C);
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function jC(g, A, C) {
|
|
1973
1973
|
c(g)[A >>> 0] = J(C);
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1976
|
-
const C = c(A).stack,
|
|
1977
|
-
|
|
1975
|
+
function tC(g, A) {
|
|
1976
|
+
const C = c(A).stack, B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
|
|
1977
|
+
i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function VC(g) {
|
|
1980
1980
|
const A = c(g).value;
|
|
1981
1981
|
return s(A);
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function zC(g) {
|
|
1984
1984
|
return s(g);
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function fC(g) {
|
|
1987
1987
|
return s(g);
|
|
1988
1988
|
}
|
|
1989
1989
|
function ZC(g, A) {
|
|
1990
|
-
const C =
|
|
1990
|
+
const C = F(g, A);
|
|
1991
1991
|
return s(C);
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function dC(g) {
|
|
1994
1994
|
const A = BigInt.asUintN(64, g);
|
|
1995
1995
|
return s(A);
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1997
|
+
function eC(g) {
|
|
1998
1998
|
const A = c(g);
|
|
1999
1999
|
return s(A);
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function xC(g) {
|
|
2002
2002
|
J(g);
|
|
2003
2003
|
}
|
|
2004
2004
|
const ZA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2005
2005
|
}, unregister: () => {
|
|
2006
2006
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), hA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2007
2007
|
}, unregister: () => {
|
|
2008
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)),
|
|
2008
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), dA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2009
2009
|
}, unregister: () => {
|
|
2010
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)),
|
|
2010
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), eA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2011
2011
|
}, unregister: () => {
|
|
2012
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)),
|
|
2012
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), xA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2013
2013
|
}, unregister: () => {
|
|
2014
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)),
|
|
2014
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2015
2015
|
}, unregister: () => {
|
|
2016
2016
|
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2017
2017
|
}, unregister: () => {
|
|
@@ -2040,47 +2040,47 @@ function cA(g) {
|
|
|
2040
2040
|
if (A == "string")
|
|
2041
2041
|
return `"${g}"`;
|
|
2042
2042
|
if (A == "symbol") {
|
|
2043
|
-
const
|
|
2044
|
-
return
|
|
2043
|
+
const Q = g.description;
|
|
2044
|
+
return Q == null ? "Symbol" : `Symbol(${Q})`;
|
|
2045
2045
|
}
|
|
2046
2046
|
if (A == "function") {
|
|
2047
|
-
const
|
|
2048
|
-
return typeof
|
|
2047
|
+
const Q = g.name;
|
|
2048
|
+
return typeof Q == "string" && Q.length > 0 ? `Function(${Q})` : "Function";
|
|
2049
2049
|
}
|
|
2050
2050
|
if (Array.isArray(g)) {
|
|
2051
|
-
const
|
|
2051
|
+
const Q = g.length;
|
|
2052
2052
|
let E = "[";
|
|
2053
|
-
|
|
2054
|
-
for (let D = 1; D <
|
|
2053
|
+
Q > 0 && (E += cA(g[0]));
|
|
2054
|
+
for (let D = 1; D < Q; D++)
|
|
2055
2055
|
E += ", " + cA(g[D]);
|
|
2056
2056
|
return E += "]", E;
|
|
2057
2057
|
}
|
|
2058
2058
|
const C = /\[object ([^\]]+)\]/.exec(toString.call(g));
|
|
2059
|
-
let
|
|
2059
|
+
let B;
|
|
2060
2060
|
if (C && C.length > 1)
|
|
2061
|
-
|
|
2061
|
+
B = C[1];
|
|
2062
2062
|
else
|
|
2063
2063
|
return toString.call(g);
|
|
2064
|
-
if (
|
|
2064
|
+
if (B == "Object")
|
|
2065
2065
|
try {
|
|
2066
2066
|
return "Object(" + JSON.stringify(g) + ")";
|
|
2067
2067
|
} catch {
|
|
2068
2068
|
return "Object";
|
|
2069
2069
|
}
|
|
2070
2070
|
return g instanceof Error ? `${g.name}: ${g.message}
|
|
2071
|
-
${g.stack}` :
|
|
2071
|
+
${g.stack}` : B;
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function WC(g) {
|
|
2074
2074
|
g < 132 || (Z[g] = AA, AA = g);
|
|
2075
2075
|
}
|
|
2076
2076
|
function lC(g, A) {
|
|
2077
2077
|
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
2078
2078
|
}
|
|
2079
2079
|
let u = null;
|
|
2080
|
-
function
|
|
2080
|
+
function i() {
|
|
2081
2081
|
return (u === null || u.buffer.detached === !0 || u.buffer.detached === void 0 && u.buffer !== I.memory.buffer) && (u = new DataView(I.memory.buffer)), u;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function F(g, A) {
|
|
2084
2084
|
return g = g >>> 0, nC(g, A);
|
|
2085
2085
|
}
|
|
2086
2086
|
let EA = null;
|
|
@@ -2104,34 +2104,34 @@ function b(g) {
|
|
|
2104
2104
|
return g == null;
|
|
2105
2105
|
}
|
|
2106
2106
|
function JA(g, A) {
|
|
2107
|
-
const C = A(g.length * 4, 4) >>> 0,
|
|
2108
|
-
for (let
|
|
2109
|
-
|
|
2110
|
-
return
|
|
2107
|
+
const C = A(g.length * 4, 4) >>> 0, B = i();
|
|
2108
|
+
for (let Q = 0; Q < g.length; Q++)
|
|
2109
|
+
B.setUint32(C + 4 * Q, s(g[Q]), !0);
|
|
2110
|
+
return o = g.length, C;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function N(g, A, C) {
|
|
2113
2113
|
if (C === void 0) {
|
|
2114
|
-
const
|
|
2115
|
-
return $().subarray(k, k +
|
|
2114
|
+
const M = gA.encode(g), k = A(M.length, 1) >>> 0;
|
|
2115
|
+
return $().subarray(k, k + M.length).set(M), o = M.length, k;
|
|
2116
2116
|
}
|
|
2117
|
-
let
|
|
2117
|
+
let B = g.length, Q = A(B, 1) >>> 0;
|
|
2118
2118
|
const E = $();
|
|
2119
2119
|
let D = 0;
|
|
2120
|
-
for (; D <
|
|
2121
|
-
const
|
|
2122
|
-
if (
|
|
2123
|
-
E[
|
|
2120
|
+
for (; D < B; D++) {
|
|
2121
|
+
const M = g.charCodeAt(D);
|
|
2122
|
+
if (M > 127) break;
|
|
2123
|
+
E[Q + D] = M;
|
|
2124
2124
|
}
|
|
2125
|
-
if (D !==
|
|
2126
|
-
D !== 0 && (g = g.slice(D)),
|
|
2127
|
-
const
|
|
2128
|
-
D += k.written,
|
|
2125
|
+
if (D !== B) {
|
|
2126
|
+
D !== 0 && (g = g.slice(D)), Q = C(Q, B, B = D + g.length * 3, 1) >>> 0;
|
|
2127
|
+
const M = $().subarray(Q + D, Q + B), k = gA.encodeInto(g, M);
|
|
2128
|
+
D += k.written, Q = C(Q, B, D, 1) >>> 0;
|
|
2129
2129
|
}
|
|
2130
|
-
return
|
|
2130
|
+
return o = D, Q;
|
|
2131
2131
|
}
|
|
2132
2132
|
function J(g) {
|
|
2133
2133
|
const A = c(g);
|
|
2134
|
-
return
|
|
2134
|
+
return WC(g), A;
|
|
2135
2135
|
}
|
|
2136
2136
|
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2137
2137
|
DA.decode();
|
|
@@ -2148,202 +2148,202 @@ const gA = new TextEncoder();
|
|
|
2148
2148
|
written: C.length
|
|
2149
2149
|
};
|
|
2150
2150
|
});
|
|
2151
|
-
let
|
|
2151
|
+
let o = 0, I;
|
|
2152
2152
|
function mC(g) {
|
|
2153
2153
|
I = g;
|
|
2154
2154
|
}
|
|
2155
2155
|
URL = globalThis.URL;
|
|
2156
|
-
const w = await
|
|
2157
|
-
__wbindgen_object_drop_ref:
|
|
2158
|
-
__wbindgen_object_clone_ref:
|
|
2159
|
-
__wbg_new_8a6f238a6ece86ea:
|
|
2160
|
-
__wbg_stack_0ed75d68575b0f3c:
|
|
2161
|
-
__wbg_error_7534b8e9a36f1ab4:
|
|
2156
|
+
const w = await FI({ "./polyglot_sql_wasm_bg.js": {
|
|
2157
|
+
__wbindgen_object_drop_ref: xC,
|
|
2158
|
+
__wbindgen_object_clone_ref: eC,
|
|
2159
|
+
__wbg_new_8a6f238a6ece86ea: LC,
|
|
2160
|
+
__wbg_stack_0ed75d68575b0f3c: tC,
|
|
2161
|
+
__wbg_error_7534b8e9a36f1ab4: MC,
|
|
2162
2162
|
__wbg_get_with_ref_key_1dc361bd10053bfe: yC,
|
|
2163
|
-
__wbg_set_3f1d0b984ed272ed:
|
|
2163
|
+
__wbg_set_3f1d0b984ed272ed: TC,
|
|
2164
2164
|
__wbg_String_8f0eb39a4a4c2f66: lI,
|
|
2165
2165
|
__wbg_new_dd2b680c8bf6ae29: aC,
|
|
2166
2166
|
__wbg_length_32ed9a279acd054c: cC,
|
|
2167
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2167
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: PC,
|
|
2168
2168
|
__wbg_done_57b39ecd9addfe81: wC,
|
|
2169
|
-
__wbg_value_0546255b415e96c1:
|
|
2169
|
+
__wbg_value_0546255b415e96c1: VC,
|
|
2170
2170
|
__wbg_instanceof_Map_53af74335dec57f4: GC,
|
|
2171
2171
|
__wbg_instanceof_Uint8Array_9b9075935c74707c: YC,
|
|
2172
2172
|
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: KC,
|
|
2173
2173
|
__wbg_new_dca287b076112a51: sC,
|
|
2174
2174
|
__wbg_set_1eb0999cf5d27fc8: OC,
|
|
2175
|
-
__wbg_get_9b94d73e6221f75c:
|
|
2176
|
-
__wbg_new_3eb36ae241fe6f44:
|
|
2177
|
-
__wbg_set_f43e577aea94465b:
|
|
2178
|
-
__wbg_length_35a7bace40f36eac:
|
|
2175
|
+
__wbg_get_9b94d73e6221f75c: NC,
|
|
2176
|
+
__wbg_new_3eb36ae241fe6f44: RC,
|
|
2177
|
+
__wbg_set_f43e577aea94465b: jC,
|
|
2178
|
+
__wbg_length_35a7bace40f36eac: FC,
|
|
2179
2179
|
__wbg_isArray_d314bb98fcf08331: HC,
|
|
2180
2180
|
__wbg_isSafeInteger_bfbc7332a9768d2a: hC,
|
|
2181
2181
|
__wbg_new_361308b2356cecd0: JC,
|
|
2182
|
-
__wbg_entries_58c7934c745daac7:
|
|
2182
|
+
__wbg_entries_58c7934c745daac7: iC,
|
|
2183
2183
|
__wbg_iterator_6ff6560ca1568e55: SC,
|
|
2184
2184
|
__wbg_get_b3ed3ad4be2bc8ac: kC,
|
|
2185
2185
|
__wbg_call_389efe28435a9388: EC,
|
|
2186
2186
|
__wbg_next_418f80d8f5303233: pC,
|
|
2187
2187
|
__wbg_next_3482f54c49e8af19: qC,
|
|
2188
2188
|
__wbg_codePointAt_bf59dbf74d8db275: DC,
|
|
2189
|
-
__wbg_fromCodePoint_22365db7b7d6ac39:
|
|
2190
|
-
__wbg_length_68dc7c5cf1b6d349:
|
|
2189
|
+
__wbg_fromCodePoint_22365db7b7d6ac39: oC,
|
|
2190
|
+
__wbg_length_68dc7c5cf1b6d349: UC,
|
|
2191
2191
|
__wbg___wbindgen_in_47fa6863be6f2f25: uI,
|
|
2192
|
-
__wbg___wbindgen_throw_be289d5034ed271b:
|
|
2192
|
+
__wbg___wbindgen_throw_be289d5034ed271b: QC,
|
|
2193
2193
|
__wbg___wbindgen_is_null_ac34f5003991759a: XI,
|
|
2194
2194
|
__wbg___wbindgen_jsval_eq_11888390b0186270: gC,
|
|
2195
|
-
__wbg_Number_04624de7d0e8332d:
|
|
2196
|
-
__wbg_Error_8c4e43fe74559d73:
|
|
2195
|
+
__wbg_Number_04624de7d0e8332d: WI,
|
|
2196
|
+
__wbg_Error_8c4e43fe74559d73: xI,
|
|
2197
2197
|
__wbg___wbindgen_is_bigint_31b12575b56f32fc: bI,
|
|
2198
2198
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: _I,
|
|
2199
2199
|
__wbg___wbindgen_is_string_cd444516edc5b180: $I,
|
|
2200
2200
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: CC,
|
|
2201
|
-
__wbg___wbindgen_string_get_72fb696202c56729:
|
|
2201
|
+
__wbg___wbindgen_string_get_72fb696202c56729: BC,
|
|
2202
2202
|
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: nI,
|
|
2203
2203
|
__wbg___wbindgen_is_function_0095a73b8b156f76: vI,
|
|
2204
2204
|
__wbg___wbindgen_is_undefined_9e4d92534c42d778: AC,
|
|
2205
2205
|
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: IC,
|
|
2206
2206
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: rI,
|
|
2207
2207
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: mI,
|
|
2208
|
-
__wbindgen_cast_0000000000000001:
|
|
2209
|
-
__wbindgen_cast_0000000000000002:
|
|
2208
|
+
__wbindgen_cast_0000000000000001: zC,
|
|
2209
|
+
__wbindgen_cast_0000000000000002: fC,
|
|
2210
2210
|
__wbindgen_cast_0000000000000003: ZC,
|
|
2211
|
-
__wbindgen_cast_0000000000000004:
|
|
2212
|
-
} }, cI), uC = w.memory, bC = w.__wbg_wasmassignmentarray_free, vC = w.__wbg_wasmcasebuilder_free, XC = w.__wbg_wasmdeletebuilder_free, _C = w.__wbg_wasmexpr_free, $C = w.__wbg_wasmexprarray_free,
|
|
2211
|
+
__wbindgen_cast_0000000000000004: dC
|
|
2212
|
+
} }, cI), uC = w.memory, bC = w.__wbg_wasmassignmentarray_free, vC = w.__wbg_wasmcasebuilder_free, XC = w.__wbg_wasmdeletebuilder_free, _C = w.__wbg_wasmexpr_free, $C = w.__wbg_wasmexprarray_free, AB = w.__wbg_wasminsertbuilder_free, gB = w.__wbg_wasmmergebuilder_free, IB = w.__wbg_wasmselectbuilder_free, CB = w.__wbg_wasmsetopbuilder_free, BB = w.__wbg_wasmupdatebuilder_free, QB = w.__wbg_wasmwindowdefbuilder_free, EB = w.annotate_types, DB = w.annotate_types_value, wB = w.ast_add_where, iB = w.ast_get_aggregate_functions, MB = w.ast_get_column_names, oB = w.ast_get_functions, NB = w.ast_get_literals, kB = w.ast_get_subqueries, yB = w.ast_get_table_names, KB = w.ast_get_window_functions, GB = w.ast_node_count, YB = w.ast_qualify_columns, HB = w.ast_qualify_tables, hB = w.ast_remove_where, SB = w.ast_rename_columns, cB = w.ast_rename_tables, FB = w.ast_rename_tables_with_options, UB = w.ast_set_distinct, JB = w.ast_set_limit, RB = w.diff_sql, LB = w.format_sql, sB = w.format_sql_value, aB = w.format_sql_with_options, qB = w.format_sql_with_options_value, pB = w.generate, PB = w.generate_value, OB = w.get_dialects, TB = w.get_dialects_value, jB = w.lineage_sql, tB = w.lineage_sql_with_schema, VB = w.openlineage_column_lineage, zB = w.openlineage_job_event, fB = w.openlineage_run_event, ZB = w.parse, dB = w.parse_value, eB = w.plan, xB = w.source_tables, WB = w.tokenize, lB = w.tokenize_value, rB = w.transpile, nB = w.transpile_value, mB = w.validate, uB = w.validate_with_options, bB = w.validate_with_schema, vB = w.version, XB = w.wasm_alias, _B = w.wasm_and, $B = w.wasm_boolean, AQ = w.wasm_case_of, gQ = w.wasm_cast, IQ = w.wasm_col, CQ = w.wasm_count_distinct, BQ = w.wasm_extract, QQ = w.wasm_func, EQ = w.wasm_lit, DQ = w.wasm_not, wQ = w.wasm_null, iQ = w.wasm_or, MQ = w.wasm_sql_expr, oQ = w.wasm_star, NQ = w.wasm_subquery, kQ = w.wasm_table, yQ = w.wasmassignmentarray_len, KQ = w.wasmassignmentarray_new, GQ = w.wasmassignmentarray_push, YQ = w.wasmcasebuilder_build_expr, HQ = w.wasmcasebuilder_else_, hQ = w.wasmcasebuilder_new, SQ = w.wasmcasebuilder_to_sql, cQ = w.wasmcasebuilder_when, FQ = w.wasmdeletebuilder_build, UQ = w.wasmdeletebuilder_new, JQ = w.wasmdeletebuilder_to_sql, RQ = w.wasmdeletebuilder_where_expr, LQ = w.wasmexpr_add, sQ = w.wasmexpr_alias, aQ = w.wasmexpr_and, qQ = w.wasmexpr_asc, pQ = w.wasmexpr_between, PQ = w.wasmexpr_cast, OQ = w.wasmexpr_desc, TQ = w.wasmexpr_div, jQ = w.wasmexpr_eq, tQ = w.wasmexpr_gt, VQ = w.wasmexpr_gte, zQ = w.wasmexpr_ilike, fQ = w.wasmexpr_in_list, ZQ = w.wasmexpr_is_not_null, dQ = w.wasmexpr_is_null, eQ = w.wasmexpr_like, xQ = w.wasmexpr_lt, WQ = w.wasmexpr_lte, lQ = w.wasmexpr_mul, rQ = w.wasmexpr_neq, nQ = w.wasmexpr_not, mQ = w.wasmexpr_not_in, uQ = w.wasmexpr_or, bQ = w.wasmexpr_rlike, vQ = w.wasmexpr_sub, XQ = w.wasmexpr_to_json, _Q = w.wasmexpr_to_sql, $Q = w.wasmexpr_xor, AE = w.wasmexprarray_len, gE = w.wasmexprarray_push, IE = w.wasmexprarray_push_col, CE = w.wasmexprarray_push_float, BE = w.wasmexprarray_push_int, QE = w.wasmexprarray_push_star, EE = w.wasmexprarray_push_str, DE = w.wasminsertbuilder_build, wE = w.wasminsertbuilder_columns, iE = w.wasminsertbuilder_new, ME = w.wasminsertbuilder_query, oE = w.wasminsertbuilder_to_sql, NE = w.wasminsertbuilder_values, kE = w.wasmmergebuilder_build, yE = w.wasmmergebuilder_new, KE = w.wasmmergebuilder_to_sql, GE = w.wasmmergebuilder_using, YE = w.wasmmergebuilder_when_matched_delete, HE = w.wasmmergebuilder_when_matched_update, hE = w.wasmmergebuilder_when_not_matched_insert, SE = w.wasmselectbuilder_build, cE = w.wasmselectbuilder_cross_join, FE = w.wasmselectbuilder_ctas, UE = w.wasmselectbuilder_ctas_sql, JE = w.wasmselectbuilder_distinct, RE = w.wasmselectbuilder_except_, LE = w.wasmselectbuilder_for_update, sE = w.wasmselectbuilder_from, aE = w.wasmselectbuilder_from_expr, qE = w.wasmselectbuilder_group_by_cols, pE = w.wasmselectbuilder_having, PE = w.wasmselectbuilder_hint, OE = w.wasmselectbuilder_intersect, TE = w.wasmselectbuilder_join, jE = w.wasmselectbuilder_lateral_view, tE = w.wasmselectbuilder_left_join, VE = w.wasmselectbuilder_limit, zE = w.wasmselectbuilder_new, fE = w.wasmselectbuilder_offset, ZE = w.wasmselectbuilder_order_by_exprs, dE = w.wasmselectbuilder_qualify, eE = w.wasmselectbuilder_right_join, xE = w.wasmselectbuilder_select_col, WE = w.wasmselectbuilder_select_expr, lE = w.wasmselectbuilder_select_exprs, rE = w.wasmselectbuilder_select_star, nE = w.wasmselectbuilder_sort_by_exprs, mE = w.wasmselectbuilder_to_sql, uE = w.wasmselectbuilder_union, bE = w.wasmselectbuilder_union_all, vE = w.wasmselectbuilder_where_expr, XE = w.wasmselectbuilder_where_sql, _E = w.wasmselectbuilder_window, $E = w.wasmsetopbuilder_build, AD = w.wasmsetopbuilder_limit, gD = w.wasmsetopbuilder_offset, ID = w.wasmsetopbuilder_order_by_exprs, CD = w.wasmsetopbuilder_to_sql, BD = w.wasmupdatebuilder_build, QD = w.wasmupdatebuilder_from, ED = w.wasmupdatebuilder_new, DD = w.wasmupdatebuilder_set, wD = w.wasmupdatebuilder_to_sql, iD = w.wasmupdatebuilder_where_expr, MD = w.wasmwindowdefbuilder_new, oD = w.wasmwindowdefbuilder_order_by, ND = w.wasmwindowdefbuilder_partition_by, kD = w.wasmexprarray_new, yD = w.__wbindgen_export, KD = w.__wbindgen_export2, GD = w.__wbindgen_export3, YD = w.__wbindgen_export4, HD = w.__wbindgen_add_to_stack_pointer, hD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2213
2213
|
__proto__: null,
|
|
2214
2214
|
__wbg_wasmassignmentarray_free: bC,
|
|
2215
2215
|
__wbg_wasmcasebuilder_free: vC,
|
|
2216
2216
|
__wbg_wasmdeletebuilder_free: XC,
|
|
2217
2217
|
__wbg_wasmexpr_free: _C,
|
|
2218
2218
|
__wbg_wasmexprarray_free: $C,
|
|
2219
|
-
__wbg_wasminsertbuilder_free:
|
|
2220
|
-
__wbg_wasmmergebuilder_free:
|
|
2221
|
-
__wbg_wasmselectbuilder_free:
|
|
2222
|
-
__wbg_wasmsetopbuilder_free:
|
|
2223
|
-
__wbg_wasmupdatebuilder_free:
|
|
2224
|
-
__wbg_wasmwindowdefbuilder_free:
|
|
2219
|
+
__wbg_wasminsertbuilder_free: AB,
|
|
2220
|
+
__wbg_wasmmergebuilder_free: gB,
|
|
2221
|
+
__wbg_wasmselectbuilder_free: IB,
|
|
2222
|
+
__wbg_wasmsetopbuilder_free: CB,
|
|
2223
|
+
__wbg_wasmupdatebuilder_free: BB,
|
|
2224
|
+
__wbg_wasmwindowdefbuilder_free: QB,
|
|
2225
2225
|
__wbindgen_add_to_stack_pointer: HD,
|
|
2226
2226
|
__wbindgen_export: yD,
|
|
2227
2227
|
__wbindgen_export2: KD,
|
|
2228
2228
|
__wbindgen_export3: GD,
|
|
2229
2229
|
__wbindgen_export4: YD,
|
|
2230
|
-
annotate_types:
|
|
2231
|
-
annotate_types_value:
|
|
2232
|
-
ast_add_where:
|
|
2233
|
-
ast_get_aggregate_functions:
|
|
2234
|
-
ast_get_column_names:
|
|
2235
|
-
ast_get_functions:
|
|
2236
|
-
ast_get_literals:
|
|
2237
|
-
ast_get_subqueries:
|
|
2238
|
-
ast_get_table_names:
|
|
2239
|
-
ast_get_window_functions:
|
|
2240
|
-
ast_node_count:
|
|
2241
|
-
ast_qualify_columns:
|
|
2242
|
-
ast_qualify_tables:
|
|
2243
|
-
ast_remove_where:
|
|
2244
|
-
ast_rename_columns:
|
|
2245
|
-
ast_rename_tables:
|
|
2246
|
-
ast_rename_tables_with_options:
|
|
2247
|
-
ast_set_distinct:
|
|
2248
|
-
ast_set_limit:
|
|
2249
|
-
diff_sql:
|
|
2250
|
-
format_sql:
|
|
2251
|
-
format_sql_value:
|
|
2252
|
-
format_sql_with_options:
|
|
2253
|
-
format_sql_with_options_value:
|
|
2254
|
-
generate:
|
|
2255
|
-
generate_value:
|
|
2256
|
-
get_dialects:
|
|
2257
|
-
get_dialects_value:
|
|
2258
|
-
lineage_sql:
|
|
2259
|
-
lineage_sql_with_schema:
|
|
2230
|
+
annotate_types: EB,
|
|
2231
|
+
annotate_types_value: DB,
|
|
2232
|
+
ast_add_where: wB,
|
|
2233
|
+
ast_get_aggregate_functions: iB,
|
|
2234
|
+
ast_get_column_names: MB,
|
|
2235
|
+
ast_get_functions: oB,
|
|
2236
|
+
ast_get_literals: NB,
|
|
2237
|
+
ast_get_subqueries: kB,
|
|
2238
|
+
ast_get_table_names: yB,
|
|
2239
|
+
ast_get_window_functions: KB,
|
|
2240
|
+
ast_node_count: GB,
|
|
2241
|
+
ast_qualify_columns: YB,
|
|
2242
|
+
ast_qualify_tables: HB,
|
|
2243
|
+
ast_remove_where: hB,
|
|
2244
|
+
ast_rename_columns: SB,
|
|
2245
|
+
ast_rename_tables: cB,
|
|
2246
|
+
ast_rename_tables_with_options: FB,
|
|
2247
|
+
ast_set_distinct: UB,
|
|
2248
|
+
ast_set_limit: JB,
|
|
2249
|
+
diff_sql: RB,
|
|
2250
|
+
format_sql: LB,
|
|
2251
|
+
format_sql_value: sB,
|
|
2252
|
+
format_sql_with_options: aB,
|
|
2253
|
+
format_sql_with_options_value: qB,
|
|
2254
|
+
generate: pB,
|
|
2255
|
+
generate_value: PB,
|
|
2256
|
+
get_dialects: OB,
|
|
2257
|
+
get_dialects_value: TB,
|
|
2258
|
+
lineage_sql: jB,
|
|
2259
|
+
lineage_sql_with_schema: tB,
|
|
2260
2260
|
memory: uC,
|
|
2261
|
-
openlineage_column_lineage:
|
|
2262
|
-
openlineage_job_event:
|
|
2263
|
-
openlineage_run_event:
|
|
2264
|
-
parse:
|
|
2265
|
-
parse_value:
|
|
2266
|
-
plan:
|
|
2267
|
-
source_tables:
|
|
2268
|
-
tokenize:
|
|
2269
|
-
tokenize_value:
|
|
2270
|
-
transpile:
|
|
2271
|
-
transpile_value:
|
|
2272
|
-
validate:
|
|
2273
|
-
validate_with_options:
|
|
2274
|
-
validate_with_schema:
|
|
2275
|
-
version:
|
|
2276
|
-
wasm_alias:
|
|
2277
|
-
wasm_and:
|
|
2278
|
-
wasm_boolean: $
|
|
2279
|
-
wasm_case_of:
|
|
2280
|
-
wasm_cast:
|
|
2281
|
-
wasm_col:
|
|
2282
|
-
wasm_count_distinct:
|
|
2283
|
-
wasm_extract:
|
|
2284
|
-
wasm_func:
|
|
2285
|
-
wasm_lit:
|
|
2286
|
-
wasm_not:
|
|
2287
|
-
wasm_null:
|
|
2288
|
-
wasm_or:
|
|
2289
|
-
wasm_sql_expr:
|
|
2290
|
-
wasm_star:
|
|
2291
|
-
wasm_subquery:
|
|
2292
|
-
wasm_table:
|
|
2293
|
-
wasmassignmentarray_len:
|
|
2294
|
-
wasmassignmentarray_new:
|
|
2295
|
-
wasmassignmentarray_push:
|
|
2296
|
-
wasmcasebuilder_build_expr:
|
|
2297
|
-
wasmcasebuilder_else_:
|
|
2298
|
-
wasmcasebuilder_new:
|
|
2299
|
-
wasmcasebuilder_to_sql:
|
|
2300
|
-
wasmcasebuilder_when:
|
|
2301
|
-
wasmdeletebuilder_build:
|
|
2302
|
-
wasmdeletebuilder_new:
|
|
2303
|
-
wasmdeletebuilder_to_sql:
|
|
2304
|
-
wasmdeletebuilder_where_expr:
|
|
2305
|
-
wasmexpr_add:
|
|
2306
|
-
wasmexpr_alias:
|
|
2307
|
-
wasmexpr_and:
|
|
2308
|
-
wasmexpr_asc:
|
|
2309
|
-
wasmexpr_between:
|
|
2310
|
-
wasmexpr_cast:
|
|
2311
|
-
wasmexpr_desc:
|
|
2312
|
-
wasmexpr_div:
|
|
2313
|
-
wasmexpr_eq:
|
|
2314
|
-
wasmexpr_gt:
|
|
2315
|
-
wasmexpr_gte:
|
|
2316
|
-
wasmexpr_ilike:
|
|
2317
|
-
wasmexpr_in_list:
|
|
2318
|
-
wasmexpr_is_not_null:
|
|
2319
|
-
wasmexpr_is_null:
|
|
2320
|
-
wasmexpr_like:
|
|
2321
|
-
wasmexpr_lt:
|
|
2322
|
-
wasmexpr_lte:
|
|
2323
|
-
wasmexpr_mul:
|
|
2324
|
-
wasmexpr_neq:
|
|
2325
|
-
wasmexpr_not:
|
|
2326
|
-
wasmexpr_not_in:
|
|
2327
|
-
wasmexpr_or:
|
|
2328
|
-
wasmexpr_rlike:
|
|
2329
|
-
wasmexpr_sub:
|
|
2330
|
-
wasmexpr_to_json:
|
|
2331
|
-
wasmexpr_to_sql:
|
|
2332
|
-
wasmexpr_xor: $
|
|
2261
|
+
openlineage_column_lineage: VB,
|
|
2262
|
+
openlineage_job_event: zB,
|
|
2263
|
+
openlineage_run_event: fB,
|
|
2264
|
+
parse: ZB,
|
|
2265
|
+
parse_value: dB,
|
|
2266
|
+
plan: eB,
|
|
2267
|
+
source_tables: xB,
|
|
2268
|
+
tokenize: WB,
|
|
2269
|
+
tokenize_value: lB,
|
|
2270
|
+
transpile: rB,
|
|
2271
|
+
transpile_value: nB,
|
|
2272
|
+
validate: mB,
|
|
2273
|
+
validate_with_options: uB,
|
|
2274
|
+
validate_with_schema: bB,
|
|
2275
|
+
version: vB,
|
|
2276
|
+
wasm_alias: XB,
|
|
2277
|
+
wasm_and: _B,
|
|
2278
|
+
wasm_boolean: $B,
|
|
2279
|
+
wasm_case_of: AQ,
|
|
2280
|
+
wasm_cast: gQ,
|
|
2281
|
+
wasm_col: IQ,
|
|
2282
|
+
wasm_count_distinct: CQ,
|
|
2283
|
+
wasm_extract: BQ,
|
|
2284
|
+
wasm_func: QQ,
|
|
2285
|
+
wasm_lit: EQ,
|
|
2286
|
+
wasm_not: DQ,
|
|
2287
|
+
wasm_null: wQ,
|
|
2288
|
+
wasm_or: iQ,
|
|
2289
|
+
wasm_sql_expr: MQ,
|
|
2290
|
+
wasm_star: oQ,
|
|
2291
|
+
wasm_subquery: NQ,
|
|
2292
|
+
wasm_table: kQ,
|
|
2293
|
+
wasmassignmentarray_len: yQ,
|
|
2294
|
+
wasmassignmentarray_new: KQ,
|
|
2295
|
+
wasmassignmentarray_push: GQ,
|
|
2296
|
+
wasmcasebuilder_build_expr: YQ,
|
|
2297
|
+
wasmcasebuilder_else_: HQ,
|
|
2298
|
+
wasmcasebuilder_new: hQ,
|
|
2299
|
+
wasmcasebuilder_to_sql: SQ,
|
|
2300
|
+
wasmcasebuilder_when: cQ,
|
|
2301
|
+
wasmdeletebuilder_build: FQ,
|
|
2302
|
+
wasmdeletebuilder_new: UQ,
|
|
2303
|
+
wasmdeletebuilder_to_sql: JQ,
|
|
2304
|
+
wasmdeletebuilder_where_expr: RQ,
|
|
2305
|
+
wasmexpr_add: LQ,
|
|
2306
|
+
wasmexpr_alias: sQ,
|
|
2307
|
+
wasmexpr_and: aQ,
|
|
2308
|
+
wasmexpr_asc: qQ,
|
|
2309
|
+
wasmexpr_between: pQ,
|
|
2310
|
+
wasmexpr_cast: PQ,
|
|
2311
|
+
wasmexpr_desc: OQ,
|
|
2312
|
+
wasmexpr_div: TQ,
|
|
2313
|
+
wasmexpr_eq: jQ,
|
|
2314
|
+
wasmexpr_gt: tQ,
|
|
2315
|
+
wasmexpr_gte: VQ,
|
|
2316
|
+
wasmexpr_ilike: zQ,
|
|
2317
|
+
wasmexpr_in_list: fQ,
|
|
2318
|
+
wasmexpr_is_not_null: ZQ,
|
|
2319
|
+
wasmexpr_is_null: dQ,
|
|
2320
|
+
wasmexpr_like: eQ,
|
|
2321
|
+
wasmexpr_lt: xQ,
|
|
2322
|
+
wasmexpr_lte: WQ,
|
|
2323
|
+
wasmexpr_mul: lQ,
|
|
2324
|
+
wasmexpr_neq: rQ,
|
|
2325
|
+
wasmexpr_not: nQ,
|
|
2326
|
+
wasmexpr_not_in: mQ,
|
|
2327
|
+
wasmexpr_or: uQ,
|
|
2328
|
+
wasmexpr_rlike: bQ,
|
|
2329
|
+
wasmexpr_sub: vQ,
|
|
2330
|
+
wasmexpr_to_json: XQ,
|
|
2331
|
+
wasmexpr_to_sql: _Q,
|
|
2332
|
+
wasmexpr_xor: $Q,
|
|
2333
2333
|
wasmexprarray_len: AE,
|
|
2334
2334
|
wasmexprarray_new: kD,
|
|
2335
2335
|
wasmexprarray_push: gE,
|
|
2336
2336
|
wasmexprarray_push_col: IE,
|
|
2337
2337
|
wasmexprarray_push_float: CE,
|
|
2338
|
-
wasmexprarray_push_int:
|
|
2339
|
-
wasmexprarray_push_star:
|
|
2338
|
+
wasmexprarray_push_int: BE,
|
|
2339
|
+
wasmexprarray_push_star: QE,
|
|
2340
2340
|
wasmexprarray_push_str: EE,
|
|
2341
2341
|
wasminsertbuilder_build: DE,
|
|
2342
2342
|
wasminsertbuilder_columns: wE,
|
|
2343
|
-
wasminsertbuilder_new:
|
|
2344
|
-
wasminsertbuilder_query:
|
|
2345
|
-
wasminsertbuilder_to_sql:
|
|
2346
|
-
wasminsertbuilder_values:
|
|
2343
|
+
wasminsertbuilder_new: iE,
|
|
2344
|
+
wasminsertbuilder_query: ME,
|
|
2345
|
+
wasminsertbuilder_to_sql: oE,
|
|
2346
|
+
wasminsertbuilder_values: NE,
|
|
2347
2347
|
wasmmergebuilder_build: kE,
|
|
2348
2348
|
wasmmergebuilder_new: yE,
|
|
2349
2349
|
wasmmergebuilder_to_sql: KE,
|
|
@@ -2353,28 +2353,28 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2353
2353
|
wasmmergebuilder_when_not_matched_insert: hE,
|
|
2354
2354
|
wasmselectbuilder_build: SE,
|
|
2355
2355
|
wasmselectbuilder_cross_join: cE,
|
|
2356
|
-
wasmselectbuilder_ctas:
|
|
2357
|
-
wasmselectbuilder_ctas_sql:
|
|
2356
|
+
wasmselectbuilder_ctas: FE,
|
|
2357
|
+
wasmselectbuilder_ctas_sql: UE,
|
|
2358
2358
|
wasmselectbuilder_distinct: JE,
|
|
2359
|
-
wasmselectbuilder_except_:
|
|
2360
|
-
wasmselectbuilder_for_update:
|
|
2359
|
+
wasmselectbuilder_except_: RE,
|
|
2360
|
+
wasmselectbuilder_for_update: LE,
|
|
2361
2361
|
wasmselectbuilder_from: sE,
|
|
2362
2362
|
wasmselectbuilder_from_expr: aE,
|
|
2363
2363
|
wasmselectbuilder_group_by_cols: qE,
|
|
2364
2364
|
wasmselectbuilder_having: pE,
|
|
2365
|
-
wasmselectbuilder_hint:
|
|
2365
|
+
wasmselectbuilder_hint: PE,
|
|
2366
2366
|
wasmselectbuilder_intersect: OE,
|
|
2367
|
-
wasmselectbuilder_join:
|
|
2368
|
-
wasmselectbuilder_lateral_view:
|
|
2369
|
-
wasmselectbuilder_left_join:
|
|
2370
|
-
wasmselectbuilder_limit:
|
|
2371
|
-
wasmselectbuilder_new:
|
|
2372
|
-
wasmselectbuilder_offset:
|
|
2367
|
+
wasmselectbuilder_join: TE,
|
|
2368
|
+
wasmselectbuilder_lateral_view: jE,
|
|
2369
|
+
wasmselectbuilder_left_join: tE,
|
|
2370
|
+
wasmselectbuilder_limit: VE,
|
|
2371
|
+
wasmselectbuilder_new: zE,
|
|
2372
|
+
wasmselectbuilder_offset: fE,
|
|
2373
2373
|
wasmselectbuilder_order_by_exprs: ZE,
|
|
2374
|
-
wasmselectbuilder_qualify:
|
|
2375
|
-
wasmselectbuilder_right_join:
|
|
2376
|
-
wasmselectbuilder_select_col:
|
|
2377
|
-
wasmselectbuilder_select_expr:
|
|
2374
|
+
wasmselectbuilder_qualify: dE,
|
|
2375
|
+
wasmselectbuilder_right_join: eE,
|
|
2376
|
+
wasmselectbuilder_select_col: xE,
|
|
2377
|
+
wasmselectbuilder_select_expr: WE,
|
|
2378
2378
|
wasmselectbuilder_select_exprs: lE,
|
|
2379
2379
|
wasmselectbuilder_select_star: rE,
|
|
2380
2380
|
wasmselectbuilder_sort_by_exprs: nE,
|
|
@@ -2389,31 +2389,31 @@ const w = await LI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2389
2389
|
wasmsetopbuilder_offset: gD,
|
|
2390
2390
|
wasmsetopbuilder_order_by_exprs: ID,
|
|
2391
2391
|
wasmsetopbuilder_to_sql: CD,
|
|
2392
|
-
wasmupdatebuilder_build:
|
|
2393
|
-
wasmupdatebuilder_from:
|
|
2392
|
+
wasmupdatebuilder_build: BD,
|
|
2393
|
+
wasmupdatebuilder_from: QD,
|
|
2394
2394
|
wasmupdatebuilder_new: ED,
|
|
2395
2395
|
wasmupdatebuilder_set: DD,
|
|
2396
2396
|
wasmupdatebuilder_to_sql: wD,
|
|
2397
|
-
wasmupdatebuilder_where_expr:
|
|
2398
|
-
wasmwindowdefbuilder_new:
|
|
2399
|
-
wasmwindowdefbuilder_order_by:
|
|
2400
|
-
wasmwindowdefbuilder_partition_by:
|
|
2397
|
+
wasmupdatebuilder_where_expr: iD,
|
|
2398
|
+
wasmwindowdefbuilder_new: MD,
|
|
2399
|
+
wasmwindowdefbuilder_order_by: oD,
|
|
2400
|
+
wasmwindowdefbuilder_partition_by: ND
|
|
2401
2401
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2402
2402
|
mC(hD);
|
|
2403
|
-
const
|
|
2403
|
+
const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2404
2404
|
__proto__: null,
|
|
2405
2405
|
WasmAssignmentArray: CA,
|
|
2406
2406
|
WasmCaseBuilder: m,
|
|
2407
|
-
WasmDeleteBuilder:
|
|
2407
|
+
WasmDeleteBuilder: iA,
|
|
2408
2408
|
WasmExpr: G,
|
|
2409
|
-
WasmExprArray:
|
|
2410
|
-
WasmInsertBuilder:
|
|
2411
|
-
WasmMergeBuilder:
|
|
2412
|
-
WasmSelectBuilder:
|
|
2413
|
-
WasmSetOpBuilder:
|
|
2414
|
-
WasmUpdateBuilder:
|
|
2415
|
-
WasmWindowDefBuilder:
|
|
2416
|
-
annotate_types:
|
|
2409
|
+
WasmExprArray: P,
|
|
2410
|
+
WasmInsertBuilder: MA,
|
|
2411
|
+
WasmMergeBuilder: oA,
|
|
2412
|
+
WasmSelectBuilder: j,
|
|
2413
|
+
WasmSetOpBuilder: d,
|
|
2414
|
+
WasmUpdateBuilder: NA,
|
|
2415
|
+
WasmWindowDefBuilder: BA,
|
|
2416
|
+
annotate_types: UI,
|
|
2417
2417
|
annotate_types_value: JI,
|
|
2418
2418
|
ast_add_where: vA,
|
|
2419
2419
|
ast_get_aggregate_functions: XA,
|
|
@@ -2423,58 +2423,58 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2423
2423
|
ast_get_subqueries: gg,
|
|
2424
2424
|
ast_get_table_names: Ig,
|
|
2425
2425
|
ast_get_window_functions: Cg,
|
|
2426
|
-
ast_node_count:
|
|
2427
|
-
ast_qualify_columns:
|
|
2426
|
+
ast_node_count: Bg,
|
|
2427
|
+
ast_qualify_columns: Qg,
|
|
2428
2428
|
ast_qualify_tables: Eg,
|
|
2429
2429
|
ast_remove_where: Dg,
|
|
2430
2430
|
ast_rename_columns: wg,
|
|
2431
|
-
ast_rename_tables:
|
|
2432
|
-
ast_rename_tables_with_options:
|
|
2433
|
-
ast_set_distinct:
|
|
2434
|
-
ast_set_limit:
|
|
2431
|
+
ast_rename_tables: ig,
|
|
2432
|
+
ast_rename_tables_with_options: Mg,
|
|
2433
|
+
ast_set_distinct: og,
|
|
2434
|
+
ast_set_limit: Ng,
|
|
2435
2435
|
diff_sql: kg,
|
|
2436
|
-
format_sql:
|
|
2437
|
-
format_sql_value:
|
|
2436
|
+
format_sql: RI,
|
|
2437
|
+
format_sql_value: LI,
|
|
2438
2438
|
format_sql_with_options: sI,
|
|
2439
2439
|
format_sql_with_options_value: aI,
|
|
2440
2440
|
generate: qI,
|
|
2441
2441
|
generate_value: pI,
|
|
2442
|
-
get_dialects:
|
|
2442
|
+
get_dialects: PI,
|
|
2443
2443
|
get_dialects_value: OI,
|
|
2444
2444
|
lineage_sql: yg,
|
|
2445
2445
|
lineage_sql_with_schema: Kg,
|
|
2446
2446
|
openlineage_column_lineage: Gg,
|
|
2447
2447
|
openlineage_job_event: Yg,
|
|
2448
2448
|
openlineage_run_event: Hg,
|
|
2449
|
-
parse:
|
|
2450
|
-
parse_value:
|
|
2449
|
+
parse: TI,
|
|
2450
|
+
parse_value: jI,
|
|
2451
2451
|
plan: hg,
|
|
2452
2452
|
source_tables: Sg,
|
|
2453
|
-
tokenize:
|
|
2454
|
-
tokenize_value:
|
|
2455
|
-
transpile:
|
|
2456
|
-
transpile_value:
|
|
2453
|
+
tokenize: tI,
|
|
2454
|
+
tokenize_value: VI,
|
|
2455
|
+
transpile: zI,
|
|
2456
|
+
transpile_value: fI,
|
|
2457
2457
|
validate: ZI,
|
|
2458
|
-
validate_with_options:
|
|
2458
|
+
validate_with_options: dI,
|
|
2459
2459
|
validate_with_schema: cg,
|
|
2460
|
-
version:
|
|
2461
|
-
wasm_alias:
|
|
2462
|
-
wasm_and:
|
|
2460
|
+
version: eI,
|
|
2461
|
+
wasm_alias: Fg,
|
|
2462
|
+
wasm_and: Ug,
|
|
2463
2463
|
wasm_boolean: Jg,
|
|
2464
|
-
wasm_case_of:
|
|
2465
|
-
wasm_cast:
|
|
2466
|
-
wasm_col:
|
|
2464
|
+
wasm_case_of: Rg,
|
|
2465
|
+
wasm_cast: Lg,
|
|
2466
|
+
wasm_col: UA,
|
|
2467
2467
|
wasm_count_distinct: sg,
|
|
2468
2468
|
wasm_extract: ag,
|
|
2469
2469
|
wasm_func: qg,
|
|
2470
2470
|
wasm_lit: kA,
|
|
2471
2471
|
wasm_not: pg,
|
|
2472
2472
|
wasm_null: yA,
|
|
2473
|
-
wasm_or:
|
|
2473
|
+
wasm_or: Pg,
|
|
2474
2474
|
wasm_sql_expr: Og,
|
|
2475
|
-
wasm_star:
|
|
2476
|
-
wasm_subquery:
|
|
2477
|
-
wasm_table:
|
|
2475
|
+
wasm_star: Tg,
|
|
2476
|
+
wasm_subquery: jg,
|
|
2477
|
+
wasm_table: tg
|
|
2478
2478
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2479
2479
|
function p(g) {
|
|
2480
2480
|
return Object.keys(g)[0];
|
|
@@ -2483,7 +2483,7 @@ function O(g) {
|
|
|
2483
2483
|
const A = Object.keys(g)[0];
|
|
2484
2484
|
return g[A];
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function e(g) {
|
|
2487
2487
|
if (typeof g != "object" || g === null || Array.isArray(g))
|
|
2488
2488
|
return !1;
|
|
2489
2489
|
const A = Object.keys(g);
|
|
@@ -2491,10 +2491,10 @@ function V(g) {
|
|
|
2491
2491
|
const C = g[A[0]];
|
|
2492
2492
|
return C === null || typeof C == "object" && !Array.isArray(C);
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function z(g, A) {
|
|
2495
2495
|
return { [g]: A };
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function zg(g) {
|
|
2498
2498
|
const A = O(g);
|
|
2499
2499
|
if (A && typeof A == "object" && "inferred_type" in A) {
|
|
2500
2500
|
const C = A.inferred_type;
|
|
@@ -2505,68 +2505,68 @@ function fg(g) {
|
|
|
2505
2505
|
function Y(g) {
|
|
2506
2506
|
return (A) => g in A;
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2508
|
+
const fg = Y("select"), SD = Y("insert"), cD = Y("update"), FD = Y("delete"), UD = Y("union"), JD = Y("intersect"), RD = Y("except"), LD = Y("subquery"), sD = Y("identifier"), Zg = Y("column"), aD = Y("table"), qD = Y("star"), dg = Y("literal"), pD = Y("boolean"), PD = Y("null"), OD = Y("and"), TD = Y("or"), jD = Y("not"), tD = Y("eq"), VD = Y("neq"), zD = Y("lt"), fD = Y("lte"), ZD = Y("gt"), dD = Y("gte"), eD = Y("like"), xD = Y("i_like"), WD = Y("add"), lD = Y("sub"), rD = Y("mul"), nD = Y("div"), mD = Y("mod"), uD = Y("concat"), bD = Y("in"), vD = Y("between"), XD = Y("is_null"), _D = Y("exists"), eg = Y("function"), $D = Y("aggregate_function"), Aw = Y("window_function"), gw = Y("count"), Iw = Y("sum"), Cw = Y("avg"), Bw = Y("min"), Qw = Y("max"), Ew = Y("coalesce"), Dw = Y("null_if"), ww = Y("cast"), iw = Y("try_cast"), Mw = Y("safe_cast"), ow = Y("case"), Nw = Y("from"), kw = Y("join"), yw = Y("where"), Kw = Y("group_by"), Gw = Y("having"), Yw = Y("order_by"), Hw = Y("limit"), hw = Y("offset"), Sw = Y("with"), cw = Y("cte"), Fw = Y("alias"), Uw = Y("paren"), Jw = Y("ordered"), Rw = Y("create_table"), Lw = Y("drop_table"), sw = Y("alter_table"), aw = Y("create_index"), qw = Y("drop_index"), pw = Y("create_view"), Pw = Y("drop_view");
|
|
2509
2509
|
function Ow(g) {
|
|
2510
2510
|
const A = p(g);
|
|
2511
2511
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Tw(g) {
|
|
2514
2514
|
const A = p(g);
|
|
2515
2515
|
return A === "union" || A === "intersect" || A === "except";
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function jw(g) {
|
|
2518
2518
|
const A = p(g);
|
|
2519
2519
|
return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function tw(g) {
|
|
2522
2522
|
const A = p(g);
|
|
2523
2523
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function Vw(g) {
|
|
2526
2526
|
const A = p(g);
|
|
2527
2527
|
return A === "and" || A === "or" || A === "not";
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2529
|
+
function zw(g) {
|
|
2530
2530
|
const A = p(g);
|
|
2531
2531
|
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";
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function f(g) {
|
|
2534
2534
|
return JSON.stringify(g);
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function W(g) {
|
|
2537
2537
|
const A = JSON.parse(g);
|
|
2538
2538
|
return A.success ? JSON.parse(A.ast) : null;
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function xg(g, A, C) {
|
|
2541
2541
|
if (g == null) return g;
|
|
2542
2542
|
if (Array.isArray(g))
|
|
2543
|
-
return g.length > 0 &&
|
|
2544
|
-
(
|
|
2545
|
-
) : g.length > 0 && Array.isArray(g[0]) ? g.map((
|
|
2546
|
-
if (
|
|
2543
|
+
return g.length > 0 && e(g[0]) ? g.map(
|
|
2544
|
+
(B, Q) => wA(B, A, C, null, Q)
|
|
2545
|
+
) : g.length > 0 && Array.isArray(g[0]) ? g.map((B) => Array.isArray(B) ? B.map((Q, E) => e(Q) ? wA(Q, A, C, null, E) : Q) : B) : g;
|
|
2546
|
+
if (e(g))
|
|
2547
2547
|
return wA(g, A, C, null, null);
|
|
2548
2548
|
if (typeof g == "object") {
|
|
2549
|
-
const
|
|
2549
|
+
const Q = { ...g };
|
|
2550
2550
|
let E = !1;
|
|
2551
|
-
for (const [D,
|
|
2552
|
-
const k =
|
|
2553
|
-
k !==
|
|
2551
|
+
for (const [D, M] of Object.entries(Q)) {
|
|
2552
|
+
const k = xg(M, A, C);
|
|
2553
|
+
k !== M && (Q[D] = k, E = !0);
|
|
2554
2554
|
}
|
|
2555
|
-
return E ?
|
|
2555
|
+
return E ? Q : g;
|
|
2556
2556
|
}
|
|
2557
2557
|
return g;
|
|
2558
2558
|
}
|
|
2559
|
-
function wA(g, A, C,
|
|
2559
|
+
function wA(g, A, C, B, Q) {
|
|
2560
2560
|
let E = g;
|
|
2561
2561
|
if (A.enter) {
|
|
2562
|
-
const h = A.enter(E, C,
|
|
2562
|
+
const h = A.enter(E, C, B, Q);
|
|
2563
2563
|
if (h === null)
|
|
2564
2564
|
return E;
|
|
2565
2565
|
h !== void 0 && (E = h);
|
|
2566
2566
|
}
|
|
2567
|
-
const D = p(E),
|
|
2568
|
-
if (
|
|
2569
|
-
const h =
|
|
2567
|
+
const D = p(E), M = A[D];
|
|
2568
|
+
if (M) {
|
|
2569
|
+
const h = M(E, C, B, Q);
|
|
2570
2570
|
if (h === null)
|
|
2571
2571
|
return E;
|
|
2572
2572
|
h !== void 0 && (E = h);
|
|
@@ -2574,17 +2574,17 @@ function wA(g, A, C, Q, B) {
|
|
|
2574
2574
|
const k = p(E), K = O(E);
|
|
2575
2575
|
let y;
|
|
2576
2576
|
if (K == null)
|
|
2577
|
-
y =
|
|
2577
|
+
y = z(k, K);
|
|
2578
2578
|
else {
|
|
2579
2579
|
const h = { ...K };
|
|
2580
|
-
for (const [
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2580
|
+
for (const [L, q] of Object.entries(h)) {
|
|
2581
|
+
const T = xg(q, A, E);
|
|
2582
|
+
T !== q && (h[L] = T);
|
|
2583
2583
|
}
|
|
2584
|
-
y =
|
|
2584
|
+
y = z(k, h);
|
|
2585
2585
|
}
|
|
2586
2586
|
if (A.leave) {
|
|
2587
|
-
const h = A.leave(y, C,
|
|
2587
|
+
const h = A.leave(y, C, B, Q);
|
|
2588
2588
|
if (h != null)
|
|
2589
2589
|
return h;
|
|
2590
2590
|
}
|
|
@@ -2593,58 +2593,58 @@ function wA(g, A, C, Q, B) {
|
|
|
2593
2593
|
function GA(g, A) {
|
|
2594
2594
|
return wA(g, A, null, null, null);
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2596
|
+
function Wg(g, A, C) {
|
|
2597
2597
|
return GA(g, {
|
|
2598
|
-
enter: (
|
|
2599
|
-
if (A(
|
|
2600
|
-
return typeof C == "function" ? C(
|
|
2598
|
+
enter: (B, Q) => {
|
|
2599
|
+
if (A(B, Q))
|
|
2600
|
+
return typeof C == "function" ? C(B) : C;
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
return
|
|
2604
|
+
function fw(g, A, C) {
|
|
2605
|
+
return Wg(
|
|
2606
2606
|
g,
|
|
2607
|
-
(
|
|
2608
|
-
typeof C == "function" ? (
|
|
2607
|
+
(B) => p(B) === A,
|
|
2608
|
+
typeof C == "function" ? (B) => C(B) : C
|
|
2609
2609
|
);
|
|
2610
2610
|
}
|
|
2611
2611
|
function lg(g, A) {
|
|
2612
|
-
return
|
|
2613
|
-
wg(
|
|
2612
|
+
return W(
|
|
2613
|
+
wg(f(g), JSON.stringify(A))
|
|
2614
2614
|
) ?? g;
|
|
2615
2615
|
}
|
|
2616
2616
|
function Zw(g, A, C) {
|
|
2617
|
-
return
|
|
2618
|
-
C ?
|
|
2619
|
-
|
|
2617
|
+
return W(
|
|
2618
|
+
C ? Mg(
|
|
2619
|
+
f(g),
|
|
2620
2620
|
JSON.stringify(A),
|
|
2621
2621
|
JSON.stringify(C)
|
|
2622
|
-
) :
|
|
2622
|
+
) : ig(f(g), JSON.stringify(A))
|
|
2623
2623
|
) ?? g;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2626
|
-
return
|
|
2627
|
-
|
|
2625
|
+
function dw(g, A) {
|
|
2626
|
+
return W(
|
|
2627
|
+
Qg(f(g), A)
|
|
2628
2628
|
) ?? g;
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2631
|
-
return
|
|
2632
|
-
Eg(
|
|
2630
|
+
function ew(g, A = {}) {
|
|
2631
|
+
return W(
|
|
2632
|
+
Eg(f(g), JSON.stringify(A))
|
|
2633
2633
|
) ?? g;
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2637
|
-
vA(
|
|
2635
|
+
function xw(g, A, C = "and") {
|
|
2636
|
+
return W(
|
|
2637
|
+
vA(f(g), f(A), C === "or")
|
|
2638
2638
|
) ?? g;
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2641
|
-
return
|
|
2640
|
+
function Ww(g) {
|
|
2641
|
+
return W(Dg(f(g))) ?? g;
|
|
2642
2642
|
}
|
|
2643
2643
|
function lw(g, ...A) {
|
|
2644
2644
|
if (p(g) !== "select")
|
|
2645
2645
|
return g;
|
|
2646
2646
|
const C = O(g);
|
|
2647
|
-
return
|
|
2647
|
+
return z("select", {
|
|
2648
2648
|
...C,
|
|
2649
2649
|
expressions: [...C.expressions, ...A]
|
|
2650
2650
|
});
|
|
@@ -2653,18 +2653,18 @@ function rw(g, A) {
|
|
|
2653
2653
|
if (p(g) !== "select")
|
|
2654
2654
|
return g;
|
|
2655
2655
|
const C = O(g);
|
|
2656
|
-
return
|
|
2656
|
+
return z("select", {
|
|
2657
2657
|
...C,
|
|
2658
|
-
expressions: C.expressions.filter((
|
|
2658
|
+
expressions: C.expressions.filter((B) => !A(B))
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
function nw(g, A) {
|
|
2662
2662
|
if (typeof A == "number")
|
|
2663
|
-
return
|
|
2663
|
+
return W(Ng(f(g), A)) ?? g;
|
|
2664
2664
|
if (p(g) !== "select")
|
|
2665
2665
|
return g;
|
|
2666
2666
|
const C = O(g);
|
|
2667
|
-
return
|
|
2667
|
+
return z("select", {
|
|
2668
2668
|
...C,
|
|
2669
2669
|
limit: { this: A }
|
|
2670
2670
|
});
|
|
@@ -2672,24 +2672,24 @@ function nw(g, A) {
|
|
|
2672
2672
|
function mw(g, A) {
|
|
2673
2673
|
if (p(g) !== "select")
|
|
2674
2674
|
return g;
|
|
2675
|
-
const C = O(g),
|
|
2676
|
-
return
|
|
2675
|
+
const C = O(g), B = typeof A == "number" ? z("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2676
|
+
return z("select", {
|
|
2677
2677
|
...C,
|
|
2678
|
-
offset: { this:
|
|
2678
|
+
offset: { this: B }
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
2681
|
function uw(g) {
|
|
2682
2682
|
if (p(g) !== "select")
|
|
2683
2683
|
return g;
|
|
2684
2684
|
const A = O(g);
|
|
2685
|
-
return
|
|
2685
|
+
return z("select", {
|
|
2686
2686
|
...A,
|
|
2687
2687
|
limit: null,
|
|
2688
2688
|
offset: null
|
|
2689
2689
|
});
|
|
2690
2690
|
}
|
|
2691
2691
|
function bw(g, A = !0) {
|
|
2692
|
-
return
|
|
2692
|
+
return W(og(f(g), A)) ?? g;
|
|
2693
2693
|
}
|
|
2694
2694
|
function vw(g) {
|
|
2695
2695
|
return GA(g, {});
|
|
@@ -2697,27 +2697,27 @@ function vw(g) {
|
|
|
2697
2697
|
function rg(g, A, C) {
|
|
2698
2698
|
if (g == null) return g;
|
|
2699
2699
|
if (Array.isArray(g))
|
|
2700
|
-
return g.length > 0 &&
|
|
2701
|
-
if (
|
|
2702
|
-
return
|
|
2700
|
+
return g.length > 0 && e(g[0]) ? g.filter((B) => !A(B, C)).map((B) => FA(B, A)) : g;
|
|
2701
|
+
if (e(g))
|
|
2702
|
+
return FA(g, A);
|
|
2703
2703
|
if (typeof g == "object") {
|
|
2704
|
-
const
|
|
2704
|
+
const Q = { ...g };
|
|
2705
2705
|
let E = !1;
|
|
2706
|
-
for (const [D,
|
|
2707
|
-
const k = rg(
|
|
2708
|
-
k !==
|
|
2706
|
+
for (const [D, M] of Object.entries(Q)) {
|
|
2707
|
+
const k = rg(M, A, C);
|
|
2708
|
+
k !== M && (Q[D] = k, E = !0);
|
|
2709
2709
|
}
|
|
2710
|
-
return E ?
|
|
2710
|
+
return E ? Q : g;
|
|
2711
2711
|
}
|
|
2712
2712
|
return g;
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2715
|
-
const C = p(g),
|
|
2716
|
-
for (const [E, D] of Object.entries(
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2714
|
+
function FA(g, A) {
|
|
2715
|
+
const C = p(g), Q = { ...O(g) };
|
|
2716
|
+
for (const [E, D] of Object.entries(Q)) {
|
|
2717
|
+
const M = rg(D, A, g);
|
|
2718
|
+
M !== D && (Q[E] = M);
|
|
2719
2719
|
}
|
|
2720
|
-
return
|
|
2720
|
+
return z(C, Q);
|
|
2721
2721
|
}
|
|
2722
2722
|
function l(g) {
|
|
2723
2723
|
return JSON.stringify(g);
|
|
@@ -2725,57 +2725,57 @@ function l(g) {
|
|
|
2725
2725
|
function ng(g, A, C) {
|
|
2726
2726
|
if (g != null) {
|
|
2727
2727
|
if (Array.isArray(g)) {
|
|
2728
|
-
if (g.length > 0 &&
|
|
2728
|
+
if (g.length > 0 && e(g[0]))
|
|
2729
2729
|
C.push({ key: A, value: g });
|
|
2730
2730
|
else if (g.length > 0 && Array.isArray(g[0])) {
|
|
2731
|
-
for (const
|
|
2732
|
-
if (Array.isArray(
|
|
2733
|
-
for (const
|
|
2734
|
-
|
|
2731
|
+
for (const B of g)
|
|
2732
|
+
if (Array.isArray(B))
|
|
2733
|
+
for (const Q of B)
|
|
2734
|
+
e(Q) && C.push({ key: A, value: Q });
|
|
2735
2735
|
}
|
|
2736
|
-
} else if (
|
|
2736
|
+
} else if (e(g))
|
|
2737
2737
|
C.push({ key: A, value: g });
|
|
2738
2738
|
else if (typeof g == "object")
|
|
2739
|
-
for (const [,
|
|
2739
|
+
for (const [, B] of Object.entries(
|
|
2740
2740
|
g
|
|
2741
2741
|
))
|
|
2742
|
-
ng(
|
|
2742
|
+
ng(B, A, C);
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
2745
|
function mg(g) {
|
|
2746
2746
|
const A = [], C = O(g);
|
|
2747
2747
|
if (!C || typeof C != "object") return A;
|
|
2748
|
-
for (const [
|
|
2749
|
-
ng(
|
|
2748
|
+
for (const [B, Q] of Object.entries(C))
|
|
2749
|
+
ng(Q, B, A);
|
|
2750
2750
|
return A;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2753
|
-
A.enter && A.enter(g, C,
|
|
2752
|
+
function V(g, A, C = null, B = null, Q = null) {
|
|
2753
|
+
A.enter && A.enter(g, C, B, Q);
|
|
2754
2754
|
const E = p(g), D = A[E];
|
|
2755
|
-
D && D(g, C,
|
|
2756
|
-
const
|
|
2757
|
-
for (const k of
|
|
2755
|
+
D && D(g, C, B, Q);
|
|
2756
|
+
const M = mg(g);
|
|
2757
|
+
for (const k of M)
|
|
2758
2758
|
Array.isArray(k.value) ? k.value.forEach((K, y) => {
|
|
2759
|
-
|
|
2760
|
-
}) :
|
|
2761
|
-
A.leave && A.leave(g, C,
|
|
2759
|
+
V(K, A, g, k.key, y);
|
|
2760
|
+
}) : V(k.value, A, g, k.key, null);
|
|
2761
|
+
A.leave && A.leave(g, C, B, Q);
|
|
2762
2762
|
}
|
|
2763
2763
|
function YA(g, A) {
|
|
2764
2764
|
const C = [];
|
|
2765
|
-
return
|
|
2766
|
-
enter: (
|
|
2767
|
-
A(
|
|
2765
|
+
return V(g, {
|
|
2766
|
+
enter: (B, Q) => {
|
|
2767
|
+
A(B, Q) && C.push(B);
|
|
2768
2768
|
}
|
|
2769
2769
|
}), C;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function QA(g, A) {
|
|
2772
2772
|
return YA(g, (C) => p(C) === A);
|
|
2773
2773
|
}
|
|
2774
2774
|
function ug(g, A) {
|
|
2775
|
-
let C,
|
|
2776
|
-
return
|
|
2777
|
-
enter: (
|
|
2778
|
-
!
|
|
2775
|
+
let C, B = !1;
|
|
2776
|
+
return V(g, {
|
|
2777
|
+
enter: (Q, E) => {
|
|
2778
|
+
!B && A(Q, E) && (C = Q, B = !0);
|
|
2779
2779
|
}
|
|
2780
2780
|
}), C;
|
|
2781
2781
|
}
|
|
@@ -2784,9 +2784,9 @@ function Xw(g, A) {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
function _w(g, A) {
|
|
2786
2786
|
let C = !0;
|
|
2787
|
-
return
|
|
2788
|
-
enter: (
|
|
2789
|
-
A(
|
|
2787
|
+
return V(g, {
|
|
2788
|
+
enter: (B, Q) => {
|
|
2789
|
+
A(B, Q) || (C = !1);
|
|
2790
2790
|
}
|
|
2791
2791
|
}), C;
|
|
2792
2792
|
}
|
|
@@ -2794,15 +2794,15 @@ function $w(g, A) {
|
|
|
2794
2794
|
return YA(g, A).length;
|
|
2795
2795
|
}
|
|
2796
2796
|
function bg(g) {
|
|
2797
|
-
return
|
|
2797
|
+
return QA(g, "column");
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return
|
|
2799
|
+
function Ai(g) {
|
|
2800
|
+
return QA(g, "table");
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2803
|
-
return
|
|
2802
|
+
function gi(g) {
|
|
2803
|
+
return QA(g, "identifier");
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function Ii(g) {
|
|
2806
2806
|
const A = JSON.parse($A(l(g)));
|
|
2807
2807
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2808
2808
|
}
|
|
@@ -2818,30 +2818,30 @@ function Xg(g) {
|
|
|
2818
2818
|
const A = JSON.parse(gg(l(g)));
|
|
2819
2819
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function Ci(g) {
|
|
2822
2822
|
const A = JSON.parse(Ag(l(g)));
|
|
2823
2823
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function Bi(g) {
|
|
2826
2826
|
const A = JSON.parse(_A(l(g)));
|
|
2827
2827
|
return A.success ? A.result : [];
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function Qi(g) {
|
|
2830
2830
|
const A = JSON.parse(Ig(l(g)));
|
|
2831
2831
|
return A.success ? A.result : [];
|
|
2832
2832
|
}
|
|
2833
2833
|
function _g(g) {
|
|
2834
2834
|
return IA(g).length > 0;
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function Ei(g) {
|
|
2837
2837
|
return vg(g).length > 0;
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function Di(g) {
|
|
2840
2840
|
return Xg(g).length > 0;
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2842
|
+
function wi(g) {
|
|
2843
2843
|
let A = 0, C = 0;
|
|
2844
|
-
return
|
|
2844
|
+
return V(g, {
|
|
2845
2845
|
enter: () => {
|
|
2846
2846
|
C++, A = Math.max(A, C);
|
|
2847
2847
|
},
|
|
@@ -2850,183 +2850,183 @@ function wM(g) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
}), A;
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2854
|
-
const A = JSON.parse(
|
|
2853
|
+
function ii(g) {
|
|
2854
|
+
const A = JSON.parse(Bg(l(g)));
|
|
2855
2855
|
return A.success ? A.result : 0;
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Mi(g, A) {
|
|
2858
2858
|
let C = null;
|
|
2859
|
-
return
|
|
2860
|
-
enter: (
|
|
2861
|
-
|
|
2859
|
+
return V(g, {
|
|
2860
|
+
enter: (B, Q) => {
|
|
2861
|
+
B === A && (C = Q);
|
|
2862
2862
|
}
|
|
2863
2863
|
}), C;
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2866
|
-
const
|
|
2867
|
-
let
|
|
2868
|
-
return
|
|
2865
|
+
function oi(g, A, C) {
|
|
2866
|
+
const B = [];
|
|
2867
|
+
let Q = null;
|
|
2868
|
+
return V(g, {
|
|
2869
2869
|
enter: (E) => {
|
|
2870
|
-
if (
|
|
2870
|
+
if (Q === null) {
|
|
2871
2871
|
if (E === A)
|
|
2872
|
-
for (let D =
|
|
2873
|
-
const
|
|
2874
|
-
if (C(
|
|
2875
|
-
|
|
2872
|
+
for (let D = B.length - 1; D >= 0; D--) {
|
|
2873
|
+
const M = D > 0 ? B[D - 1] : null;
|
|
2874
|
+
if (C(B[D], M)) {
|
|
2875
|
+
Q = B[D];
|
|
2876
2876
|
break;
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
|
-
|
|
2879
|
+
B.push(E);
|
|
2880
2880
|
}
|
|
2881
2881
|
},
|
|
2882
2882
|
leave: () => {
|
|
2883
|
-
|
|
2883
|
+
B.pop();
|
|
2884
2884
|
}
|
|
2885
|
-
}),
|
|
2885
|
+
}), Q;
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2888
|
-
let C = 0,
|
|
2889
|
-
return
|
|
2890
|
-
enter: (
|
|
2891
|
-
|
|
2887
|
+
function Ni(g, A) {
|
|
2888
|
+
let C = 0, B = 0;
|
|
2889
|
+
return V(g, {
|
|
2890
|
+
enter: (Q) => {
|
|
2891
|
+
B++, Q === A && (C = B);
|
|
2892
2892
|
},
|
|
2893
2893
|
leave: () => {
|
|
2894
|
-
|
|
2894
|
+
B--;
|
|
2895
2895
|
}
|
|
2896
2896
|
}), C;
|
|
2897
2897
|
}
|
|
2898
|
-
const
|
|
2898
|
+
const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2899
2899
|
__proto__: null,
|
|
2900
2900
|
addSelectColumns: lw,
|
|
2901
|
-
addWhere:
|
|
2901
|
+
addWhere: xw,
|
|
2902
2902
|
clone: vw,
|
|
2903
2903
|
countNodes: $w,
|
|
2904
2904
|
every: _w,
|
|
2905
2905
|
findAll: YA,
|
|
2906
|
-
findAncestor:
|
|
2907
|
-
findByType:
|
|
2906
|
+
findAncestor: oi,
|
|
2907
|
+
findByType: QA,
|
|
2908
2908
|
findFirst: ug,
|
|
2909
2909
|
getAggregateFunctions: IA,
|
|
2910
2910
|
getChildren: mg,
|
|
2911
|
-
getColumnNames:
|
|
2911
|
+
getColumnNames: Bi,
|
|
2912
2912
|
getColumns: bg,
|
|
2913
|
-
getDepth:
|
|
2913
|
+
getDepth: wi,
|
|
2914
2914
|
getExprData: O,
|
|
2915
2915
|
getExprType: p,
|
|
2916
|
-
getFunctions:
|
|
2917
|
-
getIdentifiers:
|
|
2918
|
-
getInferredType:
|
|
2919
|
-
getLiterals:
|
|
2920
|
-
getNodeDepth:
|
|
2921
|
-
getParent:
|
|
2916
|
+
getFunctions: Ii,
|
|
2917
|
+
getIdentifiers: gi,
|
|
2918
|
+
getInferredType: zg,
|
|
2919
|
+
getLiterals: Ci,
|
|
2920
|
+
getNodeDepth: Ni,
|
|
2921
|
+
getParent: Mi,
|
|
2922
2922
|
getSubqueries: Xg,
|
|
2923
|
-
getTableNames:
|
|
2924
|
-
getTables:
|
|
2923
|
+
getTableNames: Qi,
|
|
2924
|
+
getTables: Ai,
|
|
2925
2925
|
getWindowFunctions: vg,
|
|
2926
2926
|
hasAggregates: _g,
|
|
2927
|
-
hasSubqueries:
|
|
2928
|
-
hasWindowFunctions:
|
|
2929
|
-
isAdd:
|
|
2927
|
+
hasSubqueries: Di,
|
|
2928
|
+
hasWindowFunctions: Ei,
|
|
2929
|
+
isAdd: WD,
|
|
2930
2930
|
isAggregateFunction: $D,
|
|
2931
|
-
isAlias:
|
|
2931
|
+
isAlias: Fw,
|
|
2932
2932
|
isAlterTable: sw,
|
|
2933
2933
|
isAnd: OD,
|
|
2934
|
-
isArithmetic:
|
|
2934
|
+
isArithmetic: tw,
|
|
2935
2935
|
isAvg: Cw,
|
|
2936
2936
|
isBetween: vD,
|
|
2937
2937
|
isBoolean: pD,
|
|
2938
|
-
isCase:
|
|
2938
|
+
isCase: ow,
|
|
2939
2939
|
isCast: ww,
|
|
2940
2940
|
isCoalesce: Ew,
|
|
2941
2941
|
isColumn: Zg,
|
|
2942
|
-
isComparison:
|
|
2942
|
+
isComparison: jw,
|
|
2943
2943
|
isConcat: uD,
|
|
2944
2944
|
isCount: gw,
|
|
2945
2945
|
isCreateIndex: aw,
|
|
2946
|
-
isCreateTable:
|
|
2946
|
+
isCreateTable: Rw,
|
|
2947
2947
|
isCreateView: pw,
|
|
2948
2948
|
isCte: cw,
|
|
2949
|
-
isDDL:
|
|
2950
|
-
isDelete:
|
|
2949
|
+
isDDL: zw,
|
|
2950
|
+
isDelete: FD,
|
|
2951
2951
|
isDiv: nD,
|
|
2952
2952
|
isDropIndex: qw,
|
|
2953
|
-
isDropTable:
|
|
2954
|
-
isDropView:
|
|
2955
|
-
isEq:
|
|
2956
|
-
isExcept:
|
|
2953
|
+
isDropTable: Lw,
|
|
2954
|
+
isDropView: Pw,
|
|
2955
|
+
isEq: tD,
|
|
2956
|
+
isExcept: RD,
|
|
2957
2957
|
isExists: _D,
|
|
2958
|
-
isExpressionValue:
|
|
2959
|
-
isFrom:
|
|
2960
|
-
isFunction:
|
|
2958
|
+
isExpressionValue: e,
|
|
2959
|
+
isFrom: Nw,
|
|
2960
|
+
isFunction: eg,
|
|
2961
2961
|
isGroupBy: Kw,
|
|
2962
2962
|
isGt: ZD,
|
|
2963
|
-
isGte:
|
|
2963
|
+
isGte: dD,
|
|
2964
2964
|
isHaving: Gw,
|
|
2965
|
-
isILike:
|
|
2965
|
+
isILike: xD,
|
|
2966
2966
|
isIdentifier: sD,
|
|
2967
2967
|
isIn: bD,
|
|
2968
2968
|
isInsert: SD,
|
|
2969
2969
|
isIntersect: JD,
|
|
2970
2970
|
isIsNull: XD,
|
|
2971
2971
|
isJoin: kw,
|
|
2972
|
-
isLike:
|
|
2972
|
+
isLike: eD,
|
|
2973
2973
|
isLimit: Hw,
|
|
2974
|
-
isLiteral:
|
|
2975
|
-
isLogical:
|
|
2976
|
-
isLt:
|
|
2977
|
-
isLte:
|
|
2978
|
-
isMax:
|
|
2979
|
-
isMin:
|
|
2974
|
+
isLiteral: dg,
|
|
2975
|
+
isLogical: Vw,
|
|
2976
|
+
isLt: zD,
|
|
2977
|
+
isLte: fD,
|
|
2978
|
+
isMax: Qw,
|
|
2979
|
+
isMin: Bw,
|
|
2980
2980
|
isMod: mD,
|
|
2981
2981
|
isMul: rD,
|
|
2982
|
-
isNeq:
|
|
2983
|
-
isNot:
|
|
2982
|
+
isNeq: VD,
|
|
2983
|
+
isNot: jD,
|
|
2984
2984
|
isNullIf: Dw,
|
|
2985
|
-
isNullLiteral:
|
|
2985
|
+
isNullLiteral: PD,
|
|
2986
2986
|
isOffset: hw,
|
|
2987
|
-
isOr:
|
|
2987
|
+
isOr: TD,
|
|
2988
2988
|
isOrderBy: Yw,
|
|
2989
2989
|
isOrdered: Jw,
|
|
2990
|
-
isParen:
|
|
2990
|
+
isParen: Uw,
|
|
2991
2991
|
isQuery: Ow,
|
|
2992
|
-
isSafeCast:
|
|
2993
|
-
isSelect:
|
|
2994
|
-
isSetOperation:
|
|
2992
|
+
isSafeCast: Mw,
|
|
2993
|
+
isSelect: fg,
|
|
2994
|
+
isSetOperation: Tw,
|
|
2995
2995
|
isStar: qD,
|
|
2996
2996
|
isSub: lD,
|
|
2997
|
-
isSubquery:
|
|
2997
|
+
isSubquery: LD,
|
|
2998
2998
|
isSum: Iw,
|
|
2999
2999
|
isTable: aD,
|
|
3000
|
-
isTryCast:
|
|
3001
|
-
isUnion:
|
|
3000
|
+
isTryCast: iw,
|
|
3001
|
+
isUnion: UD,
|
|
3002
3002
|
isUpdate: cD,
|
|
3003
3003
|
isWhere: yw,
|
|
3004
3004
|
isWindowFunction: Aw,
|
|
3005
3005
|
isWith: Sw,
|
|
3006
|
-
makeExpr:
|
|
3007
|
-
nodeCount:
|
|
3008
|
-
qualifyColumns:
|
|
3009
|
-
qualifyTables:
|
|
3010
|
-
remove:
|
|
3006
|
+
makeExpr: z,
|
|
3007
|
+
nodeCount: ii,
|
|
3008
|
+
qualifyColumns: dw,
|
|
3009
|
+
qualifyTables: ew,
|
|
3010
|
+
remove: FA,
|
|
3011
3011
|
removeLimitOffset: uw,
|
|
3012
3012
|
removeSelectColumns: rw,
|
|
3013
|
-
removeWhere:
|
|
3013
|
+
removeWhere: Ww,
|
|
3014
3014
|
renameColumns: lg,
|
|
3015
3015
|
renameTables: Zw,
|
|
3016
|
-
replaceByType:
|
|
3017
|
-
replaceNodes:
|
|
3016
|
+
replaceByType: fw,
|
|
3017
|
+
replaceNodes: Wg,
|
|
3018
3018
|
setDistinct: bw,
|
|
3019
3019
|
setLimit: nw,
|
|
3020
3020
|
setOffset: mw,
|
|
3021
3021
|
some: Xw,
|
|
3022
3022
|
transform: GA,
|
|
3023
|
-
walk:
|
|
3023
|
+
walk: V
|
|
3024
3024
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3025
|
-
function
|
|
3026
|
-
return g instanceof S ? g._w : typeof g == "string" ?
|
|
3025
|
+
function U(g) {
|
|
3026
|
+
return g instanceof S ? g._w : typeof g == "string" ? UA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : yA();
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
const A = new
|
|
3028
|
+
function t(g) {
|
|
3029
|
+
const A = new P();
|
|
3030
3030
|
for (const C of g)
|
|
3031
3031
|
C instanceof S ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(kA(C)) : A.push(yA());
|
|
3032
3032
|
return A;
|
|
@@ -3040,58 +3040,58 @@ class S {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
// -- Comparison --
|
|
3042
3042
|
eq(A) {
|
|
3043
|
-
return new S(this._w.eq(
|
|
3043
|
+
return new S(this._w.eq(U(A)));
|
|
3044
3044
|
}
|
|
3045
3045
|
neq(A) {
|
|
3046
|
-
return new S(this._w.neq(
|
|
3046
|
+
return new S(this._w.neq(U(A)));
|
|
3047
3047
|
}
|
|
3048
3048
|
lt(A) {
|
|
3049
|
-
return new S(this._w.lt(
|
|
3049
|
+
return new S(this._w.lt(U(A)));
|
|
3050
3050
|
}
|
|
3051
3051
|
lte(A) {
|
|
3052
|
-
return new S(this._w.lte(
|
|
3052
|
+
return new S(this._w.lte(U(A)));
|
|
3053
3053
|
}
|
|
3054
3054
|
gt(A) {
|
|
3055
|
-
return new S(this._w.gt(
|
|
3055
|
+
return new S(this._w.gt(U(A)));
|
|
3056
3056
|
}
|
|
3057
3057
|
gte(A) {
|
|
3058
|
-
return new S(this._w.gte(
|
|
3058
|
+
return new S(this._w.gte(U(A)));
|
|
3059
3059
|
}
|
|
3060
3060
|
// -- Logical --
|
|
3061
3061
|
and(A) {
|
|
3062
|
-
return new S(this._w.and(
|
|
3062
|
+
return new S(this._w.and(U(A)));
|
|
3063
3063
|
}
|
|
3064
3064
|
or(A) {
|
|
3065
|
-
return new S(this._w.or(
|
|
3065
|
+
return new S(this._w.or(U(A)));
|
|
3066
3066
|
}
|
|
3067
3067
|
not() {
|
|
3068
3068
|
return new S(this._w.not());
|
|
3069
3069
|
}
|
|
3070
3070
|
xor(A) {
|
|
3071
|
-
return new S(this._w.xor(
|
|
3071
|
+
return new S(this._w.xor(U(A)));
|
|
3072
3072
|
}
|
|
3073
3073
|
// -- Arithmetic --
|
|
3074
3074
|
add(A) {
|
|
3075
|
-
return new S(this._w.add(
|
|
3075
|
+
return new S(this._w.add(U(A)));
|
|
3076
3076
|
}
|
|
3077
3077
|
sub(A) {
|
|
3078
|
-
return new S(this._w.sub(
|
|
3078
|
+
return new S(this._w.sub(U(A)));
|
|
3079
3079
|
}
|
|
3080
3080
|
mul(A) {
|
|
3081
|
-
return new S(this._w.mul(
|
|
3081
|
+
return new S(this._w.mul(U(A)));
|
|
3082
3082
|
}
|
|
3083
3083
|
div(A) {
|
|
3084
|
-
return new S(this._w.div(
|
|
3084
|
+
return new S(this._w.div(U(A)));
|
|
3085
3085
|
}
|
|
3086
3086
|
// -- Pattern matching --
|
|
3087
3087
|
like(A) {
|
|
3088
|
-
return new S(this._w.like(
|
|
3088
|
+
return new S(this._w.like(U(A)));
|
|
3089
3089
|
}
|
|
3090
3090
|
ilike(A) {
|
|
3091
|
-
return new S(this._w.ilike(
|
|
3091
|
+
return new S(this._w.ilike(U(A)));
|
|
3092
3092
|
}
|
|
3093
3093
|
rlike(A) {
|
|
3094
|
-
return new S(this._w.rlike(
|
|
3094
|
+
return new S(this._w.rlike(U(A)));
|
|
3095
3095
|
}
|
|
3096
3096
|
// -- Predicates --
|
|
3097
3097
|
isNull() {
|
|
@@ -3101,13 +3101,13 @@ class S {
|
|
|
3101
3101
|
return new S(this._w.is_not_null());
|
|
3102
3102
|
}
|
|
3103
3103
|
between(A, C) {
|
|
3104
|
-
return new S(this._w.between(
|
|
3104
|
+
return new S(this._w.between(U(A), U(C)));
|
|
3105
3105
|
}
|
|
3106
3106
|
inList(...A) {
|
|
3107
|
-
return new S(this._w.in_list(
|
|
3107
|
+
return new S(this._w.in_list(t(A)));
|
|
3108
3108
|
}
|
|
3109
3109
|
notIn(...A) {
|
|
3110
|
-
return new S(this._w.not_in(
|
|
3110
|
+
return new S(this._w.not_in(t(A)));
|
|
3111
3111
|
}
|
|
3112
3112
|
// -- Transform --
|
|
3113
3113
|
alias(A) {
|
|
@@ -3139,206 +3139,206 @@ class S {
|
|
|
3139
3139
|
this._w.free();
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
|
-
class
|
|
3142
|
+
class yi {
|
|
3143
3143
|
/** @internal WASM handle */
|
|
3144
3144
|
_w;
|
|
3145
3145
|
constructor() {
|
|
3146
|
-
this._w = new
|
|
3146
|
+
this._w = new BA();
|
|
3147
3147
|
}
|
|
3148
3148
|
/** Set the PARTITION BY expressions. */
|
|
3149
3149
|
partitionBy(...A) {
|
|
3150
|
-
return this._w.partition_by(
|
|
3150
|
+
return this._w.partition_by(t(A)), this;
|
|
3151
3151
|
}
|
|
3152
3152
|
/** Set the ORDER BY expressions. */
|
|
3153
3153
|
orderBy(...A) {
|
|
3154
|
-
return this._w.order_by(
|
|
3154
|
+
return this._w.order_by(t(A)), this;
|
|
3155
3155
|
}
|
|
3156
3156
|
/** Free the underlying WASM handle. */
|
|
3157
3157
|
free() {
|
|
3158
3158
|
this._w.free();
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3162
|
-
return new S(
|
|
3161
|
+
function Ki(g) {
|
|
3162
|
+
return new S(UA(g));
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Gi(g) {
|
|
3165
3165
|
return new S(kA(g));
|
|
3166
3166
|
}
|
|
3167
3167
|
function $g() {
|
|
3168
|
-
return new S(
|
|
3168
|
+
return new S(Tg());
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3170
|
+
function Yi() {
|
|
3171
3171
|
return new S(yA());
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function RA(g) {
|
|
3174
3174
|
return new S(Jg(g));
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3177
|
-
return new S(
|
|
3176
|
+
function Hi(g) {
|
|
3177
|
+
return new S(tg(g));
|
|
3178
3178
|
}
|
|
3179
3179
|
function AI(g) {
|
|
3180
3180
|
return new S(Og(g));
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function hi(g) {
|
|
3183
3183
|
return AI(g);
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return new S(qg(g,
|
|
3185
|
+
function R(g, ...A) {
|
|
3186
|
+
return new S(qg(g, t(A)));
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3189
|
-
return new S(pg(
|
|
3188
|
+
function Si(g) {
|
|
3189
|
+
return new S(pg(U(g)));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3192
|
-
return new S(
|
|
3191
|
+
function ci(g, A) {
|
|
3192
|
+
return new S(Lg(U(g), A));
|
|
3193
3193
|
}
|
|
3194
|
-
function
|
|
3195
|
-
return new S(
|
|
3194
|
+
function Fi(g, A) {
|
|
3195
|
+
return new S(Fg(U(g), A));
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3198
|
-
return new S(
|
|
3197
|
+
function Ui(g, A) {
|
|
3198
|
+
return new S(jg(g._w, A));
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3201
|
-
if (g.length === 0) return
|
|
3200
|
+
function Ji(...g) {
|
|
3201
|
+
if (g.length === 0) return RA(!0);
|
|
3202
3202
|
if (g.length === 1)
|
|
3203
|
-
return g[0] instanceof S ? g[0] : new S(
|
|
3204
|
-
let A =
|
|
3203
|
+
return g[0] instanceof S ? g[0] : new S(U(g[0]));
|
|
3204
|
+
let A = U(g[0]);
|
|
3205
3205
|
for (let C = 1; C < g.length; C++)
|
|
3206
|
-
A =
|
|
3206
|
+
A = Ug(A, U(g[C]));
|
|
3207
3207
|
return new S(A);
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3210
|
-
if (g.length === 0) return
|
|
3209
|
+
function Ri(...g) {
|
|
3210
|
+
if (g.length === 0) return RA(!1);
|
|
3211
3211
|
if (g.length === 1)
|
|
3212
|
-
return g[0] instanceof S ? g[0] : new S(
|
|
3213
|
-
let A =
|
|
3212
|
+
return g[0] instanceof S ? g[0] : new S(U(g[0]));
|
|
3213
|
+
let A = U(g[0]);
|
|
3214
3214
|
for (let C = 1; C < g.length; C++)
|
|
3215
|
-
A =
|
|
3215
|
+
A = Pg(A, U(g[C]));
|
|
3216
3216
|
return new S(A);
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return g !== void 0 ?
|
|
3218
|
+
function Li(g) {
|
|
3219
|
+
return g !== void 0 ? R("COUNT", g) : R("COUNT", $g());
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3222
|
-
return new S(sg(
|
|
3221
|
+
function si(g) {
|
|
3222
|
+
return new S(sg(U(g)));
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3225
|
-
return
|
|
3224
|
+
function ai(g) {
|
|
3225
|
+
return R("SUM", g);
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3228
|
-
return
|
|
3227
|
+
function qi(g) {
|
|
3228
|
+
return R("AVG", g);
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3231
|
-
return
|
|
3230
|
+
function pi(g) {
|
|
3231
|
+
return R("MIN", g);
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3234
|
-
return
|
|
3233
|
+
function Pi(g) {
|
|
3234
|
+
return R("MAX", g);
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3237
|
-
return
|
|
3236
|
+
function Oi(g) {
|
|
3237
|
+
return R("UPPER", g);
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return
|
|
3239
|
+
function Ti(g) {
|
|
3240
|
+
return R("LOWER", g);
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3243
|
-
return
|
|
3242
|
+
function ji(g) {
|
|
3243
|
+
return R("LENGTH", g);
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3246
|
-
return
|
|
3245
|
+
function ti(g) {
|
|
3246
|
+
return R("TRIM", g);
|
|
3247
3247
|
}
|
|
3248
|
-
function
|
|
3249
|
-
return
|
|
3248
|
+
function Vi(g) {
|
|
3249
|
+
return R("LTRIM", g);
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3252
|
-
return
|
|
3251
|
+
function zi(g) {
|
|
3252
|
+
return R("RTRIM", g);
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3255
|
-
return
|
|
3254
|
+
function fi(g) {
|
|
3255
|
+
return R("REVERSE", g);
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3258
|
-
return
|
|
3257
|
+
function Zi(g) {
|
|
3258
|
+
return R("INITCAP", g);
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3261
|
-
return C !== void 0 ?
|
|
3260
|
+
function di(g, A, C) {
|
|
3261
|
+
return C !== void 0 ? R("SUBSTRING", g, A, C) : R("SUBSTRING", g, A);
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3264
|
-
return
|
|
3263
|
+
function ei(g, A, C) {
|
|
3264
|
+
return R("REPLACE", g, A, C);
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3267
|
-
return
|
|
3266
|
+
function xi(g, ...A) {
|
|
3267
|
+
return R("CONCAT_WS", g, ...A);
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return
|
|
3269
|
+
function Wi(...g) {
|
|
3270
|
+
return R("COALESCE", ...g);
|
|
3271
3271
|
}
|
|
3272
|
-
function
|
|
3273
|
-
return
|
|
3272
|
+
function li(g, A) {
|
|
3273
|
+
return R("NULLIF", g, A);
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3276
|
-
return
|
|
3275
|
+
function ri(g, A) {
|
|
3276
|
+
return R("IFNULL", g, A);
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3279
|
-
return
|
|
3278
|
+
function ni(g) {
|
|
3279
|
+
return R("ABS", g);
|
|
3280
3280
|
}
|
|
3281
|
-
function
|
|
3282
|
-
return A !== void 0 ?
|
|
3281
|
+
function mi(g, A) {
|
|
3282
|
+
return A !== void 0 ? R("ROUND", g, A) : R("ROUND", g);
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3285
|
-
return
|
|
3284
|
+
function ui(g) {
|
|
3285
|
+
return R("FLOOR", g);
|
|
3286
3286
|
}
|
|
3287
|
-
function
|
|
3288
|
-
return
|
|
3287
|
+
function bi(g) {
|
|
3288
|
+
return R("CEIL", g);
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return
|
|
3290
|
+
function vi(g, A) {
|
|
3291
|
+
return R("POWER", g, A);
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3294
|
-
return
|
|
3293
|
+
function Xi(g) {
|
|
3294
|
+
return R("SQRT", g);
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return
|
|
3296
|
+
function _i(g) {
|
|
3297
|
+
return R("LN", g);
|
|
3298
3298
|
}
|
|
3299
|
-
function $
|
|
3300
|
-
return
|
|
3299
|
+
function $i(g) {
|
|
3300
|
+
return R("EXP", g);
|
|
3301
3301
|
}
|
|
3302
|
-
function
|
|
3303
|
-
return
|
|
3302
|
+
function AM(g) {
|
|
3303
|
+
return R("SIGN", g);
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3306
|
-
return
|
|
3305
|
+
function gM(...g) {
|
|
3306
|
+
return R("GREATEST", ...g);
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3309
|
-
return
|
|
3308
|
+
function IM(...g) {
|
|
3309
|
+
return R("LEAST", ...g);
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return
|
|
3311
|
+
function CM() {
|
|
3312
|
+
return R("CURRENT_DATE");
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3315
|
-
return
|
|
3314
|
+
function BM() {
|
|
3315
|
+
return R("CURRENT_TIME");
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3318
|
-
return
|
|
3317
|
+
function QM() {
|
|
3318
|
+
return R("CURRENT_TIMESTAMP");
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3321
|
-
return new S(ag(g,
|
|
3320
|
+
function EM(g, A) {
|
|
3321
|
+
return new S(ag(g, U(A)));
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3324
|
-
return
|
|
3323
|
+
function DM() {
|
|
3324
|
+
return R("ROW_NUMBER");
|
|
3325
3325
|
}
|
|
3326
|
-
function
|
|
3327
|
-
return
|
|
3326
|
+
function wM() {
|
|
3327
|
+
return R("RANK");
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3330
|
-
return
|
|
3329
|
+
function iM() {
|
|
3330
|
+
return R("DENSE_RANK");
|
|
3331
3331
|
}
|
|
3332
3332
|
class gI {
|
|
3333
3333
|
/** @internal */
|
|
3334
3334
|
_w;
|
|
3335
3335
|
constructor() {
|
|
3336
|
-
this._w = new
|
|
3336
|
+
this._w = new j();
|
|
3337
3337
|
}
|
|
3338
3338
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3339
3339
|
select(...A) {
|
|
3340
3340
|
for (const C of A)
|
|
3341
|
-
C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(
|
|
3341
|
+
C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(U(C));
|
|
3342
3342
|
return this;
|
|
3343
3343
|
}
|
|
3344
3344
|
/** Set the FROM clause. */
|
|
@@ -3347,15 +3347,15 @@ class gI {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
/** Add an INNER JOIN. */
|
|
3349
3349
|
join(A, C) {
|
|
3350
|
-
return this._w.join(A,
|
|
3350
|
+
return this._w.join(A, U(C)), this;
|
|
3351
3351
|
}
|
|
3352
3352
|
/** Add a LEFT JOIN. */
|
|
3353
3353
|
leftJoin(A, C) {
|
|
3354
|
-
return this._w.left_join(A,
|
|
3354
|
+
return this._w.left_join(A, U(C)), this;
|
|
3355
3355
|
}
|
|
3356
3356
|
/** Add a RIGHT JOIN. */
|
|
3357
3357
|
rightJoin(A, C) {
|
|
3358
|
-
return this._w.right_join(A,
|
|
3358
|
+
return this._w.right_join(A, U(C)), this;
|
|
3359
3359
|
}
|
|
3360
3360
|
/** Add a CROSS JOIN. */
|
|
3361
3361
|
crossJoin(A) {
|
|
@@ -3363,19 +3363,19 @@ class gI {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3365
3365
|
where(A) {
|
|
3366
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(
|
|
3366
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(U(A)), this;
|
|
3367
3367
|
}
|
|
3368
3368
|
/** Set the GROUP BY clause. */
|
|
3369
3369
|
groupBy(...A) {
|
|
3370
|
-
return this._w.group_by_cols(
|
|
3370
|
+
return this._w.group_by_cols(t(A)), this;
|
|
3371
3371
|
}
|
|
3372
3372
|
/** Set the HAVING clause. */
|
|
3373
3373
|
having(A) {
|
|
3374
|
-
return this._w.having(
|
|
3374
|
+
return this._w.having(U(A)), this;
|
|
3375
3375
|
}
|
|
3376
3376
|
/** Set the ORDER BY clause. */
|
|
3377
3377
|
orderBy(...A) {
|
|
3378
|
-
return this._w.order_by_exprs(
|
|
3378
|
+
return this._w.order_by_exprs(t(A)), this;
|
|
3379
3379
|
}
|
|
3380
3380
|
/** Set the LIMIT. */
|
|
3381
3381
|
limit(A) {
|
|
@@ -3391,19 +3391,19 @@ class gI {
|
|
|
3391
3391
|
}
|
|
3392
3392
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3393
3393
|
qualify(A) {
|
|
3394
|
-
return this._w.qualify(
|
|
3394
|
+
return this._w.qualify(U(A)), this;
|
|
3395
3395
|
}
|
|
3396
3396
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3397
3397
|
sortBy(...A) {
|
|
3398
|
-
return this._w.sort_by_exprs(
|
|
3398
|
+
return this._w.sort_by_exprs(t(A)), this;
|
|
3399
3399
|
}
|
|
3400
3400
|
/** Add a named WINDOW clause definition. */
|
|
3401
3401
|
window(A, C) {
|
|
3402
3402
|
return this._w.window(A, C._w), this;
|
|
3403
3403
|
}
|
|
3404
3404
|
/** Add a LATERAL VIEW clause (Hive/Spark UDTF expansion). */
|
|
3405
|
-
lateral(A, C,
|
|
3406
|
-
return this._w.lateral_view(A._w, C,
|
|
3405
|
+
lateral(A, C, B) {
|
|
3406
|
+
return this._w.lateral_view(A._w, C, B), this;
|
|
3407
3407
|
}
|
|
3408
3408
|
/** Add a query hint (e.g. Oracle hint expressions). */
|
|
3409
3409
|
hint(A) {
|
|
@@ -3456,7 +3456,7 @@ class gI {
|
|
|
3456
3456
|
this._w.free();
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function MM(...g) {
|
|
3460
3460
|
const A = new gI();
|
|
3461
3461
|
return g.length > 0 && A.select(...g), A;
|
|
3462
3462
|
}
|
|
@@ -3464,7 +3464,7 @@ class II {
|
|
|
3464
3464
|
/** @internal */
|
|
3465
3465
|
_w;
|
|
3466
3466
|
constructor(A) {
|
|
3467
|
-
this._w = new
|
|
3467
|
+
this._w = new MA(A);
|
|
3468
3468
|
}
|
|
3469
3469
|
/** Set the target column names. */
|
|
3470
3470
|
columns(...A) {
|
|
@@ -3472,7 +3472,7 @@ class II {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
/** Append a row of values. Call multiple times for multiple rows. */
|
|
3474
3474
|
values(...A) {
|
|
3475
|
-
return this._w.values(
|
|
3475
|
+
return this._w.values(t(A)), this;
|
|
3476
3476
|
}
|
|
3477
3477
|
/** Set the source query for INSERT ... SELECT. */
|
|
3478
3478
|
query(A) {
|
|
@@ -3494,22 +3494,22 @@ class II {
|
|
|
3494
3494
|
function CI(g) {
|
|
3495
3495
|
return new II(g);
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function oM(g) {
|
|
3498
3498
|
return CI(g);
|
|
3499
3499
|
}
|
|
3500
|
-
class
|
|
3500
|
+
class BI {
|
|
3501
3501
|
/** @internal */
|
|
3502
3502
|
_w;
|
|
3503
3503
|
constructor(A) {
|
|
3504
|
-
this._w = new
|
|
3504
|
+
this._w = new NA(A);
|
|
3505
3505
|
}
|
|
3506
3506
|
/** Add a SET column = value assignment. */
|
|
3507
3507
|
set(A, C) {
|
|
3508
|
-
return this._w.set(A,
|
|
3508
|
+
return this._w.set(A, U(C)), this;
|
|
3509
3509
|
}
|
|
3510
3510
|
/** Set the WHERE clause. */
|
|
3511
3511
|
where(A) {
|
|
3512
|
-
return this._w.where_expr(
|
|
3512
|
+
return this._w.where_expr(U(A)), this;
|
|
3513
3513
|
}
|
|
3514
3514
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3515
3515
|
from(A) {
|
|
@@ -3528,18 +3528,18 @@ class QI {
|
|
|
3528
3528
|
this._w.free();
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return new
|
|
3531
|
+
function NM(g) {
|
|
3532
|
+
return new BI(g);
|
|
3533
3533
|
}
|
|
3534
|
-
class
|
|
3534
|
+
class QI {
|
|
3535
3535
|
/** @internal */
|
|
3536
3536
|
_w;
|
|
3537
3537
|
constructor(A) {
|
|
3538
|
-
this._w = new
|
|
3538
|
+
this._w = new iA(A);
|
|
3539
3539
|
}
|
|
3540
3540
|
/** Set the WHERE clause. */
|
|
3541
3541
|
where(A) {
|
|
3542
|
-
return this._w.where_expr(
|
|
3542
|
+
return this._w.where_expr(U(A)), this;
|
|
3543
3543
|
}
|
|
3544
3544
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3545
3545
|
toSql(A = "generic") {
|
|
@@ -3555,26 +3555,26 @@ class BI {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
3557
|
function EI(g) {
|
|
3558
|
-
return new
|
|
3558
|
+
return new QI(g);
|
|
3559
3559
|
}
|
|
3560
|
-
function
|
|
3560
|
+
function kM(g) {
|
|
3561
3561
|
return EI(g);
|
|
3562
3562
|
}
|
|
3563
3563
|
class DI {
|
|
3564
3564
|
/** @internal */
|
|
3565
3565
|
_w;
|
|
3566
3566
|
constructor(A) {
|
|
3567
|
-
this._w = new
|
|
3567
|
+
this._w = new oA(A);
|
|
3568
3568
|
}
|
|
3569
3569
|
/** Set the source table and ON condition. */
|
|
3570
3570
|
using(A, C) {
|
|
3571
|
-
return this._w.using(A,
|
|
3571
|
+
return this._w.using(A, U(C)), this;
|
|
3572
3572
|
}
|
|
3573
3573
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3574
3574
|
whenMatchedUpdate(A) {
|
|
3575
3575
|
const C = new CA();
|
|
3576
|
-
for (const [
|
|
3577
|
-
C.push(
|
|
3576
|
+
for (const [B, Q] of Object.entries(A))
|
|
3577
|
+
C.push(B, U(Q));
|
|
3578
3578
|
return this._w.when_matched_update(C), this;
|
|
3579
3579
|
}
|
|
3580
3580
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3583,7 +3583,7 @@ class DI {
|
|
|
3583
3583
|
}
|
|
3584
3584
|
/** Add a WHEN NOT MATCHED THEN INSERT clause. */
|
|
3585
3585
|
whenNotMatchedInsert(A, C) {
|
|
3586
|
-
return this._w.when_not_matched_insert(A,
|
|
3586
|
+
return this._w.when_not_matched_insert(A, t(C)), this;
|
|
3587
3587
|
}
|
|
3588
3588
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3589
3589
|
toSql(A = "generic") {
|
|
@@ -3598,10 +3598,10 @@ class DI {
|
|
|
3598
3598
|
this._w.free();
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3601
|
+
function yM(g) {
|
|
3602
3602
|
return new DI(g);
|
|
3603
3603
|
}
|
|
3604
|
-
class
|
|
3604
|
+
class LA {
|
|
3605
3605
|
/** @internal */
|
|
3606
3606
|
_w;
|
|
3607
3607
|
/** @internal */
|
|
@@ -3610,11 +3610,11 @@ class RA {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
/** Add a WHEN condition THEN result branch. */
|
|
3612
3612
|
when(A, C) {
|
|
3613
|
-
return this._w.when(
|
|
3613
|
+
return this._w.when(U(A), U(C)), this;
|
|
3614
3614
|
}
|
|
3615
3615
|
/** Set the ELSE result. */
|
|
3616
3616
|
else_(A) {
|
|
3617
|
-
return this._w.else_(
|
|
3617
|
+
return this._w.else_(U(A)), this;
|
|
3618
3618
|
}
|
|
3619
3619
|
/** Build the CASE expression as an Expr. */
|
|
3620
3620
|
build() {
|
|
@@ -3625,11 +3625,11 @@ class RA {
|
|
|
3625
3625
|
return this._w.to_sql(A);
|
|
3626
3626
|
}
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return new
|
|
3628
|
+
function KM() {
|
|
3629
|
+
return new LA(new m());
|
|
3630
3630
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return new
|
|
3631
|
+
function GM(g) {
|
|
3632
|
+
return new LA(Rg(U(g)));
|
|
3633
3633
|
}
|
|
3634
3634
|
class _ {
|
|
3635
3635
|
/** @internal */
|
|
@@ -3640,7 +3640,7 @@ class _ {
|
|
|
3640
3640
|
}
|
|
3641
3641
|
/** Set the ORDER BY clause. */
|
|
3642
3642
|
orderBy(...A) {
|
|
3643
|
-
return this._w.order_by_exprs(
|
|
3643
|
+
return this._w.order_by_exprs(t(A)), this;
|
|
3644
3644
|
}
|
|
3645
3645
|
/** Set the LIMIT. */
|
|
3646
3646
|
limit(A) {
|
|
@@ -3663,26 +3663,86 @@ class _ {
|
|
|
3663
3663
|
this._w.free();
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
|
-
function
|
|
3666
|
+
function YM(g, A) {
|
|
3667
3667
|
return g.union(A);
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function HM(g, A) {
|
|
3670
3670
|
return g.unionAll(A);
|
|
3671
3671
|
}
|
|
3672
|
-
function
|
|
3672
|
+
function hM(g, A) {
|
|
3673
3673
|
return g.intersect(A);
|
|
3674
3674
|
}
|
|
3675
|
-
function
|
|
3675
|
+
function SM(g, A) {
|
|
3676
3676
|
return g.except(A);
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3678
|
+
function wI(g, A, C = "generic", B = {}) {
|
|
3679
|
+
const { deltaOnly: Q = !1, f: E = 0.6, t: D = 0.6 } = B, M = kg(g, A, C, Q, E, D);
|
|
3680
|
+
return JSON.parse(M);
|
|
3681
|
+
}
|
|
3682
|
+
function iI(g) {
|
|
3683
|
+
return g.some((A) => A.type !== "keep");
|
|
3684
|
+
}
|
|
3685
|
+
function MI(g) {
|
|
3686
|
+
return g.filter((A) => A.type !== "keep");
|
|
3687
|
+
}
|
|
3688
|
+
function oI(g, A, C = "generic", B = !1) {
|
|
3689
|
+
const Q = yg(A, g, C, B);
|
|
3690
|
+
return JSON.parse(Q);
|
|
3691
|
+
}
|
|
3692
|
+
function NI(g, A, C, B = "generic", Q = !1) {
|
|
3693
|
+
const E = Kg(
|
|
3694
|
+
A,
|
|
3695
|
+
g,
|
|
3696
|
+
JSON.stringify(C),
|
|
3697
|
+
B,
|
|
3698
|
+
Q
|
|
3699
|
+
);
|
|
3700
|
+
return JSON.parse(E);
|
|
3701
|
+
}
|
|
3702
|
+
function kI(g, A, C = "generic") {
|
|
3703
|
+
const B = Sg(A, g, C);
|
|
3704
|
+
return JSON.parse(B);
|
|
3705
|
+
}
|
|
3706
|
+
function sA(g) {
|
|
3707
|
+
return {
|
|
3708
|
+
dialect: "generic",
|
|
3709
|
+
datasetMappings: {},
|
|
3710
|
+
...g
|
|
3711
|
+
};
|
|
3712
|
+
}
|
|
3713
|
+
function yI(g, A) {
|
|
3714
|
+
const C = Gg(
|
|
3715
|
+
g,
|
|
3716
|
+
JSON.stringify(sA(A))
|
|
3717
|
+
);
|
|
3718
|
+
return JSON.parse(C);
|
|
3719
|
+
}
|
|
3720
|
+
function KI(g, A) {
|
|
3721
|
+
const C = Yg(
|
|
3722
|
+
g,
|
|
3723
|
+
JSON.stringify(sA(A))
|
|
3724
|
+
);
|
|
3725
|
+
return JSON.parse(C);
|
|
3726
|
+
}
|
|
3727
|
+
function GI(g, A) {
|
|
3728
|
+
const C = Hg(
|
|
3729
|
+
g,
|
|
3730
|
+
JSON.stringify(sA(A))
|
|
3731
|
+
);
|
|
3732
|
+
return JSON.parse(C);
|
|
3733
|
+
}
|
|
3734
|
+
function YI(g, A = "generic") {
|
|
3735
|
+
const C = hg(g, A);
|
|
3736
|
+
return JSON.parse(C);
|
|
3737
|
+
}
|
|
3738
|
+
function cM(g, A) {
|
|
3679
3739
|
const C = [];
|
|
3680
|
-
return p(g) === "select" && C.push(...
|
|
3740
|
+
return p(g) === "select" && C.push(...FM(g)), C;
|
|
3681
3741
|
}
|
|
3682
|
-
function
|
|
3683
|
-
const C = [],
|
|
3684
|
-
if (
|
|
3685
|
-
const D = O(
|
|
3742
|
+
function FM(g, A) {
|
|
3743
|
+
const C = [], B = QA(g, "star");
|
|
3744
|
+
if (B.length > 0) {
|
|
3745
|
+
const D = O(B[0])?.span;
|
|
3686
3746
|
C.push({
|
|
3687
3747
|
message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
|
|
3688
3748
|
severity: "warning",
|
|
@@ -3693,9 +3753,9 @@ function Li(g, A) {
|
|
|
3693
3753
|
end: D?.end
|
|
3694
3754
|
});
|
|
3695
3755
|
}
|
|
3696
|
-
const
|
|
3697
|
-
if (_g(g) && !
|
|
3698
|
-
const E = IA(g), D =
|
|
3756
|
+
const Q = O(g);
|
|
3757
|
+
if (_g(g) && !Q.group_by) {
|
|
3758
|
+
const E = IA(g), D = Q.expressions || [];
|
|
3699
3759
|
if (D.some((k) => {
|
|
3700
3760
|
const K = p(k);
|
|
3701
3761
|
return K === "column" || K === "identifier" ? IA(k).length === 0 : !1;
|
|
@@ -3715,12 +3775,12 @@ function Li(g, A) {
|
|
|
3715
3775
|
});
|
|
3716
3776
|
}
|
|
3717
3777
|
}
|
|
3718
|
-
if (
|
|
3778
|
+
if (Q.distinct && Q.order_by && C.push({
|
|
3719
3779
|
message: "DISTINCT with ORDER BY: ensure ORDER BY columns are in SELECT list",
|
|
3720
3780
|
severity: "warning",
|
|
3721
3781
|
code: "W003"
|
|
3722
|
-
}),
|
|
3723
|
-
const E =
|
|
3782
|
+
}), Q.limit && !Q.order_by) {
|
|
3783
|
+
const E = Q.limit, D = E ? O(E)?.span : void 0;
|
|
3724
3784
|
C.push({
|
|
3725
3785
|
message: "LIMIT without ORDER BY produces non-deterministic results",
|
|
3726
3786
|
severity: "warning",
|
|
@@ -3733,7 +3793,7 @@ function Li(g, A) {
|
|
|
3733
3793
|
}
|
|
3734
3794
|
return C;
|
|
3735
3795
|
}
|
|
3736
|
-
function
|
|
3796
|
+
function UM(g) {
|
|
3737
3797
|
try {
|
|
3738
3798
|
return JSON.parse(g);
|
|
3739
3799
|
} catch {
|
|
@@ -3749,115 +3809,55 @@ function Fi(g) {
|
|
|
3749
3809
|
};
|
|
3750
3810
|
}
|
|
3751
3811
|
}
|
|
3752
|
-
function
|
|
3753
|
-
const
|
|
3754
|
-
check_types:
|
|
3755
|
-
check_references:
|
|
3756
|
-
strict:
|
|
3757
|
-
semantic:
|
|
3758
|
-
strict_syntax:
|
|
3812
|
+
function JM(g, A, C = "generic", B = {}) {
|
|
3813
|
+
const Q = B.strict ?? A.strict ?? !0, E = {
|
|
3814
|
+
check_types: B.checkTypes ?? !1,
|
|
3815
|
+
check_references: B.checkReferences ?? !1,
|
|
3816
|
+
strict: Q,
|
|
3817
|
+
semantic: B.semantic ?? !1,
|
|
3818
|
+
strict_syntax: B.strictSyntax ?? !1
|
|
3759
3819
|
}, D = cg(
|
|
3760
3820
|
g,
|
|
3761
3821
|
JSON.stringify(A),
|
|
3762
3822
|
C,
|
|
3763
3823
|
JSON.stringify(E)
|
|
3764
3824
|
);
|
|
3765
|
-
return
|
|
3825
|
+
return UM(D);
|
|
3766
3826
|
}
|
|
3767
|
-
const
|
|
3827
|
+
const RM = {
|
|
3768
3828
|
Error: "error",
|
|
3769
3829
|
Warning: "warning"
|
|
3770
|
-
}, X =
|
|
3830
|
+
}, X = Vg;
|
|
3771
3831
|
function bA(g) {
|
|
3772
3832
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3773
3833
|
}
|
|
3774
|
-
function
|
|
3775
|
-
const
|
|
3834
|
+
function LM(g, A = "generic", C = {}) {
|
|
3835
|
+
const B = C.strictSyntax ? X.validate_with_options(
|
|
3776
3836
|
g,
|
|
3777
3837
|
A,
|
|
3778
3838
|
JSON.stringify({ strictSyntax: !0 })
|
|
3779
|
-
) : X.validate(g, A),
|
|
3780
|
-
if (!
|
|
3781
|
-
return
|
|
3839
|
+
) : X.validate(g, A), Q = JSON.parse(B);
|
|
3840
|
+
if (!Q.valid || !C.semantic)
|
|
3841
|
+
return Q;
|
|
3782
3842
|
const E = typeof X.parse_value == "function" ? bA(
|
|
3783
3843
|
X.parse_value(g, A)
|
|
3784
3844
|
) : bA(
|
|
3785
3845
|
X.parse(g, A)
|
|
3786
3846
|
);
|
|
3787
3847
|
if (!E.success || !E.ast)
|
|
3788
|
-
return
|
|
3789
|
-
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast,
|
|
3848
|
+
return Q;
|
|
3849
|
+
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, M = [...Q.errors];
|
|
3790
3850
|
for (const K of D) {
|
|
3791
|
-
const y =
|
|
3792
|
-
|
|
3851
|
+
const y = cM(K);
|
|
3852
|
+
M.push(...y);
|
|
3793
3853
|
}
|
|
3794
3854
|
return {
|
|
3795
|
-
valid: !
|
|
3796
|
-
errors:
|
|
3797
|
-
};
|
|
3798
|
-
}
|
|
3799
|
-
function wI(g, A, C = "generic", Q = !1) {
|
|
3800
|
-
const B = yg(A, g, C, Q);
|
|
3801
|
-
return JSON.parse(B);
|
|
3802
|
-
}
|
|
3803
|
-
function MI(g, A, C, Q = "generic", B = !1) {
|
|
3804
|
-
const E = Kg(
|
|
3805
|
-
A,
|
|
3806
|
-
g,
|
|
3807
|
-
JSON.stringify(C),
|
|
3808
|
-
Q,
|
|
3809
|
-
B
|
|
3810
|
-
);
|
|
3811
|
-
return JSON.parse(E);
|
|
3812
|
-
}
|
|
3813
|
-
function iI(g, A, C = "generic") {
|
|
3814
|
-
const Q = Sg(A, g, C);
|
|
3815
|
-
return JSON.parse(Q);
|
|
3816
|
-
}
|
|
3817
|
-
function sA(g) {
|
|
3818
|
-
return {
|
|
3819
|
-
dialect: "generic",
|
|
3820
|
-
datasetMappings: {},
|
|
3821
|
-
...g
|
|
3855
|
+
valid: !M.some((K) => K.severity === "error"),
|
|
3856
|
+
errors: M
|
|
3822
3857
|
};
|
|
3823
3858
|
}
|
|
3824
|
-
function NI(g, A) {
|
|
3825
|
-
const C = Gg(
|
|
3826
|
-
g,
|
|
3827
|
-
JSON.stringify(sA(A))
|
|
3828
|
-
);
|
|
3829
|
-
return JSON.parse(C);
|
|
3830
|
-
}
|
|
3831
|
-
function oI(g, A) {
|
|
3832
|
-
const C = Yg(
|
|
3833
|
-
g,
|
|
3834
|
-
JSON.stringify(sA(A))
|
|
3835
|
-
);
|
|
3836
|
-
return JSON.parse(C);
|
|
3837
|
-
}
|
|
3838
|
-
function kI(g, A) {
|
|
3839
|
-
const C = Hg(
|
|
3840
|
-
g,
|
|
3841
|
-
JSON.stringify(sA(A))
|
|
3842
|
-
);
|
|
3843
|
-
return JSON.parse(C);
|
|
3844
|
-
}
|
|
3845
|
-
function yI(g, A, C = "generic", Q = {}) {
|
|
3846
|
-
const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = Q, i = kg(g, A, C, B, E, D);
|
|
3847
|
-
return JSON.parse(i);
|
|
3848
|
-
}
|
|
3849
|
-
function KI(g) {
|
|
3850
|
-
return g.some((A) => A.type !== "keep");
|
|
3851
|
-
}
|
|
3852
|
-
function GI(g) {
|
|
3853
|
-
return g.filter((A) => A.type !== "keep");
|
|
3854
|
-
}
|
|
3855
|
-
function YI(g, A = "generic") {
|
|
3856
|
-
const C = hg(g, A);
|
|
3857
|
-
return JSON.parse(C);
|
|
3858
|
-
}
|
|
3859
3859
|
var aA = /* @__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))(aA || {});
|
|
3860
|
-
const a =
|
|
3860
|
+
const a = Vg;
|
|
3861
3861
|
function HA(g) {
|
|
3862
3862
|
return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
|
|
3863
3863
|
}
|
|
@@ -3870,7 +3870,7 @@ function qA(g, A) {
|
|
|
3870
3870
|
errorColumn: void 0
|
|
3871
3871
|
};
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function sM(g, A) {
|
|
3874
3874
|
return {
|
|
3875
3875
|
success: !1,
|
|
3876
3876
|
ast: void 0,
|
|
@@ -3879,7 +3879,7 @@ function si(g, A) {
|
|
|
3879
3879
|
errorColumn: void 0
|
|
3880
3880
|
};
|
|
3881
3881
|
}
|
|
3882
|
-
function
|
|
3882
|
+
function x(g) {
|
|
3883
3883
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3884
3884
|
}
|
|
3885
3885
|
async function HI() {
|
|
@@ -3890,26 +3890,26 @@ function hI() {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
function pA(g, A, C) {
|
|
3892
3892
|
try {
|
|
3893
|
-
return typeof a.transpile_value == "function" ?
|
|
3893
|
+
return typeof a.transpile_value == "function" ? x(
|
|
3894
3894
|
a.transpile_value(g, A, C)
|
|
3895
3895
|
) : JSON.parse(a.transpile(g, A, C));
|
|
3896
|
-
} catch (
|
|
3897
|
-
return qA("transpile",
|
|
3896
|
+
} catch (B) {
|
|
3897
|
+
return qA("transpile", B);
|
|
3898
3898
|
}
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function PA(g, A = "generic") {
|
|
3901
3901
|
try {
|
|
3902
3902
|
if (typeof a.parse_value == "function")
|
|
3903
|
-
return
|
|
3903
|
+
return x(a.parse_value(g, A));
|
|
3904
3904
|
const C = JSON.parse(a.parse(g, A));
|
|
3905
3905
|
return C.success && typeof C.ast == "string" && (C.ast = JSON.parse(C.ast)), C;
|
|
3906
3906
|
} catch (C) {
|
|
3907
|
-
return
|
|
3907
|
+
return sM("parse", C);
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
3910
|
function OA(g, A = "generic") {
|
|
3911
3911
|
try {
|
|
3912
|
-
return typeof a.tokenize_value == "function" ?
|
|
3912
|
+
return typeof a.tokenize_value == "function" ? x(
|
|
3913
3913
|
a.tokenize_value(g, A)
|
|
3914
3914
|
) : JSON.parse(a.tokenize(g, A));
|
|
3915
3915
|
} catch (C) {
|
|
@@ -3920,10 +3920,10 @@ function OA(g, A = "generic") {
|
|
|
3920
3920
|
};
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
|
-
function
|
|
3923
|
+
function TA(g, A = "generic") {
|
|
3924
3924
|
try {
|
|
3925
3925
|
if (typeof a.generate_value == "function" && Array.isArray(g))
|
|
3926
|
-
return
|
|
3926
|
+
return x(
|
|
3927
3927
|
a.generate_value(g, A)
|
|
3928
3928
|
);
|
|
3929
3929
|
const C = JSON.stringify(g);
|
|
@@ -3932,43 +3932,43 @@ function PA(g, A = "generic") {
|
|
|
3932
3932
|
return qA("generate", C);
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3935
|
+
function jA(g, A = "generic") {
|
|
3936
|
+
return tA(g, A, {});
|
|
3937
3937
|
}
|
|
3938
|
-
function
|
|
3938
|
+
function tA(g, A = "generic", C = {}) {
|
|
3939
3939
|
try {
|
|
3940
|
-
return typeof a.format_sql_with_options_value == "function" ?
|
|
3940
|
+
return typeof a.format_sql_with_options_value == "function" ? x(
|
|
3941
3941
|
a.format_sql_with_options_value(g, A, C)
|
|
3942
3942
|
) : typeof a.format_sql_with_options == "function" ? JSON.parse(
|
|
3943
3943
|
a.format_sql_with_options(g, A, JSON.stringify(C))
|
|
3944
|
-
) : typeof a.format_sql_value == "function" ?
|
|
3944
|
+
) : typeof a.format_sql_value == "function" ? x(
|
|
3945
3945
|
a.format_sql_value(g, A)
|
|
3946
3946
|
) : JSON.parse(a.format_sql(g, A));
|
|
3947
|
-
} catch (
|
|
3948
|
-
return qA("format",
|
|
3947
|
+
} catch (B) {
|
|
3948
|
+
return qA("format", B);
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3952
|
-
return typeof a.get_dialects_value == "function" ?
|
|
3951
|
+
function VA() {
|
|
3952
|
+
return typeof a.get_dialects_value == "function" ? x(a.get_dialects_value()) : JSON.parse(a.get_dialects());
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function zA() {
|
|
3955
3955
|
return a.version();
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function fA(g, A = "generic", C) {
|
|
3958
3958
|
try {
|
|
3959
|
-
const
|
|
3960
|
-
return typeof a.annotate_types_value == "function" ?
|
|
3961
|
-
a.annotate_types_value(g, A,
|
|
3959
|
+
const B = C ? JSON.stringify(C) : "";
|
|
3960
|
+
return typeof a.annotate_types_value == "function" ? x(
|
|
3961
|
+
a.annotate_types_value(g, A, B)
|
|
3962
3962
|
) : typeof a.annotate_types == "function" ? JSON.parse(
|
|
3963
|
-
a.annotate_types(g, A,
|
|
3963
|
+
a.annotate_types(g, A, B)
|
|
3964
3964
|
) : {
|
|
3965
3965
|
success: !1,
|
|
3966
3966
|
error: "annotate_types not available in this WASM build"
|
|
3967
3967
|
};
|
|
3968
|
-
} catch (
|
|
3968
|
+
} catch (B) {
|
|
3969
3969
|
return {
|
|
3970
3970
|
success: !1,
|
|
3971
|
-
error: `WASM annotate_types failed: ${HA(
|
|
3971
|
+
error: `WASM annotate_types failed: ${HA(B)}`
|
|
3972
3972
|
};
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
@@ -3990,14 +3990,14 @@ class n {
|
|
|
3990
3990
|
* Per-dialect builds only support same-dialect and to/from Generic transpilation.
|
|
3991
3991
|
* Use {@link Polyglot.getDialects} to check available dialects.
|
|
3992
3992
|
*/
|
|
3993
|
-
transpile(A, C,
|
|
3994
|
-
return pA(A, C,
|
|
3993
|
+
transpile(A, C, B) {
|
|
3994
|
+
return pA(A, C, B);
|
|
3995
3995
|
}
|
|
3996
3996
|
/**
|
|
3997
3997
|
* Parse SQL into an AST.
|
|
3998
3998
|
*/
|
|
3999
3999
|
parse(A, C = "generic") {
|
|
4000
|
-
return
|
|
4000
|
+
return PA(A, C);
|
|
4001
4001
|
}
|
|
4002
4002
|
/**
|
|
4003
4003
|
* Tokenize SQL into a token stream.
|
|
@@ -4009,67 +4009,67 @@ class n {
|
|
|
4009
4009
|
* Generate SQL from an AST.
|
|
4010
4010
|
*/
|
|
4011
4011
|
generate(A, C = "generic") {
|
|
4012
|
-
return
|
|
4012
|
+
return TA(A, C);
|
|
4013
4013
|
}
|
|
4014
4014
|
/**
|
|
4015
4015
|
* Format SQL.
|
|
4016
4016
|
*/
|
|
4017
4017
|
format(A, C = "generic") {
|
|
4018
|
-
return
|
|
4018
|
+
return jA(A, C);
|
|
4019
4019
|
}
|
|
4020
4020
|
/**
|
|
4021
4021
|
* Format SQL with explicit guard limits.
|
|
4022
4022
|
*/
|
|
4023
|
-
formatWithOptions(A, C = "generic",
|
|
4024
|
-
return
|
|
4023
|
+
formatWithOptions(A, C = "generic", B = {}) {
|
|
4024
|
+
return tA(A, C, B);
|
|
4025
4025
|
}
|
|
4026
4026
|
/**
|
|
4027
4027
|
* Get supported dialects in this build.
|
|
4028
4028
|
* Per-dialect builds return only `"generic"` and the selected dialect.
|
|
4029
4029
|
*/
|
|
4030
4030
|
getDialects() {
|
|
4031
|
-
return
|
|
4031
|
+
return VA();
|
|
4032
4032
|
}
|
|
4033
4033
|
/**
|
|
4034
4034
|
* Get library version.
|
|
4035
4035
|
*/
|
|
4036
4036
|
getVersion() {
|
|
4037
|
-
return
|
|
4037
|
+
return zA();
|
|
4038
4038
|
}
|
|
4039
4039
|
/**
|
|
4040
4040
|
* Parse SQL and annotate the AST with inferred type information.
|
|
4041
4041
|
*/
|
|
4042
|
-
annotateTypes(A, C = "generic",
|
|
4043
|
-
return
|
|
4042
|
+
annotateTypes(A, C = "generic", B) {
|
|
4043
|
+
return fA(A, C, B);
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
4046
|
-
const
|
|
4046
|
+
const aM = {
|
|
4047
4047
|
init: HI,
|
|
4048
4048
|
isInitialized: hI,
|
|
4049
4049
|
transpile: pA,
|
|
4050
|
-
parse:
|
|
4050
|
+
parse: PA,
|
|
4051
4051
|
tokenize: OA,
|
|
4052
|
-
generate:
|
|
4053
|
-
format:
|
|
4054
|
-
annotateTypes:
|
|
4055
|
-
getDialects:
|
|
4056
|
-
getVersion:
|
|
4057
|
-
lineage:
|
|
4058
|
-
lineageWithSchema:
|
|
4059
|
-
getSourceTables:
|
|
4060
|
-
openLineageColumnLineage:
|
|
4061
|
-
openLineageJobEvent:
|
|
4062
|
-
openLineageRunEvent:
|
|
4063
|
-
diff:
|
|
4064
|
-
hasChanges:
|
|
4065
|
-
changesOnly:
|
|
4052
|
+
generate: TA,
|
|
4053
|
+
format: jA,
|
|
4054
|
+
annotateTypes: fA,
|
|
4055
|
+
getDialects: VA,
|
|
4056
|
+
getVersion: zA,
|
|
4057
|
+
lineage: oI,
|
|
4058
|
+
lineageWithSchema: NI,
|
|
4059
|
+
getSourceTables: kI,
|
|
4060
|
+
openLineageColumnLineage: yI,
|
|
4061
|
+
openLineageJobEvent: KI,
|
|
4062
|
+
openLineageRunEvent: GI,
|
|
4063
|
+
diff: wI,
|
|
4064
|
+
hasChanges: iI,
|
|
4065
|
+
changesOnly: MI,
|
|
4066
4066
|
plan: YI,
|
|
4067
4067
|
Dialect: aA,
|
|
4068
4068
|
Polyglot: n
|
|
4069
|
-
},
|
|
4069
|
+
}, qM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4070
4070
|
__proto__: null,
|
|
4071
|
-
CaseBuilder:
|
|
4072
|
-
DeleteBuilder:
|
|
4071
|
+
CaseBuilder: LA,
|
|
4072
|
+
DeleteBuilder: QI,
|
|
4073
4073
|
Dialect: aA,
|
|
4074
4074
|
Expr: S,
|
|
4075
4075
|
InsertBuilder: II,
|
|
@@ -4077,114 +4077,114 @@ const ai = {
|
|
|
4077
4077
|
Polyglot: n,
|
|
4078
4078
|
SelectBuilder: gI,
|
|
4079
4079
|
SetOpBuilder: _,
|
|
4080
|
-
UpdateBuilder:
|
|
4081
|
-
ValidationSeverity:
|
|
4082
|
-
WindowDefBuilder:
|
|
4083
|
-
abs:
|
|
4084
|
-
alias:
|
|
4085
|
-
and:
|
|
4086
|
-
annotateTypes:
|
|
4087
|
-
ast:
|
|
4088
|
-
avg:
|
|
4089
|
-
boolean:
|
|
4090
|
-
caseOf:
|
|
4091
|
-
caseWhen:
|
|
4092
|
-
cast:
|
|
4093
|
-
ceil:
|
|
4094
|
-
changesOnly:
|
|
4095
|
-
coalesce:
|
|
4096
|
-
col:
|
|
4097
|
-
concatWs:
|
|
4098
|
-
condition:
|
|
4099
|
-
count:
|
|
4100
|
-
countDistinct:
|
|
4101
|
-
currentDate:
|
|
4102
|
-
currentTime:
|
|
4103
|
-
currentTimestamp:
|
|
4104
|
-
default:
|
|
4105
|
-
del:
|
|
4080
|
+
UpdateBuilder: BI,
|
|
4081
|
+
ValidationSeverity: RM,
|
|
4082
|
+
WindowDefBuilder: yi,
|
|
4083
|
+
abs: ni,
|
|
4084
|
+
alias: Fi,
|
|
4085
|
+
and: Ji,
|
|
4086
|
+
annotateTypes: fA,
|
|
4087
|
+
ast: ki,
|
|
4088
|
+
avg: qi,
|
|
4089
|
+
boolean: RA,
|
|
4090
|
+
caseOf: GM,
|
|
4091
|
+
caseWhen: KM,
|
|
4092
|
+
cast: ci,
|
|
4093
|
+
ceil: bi,
|
|
4094
|
+
changesOnly: MI,
|
|
4095
|
+
coalesce: Wi,
|
|
4096
|
+
col: Ki,
|
|
4097
|
+
concatWs: xi,
|
|
4098
|
+
condition: hi,
|
|
4099
|
+
count: Li,
|
|
4100
|
+
countDistinct: si,
|
|
4101
|
+
currentDate: CM,
|
|
4102
|
+
currentTime: BM,
|
|
4103
|
+
currentTimestamp: QM,
|
|
4104
|
+
default: aM,
|
|
4105
|
+
del: kM,
|
|
4106
4106
|
deleteFrom: EI,
|
|
4107
|
-
denseRank:
|
|
4108
|
-
diff:
|
|
4109
|
-
except:
|
|
4110
|
-
exp: $
|
|
4111
|
-
extract:
|
|
4107
|
+
denseRank: iM,
|
|
4108
|
+
diff: wI,
|
|
4109
|
+
except: SM,
|
|
4110
|
+
exp: $i,
|
|
4111
|
+
extract: EM,
|
|
4112
4112
|
findAll: YA,
|
|
4113
|
-
floor:
|
|
4114
|
-
format:
|
|
4115
|
-
formatWithOptions:
|
|
4116
|
-
func:
|
|
4117
|
-
generate:
|
|
4113
|
+
floor: ui,
|
|
4114
|
+
format: jA,
|
|
4115
|
+
formatWithOptions: tA,
|
|
4116
|
+
func: R,
|
|
4117
|
+
generate: TA,
|
|
4118
4118
|
getColumns: bg,
|
|
4119
|
-
getDialects:
|
|
4120
|
-
getInferredType:
|
|
4121
|
-
getSourceTables:
|
|
4122
|
-
getVersion:
|
|
4123
|
-
greatest:
|
|
4124
|
-
hasChanges:
|
|
4125
|
-
ifNull:
|
|
4119
|
+
getDialects: VA,
|
|
4120
|
+
getInferredType: zg,
|
|
4121
|
+
getSourceTables: kI,
|
|
4122
|
+
getVersion: zA,
|
|
4123
|
+
greatest: gM,
|
|
4124
|
+
hasChanges: iI,
|
|
4125
|
+
ifNull: ri,
|
|
4126
4126
|
init: HI,
|
|
4127
|
-
initcap:
|
|
4128
|
-
insert:
|
|
4127
|
+
initcap: Zi,
|
|
4128
|
+
insert: oM,
|
|
4129
4129
|
insertInto: CI,
|
|
4130
|
-
intersect:
|
|
4130
|
+
intersect: hM,
|
|
4131
4131
|
isColumn: Zg,
|
|
4132
|
-
isFunction:
|
|
4132
|
+
isFunction: eg,
|
|
4133
4133
|
isInitialized: hI,
|
|
4134
|
-
isLiteral:
|
|
4135
|
-
isSelect:
|
|
4136
|
-
least:
|
|
4137
|
-
length:
|
|
4138
|
-
lineage:
|
|
4139
|
-
lineageWithSchema:
|
|
4140
|
-
lit:
|
|
4141
|
-
ln:
|
|
4142
|
-
lower:
|
|
4143
|
-
ltrim:
|
|
4144
|
-
max:
|
|
4145
|
-
mergeInto:
|
|
4146
|
-
min:
|
|
4147
|
-
not:
|
|
4148
|
-
nullIf:
|
|
4149
|
-
openLineageColumnLineage:
|
|
4150
|
-
openLineageJobEvent:
|
|
4151
|
-
openLineageRunEvent:
|
|
4152
|
-
or:
|
|
4153
|
-
parse:
|
|
4134
|
+
isLiteral: dg,
|
|
4135
|
+
isSelect: fg,
|
|
4136
|
+
least: IM,
|
|
4137
|
+
length: ji,
|
|
4138
|
+
lineage: oI,
|
|
4139
|
+
lineageWithSchema: NI,
|
|
4140
|
+
lit: Gi,
|
|
4141
|
+
ln: _i,
|
|
4142
|
+
lower: Ti,
|
|
4143
|
+
ltrim: Vi,
|
|
4144
|
+
max: Pi,
|
|
4145
|
+
mergeInto: yM,
|
|
4146
|
+
min: pi,
|
|
4147
|
+
not: Si,
|
|
4148
|
+
nullIf: li,
|
|
4149
|
+
openLineageColumnLineage: yI,
|
|
4150
|
+
openLineageJobEvent: KI,
|
|
4151
|
+
openLineageRunEvent: GI,
|
|
4152
|
+
or: Ri,
|
|
4153
|
+
parse: PA,
|
|
4154
4154
|
plan: YI,
|
|
4155
|
-
power:
|
|
4156
|
-
rank:
|
|
4155
|
+
power: vi,
|
|
4156
|
+
rank: wM,
|
|
4157
4157
|
renameColumns: lg,
|
|
4158
|
-
replace:
|
|
4159
|
-
reverse:
|
|
4160
|
-
round:
|
|
4161
|
-
rowNumber:
|
|
4162
|
-
rtrim:
|
|
4163
|
-
select:
|
|
4164
|
-
sign:
|
|
4158
|
+
replace: ei,
|
|
4159
|
+
reverse: fi,
|
|
4160
|
+
round: mi,
|
|
4161
|
+
rowNumber: DM,
|
|
4162
|
+
rtrim: zi,
|
|
4163
|
+
select: MM,
|
|
4164
|
+
sign: AM,
|
|
4165
4165
|
sqlExpr: AI,
|
|
4166
|
-
sqlNull:
|
|
4167
|
-
sqrt:
|
|
4166
|
+
sqlNull: Yi,
|
|
4167
|
+
sqrt: Xi,
|
|
4168
4168
|
star: $g,
|
|
4169
|
-
subquery:
|
|
4170
|
-
substring:
|
|
4171
|
-
sum:
|
|
4172
|
-
table:
|
|
4169
|
+
subquery: Ui,
|
|
4170
|
+
substring: di,
|
|
4171
|
+
sum: ai,
|
|
4172
|
+
table: Hi,
|
|
4173
4173
|
tokenize: OA,
|
|
4174
4174
|
transform: GA,
|
|
4175
4175
|
transpile: pA,
|
|
4176
|
-
trim:
|
|
4177
|
-
union:
|
|
4178
|
-
unionAll:
|
|
4179
|
-
update:
|
|
4180
|
-
upper:
|
|
4181
|
-
validate:
|
|
4182
|
-
validateWithSchema:
|
|
4183
|
-
walk:
|
|
4176
|
+
trim: ti,
|
|
4177
|
+
union: YM,
|
|
4178
|
+
unionAll: HM,
|
|
4179
|
+
update: NM,
|
|
4180
|
+
upper: Oi,
|
|
4181
|
+
validate: LM,
|
|
4182
|
+
validateWithSchema: JM,
|
|
4183
|
+
walk: V
|
|
4184
4184
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4185
4185
|
export {
|
|
4186
|
-
|
|
4187
|
-
|
|
4186
|
+
LA as CaseBuilder,
|
|
4187
|
+
QI as DeleteBuilder,
|
|
4188
4188
|
aA as Dialect,
|
|
4189
4189
|
S as Expr,
|
|
4190
4190
|
II as InsertBuilder,
|
|
@@ -4192,95 +4192,95 @@ export {
|
|
|
4192
4192
|
n as Polyglot,
|
|
4193
4193
|
gI as SelectBuilder,
|
|
4194
4194
|
_ as SetOpBuilder,
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4195
|
+
BI as UpdateBuilder,
|
|
4196
|
+
RM as ValidationSeverity,
|
|
4197
|
+
ni as abs,
|
|
4198
|
+
Fi as alias,
|
|
4199
|
+
Ji as and,
|
|
4200
|
+
fA as annotateTypes,
|
|
4201
|
+
ki as ast,
|
|
4202
|
+
qi as avg,
|
|
4203
|
+
RA as boolean,
|
|
4204
|
+
GM as caseOf,
|
|
4205
|
+
KM as caseWhen,
|
|
4206
|
+
ci as cast,
|
|
4207
|
+
bi as ceil,
|
|
4208
|
+
Wi as coalesce,
|
|
4209
|
+
Ki as col,
|
|
4210
|
+
xi as concatWs,
|
|
4211
|
+
hi as condition,
|
|
4212
|
+
Li as count,
|
|
4213
|
+
si as countDistinct,
|
|
4214
|
+
CM as currentDate,
|
|
4215
|
+
BM as currentTime,
|
|
4216
|
+
QM as currentTimestamp,
|
|
4217
|
+
qM as default,
|
|
4218
|
+
kM as del,
|
|
4219
4219
|
EI as deleteFrom,
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
$
|
|
4223
|
-
|
|
4220
|
+
iM as denseRank,
|
|
4221
|
+
SM as except,
|
|
4222
|
+
$i as exp,
|
|
4223
|
+
EM as extract,
|
|
4224
4224
|
YA as findAll,
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4225
|
+
ui as floor,
|
|
4226
|
+
jA as format,
|
|
4227
|
+
tA as formatWithOptions,
|
|
4228
|
+
R as func,
|
|
4229
|
+
TA as generate,
|
|
4230
4230
|
bg as getColumns,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4231
|
+
VA as getDialects,
|
|
4232
|
+
zg as getInferredType,
|
|
4233
|
+
zA as getVersion,
|
|
4234
|
+
gM as greatest,
|
|
4235
|
+
ri as ifNull,
|
|
4236
4236
|
HI as init,
|
|
4237
|
-
|
|
4238
|
-
|
|
4237
|
+
Zi as initcap,
|
|
4238
|
+
oM as insert,
|
|
4239
4239
|
CI as insertInto,
|
|
4240
|
-
|
|
4240
|
+
hM as intersect,
|
|
4241
4241
|
Zg as isColumn,
|
|
4242
|
-
|
|
4242
|
+
eg as isFunction,
|
|
4243
4243
|
hI as isInitialized,
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4244
|
+
dg as isLiteral,
|
|
4245
|
+
fg as isSelect,
|
|
4246
|
+
IM as least,
|
|
4247
|
+
ji as length,
|
|
4248
|
+
Gi as lit,
|
|
4249
|
+
_i as ln,
|
|
4250
|
+
Ti as lower,
|
|
4251
|
+
Vi as ltrim,
|
|
4252
|
+
Pi as max,
|
|
4253
|
+
yM as mergeInto,
|
|
4254
|
+
pi as min,
|
|
4255
|
+
Si as not,
|
|
4256
|
+
li as nullIf,
|
|
4257
|
+
Ri as or,
|
|
4258
|
+
PA as parse,
|
|
4259
|
+
vi as power,
|
|
4260
|
+
wM as rank,
|
|
4261
4261
|
lg as renameColumns,
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4262
|
+
ei as replace,
|
|
4263
|
+
fi as reverse,
|
|
4264
|
+
mi as round,
|
|
4265
|
+
DM as rowNumber,
|
|
4266
|
+
zi as rtrim,
|
|
4267
|
+
MM as select,
|
|
4268
|
+
AM as sign,
|
|
4269
4269
|
AI as sqlExpr,
|
|
4270
|
-
|
|
4271
|
-
|
|
4270
|
+
Yi as sqlNull,
|
|
4271
|
+
Xi as sqrt,
|
|
4272
4272
|
$g as star,
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4273
|
+
di as substring,
|
|
4274
|
+
ai as sum,
|
|
4275
|
+
Hi as table,
|
|
4276
4276
|
GA as transform,
|
|
4277
4277
|
pA as transpile,
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4278
|
+
ti as trim,
|
|
4279
|
+
YM as union,
|
|
4280
|
+
HM as unionAll,
|
|
4281
|
+
NM as update,
|
|
4282
|
+
Oi as upper,
|
|
4283
|
+
LM as validate,
|
|
4284
|
+
JM as validateWithSchema,
|
|
4285
|
+
V as walk
|
|
4286
4286
|
};
|