@polyglot-sql/sdk 0.3.3 → 0.3.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/dist/cdn/polyglot.esm.js +556 -556
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/cdn/polyglot.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(()=>{if(typeof globalThis.process<"u"&&globalThis.process.versions?.node){const _f=globalThis.fetch;globalThis.fetch=async function(u,...a){if(typeof u==="string"&&u.startsWith("file:")||u instanceof URL&&u.protocol==="file:"){const{readFileSync:r}=await import("node:fs");const{fileURLToPath:p}=await import("node:url");const b=r(p(typeof u==="string"?u:u.href));return new Response(b,{headers:{"Content-Type":"application/wasm"}})}return _f(u,...a)}}})();
|
|
2
|
-
const
|
|
2
|
+
const MI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, NI = async (g = {}, A) => {
|
|
3
3
|
let Q;
|
|
4
4
|
if (A.startsWith("data:")) {
|
|
5
5
|
const C = A.replace(/^data:.*?base64,/, "");
|
|
@@ -28,7 +28,7 @@ const NI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, MI = as
|
|
|
28
28
|
class QA {
|
|
29
29
|
__destroy_into_raw() {
|
|
30
30
|
const A = this.__wbg_ptr;
|
|
31
|
-
return this.__wbg_ptr = 0,
|
|
31
|
+
return this.__wbg_ptr = 0, tA.unregister(this), A;
|
|
32
32
|
}
|
|
33
33
|
free() {
|
|
34
34
|
const A = this.__destroy_into_raw();
|
|
@@ -46,7 +46,7 @@ class QA {
|
|
|
46
46
|
*/
|
|
47
47
|
constructor() {
|
|
48
48
|
const A = I.wasmassignmentarray_new();
|
|
49
|
-
return this.__wbg_ptr = A >>> 0,
|
|
49
|
+
return this.__wbg_ptr = A >>> 0, tA.register(this, this.__wbg_ptr, this), this;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Add a column = value assignment.
|
|
@@ -54,15 +54,15 @@ class QA {
|
|
|
54
54
|
* @param {WasmExpr} value
|
|
55
55
|
*/
|
|
56
56
|
push(A, Q) {
|
|
57
|
-
const C =
|
|
57
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
58
58
|
h(Q, K), I.wasmassignmentarray_push(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
62
|
-
class
|
|
62
|
+
class l {
|
|
63
63
|
static __wrap(A) {
|
|
64
64
|
A = A >>> 0;
|
|
65
|
-
const Q = Object.create(
|
|
65
|
+
const Q = Object.create(l.prototype);
|
|
66
66
|
return Q.__wbg_ptr = A, SA.register(Q, Q.__wbg_ptr, Q), Q;
|
|
67
67
|
}
|
|
68
68
|
__destroy_into_raw() {
|
|
@@ -112,10 +112,10 @@ class r {
|
|
|
112
112
|
try {
|
|
113
113
|
const y = I.__wbindgen_add_to_stack_pointer(-16);
|
|
114
114
|
I.wasmcasebuilder_to_sql(y, this.__wbg_ptr);
|
|
115
|
-
var C = i().getInt32(y + 0, !0), B = i().getInt32(y + 4, !0), E = i().getInt32(y + 8, !0), D = i().getInt32(y + 12, !0), o = C,
|
|
115
|
+
var C = i().getInt32(y + 0, !0), B = i().getInt32(y + 4, !0), E = i().getInt32(y + 8, !0), D = i().getInt32(y + 12, !0), o = C, N = B;
|
|
116
116
|
if (D)
|
|
117
|
-
throw o = 0,
|
|
118
|
-
return A = o, Q =
|
|
117
|
+
throw o = 0, N = 0, U(E);
|
|
118
|
+
return A = o, Q = N, F(o, N);
|
|
119
119
|
} finally {
|
|
120
120
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
121
121
|
}
|
|
@@ -129,11 +129,11 @@ class r {
|
|
|
129
129
|
h(A, K), h(Q, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, Q.__wbg_ptr);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
Symbol.dispose && (
|
|
132
|
+
Symbol.dispose && (l.prototype[Symbol.dispose] = l.prototype.free);
|
|
133
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, zA.unregister(this), A;
|
|
137
137
|
}
|
|
138
138
|
free() {
|
|
139
139
|
const A = this.__destroy_into_raw();
|
|
@@ -160,8 +160,8 @@ class iA {
|
|
|
160
160
|
* @param {string} table_name
|
|
161
161
|
*/
|
|
162
162
|
constructor(A) {
|
|
163
|
-
const Q =
|
|
164
|
-
return this.__wbg_ptr = B >>> 0,
|
|
163
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasmdeletebuilder_new(Q, C);
|
|
164
|
+
return this.__wbg_ptr = B >>> 0, zA.register(this, this.__wbg_ptr, this), this;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Generate SQL string for the given dialect.
|
|
@@ -171,12 +171,12 @@ class iA {
|
|
|
171
171
|
to_sql(A) {
|
|
172
172
|
let Q, C;
|
|
173
173
|
try {
|
|
174
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
174
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
175
175
|
I.wasmdeletebuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
176
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
176
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
177
177
|
if (o)
|
|
178
|
-
throw
|
|
179
|
-
return Q =
|
|
178
|
+
throw N = 0, y = 0, U(D);
|
|
179
|
+
return Q = N, C = y, F(N, y);
|
|
180
180
|
} finally {
|
|
181
181
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
182
182
|
}
|
|
@@ -194,11 +194,11 @@ class K {
|
|
|
194
194
|
static __wrap(A) {
|
|
195
195
|
A = A >>> 0;
|
|
196
196
|
const Q = Object.create(K.prototype);
|
|
197
|
-
return Q.__wbg_ptr = A,
|
|
197
|
+
return Q.__wbg_ptr = A, xA.register(Q, Q.__wbg_ptr, Q), Q;
|
|
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, xA.unregister(this), A;
|
|
202
202
|
}
|
|
203
203
|
free() {
|
|
204
204
|
const A = this.__destroy_into_raw();
|
|
@@ -220,7 +220,7 @@ class K {
|
|
|
220
220
|
* @returns {WasmExpr}
|
|
221
221
|
*/
|
|
222
222
|
alias(A) {
|
|
223
|
-
const Q =
|
|
223
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasmexpr_alias(this.__wbg_ptr, Q, C);
|
|
224
224
|
return K.__wrap(B);
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
@@ -258,7 +258,7 @@ class K {
|
|
|
258
258
|
* @returns {WasmExpr}
|
|
259
259
|
*/
|
|
260
260
|
cast(A) {
|
|
261
|
-
const Q =
|
|
261
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasmexpr_cast(this.__wbg_ptr, Q, C);
|
|
262
262
|
return K.__wrap(B);
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
@@ -468,10 +468,10 @@ class K {
|
|
|
468
468
|
try {
|
|
469
469
|
const y = I.__wbindgen_add_to_stack_pointer(-16);
|
|
470
470
|
I.wasmexpr_to_sql(y, this.__wbg_ptr);
|
|
471
|
-
var C = i().getInt32(y + 0, !0), B = i().getInt32(y + 4, !0), E = i().getInt32(y + 8, !0), D = i().getInt32(y + 12, !0), o = C,
|
|
471
|
+
var C = i().getInt32(y + 0, !0), B = i().getInt32(y + 4, !0), E = i().getInt32(y + 8, !0), D = i().getInt32(y + 12, !0), o = C, N = B;
|
|
472
472
|
if (D)
|
|
473
|
-
throw o = 0,
|
|
474
|
-
return A = o, Q =
|
|
473
|
+
throw o = 0, N = 0, U(E);
|
|
474
|
+
return A = o, Q = N, F(o, N);
|
|
475
475
|
} finally {
|
|
476
476
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, Q, 1);
|
|
477
477
|
}
|
|
@@ -491,7 +491,7 @@ Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
|
|
|
491
491
|
class P {
|
|
492
492
|
__destroy_into_raw() {
|
|
493
493
|
const A = this.__wbg_ptr;
|
|
494
|
-
return this.__wbg_ptr = 0,
|
|
494
|
+
return this.__wbg_ptr = 0, WA.unregister(this), A;
|
|
495
495
|
}
|
|
496
496
|
free() {
|
|
497
497
|
const A = this.__destroy_into_raw();
|
|
@@ -509,7 +509,7 @@ class P {
|
|
|
509
509
|
*/
|
|
510
510
|
constructor() {
|
|
511
511
|
const A = I.wasmassignmentarray_new();
|
|
512
|
-
return this.__wbg_ptr = A >>> 0,
|
|
512
|
+
return this.__wbg_ptr = A >>> 0, WA.register(this, this.__wbg_ptr, this), this;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
515
|
* Push an expression.
|
|
@@ -523,7 +523,7 @@ class P {
|
|
|
523
523
|
* @param {string} name
|
|
524
524
|
*/
|
|
525
525
|
push_col(A) {
|
|
526
|
-
const Q =
|
|
526
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
527
527
|
I.wasmexprarray_push_col(this.__wbg_ptr, Q, C);
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
@@ -551,7 +551,7 @@ class P {
|
|
|
551
551
|
* @param {string} value
|
|
552
552
|
*/
|
|
553
553
|
push_str(A) {
|
|
554
|
-
const Q =
|
|
554
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
555
555
|
I.wasmexprarray_push_str(this.__wbg_ptr, Q, C);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -559,7 +559,7 @@ Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
|
|
|
559
559
|
class oA {
|
|
560
560
|
__destroy_into_raw() {
|
|
561
561
|
const A = this.__wbg_ptr;
|
|
562
|
-
return this.__wbg_ptr = 0,
|
|
562
|
+
return this.__wbg_ptr = 0, nA.unregister(this), A;
|
|
563
563
|
}
|
|
564
564
|
free() {
|
|
565
565
|
const A = this.__destroy_into_raw();
|
|
@@ -594,8 +594,8 @@ class oA {
|
|
|
594
594
|
* @param {string} table_name
|
|
595
595
|
*/
|
|
596
596
|
constructor(A) {
|
|
597
|
-
const Q =
|
|
598
|
-
return this.__wbg_ptr = B >>> 0,
|
|
597
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasminsertbuilder_new(Q, C);
|
|
598
|
+
return this.__wbg_ptr = B >>> 0, nA.register(this, this.__wbg_ptr, this), this;
|
|
599
599
|
}
|
|
600
600
|
/**
|
|
601
601
|
* Set the source query for INSERT ... SELECT.
|
|
@@ -620,12 +620,12 @@ class oA {
|
|
|
620
620
|
to_sql(A) {
|
|
621
621
|
let Q, C;
|
|
622
622
|
try {
|
|
623
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
623
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
624
624
|
I.wasminsertbuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
625
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
625
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
626
626
|
if (o)
|
|
627
|
-
throw
|
|
628
|
-
return Q =
|
|
627
|
+
throw N = 0, y = 0, U(D);
|
|
628
|
+
return Q = N, C = y, F(N, y);
|
|
629
629
|
} finally {
|
|
630
630
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
631
631
|
}
|
|
@@ -669,7 +669,7 @@ class kA {
|
|
|
669
669
|
* @param {string} target
|
|
670
670
|
*/
|
|
671
671
|
constructor(A) {
|
|
672
|
-
const Q =
|
|
672
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasmmergebuilder_new(Q, C);
|
|
673
673
|
return this.__wbg_ptr = B >>> 0, eA.register(this, this.__wbg_ptr, this), this;
|
|
674
674
|
}
|
|
675
675
|
/**
|
|
@@ -680,12 +680,12 @@ class kA {
|
|
|
680
680
|
to_sql(A) {
|
|
681
681
|
let Q, C;
|
|
682
682
|
try {
|
|
683
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
683
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
684
684
|
I.wasmmergebuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
685
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
685
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
686
686
|
if (o)
|
|
687
|
-
throw
|
|
688
|
-
return Q =
|
|
687
|
+
throw N = 0, y = 0, U(D);
|
|
688
|
+
return Q = N, C = y, F(N, y);
|
|
689
689
|
} finally {
|
|
690
690
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
691
691
|
}
|
|
@@ -696,7 +696,7 @@ class kA {
|
|
|
696
696
|
* @param {WasmExpr} on
|
|
697
697
|
*/
|
|
698
698
|
using(A, Q) {
|
|
699
|
-
const C =
|
|
699
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
700
700
|
h(Q, K), I.wasmmergebuilder_using(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
701
701
|
}
|
|
702
702
|
/**
|
|
@@ -753,7 +753,7 @@ class j {
|
|
|
753
753
|
* @param {string} table
|
|
754
754
|
*/
|
|
755
755
|
cross_join(A) {
|
|
756
|
-
const Q =
|
|
756
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
757
757
|
I.wasmselectbuilder_cross_join(this.__wbg_ptr, Q, C);
|
|
758
758
|
}
|
|
759
759
|
/**
|
|
@@ -763,7 +763,7 @@ class j {
|
|
|
763
763
|
*/
|
|
764
764
|
ctas(A) {
|
|
765
765
|
try {
|
|
766
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
766
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(A, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
767
767
|
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, o);
|
|
768
768
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
769
769
|
if (B)
|
|
@@ -782,10 +782,10 @@ class j {
|
|
|
782
782
|
ctas_sql(A, Q) {
|
|
783
783
|
let C, B;
|
|
784
784
|
try {
|
|
785
|
-
const S = I.__wbindgen_add_to_stack_pointer(-16), R =
|
|
785
|
+
const S = I.__wbindgen_add_to_stack_pointer(-16), R = M(A, I.__wbindgen_export, I.__wbindgen_export2), q = k, T = M(Q, I.__wbindgen_export, I.__wbindgen_export2), f = k;
|
|
786
786
|
I.wasmselectbuilder_ctas_sql(S, this.__wbg_ptr, R, q, T, f);
|
|
787
|
-
var E = i().getInt32(S + 0, !0), D = i().getInt32(S + 4, !0), o = i().getInt32(S + 8, !0),
|
|
788
|
-
if (
|
|
787
|
+
var E = i().getInt32(S + 0, !0), D = i().getInt32(S + 4, !0), o = i().getInt32(S + 8, !0), N = i().getInt32(S + 12, !0), y = E, G = D;
|
|
788
|
+
if (N)
|
|
789
789
|
throw y = 0, G = 0, U(o);
|
|
790
790
|
return C = y, B = G, F(y, G);
|
|
791
791
|
} finally {
|
|
@@ -810,7 +810,7 @@ class j {
|
|
|
810
810
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
811
811
|
if (B)
|
|
812
812
|
throw U(C);
|
|
813
|
-
return
|
|
813
|
+
return z.__wrap(Q);
|
|
814
814
|
} finally {
|
|
815
815
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
816
816
|
}
|
|
@@ -826,7 +826,7 @@ class j {
|
|
|
826
826
|
* @param {string} table
|
|
827
827
|
*/
|
|
828
828
|
from(A) {
|
|
829
|
-
const Q =
|
|
829
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
830
830
|
I.wasmselectbuilder_from(this.__wbg_ptr, Q, C);
|
|
831
831
|
}
|
|
832
832
|
/**
|
|
@@ -855,7 +855,7 @@ class j {
|
|
|
855
855
|
* @param {string} hint_text
|
|
856
856
|
*/
|
|
857
857
|
hint(A) {
|
|
858
|
-
const Q =
|
|
858
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
859
859
|
I.wasmselectbuilder_hint(this.__wbg_ptr, Q, C);
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
@@ -870,7 +870,7 @@ class j {
|
|
|
870
870
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
871
871
|
if (B)
|
|
872
872
|
throw U(C);
|
|
873
|
-
return
|
|
873
|
+
return z.__wrap(Q);
|
|
874
874
|
} finally {
|
|
875
875
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
876
876
|
}
|
|
@@ -881,7 +881,7 @@ class j {
|
|
|
881
881
|
* @param {WasmExpr} on
|
|
882
882
|
*/
|
|
883
883
|
join(A, Q) {
|
|
884
|
-
const C =
|
|
884
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
885
885
|
h(Q, K), I.wasmselectbuilder_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
886
886
|
}
|
|
887
887
|
/**
|
|
@@ -892,7 +892,7 @@ class j {
|
|
|
892
892
|
*/
|
|
893
893
|
lateral_view(A, Q, C) {
|
|
894
894
|
h(A, K);
|
|
895
|
-
const B =
|
|
895
|
+
const B = M(Q, I.__wbindgen_export, I.__wbindgen_export2), E = k, D = FA(C, I.__wbindgen_export), o = k;
|
|
896
896
|
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, o);
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
@@ -901,7 +901,7 @@ class j {
|
|
|
901
901
|
* @param {WasmExpr} on
|
|
902
902
|
*/
|
|
903
903
|
left_join(A, Q) {
|
|
904
|
-
const C =
|
|
904
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
905
905
|
h(Q, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
@@ -945,7 +945,7 @@ class j {
|
|
|
945
945
|
* @param {WasmExpr} on
|
|
946
946
|
*/
|
|
947
947
|
right_join(A, Q) {
|
|
948
|
-
const C =
|
|
948
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
949
949
|
h(Q, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
950
950
|
}
|
|
951
951
|
/**
|
|
@@ -953,7 +953,7 @@ class j {
|
|
|
953
953
|
* @param {string} name
|
|
954
954
|
*/
|
|
955
955
|
select_col(A) {
|
|
956
|
-
const Q =
|
|
956
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
957
957
|
I.wasmselectbuilder_select_col(this.__wbg_ptr, Q, C);
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
@@ -991,12 +991,12 @@ class j {
|
|
|
991
991
|
to_sql(A) {
|
|
992
992
|
let Q, C;
|
|
993
993
|
try {
|
|
994
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
994
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
995
995
|
I.wasmselectbuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
996
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
996
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
997
997
|
if (o)
|
|
998
|
-
throw
|
|
999
|
-
return Q =
|
|
998
|
+
throw N = 0, y = 0, U(D);
|
|
999
|
+
return Q = N, C = y, F(N, y);
|
|
1000
1000
|
} finally {
|
|
1001
1001
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1002
1002
|
}
|
|
@@ -1013,7 +1013,7 @@ class j {
|
|
|
1013
1013
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
1014
1014
|
if (B)
|
|
1015
1015
|
throw U(C);
|
|
1016
|
-
return
|
|
1016
|
+
return z.__wrap(Q);
|
|
1017
1017
|
} finally {
|
|
1018
1018
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1019
1019
|
}
|
|
@@ -1030,7 +1030,7 @@ class j {
|
|
|
1030
1030
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
1031
1031
|
if (B)
|
|
1032
1032
|
throw U(C);
|
|
1033
|
-
return
|
|
1033
|
+
return z.__wrap(Q);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1036
1036
|
}
|
|
@@ -1047,7 +1047,7 @@ class j {
|
|
|
1047
1047
|
* @param {string} sql
|
|
1048
1048
|
*/
|
|
1049
1049
|
where_sql(A) {
|
|
1050
|
-
const Q =
|
|
1050
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
1051
1051
|
I.wasmselectbuilder_where_sql(this.__wbg_ptr, Q, C);
|
|
1052
1052
|
}
|
|
1053
1053
|
/**
|
|
@@ -1057,7 +1057,7 @@ class j {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
window(A, Q) {
|
|
1059
1059
|
try {
|
|
1060
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1060
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(A, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1061
1061
|
h(Q, CA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, Q.__wbg_ptr);
|
|
1062
1062
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1063
1063
|
if (B)
|
|
@@ -1068,10 +1068,10 @@ class j {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
Symbol.dispose && (j.prototype[Symbol.dispose] = j.prototype.free);
|
|
1071
|
-
class
|
|
1071
|
+
class z {
|
|
1072
1072
|
static __wrap(A) {
|
|
1073
1073
|
A = A >>> 0;
|
|
1074
|
-
const Q = Object.create(
|
|
1074
|
+
const Q = Object.create(z.prototype);
|
|
1075
1075
|
return Q.__wbg_ptr = A, uA.register(Q, Q.__wbg_ptr, Q), Q;
|
|
1076
1076
|
}
|
|
1077
1077
|
__destroy_into_raw() {
|
|
@@ -1127,22 +1127,22 @@ class x {
|
|
|
1127
1127
|
to_sql(A) {
|
|
1128
1128
|
let Q, C;
|
|
1129
1129
|
try {
|
|
1130
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
1130
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
1131
1131
|
I.wasmsetopbuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
1132
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
1132
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
1133
1133
|
if (o)
|
|
1134
|
-
throw
|
|
1135
|
-
return Q =
|
|
1134
|
+
throw N = 0, y = 0, U(D);
|
|
1135
|
+
return Q = N, C = y, F(N, y);
|
|
1136
1136
|
} finally {
|
|
1137
1137
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
Symbol.dispose && (
|
|
1142
|
-
class
|
|
1141
|
+
Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
|
|
1142
|
+
class MA {
|
|
1143
1143
|
__destroy_into_raw() {
|
|
1144
1144
|
const A = this.__wbg_ptr;
|
|
1145
|
-
return this.__wbg_ptr = 0,
|
|
1145
|
+
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
1146
1146
|
}
|
|
1147
1147
|
free() {
|
|
1148
1148
|
const A = this.__destroy_into_raw();
|
|
@@ -1169,7 +1169,7 @@ class NA {
|
|
|
1169
1169
|
* @param {string} table
|
|
1170
1170
|
*/
|
|
1171
1171
|
from(A) {
|
|
1172
|
-
const Q =
|
|
1172
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
1173
1173
|
I.wasmupdatebuilder_from(this.__wbg_ptr, Q, C);
|
|
1174
1174
|
}
|
|
1175
1175
|
/**
|
|
@@ -1177,8 +1177,8 @@ class NA {
|
|
|
1177
1177
|
* @param {string} table_name
|
|
1178
1178
|
*/
|
|
1179
1179
|
constructor(A) {
|
|
1180
|
-
const Q =
|
|
1181
|
-
return this.__wbg_ptr = B >>> 0,
|
|
1180
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasmupdatebuilder_new(Q, C);
|
|
1181
|
+
return this.__wbg_ptr = B >>> 0, lA.register(this, this.__wbg_ptr, this), this;
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Add a SET column = value assignment.
|
|
@@ -1186,7 +1186,7 @@ class NA {
|
|
|
1186
1186
|
* @param {WasmExpr} value
|
|
1187
1187
|
*/
|
|
1188
1188
|
set(A, Q) {
|
|
1189
|
-
const C =
|
|
1189
|
+
const C = M(A, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
1190
1190
|
h(Q, K), I.wasmupdatebuilder_set(this.__wbg_ptr, C, B, Q.__wbg_ptr);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
@@ -1197,12 +1197,12 @@ class NA {
|
|
|
1197
1197
|
to_sql(A) {
|
|
1198
1198
|
let Q, C;
|
|
1199
1199
|
try {
|
|
1200
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
1200
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k;
|
|
1201
1201
|
I.wasmupdatebuilder_to_sql(G, this.__wbg_ptr, S, R);
|
|
1202
|
-
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0),
|
|
1202
|
+
var B = i().getInt32(G + 0, !0), E = i().getInt32(G + 4, !0), D = i().getInt32(G + 8, !0), o = i().getInt32(G + 12, !0), N = B, y = E;
|
|
1203
1203
|
if (o)
|
|
1204
|
-
throw
|
|
1205
|
-
return Q =
|
|
1204
|
+
throw N = 0, y = 0, U(D);
|
|
1205
|
+
return Q = N, C = y, F(N, y);
|
|
1206
1206
|
} finally {
|
|
1207
1207
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1208
1208
|
}
|
|
@@ -1215,11 +1215,11 @@ class NA {
|
|
|
1215
1215
|
h(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
Symbol.dispose && (
|
|
1218
|
+
Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
|
|
1219
1219
|
class CA {
|
|
1220
1220
|
__destroy_into_raw() {
|
|
1221
1221
|
const A = this.__wbg_ptr;
|
|
1222
|
-
return this.__wbg_ptr = 0,
|
|
1222
|
+
return this.__wbg_ptr = 0, rA.unregister(this), A;
|
|
1223
1223
|
}
|
|
1224
1224
|
free() {
|
|
1225
1225
|
const A = this.__destroy_into_raw();
|
|
@@ -1230,7 +1230,7 @@ class CA {
|
|
|
1230
1230
|
*/
|
|
1231
1231
|
constructor() {
|
|
1232
1232
|
const A = I.wasmwindowdefbuilder_new();
|
|
1233
|
-
return this.__wbg_ptr = A >>> 0,
|
|
1233
|
+
return this.__wbg_ptr = A >>> 0, rA.register(this, this.__wbg_ptr, this), this;
|
|
1234
1234
|
}
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Set the ORDER BY expressions.
|
|
@@ -1251,8 +1251,8 @@ Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
|
|
|
1251
1251
|
function yI(g, A, Q) {
|
|
1252
1252
|
let C, B;
|
|
1253
1253
|
try {
|
|
1254
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1255
|
-
I.annotate_types(o,
|
|
1254
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(Q, I.__wbindgen_export, I.__wbindgen_export2), q = k;
|
|
1255
|
+
I.annotate_types(o, N, y, G, S, R, q);
|
|
1256
1256
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1257
1257
|
return C = E, B = D, F(E, D);
|
|
1258
1258
|
} finally {
|
|
@@ -1260,14 +1260,14 @@ function yI(g, A, Q) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
function KI(g, A, Q) {
|
|
1263
|
-
const C =
|
|
1263
|
+
const C = M(g, I.__wbindgen_export, I.__wbindgen_export2), B = k, E = M(A, I.__wbindgen_export, I.__wbindgen_export2), D = k, o = M(Q, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = I.annotate_types_value(C, B, E, D, o, N);
|
|
1264
1264
|
return U(y);
|
|
1265
1265
|
}
|
|
1266
1266
|
function bA(g, A, Q) {
|
|
1267
1267
|
let C, B;
|
|
1268
1268
|
try {
|
|
1269
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1270
|
-
I.ast_add_where(o,
|
|
1269
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k;
|
|
1270
|
+
I.ast_add_where(o, N, y, G, S, Q);
|
|
1271
1271
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1272
1272
|
return C = E, B = D, F(E, D);
|
|
1273
1273
|
} finally {
|
|
@@ -1277,7 +1277,7 @@ function bA(g, A, Q) {
|
|
|
1277
1277
|
function vA(g) {
|
|
1278
1278
|
let A, Q;
|
|
1279
1279
|
try {
|
|
1280
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1280
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1281
1281
|
I.ast_get_aggregate_functions(E, D, o);
|
|
1282
1282
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1283
1283
|
return A = C, Q = B, F(C, B);
|
|
@@ -1288,7 +1288,7 @@ function vA(g) {
|
|
|
1288
1288
|
function XA(g) {
|
|
1289
1289
|
let A, Q;
|
|
1290
1290
|
try {
|
|
1291
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1291
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1292
1292
|
I.ast_get_column_names(E, D, o);
|
|
1293
1293
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1294
1294
|
return A = C, Q = B, F(C, B);
|
|
@@ -1299,7 +1299,7 @@ function XA(g) {
|
|
|
1299
1299
|
function _A(g) {
|
|
1300
1300
|
let A, Q;
|
|
1301
1301
|
try {
|
|
1302
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1302
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1303
1303
|
I.ast_get_functions(E, D, o);
|
|
1304
1304
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1305
1305
|
return A = C, Q = B, F(C, B);
|
|
@@ -1310,7 +1310,7 @@ function _A(g) {
|
|
|
1310
1310
|
function $A(g) {
|
|
1311
1311
|
let A, Q;
|
|
1312
1312
|
try {
|
|
1313
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1313
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1314
1314
|
I.ast_get_literals(E, D, o);
|
|
1315
1315
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1316
1316
|
return A = C, Q = B, F(C, B);
|
|
@@ -1321,7 +1321,7 @@ function $A(g) {
|
|
|
1321
1321
|
function Ag(g) {
|
|
1322
1322
|
let A, Q;
|
|
1323
1323
|
try {
|
|
1324
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1324
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1325
1325
|
I.ast_get_subqueries(E, D, o);
|
|
1326
1326
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1327
1327
|
return A = C, Q = B, F(C, B);
|
|
@@ -1332,7 +1332,7 @@ function Ag(g) {
|
|
|
1332
1332
|
function gg(g) {
|
|
1333
1333
|
let A, Q;
|
|
1334
1334
|
try {
|
|
1335
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1335
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1336
1336
|
I.ast_get_table_names(E, D, o);
|
|
1337
1337
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1338
1338
|
return A = C, Q = B, F(C, B);
|
|
@@ -1343,7 +1343,7 @@ function gg(g) {
|
|
|
1343
1343
|
function Ig(g) {
|
|
1344
1344
|
let A, Q;
|
|
1345
1345
|
try {
|
|
1346
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1346
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1347
1347
|
I.ast_get_window_functions(E, D, o);
|
|
1348
1348
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1349
1349
|
return A = C, Q = B, F(C, B);
|
|
@@ -1354,7 +1354,7 @@ function Ig(g) {
|
|
|
1354
1354
|
function Qg(g) {
|
|
1355
1355
|
let A, Q;
|
|
1356
1356
|
try {
|
|
1357
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1357
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1358
1358
|
I.ast_node_count(E, D, o);
|
|
1359
1359
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1360
1360
|
return A = C, Q = B, F(C, B);
|
|
@@ -1365,8 +1365,8 @@ function Qg(g) {
|
|
|
1365
1365
|
function Cg(g, A) {
|
|
1366
1366
|
let Q, C;
|
|
1367
1367
|
try {
|
|
1368
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1369
|
-
I.ast_qualify_columns(D, o,
|
|
1368
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1369
|
+
I.ast_qualify_columns(D, o, N, y, G);
|
|
1370
1370
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1371
1371
|
return Q = B, C = E, F(B, E);
|
|
1372
1372
|
} finally {
|
|
@@ -1376,7 +1376,7 @@ function Cg(g, A) {
|
|
|
1376
1376
|
function Bg(g) {
|
|
1377
1377
|
let A, Q;
|
|
1378
1378
|
try {
|
|
1379
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D =
|
|
1379
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = M(g, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1380
1380
|
I.ast_remove_where(E, D, o);
|
|
1381
1381
|
var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0);
|
|
1382
1382
|
return A = C, Q = B, F(C, B);
|
|
@@ -1387,8 +1387,8 @@ function Bg(g) {
|
|
|
1387
1387
|
function Eg(g, A) {
|
|
1388
1388
|
let Q, C;
|
|
1389
1389
|
try {
|
|
1390
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1391
|
-
I.ast_rename_columns(D, o,
|
|
1390
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1391
|
+
I.ast_rename_columns(D, o, N, y, G);
|
|
1392
1392
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1393
1393
|
return Q = B, C = E, F(B, E);
|
|
1394
1394
|
} finally {
|
|
@@ -1398,8 +1398,8 @@ function Eg(g, A) {
|
|
|
1398
1398
|
function Dg(g, A) {
|
|
1399
1399
|
let Q, C;
|
|
1400
1400
|
try {
|
|
1401
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1402
|
-
I.ast_rename_tables(D, o,
|
|
1401
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1402
|
+
I.ast_rename_tables(D, o, N, y, G);
|
|
1403
1403
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1404
1404
|
return Q = B, C = E, F(B, E);
|
|
1405
1405
|
} finally {
|
|
@@ -1409,8 +1409,8 @@ function Dg(g, A) {
|
|
|
1409
1409
|
function wg(g, A) {
|
|
1410
1410
|
let Q, C;
|
|
1411
1411
|
try {
|
|
1412
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1413
|
-
I.ast_set_distinct(D, o,
|
|
1412
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k;
|
|
1413
|
+
I.ast_set_distinct(D, o, N, A);
|
|
1414
1414
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1415
1415
|
return Q = B, C = E, F(B, E);
|
|
1416
1416
|
} finally {
|
|
@@ -1420,8 +1420,8 @@ function wg(g, A) {
|
|
|
1420
1420
|
function ig(g, A) {
|
|
1421
1421
|
let Q, C;
|
|
1422
1422
|
try {
|
|
1423
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1424
|
-
I.ast_set_limit(D, o,
|
|
1423
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k;
|
|
1424
|
+
I.ast_set_limit(D, o, N, A);
|
|
1425
1425
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1426
1426
|
return Q = B, C = E, F(B, E);
|
|
1427
1427
|
} finally {
|
|
@@ -1431,10 +1431,10 @@ function ig(g, A) {
|
|
|
1431
1431
|
function og(g, A, Q, C, B, E) {
|
|
1432
1432
|
let D, o;
|
|
1433
1433
|
try {
|
|
1434
|
-
const G = I.__wbindgen_add_to_stack_pointer(-16), S =
|
|
1434
|
+
const G = I.__wbindgen_add_to_stack_pointer(-16), S = M(g, I.__wbindgen_export, I.__wbindgen_export2), R = k, q = M(A, I.__wbindgen_export, I.__wbindgen_export2), T = k, f = M(Q, I.__wbindgen_export, I.__wbindgen_export2), v = k;
|
|
1435
1435
|
I.diff_sql(G, S, R, q, T, f, v, C, B, E);
|
|
1436
|
-
var
|
|
1437
|
-
return D =
|
|
1436
|
+
var N = i().getInt32(G + 0, !0), y = i().getInt32(G + 4, !0);
|
|
1437
|
+
return D = N, o = y, F(N, y);
|
|
1438
1438
|
} finally {
|
|
1439
1439
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, o, 1);
|
|
1440
1440
|
}
|
|
@@ -1442,8 +1442,8 @@ function og(g, A, Q, C, B, E) {
|
|
|
1442
1442
|
function GI(g, A) {
|
|
1443
1443
|
let Q, C;
|
|
1444
1444
|
try {
|
|
1445
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1446
|
-
I.format_sql(D, o,
|
|
1445
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1446
|
+
I.format_sql(D, o, N, y, G);
|
|
1447
1447
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1448
1448
|
return Q = B, C = E, F(B, E);
|
|
1449
1449
|
} finally {
|
|
@@ -1451,14 +1451,14 @@ function GI(g, A) {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
1453
|
function YI(g, A) {
|
|
1454
|
-
const Q =
|
|
1454
|
+
const Q = M(g, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = M(A, I.__wbindgen_export, I.__wbindgen_export2), E = k, D = I.format_sql_value(Q, C, B, E);
|
|
1455
1455
|
return U(D);
|
|
1456
1456
|
}
|
|
1457
1457
|
function hI(g, A, Q) {
|
|
1458
1458
|
let C, B;
|
|
1459
1459
|
try {
|
|
1460
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1461
|
-
I.format_sql_with_options(o,
|
|
1460
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(Q, I.__wbindgen_export, I.__wbindgen_export2), q = k;
|
|
1461
|
+
I.format_sql_with_options(o, N, y, G, S, R, q);
|
|
1462
1462
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1463
1463
|
return C = E, B = D, F(E, D);
|
|
1464
1464
|
} finally {
|
|
@@ -1466,25 +1466,25 @@ function hI(g, A, Q) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function SI(g, A, Q) {
|
|
1469
|
-
const C =
|
|
1469
|
+
const C = M(g, I.__wbindgen_export, I.__wbindgen_export2), B = k, E = M(A, I.__wbindgen_export, I.__wbindgen_export2), D = k, o = I.format_sql_with_options_value(C, B, E, D, s(Q));
|
|
1470
1470
|
return U(o);
|
|
1471
1471
|
}
|
|
1472
1472
|
function cI(g, A) {
|
|
1473
1473
|
let Q, C;
|
|
1474
1474
|
try {
|
|
1475
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1476
|
-
I.generate(D, o,
|
|
1475
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1476
|
+
I.generate(D, o, N, y, G);
|
|
1477
1477
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1478
1478
|
return Q = B, C = E, F(B, E);
|
|
1479
1479
|
} finally {
|
|
1480
1480
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
const Q =
|
|
1483
|
+
function JI(g, A) {
|
|
1484
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.generate_value(s(g), Q, C);
|
|
1485
1485
|
return U(B);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function HI() {
|
|
1488
1488
|
let g, A;
|
|
1489
1489
|
try {
|
|
1490
1490
|
const B = I.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -1502,21 +1502,21 @@ function UI() {
|
|
|
1502
1502
|
function kg(g, A, Q, C) {
|
|
1503
1503
|
let B, E;
|
|
1504
1504
|
try {
|
|
1505
|
-
const
|
|
1506
|
-
I.lineage_sql(
|
|
1507
|
-
var D = i().getInt32(
|
|
1505
|
+
const N = I.__wbindgen_add_to_stack_pointer(-16), y = M(g, I.__wbindgen_export, I.__wbindgen_export2), G = k, S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k, q = M(Q, I.__wbindgen_export, I.__wbindgen_export2), T = k;
|
|
1506
|
+
I.lineage_sql(N, y, G, S, R, q, T, C);
|
|
1507
|
+
var D = i().getInt32(N + 0, !0), o = i().getInt32(N + 4, !0);
|
|
1508
1508
|
return B = D, E = o, F(D, o);
|
|
1509
1509
|
} finally {
|
|
1510
1510
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Mg(g, A, Q, C, B) {
|
|
1514
1514
|
let E, D;
|
|
1515
1515
|
try {
|
|
1516
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), G =
|
|
1516
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), G = M(g, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(A, I.__wbindgen_export, I.__wbindgen_export2), q = k, T = M(Q, I.__wbindgen_export, I.__wbindgen_export2), f = k, v = M(C, I.__wbindgen_export, I.__wbindgen_export2), kI = k;
|
|
1517
1517
|
I.lineage_sql_with_schema(y, G, S, R, q, T, f, v, kI, B);
|
|
1518
|
-
var o = i().getInt32(y + 0, !0),
|
|
1519
|
-
return E = o, D =
|
|
1518
|
+
var o = i().getInt32(y + 0, !0), N = i().getInt32(y + 4, !0);
|
|
1519
|
+
return E = o, D = N, F(o, N);
|
|
1520
1520
|
} finally {
|
|
1521
1521
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1522
1522
|
}
|
|
@@ -1524,8 +1524,8 @@ function Ng(g, A, Q, C, B) {
|
|
|
1524
1524
|
function FI(g, A) {
|
|
1525
1525
|
let Q, C;
|
|
1526
1526
|
try {
|
|
1527
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1528
|
-
I.parse(D, o,
|
|
1527
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1528
|
+
I.parse(D, o, N, y, G);
|
|
1529
1529
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1530
1530
|
return Q = B, C = E, F(B, E);
|
|
1531
1531
|
} finally {
|
|
@@ -1533,14 +1533,14 @@ function FI(g, A) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
1535
|
function LI(g, A) {
|
|
1536
|
-
const Q =
|
|
1536
|
+
const Q = M(g, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = M(A, I.__wbindgen_export, I.__wbindgen_export2), E = k, D = I.parse_value(Q, C, B, E);
|
|
1537
1537
|
return U(D);
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function Ng(g, A) {
|
|
1540
1540
|
let Q, C;
|
|
1541
1541
|
try {
|
|
1542
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1543
|
-
I.plan(D, o,
|
|
1542
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1543
|
+
I.plan(D, o, N, y, G);
|
|
1544
1544
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1545
1545
|
return Q = B, C = E, F(B, E);
|
|
1546
1546
|
} finally {
|
|
@@ -1550,8 +1550,8 @@ function Mg(g, A) {
|
|
|
1550
1550
|
function yg(g, A, Q) {
|
|
1551
1551
|
let C, B;
|
|
1552
1552
|
try {
|
|
1553
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1554
|
-
I.source_tables(o,
|
|
1553
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(Q, I.__wbindgen_export, I.__wbindgen_export2), q = k;
|
|
1554
|
+
I.source_tables(o, N, y, G, S, R, q);
|
|
1555
1555
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1556
1556
|
return C = E, B = D, F(E, D);
|
|
1557
1557
|
} finally {
|
|
@@ -1561,8 +1561,8 @@ function yg(g, A, Q) {
|
|
|
1561
1561
|
function RI(g, A) {
|
|
1562
1562
|
let Q, C;
|
|
1563
1563
|
try {
|
|
1564
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1565
|
-
I.tokenize(D, o,
|
|
1564
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1565
|
+
I.tokenize(D, o, N, y, G);
|
|
1566
1566
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1567
1567
|
return Q = B, C = E, F(B, E);
|
|
1568
1568
|
} finally {
|
|
@@ -1570,14 +1570,14 @@ function RI(g, A) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
function sI(g, A) {
|
|
1573
|
-
const Q =
|
|
1573
|
+
const Q = M(g, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = M(A, I.__wbindgen_export, I.__wbindgen_export2), E = k, D = I.tokenize_value(Q, C, B, E);
|
|
1574
1574
|
return U(D);
|
|
1575
1575
|
}
|
|
1576
1576
|
function aI(g, A, Q) {
|
|
1577
1577
|
let C, B;
|
|
1578
1578
|
try {
|
|
1579
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1580
|
-
I.transpile(o,
|
|
1579
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(Q, I.__wbindgen_export, I.__wbindgen_export2), q = k;
|
|
1580
|
+
I.transpile(o, N, y, G, S, R, q);
|
|
1581
1581
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1582
1582
|
return C = E, B = D, F(E, D);
|
|
1583
1583
|
} finally {
|
|
@@ -1585,14 +1585,14 @@ function aI(g, A, Q) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
1587
|
function qI(g, A, Q) {
|
|
1588
|
-
const C =
|
|
1588
|
+
const C = M(g, I.__wbindgen_export, I.__wbindgen_export2), B = k, E = M(A, I.__wbindgen_export, I.__wbindgen_export2), D = k, o = M(Q, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = I.transpile_value(C, B, E, D, o, N);
|
|
1589
1589
|
return U(y);
|
|
1590
1590
|
}
|
|
1591
1591
|
function pI(g, A) {
|
|
1592
1592
|
let Q, C;
|
|
1593
1593
|
try {
|
|
1594
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16), o =
|
|
1595
|
-
I.validate(D, o,
|
|
1594
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), o = M(g, I.__wbindgen_export, I.__wbindgen_export2), N = k, y = M(A, I.__wbindgen_export, I.__wbindgen_export2), G = k;
|
|
1595
|
+
I.validate(D, o, N, y, G);
|
|
1596
1596
|
var B = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
|
|
1597
1597
|
return Q = B, C = E, F(B, E);
|
|
1598
1598
|
} finally {
|
|
@@ -1602,8 +1602,8 @@ function pI(g, A) {
|
|
|
1602
1602
|
function PI(g, A, Q) {
|
|
1603
1603
|
let C, B;
|
|
1604
1604
|
try {
|
|
1605
|
-
const o = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1606
|
-
I.validate_with_options(o,
|
|
1605
|
+
const o = I.__wbindgen_add_to_stack_pointer(-16), N = M(g, I.__wbindgen_export, I.__wbindgen_export2), y = k, G = M(A, I.__wbindgen_export, I.__wbindgen_export2), S = k, R = M(Q, I.__wbindgen_export, I.__wbindgen_export2), q = k;
|
|
1606
|
+
I.validate_with_options(o, N, y, G, S, R, q);
|
|
1607
1607
|
var E = i().getInt32(o + 0, !0), D = i().getInt32(o + 4, !0);
|
|
1608
1608
|
return C = E, B = D, F(E, D);
|
|
1609
1609
|
} finally {
|
|
@@ -1613,9 +1613,9 @@ function PI(g, A, Q) {
|
|
|
1613
1613
|
function Kg(g, A, Q, C) {
|
|
1614
1614
|
let B, E;
|
|
1615
1615
|
try {
|
|
1616
|
-
const
|
|
1617
|
-
I.validate_with_schema(
|
|
1618
|
-
var D = i().getInt32(
|
|
1616
|
+
const N = I.__wbindgen_add_to_stack_pointer(-16), y = M(g, I.__wbindgen_export, I.__wbindgen_export2), G = k, S = M(A, I.__wbindgen_export, I.__wbindgen_export2), R = k, q = M(Q, I.__wbindgen_export, I.__wbindgen_export2), T = k, f = M(C, I.__wbindgen_export, I.__wbindgen_export2), v = k;
|
|
1617
|
+
I.validate_with_schema(N, y, G, S, R, q, T, f, v);
|
|
1618
|
+
var D = i().getInt32(N + 0, !0), o = i().getInt32(N + 4, !0);
|
|
1619
1619
|
return B = D, E = o, F(D, o);
|
|
1620
1620
|
} finally {
|
|
1621
1621
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
|
|
@@ -1634,7 +1634,7 @@ function OI() {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
function Gg(g, A) {
|
|
1636
1636
|
h(g, K);
|
|
1637
|
-
const Q =
|
|
1637
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasm_alias(g.__wbg_ptr, Q, C);
|
|
1638
1638
|
return K.__wrap(B);
|
|
1639
1639
|
}
|
|
1640
1640
|
function Yg(g, A) {
|
|
@@ -1649,35 +1649,35 @@ function hg(g) {
|
|
|
1649
1649
|
function Sg(g) {
|
|
1650
1650
|
h(g, K);
|
|
1651
1651
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1652
|
-
return
|
|
1652
|
+
return l.__wrap(A);
|
|
1653
1653
|
}
|
|
1654
1654
|
function cg(g, A) {
|
|
1655
1655
|
h(g, K);
|
|
1656
|
-
const Q =
|
|
1656
|
+
const Q = M(A, I.__wbindgen_export, I.__wbindgen_export2), C = k, B = I.wasm_cast(g.__wbg_ptr, Q, C);
|
|
1657
1657
|
return K.__wrap(B);
|
|
1658
1658
|
}
|
|
1659
1659
|
function UA(g) {
|
|
1660
|
-
const A =
|
|
1660
|
+
const A = M(g, I.__wbindgen_export, I.__wbindgen_export2), Q = k, C = I.wasm_col(A, Q);
|
|
1661
1661
|
return K.__wrap(C);
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function Jg(g) {
|
|
1664
1664
|
h(g, K);
|
|
1665
1665
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1666
1666
|
return K.__wrap(A);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1669
|
-
const Q =
|
|
1668
|
+
function Hg(g, A) {
|
|
1669
|
+
const Q = M(g, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
1670
1670
|
h(A, K);
|
|
1671
1671
|
const B = I.wasm_extract(Q, C, A.__wbg_ptr);
|
|
1672
1672
|
return K.__wrap(B);
|
|
1673
1673
|
}
|
|
1674
1674
|
function Ug(g, A) {
|
|
1675
|
-
const Q =
|
|
1675
|
+
const Q = M(g, I.__wbindgen_export, I.__wbindgen_export2), C = k;
|
|
1676
1676
|
h(A, P);
|
|
1677
1677
|
const B = I.wasm_func(Q, C, A.__wbg_ptr);
|
|
1678
1678
|
return K.__wrap(B);
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function NA(g) {
|
|
1681
1681
|
const A = I.wasm_lit(s(g));
|
|
1682
1682
|
return K.__wrap(A);
|
|
1683
1683
|
}
|
|
@@ -1696,7 +1696,7 @@ function Lg(g, A) {
|
|
|
1696
1696
|
return K.__wrap(Q);
|
|
1697
1697
|
}
|
|
1698
1698
|
function Rg(g) {
|
|
1699
|
-
const A =
|
|
1699
|
+
const A = M(g, I.__wbindgen_export, I.__wbindgen_export2), Q = k, C = I.wasm_sql_expr(A, Q);
|
|
1700
1700
|
return K.__wrap(C);
|
|
1701
1701
|
}
|
|
1702
1702
|
function sg() {
|
|
@@ -1707,7 +1707,7 @@ function ag(g, A) {
|
|
|
1707
1707
|
try {
|
|
1708
1708
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1709
1709
|
h(g, j);
|
|
1710
|
-
const D =
|
|
1710
|
+
const D = M(A, I.__wbindgen_export, I.__wbindgen_export2), o = k;
|
|
1711
1711
|
I.wasm_subquery(E, g.__wbg_ptr, D, o);
|
|
1712
1712
|
var Q = i().getInt32(E + 0, !0), C = i().getInt32(E + 4, !0), B = i().getInt32(E + 8, !0);
|
|
1713
1713
|
if (B)
|
|
@@ -1718,7 +1718,7 @@ function ag(g, A) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
function qg(g) {
|
|
1721
|
-
const A =
|
|
1721
|
+
const A = M(g, I.__wbindgen_export, I.__wbindgen_export2), Q = k, C = I.wasm_table(A, Q);
|
|
1722
1722
|
return K.__wrap(C);
|
|
1723
1723
|
}
|
|
1724
1724
|
function TI(g, A) {
|
|
@@ -1726,59 +1726,59 @@ function TI(g, A) {
|
|
|
1726
1726
|
return s(Q);
|
|
1727
1727
|
}
|
|
1728
1728
|
function jI(g) {
|
|
1729
|
-
return Number(
|
|
1729
|
+
return Number(J(g));
|
|
1730
1730
|
}
|
|
1731
1731
|
function dI(g, A) {
|
|
1732
|
-
const Q = String(
|
|
1732
|
+
const Q = String(J(A)), C = M(Q, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
1733
1733
|
i().setInt32(g + 4, B, !0), i().setInt32(g + 0, C, !0);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1736
|
-
const Q =
|
|
1735
|
+
function ZI(g, A) {
|
|
1736
|
+
const Q = J(A), C = typeof Q == "bigint" ? Q : void 0;
|
|
1737
1737
|
i().setBigInt64(g + 8, b(C) ? BigInt(0) : C, !0), i().setInt32(g + 0, !b(C), !0);
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1740
|
-
const A =
|
|
1739
|
+
function VI(g) {
|
|
1740
|
+
const A = J(g), Q = typeof A == "boolean" ? A : void 0;
|
|
1741
1741
|
return b(Q) ? 16777215 : Q ? 1 : 0;
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1744
|
-
const Q =
|
|
1743
|
+
function tI(g, A) {
|
|
1744
|
+
const Q = JA(J(A)), C = M(Q, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
1745
1745
|
i().setInt32(g + 4, B, !0), i().setInt32(g + 0, C, !0);
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return
|
|
1749
|
-
}
|
|
1750
|
-
function zI(g) {
|
|
1751
|
-
return typeof H(g) == "bigint";
|
|
1747
|
+
function zI(g, A) {
|
|
1748
|
+
return J(g) in J(A);
|
|
1752
1749
|
}
|
|
1753
|
-
function
|
|
1754
|
-
return typeof
|
|
1750
|
+
function xI(g) {
|
|
1751
|
+
return typeof J(g) == "bigint";
|
|
1755
1752
|
}
|
|
1756
1753
|
function WI(g) {
|
|
1757
|
-
return
|
|
1754
|
+
return typeof J(g) == "function";
|
|
1755
|
+
}
|
|
1756
|
+
function nI(g) {
|
|
1757
|
+
return J(g) === null;
|
|
1758
1758
|
}
|
|
1759
1759
|
function eI(g) {
|
|
1760
|
-
const A =
|
|
1760
|
+
const A = J(g);
|
|
1761
1761
|
return typeof A == "object" && A !== null;
|
|
1762
1762
|
}
|
|
1763
1763
|
function fI(g) {
|
|
1764
|
-
return typeof
|
|
1764
|
+
return typeof J(g) == "string";
|
|
1765
1765
|
}
|
|
1766
1766
|
function uI(g) {
|
|
1767
|
-
return
|
|
1768
|
-
}
|
|
1769
|
-
function rI(g, A) {
|
|
1770
|
-
return H(g) === H(A);
|
|
1767
|
+
return J(g) === void 0;
|
|
1771
1768
|
}
|
|
1772
1769
|
function lI(g, A) {
|
|
1773
|
-
return
|
|
1770
|
+
return J(g) === J(A);
|
|
1771
|
+
}
|
|
1772
|
+
function rI(g, A) {
|
|
1773
|
+
return J(g) == J(A);
|
|
1774
1774
|
}
|
|
1775
1775
|
function mI(g, A) {
|
|
1776
|
-
const Q =
|
|
1776
|
+
const Q = J(A), C = typeof Q == "number" ? Q : void 0;
|
|
1777
1777
|
i().setFloat64(g + 8, b(C) ? 0 : C, !0), i().setInt32(g + 0, !b(C), !0);
|
|
1778
1778
|
}
|
|
1779
1779
|
function bI(g, A) {
|
|
1780
|
-
const Q =
|
|
1781
|
-
var B = b(C) ? 0 :
|
|
1780
|
+
const Q = J(A), C = typeof Q == "string" ? Q : void 0;
|
|
1781
|
+
var B = b(C) ? 0 : M(C, I.__wbindgen_export, I.__wbindgen_export2), E = k;
|
|
1782
1782
|
i().setInt32(g + 4, E, !0), i().setInt32(g + 0, B, !0);
|
|
1783
1783
|
}
|
|
1784
1784
|
function vI(g, A) {
|
|
@@ -1786,19 +1786,19 @@ function vI(g, A) {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
function XI() {
|
|
1788
1788
|
return KA(function(g, A) {
|
|
1789
|
-
const Q =
|
|
1789
|
+
const Q = J(g).call(J(A));
|
|
1790
1790
|
return s(Q);
|
|
1791
1791
|
}, arguments);
|
|
1792
1792
|
}
|
|
1793
1793
|
function _I(g, A) {
|
|
1794
|
-
const Q =
|
|
1794
|
+
const Q = J(g).codePointAt(A >>> 0);
|
|
1795
1795
|
return s(Q);
|
|
1796
1796
|
}
|
|
1797
1797
|
function $I(g) {
|
|
1798
|
-
return
|
|
1798
|
+
return J(g).done;
|
|
1799
1799
|
}
|
|
1800
1800
|
function AQ(g) {
|
|
1801
|
-
const A = Object.entries(
|
|
1801
|
+
const A = Object.entries(J(g));
|
|
1802
1802
|
return s(A);
|
|
1803
1803
|
}
|
|
1804
1804
|
function gQ(g, A) {
|
|
@@ -1816,23 +1816,23 @@ function IQ() {
|
|
|
1816
1816
|
}, arguments);
|
|
1817
1817
|
}
|
|
1818
1818
|
function QQ(g, A) {
|
|
1819
|
-
const Q =
|
|
1819
|
+
const Q = J(g)[A >>> 0];
|
|
1820
1820
|
return s(Q);
|
|
1821
1821
|
}
|
|
1822
1822
|
function CQ() {
|
|
1823
1823
|
return KA(function(g, A) {
|
|
1824
|
-
const Q = Reflect.get(
|
|
1824
|
+
const Q = Reflect.get(J(g), J(A));
|
|
1825
1825
|
return s(Q);
|
|
1826
1826
|
}, arguments);
|
|
1827
1827
|
}
|
|
1828
1828
|
function BQ(g, A) {
|
|
1829
|
-
const Q =
|
|
1829
|
+
const Q = J(g)[J(A)];
|
|
1830
1830
|
return s(Q);
|
|
1831
1831
|
}
|
|
1832
1832
|
function EQ(g) {
|
|
1833
1833
|
let A;
|
|
1834
1834
|
try {
|
|
1835
|
-
A =
|
|
1835
|
+
A = J(g) instanceof ArrayBuffer;
|
|
1836
1836
|
} catch {
|
|
1837
1837
|
A = !1;
|
|
1838
1838
|
}
|
|
@@ -1841,7 +1841,7 @@ function EQ(g) {
|
|
|
1841
1841
|
function DQ(g) {
|
|
1842
1842
|
let A;
|
|
1843
1843
|
try {
|
|
1844
|
-
A =
|
|
1844
|
+
A = J(g) instanceof Map;
|
|
1845
1845
|
} catch {
|
|
1846
1846
|
A = !1;
|
|
1847
1847
|
}
|
|
@@ -1850,29 +1850,29 @@ function DQ(g) {
|
|
|
1850
1850
|
function wQ(g) {
|
|
1851
1851
|
let A;
|
|
1852
1852
|
try {
|
|
1853
|
-
A =
|
|
1853
|
+
A = J(g) instanceof Uint8Array;
|
|
1854
1854
|
} catch {
|
|
1855
1855
|
A = !1;
|
|
1856
1856
|
}
|
|
1857
1857
|
return A;
|
|
1858
1858
|
}
|
|
1859
1859
|
function iQ(g) {
|
|
1860
|
-
return Array.isArray(
|
|
1860
|
+
return Array.isArray(J(g));
|
|
1861
1861
|
}
|
|
1862
1862
|
function oQ(g) {
|
|
1863
|
-
return Number.isSafeInteger(
|
|
1863
|
+
return Number.isSafeInteger(J(g));
|
|
1864
1864
|
}
|
|
1865
1865
|
function kQ() {
|
|
1866
1866
|
return s(Symbol.iterator);
|
|
1867
1867
|
}
|
|
1868
|
-
function NQ(g) {
|
|
1869
|
-
return H(g).length;
|
|
1870
|
-
}
|
|
1871
1868
|
function MQ(g) {
|
|
1872
|
-
return
|
|
1869
|
+
return J(g).length;
|
|
1870
|
+
}
|
|
1871
|
+
function NQ(g) {
|
|
1872
|
+
return J(g).length;
|
|
1873
1873
|
}
|
|
1874
1874
|
function yQ(g) {
|
|
1875
|
-
return
|
|
1875
|
+
return J(g).length;
|
|
1876
1876
|
}
|
|
1877
1877
|
function KQ() {
|
|
1878
1878
|
const g = new Object();
|
|
@@ -1890,38 +1890,38 @@ function hQ() {
|
|
|
1890
1890
|
return s(/* @__PURE__ */ new Map());
|
|
1891
1891
|
}
|
|
1892
1892
|
function SQ(g) {
|
|
1893
|
-
const A = new Uint8Array(
|
|
1893
|
+
const A = new Uint8Array(J(g));
|
|
1894
1894
|
return s(A);
|
|
1895
1895
|
}
|
|
1896
1896
|
function cQ() {
|
|
1897
1897
|
return KA(function(g) {
|
|
1898
|
-
const A =
|
|
1898
|
+
const A = J(g).next();
|
|
1899
1899
|
return s(A);
|
|
1900
1900
|
}, arguments);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1903
|
-
const A =
|
|
1902
|
+
function JQ(g) {
|
|
1903
|
+
const A = J(g).next;
|
|
1904
1904
|
return s(A);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
Uint8Array.prototype.set.call(dQ(g, A),
|
|
1906
|
+
function HQ(g, A, Q) {
|
|
1907
|
+
Uint8Array.prototype.set.call(dQ(g, A), J(Q));
|
|
1908
1908
|
}
|
|
1909
1909
|
function UQ(g, A, Q) {
|
|
1910
|
-
const C =
|
|
1910
|
+
const C = J(g).set(J(A), J(Q));
|
|
1911
1911
|
return s(C);
|
|
1912
1912
|
}
|
|
1913
1913
|
function FQ(g, A, Q) {
|
|
1914
|
-
|
|
1914
|
+
J(g)[U(A)] = U(Q);
|
|
1915
1915
|
}
|
|
1916
1916
|
function LQ(g, A, Q) {
|
|
1917
|
-
|
|
1917
|
+
J(g)[A >>> 0] = U(Q);
|
|
1918
1918
|
}
|
|
1919
1919
|
function RQ(g, A) {
|
|
1920
|
-
const Q =
|
|
1920
|
+
const Q = J(A).stack, C = M(Q, I.__wbindgen_export, I.__wbindgen_export2), B = k;
|
|
1921
1921
|
i().setInt32(g + 4, B, !0), i().setInt32(g + 0, C, !0);
|
|
1922
1922
|
}
|
|
1923
1923
|
function sQ(g) {
|
|
1924
|
-
const A =
|
|
1924
|
+
const A = J(g).value;
|
|
1925
1925
|
return s(A);
|
|
1926
1926
|
}
|
|
1927
1927
|
function aQ(g) {
|
|
@@ -1939,23 +1939,23 @@ function PQ(g) {
|
|
|
1939
1939
|
return s(A);
|
|
1940
1940
|
}
|
|
1941
1941
|
function OQ(g) {
|
|
1942
|
-
const A =
|
|
1942
|
+
const A = J(g);
|
|
1943
1943
|
return s(A);
|
|
1944
1944
|
}
|
|
1945
1945
|
function TQ(g) {
|
|
1946
1946
|
U(g);
|
|
1947
1947
|
}
|
|
1948
|
-
const
|
|
1948
|
+
const tA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1949
1949
|
}, unregister: () => {
|
|
1950
1950
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), SA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1951
1951
|
}, unregister: () => {
|
|
1952
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)),
|
|
1952
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1953
1953
|
}, unregister: () => {
|
|
1954
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)),
|
|
1954
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), xA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1955
1955
|
}, unregister: () => {
|
|
1956
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)),
|
|
1956
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1957
1957
|
}, unregister: () => {
|
|
1958
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)),
|
|
1958
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1959
1959
|
}, unregister: () => {
|
|
1960
1960
|
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), eA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1961
1961
|
}, unregister: () => {
|
|
@@ -1963,21 +1963,21 @@ const ZA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
1963
1963
|
}, unregister: () => {
|
|
1964
1964
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), uA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1965
1965
|
}, unregister: () => {
|
|
1966
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)),
|
|
1966
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1967
1967
|
}, unregister: () => {
|
|
1968
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)),
|
|
1968
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1969
1969
|
}, unregister: () => {
|
|
1970
1970
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
|
|
1971
1971
|
function s(g) {
|
|
1972
|
-
AA ===
|
|
1972
|
+
AA === t.length && t.push(t.length + 1);
|
|
1973
1973
|
const A = AA;
|
|
1974
|
-
return AA =
|
|
1974
|
+
return AA = t[A], t[A] = g, A;
|
|
1975
1975
|
}
|
|
1976
1976
|
function h(g, A) {
|
|
1977
1977
|
if (!(g instanceof A))
|
|
1978
1978
|
throw new Error(`expected instance of ${A.name}`);
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function JA(g) {
|
|
1981
1981
|
const A = typeof g;
|
|
1982
1982
|
if (A == "number" || A == "boolean" || g == null)
|
|
1983
1983
|
return `${g}`;
|
|
@@ -1994,9 +1994,9 @@ function HA(g) {
|
|
|
1994
1994
|
if (Array.isArray(g)) {
|
|
1995
1995
|
const B = g.length;
|
|
1996
1996
|
let E = "[";
|
|
1997
|
-
B > 0 && (E +=
|
|
1997
|
+
B > 0 && (E += JA(g[0]));
|
|
1998
1998
|
for (let D = 1; D < B; D++)
|
|
1999
|
-
E += ", " +
|
|
1999
|
+
E += ", " + JA(g[D]);
|
|
2000
2000
|
return E += "]", E;
|
|
2001
2001
|
}
|
|
2002
2002
|
const Q = /\[object ([^\]]+)\]/.exec(toString.call(g));
|
|
@@ -2015,7 +2015,7 @@ function HA(g) {
|
|
|
2015
2015
|
${g.stack}` : C;
|
|
2016
2016
|
}
|
|
2017
2017
|
function jQ(g) {
|
|
2018
|
-
g < 132 || (
|
|
2018
|
+
g < 132 || (t[g] = AA, AA = g);
|
|
2019
2019
|
}
|
|
2020
2020
|
function dQ(g, A) {
|
|
2021
2021
|
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
@@ -2025,14 +2025,14 @@ function i() {
|
|
|
2025
2025
|
return (m === null || m.buffer.detached === !0 || m.buffer.detached === void 0 && m.buffer !== I.memory.buffer) && (m = new DataView(I.memory.buffer)), m;
|
|
2026
2026
|
}
|
|
2027
2027
|
function F(g, A) {
|
|
2028
|
-
return g = g >>> 0,
|
|
2028
|
+
return g = g >>> 0, VQ(g, A);
|
|
2029
2029
|
}
|
|
2030
2030
|
let EA = null;
|
|
2031
2031
|
function $() {
|
|
2032
2032
|
return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return
|
|
2034
|
+
function J(g) {
|
|
2035
|
+
return t[g];
|
|
2036
2036
|
}
|
|
2037
2037
|
function KA(g, A) {
|
|
2038
2038
|
try {
|
|
@@ -2041,9 +2041,9 @@ function KA(g, A) {
|
|
|
2041
2041
|
I.__wbindgen_export3(s(Q));
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
|
-
let
|
|
2045
|
-
|
|
2046
|
-
let AA =
|
|
2044
|
+
let t = new Array(128).fill(void 0);
|
|
2045
|
+
t.push(void 0, null, !0, !1);
|
|
2046
|
+
let AA = t.length;
|
|
2047
2047
|
function b(g) {
|
|
2048
2048
|
return g == null;
|
|
2049
2049
|
}
|
|
@@ -2053,10 +2053,10 @@ function FA(g, A) {
|
|
|
2053
2053
|
C.setUint32(Q + 4 * B, s(g[B]), !0);
|
|
2054
2054
|
return k = g.length, Q;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function M(g, A, Q) {
|
|
2057
2057
|
if (Q === void 0) {
|
|
2058
|
-
const o = gA.encode(g),
|
|
2059
|
-
return $().subarray(
|
|
2058
|
+
const o = gA.encode(g), N = A(o.length, 1) >>> 0;
|
|
2059
|
+
return $().subarray(N, N + o.length).set(o), k = o.length, N;
|
|
2060
2060
|
}
|
|
2061
2061
|
let C = g.length, B = A(C, 1) >>> 0;
|
|
2062
2062
|
const E = $();
|
|
@@ -2068,21 +2068,21 @@ function N(g, A, Q) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
if (D !== C) {
|
|
2070
2070
|
D !== 0 && (g = g.slice(D)), B = Q(B, C, C = D + g.length * 3, 1) >>> 0;
|
|
2071
|
-
const o = $().subarray(B + D, B + C),
|
|
2072
|
-
D +=
|
|
2071
|
+
const o = $().subarray(B + D, B + C), N = gA.encodeInto(g, o);
|
|
2072
|
+
D += N.written, B = Q(B, C, D, 1) >>> 0;
|
|
2073
2073
|
}
|
|
2074
2074
|
return k = D, B;
|
|
2075
2075
|
}
|
|
2076
2076
|
function U(g) {
|
|
2077
|
-
const A =
|
|
2077
|
+
const A = J(g);
|
|
2078
2078
|
return jQ(g), A;
|
|
2079
2079
|
}
|
|
2080
2080
|
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2081
2081
|
DA.decode();
|
|
2082
|
-
const
|
|
2082
|
+
const ZQ = 2146435072;
|
|
2083
2083
|
let cA = 0;
|
|
2084
|
-
function
|
|
2085
|
-
return cA += A, cA >=
|
|
2084
|
+
function VQ(g, A) {
|
|
2085
|
+
return cA += A, cA >= ZQ && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), cA = A), DA.decode($().subarray(g, g + A));
|
|
2086
2086
|
}
|
|
2087
2087
|
const gA = new TextEncoder();
|
|
2088
2088
|
"encodeInto" in gA || (gA.encodeInto = function(g, A) {
|
|
@@ -2093,11 +2093,11 @@ const gA = new TextEncoder();
|
|
|
2093
2093
|
};
|
|
2094
2094
|
});
|
|
2095
2095
|
let k = 0, I;
|
|
2096
|
-
function
|
|
2096
|
+
function tQ(g) {
|
|
2097
2097
|
I = g;
|
|
2098
2098
|
}
|
|
2099
2099
|
URL = globalThis.URL;
|
|
2100
|
-
const w = await
|
|
2100
|
+
const w = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
2101
2101
|
__wbindgen_object_drop_ref: TQ,
|
|
2102
2102
|
__wbindgen_object_clone_ref: OQ,
|
|
2103
2103
|
__wbg_new_8a6f238a6ece86ea: YQ,
|
|
@@ -2107,8 +2107,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2107
2107
|
__wbg_set_3f1d0b984ed272ed: FQ,
|
|
2108
2108
|
__wbg_String_8f0eb39a4a4c2f66: dI,
|
|
2109
2109
|
__wbg_new_dd2b680c8bf6ae29: SQ,
|
|
2110
|
-
__wbg_length_32ed9a279acd054c:
|
|
2111
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2110
|
+
__wbg_length_32ed9a279acd054c: MQ,
|
|
2111
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: HQ,
|
|
2112
2112
|
__wbg_done_57b39ecd9addfe81: $I,
|
|
2113
2113
|
__wbg_value_0546255b415e96c1: sQ,
|
|
2114
2114
|
__wbg_instanceof_Map_53af74335dec57f4: DQ,
|
|
@@ -2119,7 +2119,7 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2119
2119
|
__wbg_get_9b94d73e6221f75c: QQ,
|
|
2120
2120
|
__wbg_new_3eb36ae241fe6f44: GQ,
|
|
2121
2121
|
__wbg_set_f43e577aea94465b: LQ,
|
|
2122
|
-
__wbg_length_35a7bace40f36eac:
|
|
2122
|
+
__wbg_length_35a7bace40f36eac: NQ,
|
|
2123
2123
|
__wbg_isArray_d314bb98fcf08331: iQ,
|
|
2124
2124
|
__wbg_isSafeInteger_bfbc7332a9768d2a: oQ,
|
|
2125
2125
|
__wbg_new_361308b2356cecd0: KQ,
|
|
@@ -2127,42 +2127,42 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2127
2127
|
__wbg_iterator_6ff6560ca1568e55: kQ,
|
|
2128
2128
|
__wbg_get_b3ed3ad4be2bc8ac: CQ,
|
|
2129
2129
|
__wbg_call_389efe28435a9388: XI,
|
|
2130
|
-
__wbg_next_418f80d8f5303233:
|
|
2130
|
+
__wbg_next_418f80d8f5303233: JQ,
|
|
2131
2131
|
__wbg_next_3482f54c49e8af19: cQ,
|
|
2132
2132
|
__wbg_codePointAt_bf59dbf74d8db275: _I,
|
|
2133
2133
|
__wbg_fromCodePoint_22365db7b7d6ac39: IQ,
|
|
2134
2134
|
__wbg_length_68dc7c5cf1b6d349: yQ,
|
|
2135
|
-
__wbg___wbindgen_in_47fa6863be6f2f25:
|
|
2135
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: zI,
|
|
2136
2136
|
__wbg___wbindgen_throw_be289d5034ed271b: vI,
|
|
2137
|
-
__wbg___wbindgen_is_null_ac34f5003991759a:
|
|
2138
|
-
__wbg___wbindgen_jsval_eq_11888390b0186270:
|
|
2137
|
+
__wbg___wbindgen_is_null_ac34f5003991759a: nI,
|
|
2138
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: lI,
|
|
2139
2139
|
__wbg_Number_04624de7d0e8332d: jI,
|
|
2140
2140
|
__wbg_Error_8c4e43fe74559d73: TI,
|
|
2141
|
-
__wbg___wbindgen_is_bigint_31b12575b56f32fc:
|
|
2141
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: xI,
|
|
2142
2142
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: eI,
|
|
2143
2143
|
__wbg___wbindgen_is_string_cd444516edc5b180: fI,
|
|
2144
2144
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: mI,
|
|
2145
2145
|
__wbg___wbindgen_string_get_72fb696202c56729: bI,
|
|
2146
|
-
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:
|
|
2147
|
-
__wbg___wbindgen_is_function_0095a73b8b156f76:
|
|
2146
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: VI,
|
|
2147
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: WI,
|
|
2148
2148
|
__wbg___wbindgen_is_undefined_9e4d92534c42d778: uI,
|
|
2149
|
-
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:
|
|
2150
|
-
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:
|
|
2151
|
-
__wbg___wbindgen_debug_string_0bc8482c6e3508ae:
|
|
2149
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: rI,
|
|
2150
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: ZI,
|
|
2151
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: tI,
|
|
2152
2152
|
__wbindgen_cast_0000000000000001: aQ,
|
|
2153
2153
|
__wbindgen_cast_0000000000000002: qQ,
|
|
2154
2154
|
__wbindgen_cast_0000000000000003: pQ,
|
|
2155
2155
|
__wbindgen_cast_0000000000000004: PQ
|
|
2156
|
-
} },
|
|
2156
|
+
} }, MI), zQ = w.memory, xQ = w.__wbg_wasmassignmentarray_free, WQ = w.__wbg_wasmcasebuilder_free, nQ = w.__wbg_wasmdeletebuilder_free, eQ = w.__wbg_wasmexpr_free, fQ = w.__wbg_wasmexprarray_free, uQ = w.__wbg_wasminsertbuilder_free, lQ = w.__wbg_wasmmergebuilder_free, rQ = w.__wbg_wasmselectbuilder_free, mQ = w.__wbg_wasmsetopbuilder_free, bQ = w.__wbg_wasmupdatebuilder_free, vQ = w.__wbg_wasmwindowdefbuilder_free, XQ = w.annotate_types, _Q = w.annotate_types_value, $Q = w.ast_add_where, AC = w.ast_get_aggregate_functions, gC = w.ast_get_column_names, IC = w.ast_get_functions, QC = w.ast_get_literals, CC = w.ast_get_subqueries, BC = w.ast_get_table_names, EC = w.ast_get_window_functions, DC = w.ast_node_count, wC = w.ast_qualify_columns, iC = w.ast_remove_where, oC = w.ast_rename_columns, kC = w.ast_rename_tables, MC = w.ast_set_distinct, NC = w.ast_set_limit, yC = w.diff_sql, KC = w.format_sql, GC = w.format_sql_value, YC = w.format_sql_with_options, hC = w.format_sql_with_options_value, SC = w.generate, cC = w.generate_value, JC = w.get_dialects, HC = w.get_dialects_value, UC = w.lineage_sql, FC = w.lineage_sql_with_schema, LC = w.parse, RC = w.parse_value, sC = w.plan, aC = w.source_tables, qC = w.tokenize, pC = w.tokenize_value, PC = w.transpile, OC = w.transpile_value, TC = w.validate, jC = w.validate_with_options, dC = w.validate_with_schema, ZC = w.version, VC = w.wasm_alias, tC = w.wasm_and, zC = w.wasm_boolean, xC = w.wasm_case_of, WC = w.wasm_cast, nC = w.wasm_col, eC = w.wasm_count_distinct, fC = w.wasm_extract, uC = w.wasm_func, lC = w.wasm_lit, rC = w.wasm_not, mC = w.wasm_null, bC = w.wasm_or, vC = w.wasm_sql_expr, XC = w.wasm_star, _C = w.wasm_subquery, $C = w.wasm_table, AB = w.wasmassignmentarray_len, gB = w.wasmassignmentarray_new, IB = w.wasmassignmentarray_push, QB = w.wasmcasebuilder_build_expr, CB = w.wasmcasebuilder_else_, BB = w.wasmcasebuilder_new, EB = w.wasmcasebuilder_to_sql, DB = w.wasmcasebuilder_when, wB = w.wasmdeletebuilder_build, iB = w.wasmdeletebuilder_new, oB = w.wasmdeletebuilder_to_sql, kB = w.wasmdeletebuilder_where_expr, MB = w.wasmexpr_add, NB = w.wasmexpr_alias, yB = w.wasmexpr_and, KB = w.wasmexpr_asc, GB = w.wasmexpr_between, YB = w.wasmexpr_cast, hB = w.wasmexpr_desc, SB = w.wasmexpr_div, cB = w.wasmexpr_eq, JB = w.wasmexpr_gt, HB = w.wasmexpr_gte, UB = w.wasmexpr_ilike, FB = w.wasmexpr_in_list, LB = w.wasmexpr_is_not_null, RB = w.wasmexpr_is_null, sB = w.wasmexpr_like, aB = w.wasmexpr_lt, qB = w.wasmexpr_lte, pB = w.wasmexpr_mul, PB = w.wasmexpr_neq, OB = w.wasmexpr_not, TB = w.wasmexpr_not_in, jB = w.wasmexpr_or, dB = w.wasmexpr_rlike, ZB = w.wasmexpr_sub, VB = w.wasmexpr_to_json, tB = w.wasmexpr_to_sql, zB = w.wasmexpr_xor, xB = w.wasmexprarray_len, WB = w.wasmexprarray_push, nB = w.wasmexprarray_push_col, eB = w.wasmexprarray_push_float, fB = w.wasmexprarray_push_int, uB = w.wasmexprarray_push_star, lB = w.wasmexprarray_push_str, rB = w.wasminsertbuilder_build, mB = w.wasminsertbuilder_columns, bB = w.wasminsertbuilder_new, vB = w.wasminsertbuilder_query, XB = w.wasminsertbuilder_to_sql, _B = w.wasminsertbuilder_values, $B = w.wasmmergebuilder_build, AE = w.wasmmergebuilder_new, gE = w.wasmmergebuilder_to_sql, IE = w.wasmmergebuilder_using, QE = w.wasmmergebuilder_when_matched_delete, CE = w.wasmmergebuilder_when_matched_update, BE = w.wasmmergebuilder_when_not_matched_insert, EE = w.wasmselectbuilder_build, DE = w.wasmselectbuilder_cross_join, wE = w.wasmselectbuilder_ctas, iE = w.wasmselectbuilder_ctas_sql, oE = w.wasmselectbuilder_distinct, kE = w.wasmselectbuilder_except_, ME = w.wasmselectbuilder_for_update, NE = w.wasmselectbuilder_from, yE = w.wasmselectbuilder_from_expr, KE = w.wasmselectbuilder_group_by_cols, GE = w.wasmselectbuilder_having, YE = w.wasmselectbuilder_hint, hE = w.wasmselectbuilder_intersect, SE = w.wasmselectbuilder_join, cE = w.wasmselectbuilder_lateral_view, JE = w.wasmselectbuilder_left_join, HE = w.wasmselectbuilder_limit, UE = w.wasmselectbuilder_new, FE = w.wasmselectbuilder_offset, LE = w.wasmselectbuilder_order_by_exprs, RE = w.wasmselectbuilder_qualify, sE = w.wasmselectbuilder_right_join, aE = w.wasmselectbuilder_select_col, qE = w.wasmselectbuilder_select_expr, pE = w.wasmselectbuilder_select_exprs, PE = w.wasmselectbuilder_select_star, OE = w.wasmselectbuilder_sort_by_exprs, TE = w.wasmselectbuilder_to_sql, jE = w.wasmselectbuilder_union, dE = w.wasmselectbuilder_union_all, ZE = w.wasmselectbuilder_where_expr, VE = w.wasmselectbuilder_where_sql, tE = w.wasmselectbuilder_window, zE = w.wasmsetopbuilder_build, xE = w.wasmsetopbuilder_limit, WE = w.wasmsetopbuilder_offset, nE = w.wasmsetopbuilder_order_by_exprs, eE = w.wasmsetopbuilder_to_sql, fE = w.wasmupdatebuilder_build, uE = w.wasmupdatebuilder_from, lE = w.wasmupdatebuilder_new, rE = w.wasmupdatebuilder_set, mE = w.wasmupdatebuilder_to_sql, bE = w.wasmupdatebuilder_where_expr, vE = w.wasmwindowdefbuilder_new, XE = w.wasmwindowdefbuilder_order_by, _E = w.wasmwindowdefbuilder_partition_by, $E = w.wasmexprarray_new, AD = w.__wbindgen_export, gD = w.__wbindgen_export2, ID = w.__wbindgen_export3, QD = w.__wbindgen_export4, CD = w.__wbindgen_add_to_stack_pointer, BD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2157
2157
|
__proto__: null,
|
|
2158
|
-
__wbg_wasmassignmentarray_free:
|
|
2159
|
-
__wbg_wasmcasebuilder_free:
|
|
2160
|
-
__wbg_wasmdeletebuilder_free:
|
|
2158
|
+
__wbg_wasmassignmentarray_free: xQ,
|
|
2159
|
+
__wbg_wasmcasebuilder_free: WQ,
|
|
2160
|
+
__wbg_wasmdeletebuilder_free: nQ,
|
|
2161
2161
|
__wbg_wasmexpr_free: eQ,
|
|
2162
2162
|
__wbg_wasmexprarray_free: fQ,
|
|
2163
2163
|
__wbg_wasminsertbuilder_free: uQ,
|
|
2164
|
-
__wbg_wasmmergebuilder_free:
|
|
2165
|
-
__wbg_wasmselectbuilder_free:
|
|
2164
|
+
__wbg_wasmmergebuilder_free: lQ,
|
|
2165
|
+
__wbg_wasmselectbuilder_free: rQ,
|
|
2166
2166
|
__wbg_wasmsetopbuilder_free: mQ,
|
|
2167
2167
|
__wbg_wasmupdatebuilder_free: bQ,
|
|
2168
2168
|
__wbg_wasmwindowdefbuilder_free: vQ,
|
|
@@ -2186,8 +2186,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2186
2186
|
ast_remove_where: iC,
|
|
2187
2187
|
ast_rename_columns: oC,
|
|
2188
2188
|
ast_rename_tables: kC,
|
|
2189
|
-
ast_set_distinct:
|
|
2190
|
-
ast_set_limit:
|
|
2189
|
+
ast_set_distinct: MC,
|
|
2190
|
+
ast_set_limit: NC,
|
|
2191
2191
|
diff_sql: yC,
|
|
2192
2192
|
format_sql: KC,
|
|
2193
2193
|
format_sql_value: GC,
|
|
@@ -2195,11 +2195,11 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2195
2195
|
format_sql_with_options_value: hC,
|
|
2196
2196
|
generate: SC,
|
|
2197
2197
|
generate_value: cC,
|
|
2198
|
-
get_dialects:
|
|
2199
|
-
get_dialects_value:
|
|
2198
|
+
get_dialects: JC,
|
|
2199
|
+
get_dialects_value: HC,
|
|
2200
2200
|
lineage_sql: UC,
|
|
2201
2201
|
lineage_sql_with_schema: FC,
|
|
2202
|
-
memory:
|
|
2202
|
+
memory: zQ,
|
|
2203
2203
|
parse: LC,
|
|
2204
2204
|
parse_value: RC,
|
|
2205
2205
|
plan: sC,
|
|
@@ -2211,18 +2211,18 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2211
2211
|
validate: TC,
|
|
2212
2212
|
validate_with_options: jC,
|
|
2213
2213
|
validate_with_schema: dC,
|
|
2214
|
-
version:
|
|
2215
|
-
wasm_alias:
|
|
2216
|
-
wasm_and:
|
|
2217
|
-
wasm_boolean:
|
|
2218
|
-
wasm_case_of:
|
|
2219
|
-
wasm_cast:
|
|
2220
|
-
wasm_col:
|
|
2214
|
+
version: ZC,
|
|
2215
|
+
wasm_alias: VC,
|
|
2216
|
+
wasm_and: tC,
|
|
2217
|
+
wasm_boolean: zC,
|
|
2218
|
+
wasm_case_of: xC,
|
|
2219
|
+
wasm_cast: WC,
|
|
2220
|
+
wasm_col: nC,
|
|
2221
2221
|
wasm_count_distinct: eC,
|
|
2222
2222
|
wasm_extract: fC,
|
|
2223
2223
|
wasm_func: uC,
|
|
2224
|
-
wasm_lit:
|
|
2225
|
-
wasm_not:
|
|
2224
|
+
wasm_lit: lC,
|
|
2225
|
+
wasm_not: rC,
|
|
2226
2226
|
wasm_null: mC,
|
|
2227
2227
|
wasm_or: bC,
|
|
2228
2228
|
wasm_sql_expr: vC,
|
|
@@ -2241,8 +2241,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2241
2241
|
wasmdeletebuilder_new: iB,
|
|
2242
2242
|
wasmdeletebuilder_to_sql: oB,
|
|
2243
2243
|
wasmdeletebuilder_where_expr: kB,
|
|
2244
|
-
wasmexpr_add:
|
|
2245
|
-
wasmexpr_alias:
|
|
2244
|
+
wasmexpr_add: MB,
|
|
2245
|
+
wasmexpr_alias: NB,
|
|
2246
2246
|
wasmexpr_and: yB,
|
|
2247
2247
|
wasmexpr_asc: KB,
|
|
2248
2248
|
wasmexpr_between: GB,
|
|
@@ -2250,8 +2250,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2250
2250
|
wasmexpr_desc: hB,
|
|
2251
2251
|
wasmexpr_div: SB,
|
|
2252
2252
|
wasmexpr_eq: cB,
|
|
2253
|
-
wasmexpr_gt:
|
|
2254
|
-
wasmexpr_gte:
|
|
2253
|
+
wasmexpr_gt: JB,
|
|
2254
|
+
wasmexpr_gte: HB,
|
|
2255
2255
|
wasmexpr_ilike: UB,
|
|
2256
2256
|
wasmexpr_in_list: FB,
|
|
2257
2257
|
wasmexpr_is_not_null: LB,
|
|
@@ -2265,19 +2265,19 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2265
2265
|
wasmexpr_not_in: TB,
|
|
2266
2266
|
wasmexpr_or: jB,
|
|
2267
2267
|
wasmexpr_rlike: dB,
|
|
2268
|
-
wasmexpr_sub:
|
|
2269
|
-
wasmexpr_to_json:
|
|
2270
|
-
wasmexpr_to_sql:
|
|
2271
|
-
wasmexpr_xor:
|
|
2272
|
-
wasmexprarray_len:
|
|
2268
|
+
wasmexpr_sub: ZB,
|
|
2269
|
+
wasmexpr_to_json: VB,
|
|
2270
|
+
wasmexpr_to_sql: tB,
|
|
2271
|
+
wasmexpr_xor: zB,
|
|
2272
|
+
wasmexprarray_len: xB,
|
|
2273
2273
|
wasmexprarray_new: $E,
|
|
2274
|
-
wasmexprarray_push:
|
|
2275
|
-
wasmexprarray_push_col:
|
|
2274
|
+
wasmexprarray_push: WB,
|
|
2275
|
+
wasmexprarray_push_col: nB,
|
|
2276
2276
|
wasmexprarray_push_float: eB,
|
|
2277
2277
|
wasmexprarray_push_int: fB,
|
|
2278
2278
|
wasmexprarray_push_star: uB,
|
|
2279
|
-
wasmexprarray_push_str:
|
|
2280
|
-
wasminsertbuilder_build:
|
|
2279
|
+
wasmexprarray_push_str: lB,
|
|
2280
|
+
wasminsertbuilder_build: rB,
|
|
2281
2281
|
wasminsertbuilder_columns: mB,
|
|
2282
2282
|
wasminsertbuilder_new: bB,
|
|
2283
2283
|
wasminsertbuilder_query: vB,
|
|
@@ -2296,8 +2296,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2296
2296
|
wasmselectbuilder_ctas_sql: iE,
|
|
2297
2297
|
wasmselectbuilder_distinct: oE,
|
|
2298
2298
|
wasmselectbuilder_except_: kE,
|
|
2299
|
-
wasmselectbuilder_for_update:
|
|
2300
|
-
wasmselectbuilder_from:
|
|
2299
|
+
wasmselectbuilder_for_update: ME,
|
|
2300
|
+
wasmselectbuilder_from: NE,
|
|
2301
2301
|
wasmselectbuilder_from_expr: yE,
|
|
2302
2302
|
wasmselectbuilder_group_by_cols: KE,
|
|
2303
2303
|
wasmselectbuilder_having: GE,
|
|
@@ -2305,8 +2305,8 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2305
2305
|
wasmselectbuilder_intersect: hE,
|
|
2306
2306
|
wasmselectbuilder_join: SE,
|
|
2307
2307
|
wasmselectbuilder_lateral_view: cE,
|
|
2308
|
-
wasmselectbuilder_left_join:
|
|
2309
|
-
wasmselectbuilder_limit:
|
|
2308
|
+
wasmselectbuilder_left_join: JE,
|
|
2309
|
+
wasmselectbuilder_limit: HE,
|
|
2310
2310
|
wasmselectbuilder_new: UE,
|
|
2311
2311
|
wasmselectbuilder_offset: FE,
|
|
2312
2312
|
wasmselectbuilder_order_by_exprs: LE,
|
|
@@ -2320,37 +2320,37 @@ const w = await MI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2320
2320
|
wasmselectbuilder_to_sql: TE,
|
|
2321
2321
|
wasmselectbuilder_union: jE,
|
|
2322
2322
|
wasmselectbuilder_union_all: dE,
|
|
2323
|
-
wasmselectbuilder_where_expr:
|
|
2324
|
-
wasmselectbuilder_where_sql:
|
|
2325
|
-
wasmselectbuilder_window:
|
|
2326
|
-
wasmsetopbuilder_build:
|
|
2327
|
-
wasmsetopbuilder_limit:
|
|
2328
|
-
wasmsetopbuilder_offset:
|
|
2329
|
-
wasmsetopbuilder_order_by_exprs:
|
|
2323
|
+
wasmselectbuilder_where_expr: ZE,
|
|
2324
|
+
wasmselectbuilder_where_sql: VE,
|
|
2325
|
+
wasmselectbuilder_window: tE,
|
|
2326
|
+
wasmsetopbuilder_build: zE,
|
|
2327
|
+
wasmsetopbuilder_limit: xE,
|
|
2328
|
+
wasmsetopbuilder_offset: WE,
|
|
2329
|
+
wasmsetopbuilder_order_by_exprs: nE,
|
|
2330
2330
|
wasmsetopbuilder_to_sql: eE,
|
|
2331
2331
|
wasmupdatebuilder_build: fE,
|
|
2332
2332
|
wasmupdatebuilder_from: uE,
|
|
2333
|
-
wasmupdatebuilder_new:
|
|
2334
|
-
wasmupdatebuilder_set:
|
|
2333
|
+
wasmupdatebuilder_new: lE,
|
|
2334
|
+
wasmupdatebuilder_set: rE,
|
|
2335
2335
|
wasmupdatebuilder_to_sql: mE,
|
|
2336
2336
|
wasmupdatebuilder_where_expr: bE,
|
|
2337
2337
|
wasmwindowdefbuilder_new: vE,
|
|
2338
2338
|
wasmwindowdefbuilder_order_by: XE,
|
|
2339
2339
|
wasmwindowdefbuilder_partition_by: _E
|
|
2340
2340
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2341
|
-
|
|
2341
|
+
tQ(BD);
|
|
2342
2342
|
const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2343
2343
|
__proto__: null,
|
|
2344
2344
|
WasmAssignmentArray: QA,
|
|
2345
|
-
WasmCaseBuilder:
|
|
2345
|
+
WasmCaseBuilder: l,
|
|
2346
2346
|
WasmDeleteBuilder: iA,
|
|
2347
2347
|
WasmExpr: K,
|
|
2348
2348
|
WasmExprArray: P,
|
|
2349
2349
|
WasmInsertBuilder: oA,
|
|
2350
2350
|
WasmMergeBuilder: kA,
|
|
2351
2351
|
WasmSelectBuilder: j,
|
|
2352
|
-
WasmSetOpBuilder:
|
|
2353
|
-
WasmUpdateBuilder:
|
|
2352
|
+
WasmSetOpBuilder: z,
|
|
2353
|
+
WasmUpdateBuilder: MA,
|
|
2354
2354
|
WasmWindowDefBuilder: CA,
|
|
2355
2355
|
annotate_types: yI,
|
|
2356
2356
|
annotate_types_value: KI,
|
|
@@ -2375,14 +2375,14 @@ const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2375
2375
|
format_sql_with_options: hI,
|
|
2376
2376
|
format_sql_with_options_value: SI,
|
|
2377
2377
|
generate: cI,
|
|
2378
|
-
generate_value:
|
|
2379
|
-
get_dialects:
|
|
2378
|
+
generate_value: JI,
|
|
2379
|
+
get_dialects: HI,
|
|
2380
2380
|
get_dialects_value: UI,
|
|
2381
2381
|
lineage_sql: kg,
|
|
2382
|
-
lineage_sql_with_schema:
|
|
2382
|
+
lineage_sql_with_schema: Mg,
|
|
2383
2383
|
parse: FI,
|
|
2384
2384
|
parse_value: LI,
|
|
2385
|
-
plan:
|
|
2385
|
+
plan: Ng,
|
|
2386
2386
|
source_tables: yg,
|
|
2387
2387
|
tokenize: RI,
|
|
2388
2388
|
tokenize_value: sI,
|
|
@@ -2398,10 +2398,10 @@ const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2398
2398
|
wasm_case_of: Sg,
|
|
2399
2399
|
wasm_cast: cg,
|
|
2400
2400
|
wasm_col: UA,
|
|
2401
|
-
wasm_count_distinct:
|
|
2402
|
-
wasm_extract:
|
|
2401
|
+
wasm_count_distinct: Jg,
|
|
2402
|
+
wasm_extract: Hg,
|
|
2403
2403
|
wasm_func: Ug,
|
|
2404
|
-
wasm_lit:
|
|
2404
|
+
wasm_lit: NA,
|
|
2405
2405
|
wasm_not: Fg,
|
|
2406
2406
|
wasm_null: yA,
|
|
2407
2407
|
wasm_or: Lg,
|
|
@@ -2417,7 +2417,7 @@ function O(g) {
|
|
|
2417
2417
|
const A = Object.keys(g)[0];
|
|
2418
2418
|
return g[A];
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function x(g) {
|
|
2421
2421
|
if (typeof g != "object" || g === null || Array.isArray(g))
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
const A = Object.keys(g);
|
|
@@ -2425,7 +2425,7 @@ function z(g) {
|
|
|
2425
2425
|
const Q = g[A[0]];
|
|
2426
2426
|
return Q === null || typeof Q == "object" && !Array.isArray(Q);
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function V(g, A) {
|
|
2429
2429
|
return { [g]: A };
|
|
2430
2430
|
}
|
|
2431
2431
|
function Pg(g) {
|
|
@@ -2439,7 +2439,7 @@ function Pg(g) {
|
|
|
2439
2439
|
function Y(g) {
|
|
2440
2440
|
return (A) => g in A;
|
|
2441
2441
|
}
|
|
2442
|
-
const Og = Y("select"), ED = Y("insert"), DD = Y("update"), wD = Y("delete"), iD = Y("union"), oD = Y("intersect"), kD = Y("except"),
|
|
2442
|
+
const Og = Y("select"), ED = Y("insert"), DD = Y("update"), wD = Y("delete"), iD = Y("union"), oD = Y("intersect"), kD = Y("except"), MD = Y("subquery"), ND = Y("identifier"), Tg = Y("column"), yD = Y("table"), KD = Y("star"), jg = Y("literal"), GD = Y("boolean"), YD = Y("null"), hD = Y("and"), SD = Y("or"), cD = Y("not"), JD = Y("eq"), HD = Y("neq"), UD = Y("lt"), FD = Y("lte"), LD = Y("gt"), RD = Y("gte"), sD = Y("like"), aD = Y("i_like"), qD = Y("add"), pD = Y("sub"), PD = Y("mul"), OD = Y("div"), TD = Y("mod"), jD = Y("concat"), dD = Y("in"), ZD = Y("between"), VD = Y("is_null"), tD = Y("exists"), dg = Y("function"), zD = Y("aggregate_function"), xD = Y("window_function"), WD = Y("count"), nD = Y("sum"), eD = Y("avg"), fD = Y("min"), uD = Y("max"), lD = Y("coalesce"), rD = Y("null_if"), mD = Y("cast"), bD = Y("try_cast"), vD = Y("safe_cast"), XD = Y("case"), _D = Y("from"), $D = Y("join"), Aw = Y("where"), gw = Y("group_by"), Iw = Y("having"), Qw = Y("order_by"), Cw = Y("limit"), Bw = Y("offset"), Ew = Y("with"), Dw = Y("cte"), ww = Y("alias"), iw = Y("paren"), ow = Y("ordered"), kw = Y("create_table"), Mw = Y("drop_table"), Nw = Y("alter_table"), yw = Y("create_index"), Kw = Y("drop_index"), Gw = Y("create_view"), Yw = Y("drop_view");
|
|
2443
2443
|
function hw(g) {
|
|
2444
2444
|
const A = p(g);
|
|
2445
2445
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
@@ -2452,11 +2452,11 @@ function cw(g) {
|
|
|
2452
2452
|
const A = p(g);
|
|
2453
2453
|
return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function Jw(g) {
|
|
2456
2456
|
const A = p(g);
|
|
2457
2457
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Hw(g) {
|
|
2460
2460
|
const A = p(g);
|
|
2461
2461
|
return A === "and" || A === "or" || A === "not";
|
|
2462
2462
|
}
|
|
@@ -2464,27 +2464,27 @@ function Uw(g) {
|
|
|
2464
2464
|
const A = p(g);
|
|
2465
2465
|
return A === "create_table" || A === "drop_table" || A === "alter_table" || A === "create_index" || A === "drop_index" || A === "create_view" || A === "drop_view" || A === "create_schema" || A === "drop_schema" || A === "create_database" || A === "drop_database" || A === "create_function" || A === "drop_function" || A === "create_procedure" || A === "drop_procedure" || A === "create_sequence" || A === "drop_sequence" || A === "alter_sequence" || A === "create_trigger" || A === "drop_trigger" || A === "create_type" || A === "drop_type";
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function W(g) {
|
|
2468
2468
|
return JSON.stringify(g);
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function r(g) {
|
|
2471
2471
|
const A = JSON.parse(g);
|
|
2472
2472
|
return A.success ? JSON.parse(A.ast) : null;
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function Zg(g, A, Q) {
|
|
2475
2475
|
if (g == null) return g;
|
|
2476
2476
|
if (Array.isArray(g))
|
|
2477
|
-
return g.length > 0 &&
|
|
2477
|
+
return g.length > 0 && x(g[0]) ? g.map(
|
|
2478
2478
|
(C, B) => wA(C, A, Q, null, B)
|
|
2479
|
-
) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) =>
|
|
2480
|
-
if (
|
|
2479
|
+
) : g.length > 0 && Array.isArray(g[0]) ? g.map((C) => Array.isArray(C) ? C.map((B, E) => x(B) ? wA(B, A, Q, null, E) : B) : C) : g;
|
|
2480
|
+
if (x(g))
|
|
2481
2481
|
return wA(g, A, Q, null, null);
|
|
2482
2482
|
if (typeof g == "object") {
|
|
2483
2483
|
const B = { ...g };
|
|
2484
2484
|
let E = !1;
|
|
2485
2485
|
for (const [D, o] of Object.entries(B)) {
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2486
|
+
const N = Zg(o, A, Q);
|
|
2487
|
+
N !== o && (B[D] = N, E = !0);
|
|
2488
2488
|
}
|
|
2489
2489
|
return E ? B : g;
|
|
2490
2490
|
}
|
|
@@ -2505,17 +2505,17 @@ function wA(g, A, Q, C, B) {
|
|
|
2505
2505
|
return E;
|
|
2506
2506
|
S !== void 0 && (E = S);
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2508
|
+
const N = p(E), y = O(E);
|
|
2509
2509
|
let G;
|
|
2510
2510
|
if (y == null)
|
|
2511
|
-
G =
|
|
2511
|
+
G = V(N, y);
|
|
2512
2512
|
else {
|
|
2513
2513
|
const S = { ...y };
|
|
2514
2514
|
for (const [R, q] of Object.entries(S)) {
|
|
2515
|
-
const T =
|
|
2515
|
+
const T = Zg(q, A, E);
|
|
2516
2516
|
T !== q && (S[R] = T);
|
|
2517
2517
|
}
|
|
2518
|
-
G =
|
|
2518
|
+
G = V(N, S);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (A.leave) {
|
|
2521
2521
|
const S = A.leave(G, Q, C, B);
|
|
@@ -2527,7 +2527,7 @@ function wA(g, A, Q, C, B) {
|
|
|
2527
2527
|
function GA(g, A) {
|
|
2528
2528
|
return wA(g, A, null, null, null);
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function Vg(g, A, Q) {
|
|
2531
2531
|
return GA(g, {
|
|
2532
2532
|
enter: (C, B) => {
|
|
2533
2533
|
if (A(C, B))
|
|
@@ -2536,40 +2536,40 @@ function tg(g, A, Q) {
|
|
|
2536
2536
|
});
|
|
2537
2537
|
}
|
|
2538
2538
|
function Fw(g, A, Q) {
|
|
2539
|
-
return
|
|
2539
|
+
return Vg(
|
|
2540
2540
|
g,
|
|
2541
2541
|
(C) => p(C) === A,
|
|
2542
2542
|
typeof Q == "function" ? (C) => Q(C) : Q
|
|
2543
2543
|
);
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2546
|
-
return
|
|
2547
|
-
Eg(
|
|
2545
|
+
function tg(g, A) {
|
|
2546
|
+
return r(
|
|
2547
|
+
Eg(W(g), JSON.stringify(A))
|
|
2548
2548
|
) ?? g;
|
|
2549
2549
|
}
|
|
2550
2550
|
function Lw(g, A) {
|
|
2551
|
-
return
|
|
2552
|
-
Dg(
|
|
2551
|
+
return r(
|
|
2552
|
+
Dg(W(g), JSON.stringify(A))
|
|
2553
2553
|
) ?? g;
|
|
2554
2554
|
}
|
|
2555
2555
|
function Rw(g, A) {
|
|
2556
|
-
return
|
|
2557
|
-
Cg(
|
|
2556
|
+
return r(
|
|
2557
|
+
Cg(W(g), A)
|
|
2558
2558
|
) ?? g;
|
|
2559
2559
|
}
|
|
2560
2560
|
function sw(g, A, Q = "and") {
|
|
2561
|
-
return
|
|
2562
|
-
bA(
|
|
2561
|
+
return r(
|
|
2562
|
+
bA(W(g), W(A), Q === "or")
|
|
2563
2563
|
) ?? g;
|
|
2564
2564
|
}
|
|
2565
2565
|
function aw(g) {
|
|
2566
|
-
return
|
|
2566
|
+
return r(Bg(W(g))) ?? g;
|
|
2567
2567
|
}
|
|
2568
2568
|
function qw(g, ...A) {
|
|
2569
2569
|
if (p(g) !== "select")
|
|
2570
2570
|
return g;
|
|
2571
2571
|
const Q = O(g);
|
|
2572
|
-
return
|
|
2572
|
+
return V("select", {
|
|
2573
2573
|
...Q,
|
|
2574
2574
|
expressions: [...Q.expressions, ...A]
|
|
2575
2575
|
});
|
|
@@ -2578,18 +2578,18 @@ function pw(g, A) {
|
|
|
2578
2578
|
if (p(g) !== "select")
|
|
2579
2579
|
return g;
|
|
2580
2580
|
const Q = O(g);
|
|
2581
|
-
return
|
|
2581
|
+
return V("select", {
|
|
2582
2582
|
...Q,
|
|
2583
2583
|
expressions: Q.expressions.filter((C) => !A(C))
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
2586
|
function Pw(g, A) {
|
|
2587
2587
|
if (typeof A == "number")
|
|
2588
|
-
return
|
|
2588
|
+
return r(ig(W(g), A)) ?? g;
|
|
2589
2589
|
if (p(g) !== "select")
|
|
2590
2590
|
return g;
|
|
2591
2591
|
const Q = O(g);
|
|
2592
|
-
return
|
|
2592
|
+
return V("select", {
|
|
2593
2593
|
...Q,
|
|
2594
2594
|
limit: { this: A }
|
|
2595
2595
|
});
|
|
@@ -2597,8 +2597,8 @@ function Pw(g, A) {
|
|
|
2597
2597
|
function Ow(g, A) {
|
|
2598
2598
|
if (p(g) !== "select")
|
|
2599
2599
|
return g;
|
|
2600
|
-
const Q = O(g), C = typeof A == "number" ?
|
|
2601
|
-
return
|
|
2600
|
+
const Q = O(g), C = typeof A == "number" ? V("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2601
|
+
return V("select", {
|
|
2602
2602
|
...Q,
|
|
2603
2603
|
offset: { this: C }
|
|
2604
2604
|
});
|
|
@@ -2607,87 +2607,87 @@ function Tw(g) {
|
|
|
2607
2607
|
if (p(g) !== "select")
|
|
2608
2608
|
return g;
|
|
2609
2609
|
const A = O(g);
|
|
2610
|
-
return
|
|
2610
|
+
return V("select", {
|
|
2611
2611
|
...A,
|
|
2612
2612
|
limit: null,
|
|
2613
2613
|
offset: null
|
|
2614
2614
|
});
|
|
2615
2615
|
}
|
|
2616
2616
|
function jw(g, A = !0) {
|
|
2617
|
-
return
|
|
2617
|
+
return r(wg(W(g), A)) ?? g;
|
|
2618
2618
|
}
|
|
2619
2619
|
function dw(g) {
|
|
2620
2620
|
return GA(g, {});
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function zg(g, A, Q) {
|
|
2623
2623
|
if (g == null) return g;
|
|
2624
2624
|
if (Array.isArray(g))
|
|
2625
|
-
return g.length > 0 &&
|
|
2626
|
-
if (
|
|
2627
|
-
return
|
|
2625
|
+
return g.length > 0 && x(g[0]) ? g.filter((C) => !A(C, Q)).map((C) => HA(C, A)) : g;
|
|
2626
|
+
if (x(g))
|
|
2627
|
+
return HA(g, A);
|
|
2628
2628
|
if (typeof g == "object") {
|
|
2629
2629
|
const B = { ...g };
|
|
2630
2630
|
let E = !1;
|
|
2631
2631
|
for (const [D, o] of Object.entries(B)) {
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const N = zg(o, A, Q);
|
|
2633
|
+
N !== o && (B[D] = N, E = !0);
|
|
2634
2634
|
}
|
|
2635
2635
|
return E ? B : g;
|
|
2636
2636
|
}
|
|
2637
2637
|
return g;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function HA(g, A) {
|
|
2640
2640
|
const Q = p(g), B = { ...O(g) };
|
|
2641
2641
|
for (const [E, D] of Object.entries(B)) {
|
|
2642
|
-
const o =
|
|
2642
|
+
const o = zg(D, A, g);
|
|
2643
2643
|
o !== D && (B[E] = o);
|
|
2644
2644
|
}
|
|
2645
|
-
return
|
|
2645
|
+
return V(Q, B);
|
|
2646
2646
|
}
|
|
2647
2647
|
function e(g) {
|
|
2648
2648
|
return JSON.stringify(g);
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function xg(g, A, Q) {
|
|
2651
2651
|
if (g != null) {
|
|
2652
2652
|
if (Array.isArray(g)) {
|
|
2653
|
-
if (g.length > 0 &&
|
|
2653
|
+
if (g.length > 0 && x(g[0]))
|
|
2654
2654
|
Q.push({ key: A, value: g });
|
|
2655
2655
|
else if (g.length > 0 && Array.isArray(g[0])) {
|
|
2656
2656
|
for (const C of g)
|
|
2657
2657
|
if (Array.isArray(C))
|
|
2658
2658
|
for (const B of C)
|
|
2659
|
-
|
|
2659
|
+
x(B) && Q.push({ key: A, value: B });
|
|
2660
2660
|
}
|
|
2661
|
-
} else if (
|
|
2661
|
+
} else if (x(g))
|
|
2662
2662
|
Q.push({ key: A, value: g });
|
|
2663
2663
|
else if (typeof g == "object")
|
|
2664
2664
|
for (const [, C] of Object.entries(
|
|
2665
2665
|
g
|
|
2666
2666
|
))
|
|
2667
|
-
|
|
2667
|
+
xg(C, A, Q);
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function Wg(g) {
|
|
2671
2671
|
const A = [], Q = O(g);
|
|
2672
2672
|
if (!Q || typeof Q != "object") return A;
|
|
2673
2673
|
for (const [C, B] of Object.entries(Q))
|
|
2674
|
-
|
|
2674
|
+
xg(B, C, A);
|
|
2675
2675
|
return A;
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function Z(g, A, Q = null, C = null, B = null) {
|
|
2678
2678
|
A.enter && A.enter(g, Q, C, B);
|
|
2679
2679
|
const E = p(g), D = A[E];
|
|
2680
2680
|
D && D(g, Q, C, B);
|
|
2681
|
-
const o =
|
|
2682
|
-
for (const
|
|
2683
|
-
Array.isArray(
|
|
2684
|
-
|
|
2685
|
-
}) :
|
|
2681
|
+
const o = Wg(g);
|
|
2682
|
+
for (const N of o)
|
|
2683
|
+
Array.isArray(N.value) ? N.value.forEach((y, G) => {
|
|
2684
|
+
Z(y, A, g, N.key, G);
|
|
2685
|
+
}) : Z(N.value, A, g, N.key, null);
|
|
2686
2686
|
A.leave && A.leave(g, Q, C, B);
|
|
2687
2687
|
}
|
|
2688
2688
|
function YA(g, A) {
|
|
2689
2689
|
const Q = [];
|
|
2690
|
-
return
|
|
2690
|
+
return Z(g, {
|
|
2691
2691
|
enter: (C, B) => {
|
|
2692
2692
|
A(C, B) && Q.push(C);
|
|
2693
2693
|
}
|
|
@@ -2696,38 +2696,38 @@ function YA(g, A) {
|
|
|
2696
2696
|
function BA(g, A) {
|
|
2697
2697
|
return YA(g, (Q) => p(Q) === A);
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function ng(g, A) {
|
|
2700
2700
|
let Q, C = !1;
|
|
2701
|
-
return
|
|
2701
|
+
return Z(g, {
|
|
2702
2702
|
enter: (B, E) => {
|
|
2703
2703
|
!C && A(B, E) && (Q = B, C = !0);
|
|
2704
2704
|
}
|
|
2705
2705
|
}), Q;
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return
|
|
2707
|
+
function Zw(g, A) {
|
|
2708
|
+
return ng(g, A) !== void 0;
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function Vw(g, A) {
|
|
2711
2711
|
let Q = !0;
|
|
2712
|
-
return
|
|
2712
|
+
return Z(g, {
|
|
2713
2713
|
enter: (C, B) => {
|
|
2714
2714
|
A(C, B) || (Q = !1);
|
|
2715
2715
|
}
|
|
2716
2716
|
}), Q;
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function tw(g, A) {
|
|
2719
2719
|
return YA(g, A).length;
|
|
2720
2720
|
}
|
|
2721
2721
|
function eg(g) {
|
|
2722
2722
|
return BA(g, "column");
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function zw(g) {
|
|
2725
2725
|
return BA(g, "table");
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function xw(g) {
|
|
2728
2728
|
return BA(g, "identifier");
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function Ww(g) {
|
|
2731
2731
|
const A = JSON.parse(_A(e(g)));
|
|
2732
2732
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2733
2733
|
}
|
|
@@ -2743,7 +2743,7 @@ function ug(g) {
|
|
|
2743
2743
|
const A = JSON.parse(Ag(e(g)));
|
|
2744
2744
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function nw(g) {
|
|
2747
2747
|
const A = JSON.parse($A(e(g)));
|
|
2748
2748
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2749
2749
|
}
|
|
@@ -2755,18 +2755,18 @@ function fw(g) {
|
|
|
2755
2755
|
const A = JSON.parse(gg(e(g)));
|
|
2756
2756
|
return A.success ? A.result : [];
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function lg(g) {
|
|
2759
2759
|
return IA(g).length > 0;
|
|
2760
2760
|
}
|
|
2761
2761
|
function uw(g) {
|
|
2762
2762
|
return fg(g).length > 0;
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function lw(g) {
|
|
2765
2765
|
return ug(g).length > 0;
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function rw(g) {
|
|
2768
2768
|
let A = 0, Q = 0;
|
|
2769
|
-
return
|
|
2769
|
+
return Z(g, {
|
|
2770
2770
|
enter: () => {
|
|
2771
2771
|
Q++, A = Math.max(A, Q);
|
|
2772
2772
|
},
|
|
@@ -2781,7 +2781,7 @@ function mw(g) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
function bw(g, A) {
|
|
2783
2783
|
let Q = null;
|
|
2784
|
-
return
|
|
2784
|
+
return Z(g, {
|
|
2785
2785
|
enter: (C, B) => {
|
|
2786
2786
|
C === A && (Q = B);
|
|
2787
2787
|
}
|
|
@@ -2790,7 +2790,7 @@ function bw(g, A) {
|
|
|
2790
2790
|
function vw(g, A, Q) {
|
|
2791
2791
|
const C = [];
|
|
2792
2792
|
let B = null;
|
|
2793
|
-
return
|
|
2793
|
+
return Z(g, {
|
|
2794
2794
|
enter: (E) => {
|
|
2795
2795
|
if (B === null) {
|
|
2796
2796
|
if (E === A)
|
|
@@ -2811,7 +2811,7 @@ function vw(g, A, Q) {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
function Xw(g, A) {
|
|
2813
2813
|
let Q = 0, C = 0;
|
|
2814
|
-
return
|
|
2814
|
+
return Z(g, {
|
|
2815
2815
|
enter: (B) => {
|
|
2816
2816
|
C++, B === A && (Q = C);
|
|
2817
2817
|
},
|
|
@@ -2825,48 +2825,48 @@ const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2825
2825
|
addSelectColumns: qw,
|
|
2826
2826
|
addWhere: sw,
|
|
2827
2827
|
clone: dw,
|
|
2828
|
-
countNodes:
|
|
2829
|
-
every:
|
|
2828
|
+
countNodes: tw,
|
|
2829
|
+
every: Vw,
|
|
2830
2830
|
findAll: YA,
|
|
2831
2831
|
findAncestor: vw,
|
|
2832
2832
|
findByType: BA,
|
|
2833
|
-
findFirst:
|
|
2833
|
+
findFirst: ng,
|
|
2834
2834
|
getAggregateFunctions: IA,
|
|
2835
|
-
getChildren:
|
|
2835
|
+
getChildren: Wg,
|
|
2836
2836
|
getColumnNames: ew,
|
|
2837
2837
|
getColumns: eg,
|
|
2838
|
-
getDepth:
|
|
2838
|
+
getDepth: rw,
|
|
2839
2839
|
getExprData: O,
|
|
2840
2840
|
getExprType: p,
|
|
2841
|
-
getFunctions:
|
|
2842
|
-
getIdentifiers:
|
|
2841
|
+
getFunctions: Ww,
|
|
2842
|
+
getIdentifiers: xw,
|
|
2843
2843
|
getInferredType: Pg,
|
|
2844
|
-
getLiterals:
|
|
2844
|
+
getLiterals: nw,
|
|
2845
2845
|
getNodeDepth: Xw,
|
|
2846
2846
|
getParent: bw,
|
|
2847
2847
|
getSubqueries: ug,
|
|
2848
2848
|
getTableNames: fw,
|
|
2849
|
-
getTables:
|
|
2849
|
+
getTables: zw,
|
|
2850
2850
|
getWindowFunctions: fg,
|
|
2851
|
-
hasAggregates:
|
|
2852
|
-
hasSubqueries:
|
|
2851
|
+
hasAggregates: lg,
|
|
2852
|
+
hasSubqueries: lw,
|
|
2853
2853
|
hasWindowFunctions: uw,
|
|
2854
2854
|
isAdd: qD,
|
|
2855
|
-
isAggregateFunction:
|
|
2855
|
+
isAggregateFunction: zD,
|
|
2856
2856
|
isAlias: ww,
|
|
2857
|
-
isAlterTable:
|
|
2857
|
+
isAlterTable: Nw,
|
|
2858
2858
|
isAnd: hD,
|
|
2859
|
-
isArithmetic:
|
|
2859
|
+
isArithmetic: Jw,
|
|
2860
2860
|
isAvg: eD,
|
|
2861
|
-
isBetween:
|
|
2861
|
+
isBetween: ZD,
|
|
2862
2862
|
isBoolean: GD,
|
|
2863
2863
|
isCase: XD,
|
|
2864
2864
|
isCast: mD,
|
|
2865
|
-
isCoalesce:
|
|
2865
|
+
isCoalesce: lD,
|
|
2866
2866
|
isColumn: Tg,
|
|
2867
2867
|
isComparison: cw,
|
|
2868
2868
|
isConcat: jD,
|
|
2869
|
-
isCount:
|
|
2869
|
+
isCount: WD,
|
|
2870
2870
|
isCreateIndex: yw,
|
|
2871
2871
|
isCreateTable: kw,
|
|
2872
2872
|
isCreateView: Gw,
|
|
@@ -2875,12 +2875,12 @@ const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2875
2875
|
isDelete: wD,
|
|
2876
2876
|
isDiv: OD,
|
|
2877
2877
|
isDropIndex: Kw,
|
|
2878
|
-
isDropTable:
|
|
2878
|
+
isDropTable: Mw,
|
|
2879
2879
|
isDropView: Yw,
|
|
2880
|
-
isEq:
|
|
2880
|
+
isEq: JD,
|
|
2881
2881
|
isExcept: kD,
|
|
2882
|
-
isExists:
|
|
2883
|
-
isExpressionValue:
|
|
2882
|
+
isExists: tD,
|
|
2883
|
+
isExpressionValue: x,
|
|
2884
2884
|
isFrom: _D,
|
|
2885
2885
|
isFunction: dg,
|
|
2886
2886
|
isGroupBy: gw,
|
|
@@ -2888,25 +2888,25 @@ const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2888
2888
|
isGte: RD,
|
|
2889
2889
|
isHaving: Iw,
|
|
2890
2890
|
isILike: aD,
|
|
2891
|
-
isIdentifier:
|
|
2891
|
+
isIdentifier: ND,
|
|
2892
2892
|
isIn: dD,
|
|
2893
2893
|
isInsert: ED,
|
|
2894
2894
|
isIntersect: oD,
|
|
2895
|
-
isIsNull:
|
|
2895
|
+
isIsNull: VD,
|
|
2896
2896
|
isJoin: $D,
|
|
2897
2897
|
isLike: sD,
|
|
2898
2898
|
isLimit: Cw,
|
|
2899
2899
|
isLiteral: jg,
|
|
2900
|
-
isLogical:
|
|
2900
|
+
isLogical: Hw,
|
|
2901
2901
|
isLt: UD,
|
|
2902
2902
|
isLte: FD,
|
|
2903
2903
|
isMax: uD,
|
|
2904
2904
|
isMin: fD,
|
|
2905
2905
|
isMod: TD,
|
|
2906
2906
|
isMul: PD,
|
|
2907
|
-
isNeq:
|
|
2907
|
+
isNeq: HD,
|
|
2908
2908
|
isNot: cD,
|
|
2909
|
-
isNullIf:
|
|
2909
|
+
isNullIf: rD,
|
|
2910
2910
|
isNullLiteral: YD,
|
|
2911
2911
|
isOffset: Bw,
|
|
2912
2912
|
isOr: SD,
|
|
@@ -2919,40 +2919,40 @@ const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2919
2919
|
isSetOperation: Sw,
|
|
2920
2920
|
isStar: KD,
|
|
2921
2921
|
isSub: pD,
|
|
2922
|
-
isSubquery:
|
|
2923
|
-
isSum:
|
|
2922
|
+
isSubquery: MD,
|
|
2923
|
+
isSum: nD,
|
|
2924
2924
|
isTable: yD,
|
|
2925
2925
|
isTryCast: bD,
|
|
2926
2926
|
isUnion: iD,
|
|
2927
2927
|
isUpdate: DD,
|
|
2928
2928
|
isWhere: Aw,
|
|
2929
|
-
isWindowFunction:
|
|
2929
|
+
isWindowFunction: xD,
|
|
2930
2930
|
isWith: Ew,
|
|
2931
|
-
makeExpr:
|
|
2931
|
+
makeExpr: V,
|
|
2932
2932
|
nodeCount: mw,
|
|
2933
2933
|
qualifyColumns: Rw,
|
|
2934
|
-
remove:
|
|
2934
|
+
remove: HA,
|
|
2935
2935
|
removeLimitOffset: Tw,
|
|
2936
2936
|
removeSelectColumns: pw,
|
|
2937
2937
|
removeWhere: aw,
|
|
2938
|
-
renameColumns:
|
|
2938
|
+
renameColumns: tg,
|
|
2939
2939
|
renameTables: Lw,
|
|
2940
2940
|
replaceByType: Fw,
|
|
2941
|
-
replaceNodes:
|
|
2941
|
+
replaceNodes: Vg,
|
|
2942
2942
|
setDistinct: jw,
|
|
2943
2943
|
setLimit: Pw,
|
|
2944
2944
|
setOffset: Ow,
|
|
2945
|
-
some:
|
|
2945
|
+
some: Zw,
|
|
2946
2946
|
transform: GA,
|
|
2947
|
-
walk:
|
|
2947
|
+
walk: Z
|
|
2948
2948
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2949
|
-
function
|
|
2950
|
-
return g instanceof c ? g._w : typeof g == "string" ? UA(g) : typeof g == "number" || typeof g == "boolean" || g === null ?
|
|
2949
|
+
function H(g) {
|
|
2950
|
+
return g instanceof c ? g._w : typeof g == "string" ? UA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? NA(g) : yA();
|
|
2951
2951
|
}
|
|
2952
2952
|
function d(g) {
|
|
2953
2953
|
const A = new P();
|
|
2954
2954
|
for (const Q of g)
|
|
2955
|
-
Q instanceof c ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(
|
|
2955
|
+
Q instanceof c ? A.push(Q._w) : typeof Q == "string" ? A.push_col(Q) : typeof Q == "number" ? Number.isInteger(Q) ? A.push_int(Q) : A.push_float(Q) : typeof Q == "boolean" || Q === null ? A.push(NA(Q)) : A.push(yA());
|
|
2956
2956
|
return A;
|
|
2957
2957
|
}
|
|
2958
2958
|
class c {
|
|
@@ -2964,58 +2964,58 @@ class c {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
// -- Comparison --
|
|
2966
2966
|
eq(A) {
|
|
2967
|
-
return new c(this._w.eq(
|
|
2967
|
+
return new c(this._w.eq(H(A)));
|
|
2968
2968
|
}
|
|
2969
2969
|
neq(A) {
|
|
2970
|
-
return new c(this._w.neq(
|
|
2970
|
+
return new c(this._w.neq(H(A)));
|
|
2971
2971
|
}
|
|
2972
2972
|
lt(A) {
|
|
2973
|
-
return new c(this._w.lt(
|
|
2973
|
+
return new c(this._w.lt(H(A)));
|
|
2974
2974
|
}
|
|
2975
2975
|
lte(A) {
|
|
2976
|
-
return new c(this._w.lte(
|
|
2976
|
+
return new c(this._w.lte(H(A)));
|
|
2977
2977
|
}
|
|
2978
2978
|
gt(A) {
|
|
2979
|
-
return new c(this._w.gt(
|
|
2979
|
+
return new c(this._w.gt(H(A)));
|
|
2980
2980
|
}
|
|
2981
2981
|
gte(A) {
|
|
2982
|
-
return new c(this._w.gte(
|
|
2982
|
+
return new c(this._w.gte(H(A)));
|
|
2983
2983
|
}
|
|
2984
2984
|
// -- Logical --
|
|
2985
2985
|
and(A) {
|
|
2986
|
-
return new c(this._w.and(
|
|
2986
|
+
return new c(this._w.and(H(A)));
|
|
2987
2987
|
}
|
|
2988
2988
|
or(A) {
|
|
2989
|
-
return new c(this._w.or(
|
|
2989
|
+
return new c(this._w.or(H(A)));
|
|
2990
2990
|
}
|
|
2991
2991
|
not() {
|
|
2992
2992
|
return new c(this._w.not());
|
|
2993
2993
|
}
|
|
2994
2994
|
xor(A) {
|
|
2995
|
-
return new c(this._w.xor(
|
|
2995
|
+
return new c(this._w.xor(H(A)));
|
|
2996
2996
|
}
|
|
2997
2997
|
// -- Arithmetic --
|
|
2998
2998
|
add(A) {
|
|
2999
|
-
return new c(this._w.add(
|
|
2999
|
+
return new c(this._w.add(H(A)));
|
|
3000
3000
|
}
|
|
3001
3001
|
sub(A) {
|
|
3002
|
-
return new c(this._w.sub(
|
|
3002
|
+
return new c(this._w.sub(H(A)));
|
|
3003
3003
|
}
|
|
3004
3004
|
mul(A) {
|
|
3005
|
-
return new c(this._w.mul(
|
|
3005
|
+
return new c(this._w.mul(H(A)));
|
|
3006
3006
|
}
|
|
3007
3007
|
div(A) {
|
|
3008
|
-
return new c(this._w.div(
|
|
3008
|
+
return new c(this._w.div(H(A)));
|
|
3009
3009
|
}
|
|
3010
3010
|
// -- Pattern matching --
|
|
3011
3011
|
like(A) {
|
|
3012
|
-
return new c(this._w.like(
|
|
3012
|
+
return new c(this._w.like(H(A)));
|
|
3013
3013
|
}
|
|
3014
3014
|
ilike(A) {
|
|
3015
|
-
return new c(this._w.ilike(
|
|
3015
|
+
return new c(this._w.ilike(H(A)));
|
|
3016
3016
|
}
|
|
3017
3017
|
rlike(A) {
|
|
3018
|
-
return new c(this._w.rlike(
|
|
3018
|
+
return new c(this._w.rlike(H(A)));
|
|
3019
3019
|
}
|
|
3020
3020
|
// -- Predicates --
|
|
3021
3021
|
isNull() {
|
|
@@ -3025,7 +3025,7 @@ class c {
|
|
|
3025
3025
|
return new c(this._w.is_not_null());
|
|
3026
3026
|
}
|
|
3027
3027
|
between(A, Q) {
|
|
3028
|
-
return new c(this._w.between(
|
|
3028
|
+
return new c(this._w.between(H(A), H(Q)));
|
|
3029
3029
|
}
|
|
3030
3030
|
inList(...A) {
|
|
3031
3031
|
return new c(this._w.in_list(d(A)));
|
|
@@ -3086,9 +3086,9 @@ function Ai(g) {
|
|
|
3086
3086
|
return new c(UA(g));
|
|
3087
3087
|
}
|
|
3088
3088
|
function gi(g) {
|
|
3089
|
-
return new c(
|
|
3089
|
+
return new c(NA(g));
|
|
3090
3090
|
}
|
|
3091
|
-
function
|
|
3091
|
+
function rg() {
|
|
3092
3092
|
return new c(sg());
|
|
3093
3093
|
}
|
|
3094
3094
|
function Ii() {
|
|
@@ -3110,13 +3110,13 @@ function L(g, ...A) {
|
|
|
3110
3110
|
return new c(Ug(g, d(A)));
|
|
3111
3111
|
}
|
|
3112
3112
|
function Bi(g) {
|
|
3113
|
-
return new c(Fg(
|
|
3113
|
+
return new c(Fg(H(g)));
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ei(g, A) {
|
|
3116
|
-
return new c(cg(
|
|
3116
|
+
return new c(cg(H(g), A));
|
|
3117
3117
|
}
|
|
3118
3118
|
function Di(g, A) {
|
|
3119
|
-
return new c(Gg(
|
|
3119
|
+
return new c(Gg(H(g), A));
|
|
3120
3120
|
}
|
|
3121
3121
|
function wi(g, A) {
|
|
3122
3122
|
return new c(ag(g._w, A));
|
|
@@ -3124,28 +3124,28 @@ function wi(g, A) {
|
|
|
3124
3124
|
function ii(...g) {
|
|
3125
3125
|
if (g.length === 0) return LA(!0);
|
|
3126
3126
|
if (g.length === 1)
|
|
3127
|
-
return g[0] instanceof c ? g[0] : new c(
|
|
3128
|
-
let A =
|
|
3127
|
+
return g[0] instanceof c ? g[0] : new c(H(g[0]));
|
|
3128
|
+
let A = H(g[0]);
|
|
3129
3129
|
for (let Q = 1; Q < g.length; Q++)
|
|
3130
|
-
A = Yg(A,
|
|
3130
|
+
A = Yg(A, H(g[Q]));
|
|
3131
3131
|
return new c(A);
|
|
3132
3132
|
}
|
|
3133
3133
|
function oi(...g) {
|
|
3134
3134
|
if (g.length === 0) return LA(!1);
|
|
3135
3135
|
if (g.length === 1)
|
|
3136
|
-
return g[0] instanceof c ? g[0] : new c(
|
|
3137
|
-
let A =
|
|
3136
|
+
return g[0] instanceof c ? g[0] : new c(H(g[0]));
|
|
3137
|
+
let A = H(g[0]);
|
|
3138
3138
|
for (let Q = 1; Q < g.length; Q++)
|
|
3139
|
-
A = Lg(A,
|
|
3139
|
+
A = Lg(A, H(g[Q]));
|
|
3140
3140
|
return new c(A);
|
|
3141
3141
|
}
|
|
3142
3142
|
function ki(g) {
|
|
3143
|
-
return g !== void 0 ? L("COUNT", g) : L("COUNT",
|
|
3144
|
-
}
|
|
3145
|
-
function Ni(g) {
|
|
3146
|
-
return new c(Hg(J(g)));
|
|
3143
|
+
return g !== void 0 ? L("COUNT", g) : L("COUNT", rg());
|
|
3147
3144
|
}
|
|
3148
3145
|
function Mi(g) {
|
|
3146
|
+
return new c(Jg(H(g)));
|
|
3147
|
+
}
|
|
3148
|
+
function Ni(g) {
|
|
3149
3149
|
return L("SUM", g);
|
|
3150
3150
|
}
|
|
3151
3151
|
function yi(g) {
|
|
@@ -3169,10 +3169,10 @@ function Si(g) {
|
|
|
3169
3169
|
function ci(g) {
|
|
3170
3170
|
return L("TRIM", g);
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Ji(g) {
|
|
3173
3173
|
return L("LTRIM", g);
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function Hi(g) {
|
|
3176
3176
|
return L("RTRIM", g);
|
|
3177
3177
|
}
|
|
3178
3178
|
function Ui(g) {
|
|
@@ -3214,25 +3214,25 @@ function ji(g) {
|
|
|
3214
3214
|
function di(g, A) {
|
|
3215
3215
|
return L("POWER", g, A);
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function Zi(g) {
|
|
3218
3218
|
return L("SQRT", g);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Vi(g) {
|
|
3221
3221
|
return L("LN", g);
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function ti(g) {
|
|
3224
3224
|
return L("EXP", g);
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function zi(g) {
|
|
3227
3227
|
return L("SIGN", g);
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function xi(...g) {
|
|
3230
3230
|
return L("GREATEST", ...g);
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Wi(...g) {
|
|
3233
3233
|
return L("LEAST", ...g);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function ni() {
|
|
3236
3236
|
return L("CURRENT_DATE");
|
|
3237
3237
|
}
|
|
3238
3238
|
function ei() {
|
|
@@ -3242,12 +3242,12 @@ function fi() {
|
|
|
3242
3242
|
return L("CURRENT_TIMESTAMP");
|
|
3243
3243
|
}
|
|
3244
3244
|
function ui(g, A) {
|
|
3245
|
-
return new c(
|
|
3245
|
+
return new c(Hg(g, H(A)));
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function li() {
|
|
3248
3248
|
return L("ROW_NUMBER");
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
function ri() {
|
|
3251
3251
|
return L("RANK");
|
|
3252
3252
|
}
|
|
3253
3253
|
function mi() {
|
|
@@ -3262,7 +3262,7 @@ class bg {
|
|
|
3262
3262
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3263
3263
|
select(...A) {
|
|
3264
3264
|
for (const Q of A)
|
|
3265
|
-
Q === "*" ? this._w.select_star() : Q instanceof c ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(
|
|
3265
|
+
Q === "*" ? this._w.select_star() : Q instanceof c ? this._w.select_expr(Q._w) : typeof Q == "string" ? this._w.select_col(Q) : this._w.select_expr(H(Q));
|
|
3266
3266
|
return this;
|
|
3267
3267
|
}
|
|
3268
3268
|
/** Set the FROM clause. */
|
|
@@ -3271,15 +3271,15 @@ class bg {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
/** Add an INNER JOIN. */
|
|
3273
3273
|
join(A, Q) {
|
|
3274
|
-
return this._w.join(A,
|
|
3274
|
+
return this._w.join(A, H(Q)), this;
|
|
3275
3275
|
}
|
|
3276
3276
|
/** Add a LEFT JOIN. */
|
|
3277
3277
|
leftJoin(A, Q) {
|
|
3278
|
-
return this._w.left_join(A,
|
|
3278
|
+
return this._w.left_join(A, H(Q)), this;
|
|
3279
3279
|
}
|
|
3280
3280
|
/** Add a RIGHT JOIN. */
|
|
3281
3281
|
rightJoin(A, Q) {
|
|
3282
|
-
return this._w.right_join(A,
|
|
3282
|
+
return this._w.right_join(A, H(Q)), this;
|
|
3283
3283
|
}
|
|
3284
3284
|
/** Add a CROSS JOIN. */
|
|
3285
3285
|
crossJoin(A) {
|
|
@@ -3287,7 +3287,7 @@ class bg {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3289
3289
|
where(A) {
|
|
3290
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof c ? this._w.where_expr(A._w) : this._w.where_expr(
|
|
3290
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof c ? this._w.where_expr(A._w) : this._w.where_expr(H(A)), this;
|
|
3291
3291
|
}
|
|
3292
3292
|
/** Set the GROUP BY clause. */
|
|
3293
3293
|
groupBy(...A) {
|
|
@@ -3295,7 +3295,7 @@ class bg {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
/** Set the HAVING clause. */
|
|
3297
3297
|
having(A) {
|
|
3298
|
-
return this._w.having(
|
|
3298
|
+
return this._w.having(H(A)), this;
|
|
3299
3299
|
}
|
|
3300
3300
|
/** Set the ORDER BY clause. */
|
|
3301
3301
|
orderBy(...A) {
|
|
@@ -3315,7 +3315,7 @@ class bg {
|
|
|
3315
3315
|
}
|
|
3316
3316
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3317
3317
|
qualify(A) {
|
|
3318
|
-
return this._w.qualify(
|
|
3318
|
+
return this._w.qualify(H(A)), this;
|
|
3319
3319
|
}
|
|
3320
3320
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3321
3321
|
sortBy(...A) {
|
|
@@ -3425,15 +3425,15 @@ class _g {
|
|
|
3425
3425
|
/** @internal */
|
|
3426
3426
|
_w;
|
|
3427
3427
|
constructor(A) {
|
|
3428
|
-
this._w = new
|
|
3428
|
+
this._w = new MA(A);
|
|
3429
3429
|
}
|
|
3430
3430
|
/** Add a SET column = value assignment. */
|
|
3431
3431
|
set(A, Q) {
|
|
3432
|
-
return this._w.set(A,
|
|
3432
|
+
return this._w.set(A, H(Q)), this;
|
|
3433
3433
|
}
|
|
3434
3434
|
/** Set the WHERE clause. */
|
|
3435
3435
|
where(A) {
|
|
3436
|
-
return this._w.where_expr(
|
|
3436
|
+
return this._w.where_expr(H(A)), this;
|
|
3437
3437
|
}
|
|
3438
3438
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3439
3439
|
from(A) {
|
|
@@ -3463,7 +3463,7 @@ class $g {
|
|
|
3463
3463
|
}
|
|
3464
3464
|
/** Set the WHERE clause. */
|
|
3465
3465
|
where(A) {
|
|
3466
|
-
return this._w.where_expr(
|
|
3466
|
+
return this._w.where_expr(H(A)), this;
|
|
3467
3467
|
}
|
|
3468
3468
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3469
3469
|
toSql(A = "generic") {
|
|
@@ -3492,13 +3492,13 @@ class gI {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
/** Set the source table and ON condition. */
|
|
3494
3494
|
using(A, Q) {
|
|
3495
|
-
return this._w.using(A,
|
|
3495
|
+
return this._w.using(A, H(Q)), this;
|
|
3496
3496
|
}
|
|
3497
3497
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3498
3498
|
whenMatchedUpdate(A) {
|
|
3499
3499
|
const Q = new QA();
|
|
3500
3500
|
for (const [C, B] of Object.entries(A))
|
|
3501
|
-
Q.push(C,
|
|
3501
|
+
Q.push(C, H(B));
|
|
3502
3502
|
return this._w.when_matched_update(Q), this;
|
|
3503
3503
|
}
|
|
3504
3504
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3534,11 +3534,11 @@ class RA {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
/** Add a WHEN condition THEN result branch. */
|
|
3536
3536
|
when(A, Q) {
|
|
3537
|
-
return this._w.when(
|
|
3537
|
+
return this._w.when(H(A), H(Q)), this;
|
|
3538
3538
|
}
|
|
3539
3539
|
/** Set the ELSE result. */
|
|
3540
3540
|
else_(A) {
|
|
3541
|
-
return this._w.else_(
|
|
3541
|
+
return this._w.else_(H(A)), this;
|
|
3542
3542
|
}
|
|
3543
3543
|
/** Build the CASE expression as an Expr. */
|
|
3544
3544
|
build() {
|
|
@@ -3550,10 +3550,10 @@ class RA {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
3552
|
function Ao() {
|
|
3553
|
-
return new RA(new
|
|
3553
|
+
return new RA(new l());
|
|
3554
3554
|
}
|
|
3555
3555
|
function go(g) {
|
|
3556
|
-
return new RA(Sg(
|
|
3556
|
+
return new RA(Sg(H(g)));
|
|
3557
3557
|
}
|
|
3558
3558
|
class _ {
|
|
3559
3559
|
/** @internal */
|
|
@@ -3618,16 +3618,16 @@ function Do(g, A) {
|
|
|
3618
3618
|
});
|
|
3619
3619
|
}
|
|
3620
3620
|
const B = O(g);
|
|
3621
|
-
if (
|
|
3621
|
+
if (lg(g) && !B.group_by) {
|
|
3622
3622
|
const E = IA(g), D = B.expressions || [];
|
|
3623
|
-
if (D.some((
|
|
3624
|
-
const y = p(
|
|
3625
|
-
return y === "column" || y === "identifier" ? IA(
|
|
3623
|
+
if (D.some((N) => {
|
|
3624
|
+
const y = p(N);
|
|
3625
|
+
return y === "column" || y === "identifier" ? IA(N).length === 0 : !1;
|
|
3626
3626
|
}) && E.length > 0) {
|
|
3627
|
-
const
|
|
3627
|
+
const N = D.find((G) => {
|
|
3628
3628
|
const S = p(G);
|
|
3629
3629
|
return S === "column" || S === "identifier" ? IA(G).length === 0 : !1;
|
|
3630
|
-
}), y =
|
|
3630
|
+
}), y = N ? O(N)?.span : void 0;
|
|
3631
3631
|
Q.push({
|
|
3632
3632
|
message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
|
|
3633
3633
|
severity: "warning",
|
|
@@ -3725,7 +3725,7 @@ function II(g, A, Q = "generic", C = !1) {
|
|
|
3725
3725
|
return JSON.parse(B);
|
|
3726
3726
|
}
|
|
3727
3727
|
function QI(g, A, Q, C = "generic", B = !1) {
|
|
3728
|
-
const E =
|
|
3728
|
+
const E = Mg(
|
|
3729
3729
|
A,
|
|
3730
3730
|
g,
|
|
3731
3731
|
JSON.stringify(Q),
|
|
@@ -3749,7 +3749,7 @@ function DI(g) {
|
|
|
3749
3749
|
return g.filter((A) => A.type !== "keep");
|
|
3750
3750
|
}
|
|
3751
3751
|
function wI(g, A = "generic") {
|
|
3752
|
-
const Q =
|
|
3752
|
+
const Q = Ng(g, A);
|
|
3753
3753
|
return JSON.parse(Q);
|
|
3754
3754
|
}
|
|
3755
3755
|
var sA = /* @__PURE__ */ ((g) => (g.Generic = "generic", g.PostgreSQL = "postgresql", g.MySQL = "mysql", g.BigQuery = "bigquery", g.Snowflake = "snowflake", g.DuckDB = "duckdb", g.SQLite = "sqlite", g.Hive = "hive", g.Spark = "spark", g.Trino = "trino", g.Presto = "presto", g.Redshift = "redshift", g.TSQL = "tsql", g.Oracle = "oracle", g.ClickHouse = "clickhouse", g.Databricks = "databricks", g.Athena = "athena", g.Teradata = "teradata", g.Doris = "doris", g.StarRocks = "starrocks", g.Materialize = "materialize", g.RisingWave = "risingwave", g.SingleStore = "singlestore", g.CockroachDB = "cockroachdb", g.TiDB = "tidb", g.Druid = "druid", g.Solr = "solr", g.Tableau = "tableau", g.Dune = "dune", g.Fabric = "fabric", g.Drill = "drill", g.Dremio = "dremio", g.Exasol = "exasol", g.DataFusion = "datafusion", g))(sA || {});
|
|
@@ -3766,7 +3766,7 @@ function aA(g, A) {
|
|
|
3766
3766
|
errorColumn: void 0
|
|
3767
3767
|
};
|
|
3768
3768
|
}
|
|
3769
|
-
function
|
|
3769
|
+
function Mo(g, A) {
|
|
3770
3770
|
return {
|
|
3771
3771
|
success: !1,
|
|
3772
3772
|
ast: void 0,
|
|
@@ -3775,7 +3775,7 @@ function No(g, A) {
|
|
|
3775
3775
|
errorColumn: void 0
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function n(g) {
|
|
3779
3779
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3780
3780
|
}
|
|
3781
3781
|
async function iI() {
|
|
@@ -3786,7 +3786,7 @@ function oI() {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
function qA(g, A, Q) {
|
|
3788
3788
|
try {
|
|
3789
|
-
return typeof a.transpile_value == "function" ?
|
|
3789
|
+
return typeof a.transpile_value == "function" ? n(
|
|
3790
3790
|
a.transpile_value(g, A, Q)
|
|
3791
3791
|
) : JSON.parse(a.transpile(g, A, Q));
|
|
3792
3792
|
} catch (C) {
|
|
@@ -3796,16 +3796,16 @@ function qA(g, A, Q) {
|
|
|
3796
3796
|
function pA(g, A = "generic") {
|
|
3797
3797
|
try {
|
|
3798
3798
|
if (typeof a.parse_value == "function")
|
|
3799
|
-
return
|
|
3799
|
+
return n(a.parse_value(g, A));
|
|
3800
3800
|
const Q = JSON.parse(a.parse(g, A));
|
|
3801
3801
|
return Q.success && typeof Q.ast == "string" && (Q.ast = JSON.parse(Q.ast)), Q;
|
|
3802
3802
|
} catch (Q) {
|
|
3803
|
-
return
|
|
3803
|
+
return Mo("parse", Q);
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
3806
|
function PA(g, A = "generic") {
|
|
3807
3807
|
try {
|
|
3808
|
-
return typeof a.tokenize_value == "function" ?
|
|
3808
|
+
return typeof a.tokenize_value == "function" ? n(
|
|
3809
3809
|
a.tokenize_value(g, A)
|
|
3810
3810
|
) : JSON.parse(a.tokenize(g, A));
|
|
3811
3811
|
} catch (Q) {
|
|
@@ -3819,7 +3819,7 @@ function PA(g, A = "generic") {
|
|
|
3819
3819
|
function OA(g, A = "generic") {
|
|
3820
3820
|
try {
|
|
3821
3821
|
if (typeof a.generate_value == "function" && Array.isArray(g))
|
|
3822
|
-
return
|
|
3822
|
+
return n(
|
|
3823
3823
|
a.generate_value(g, A)
|
|
3824
3824
|
);
|
|
3825
3825
|
const Q = JSON.stringify(g);
|
|
@@ -3833,11 +3833,11 @@ function TA(g, A = "generic") {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
function jA(g, A = "generic", Q = {}) {
|
|
3835
3835
|
try {
|
|
3836
|
-
return typeof a.format_sql_with_options_value == "function" ?
|
|
3836
|
+
return typeof a.format_sql_with_options_value == "function" ? n(
|
|
3837
3837
|
a.format_sql_with_options_value(g, A, Q)
|
|
3838
3838
|
) : typeof a.format_sql_with_options == "function" ? JSON.parse(
|
|
3839
3839
|
a.format_sql_with_options(g, A, JSON.stringify(Q))
|
|
3840
|
-
) : typeof a.format_sql_value == "function" ?
|
|
3840
|
+
) : typeof a.format_sql_value == "function" ? n(
|
|
3841
3841
|
a.format_sql_value(g, A)
|
|
3842
3842
|
) : JSON.parse(a.format_sql(g, A));
|
|
3843
3843
|
} catch (C) {
|
|
@@ -3845,15 +3845,15 @@ function jA(g, A = "generic", Q = {}) {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
3847
|
function dA() {
|
|
3848
|
-
return typeof a.get_dialects_value == "function" ?
|
|
3848
|
+
return typeof a.get_dialects_value == "function" ? n(a.get_dialects_value()) : JSON.parse(a.get_dialects());
|
|
3849
3849
|
}
|
|
3850
|
-
function
|
|
3850
|
+
function ZA() {
|
|
3851
3851
|
return a.version();
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function VA(g, A = "generic", Q) {
|
|
3854
3854
|
try {
|
|
3855
3855
|
const C = Q ? JSON.stringify(Q) : "";
|
|
3856
|
-
return typeof a.annotate_types_value == "function" ?
|
|
3856
|
+
return typeof a.annotate_types_value == "function" ? n(
|
|
3857
3857
|
a.annotate_types_value(g, A, C)
|
|
3858
3858
|
) : typeof a.annotate_types == "function" ? JSON.parse(
|
|
3859
3859
|
a.annotate_types(g, A, C)
|
|
@@ -3930,16 +3930,16 @@ class u {
|
|
|
3930
3930
|
* Get library version.
|
|
3931
3931
|
*/
|
|
3932
3932
|
getVersion() {
|
|
3933
|
-
return
|
|
3933
|
+
return ZA();
|
|
3934
3934
|
}
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Parse SQL and annotate the AST with inferred type information.
|
|
3937
3937
|
*/
|
|
3938
3938
|
annotateTypes(A, Q = "generic", C) {
|
|
3939
|
-
return
|
|
3939
|
+
return VA(A, Q, C);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3942
|
+
const No = {
|
|
3943
3943
|
init: iI,
|
|
3944
3944
|
isInitialized: oI,
|
|
3945
3945
|
transpile: qA,
|
|
@@ -3947,9 +3947,9 @@ const Mo = {
|
|
|
3947
3947
|
tokenize: PA,
|
|
3948
3948
|
generate: OA,
|
|
3949
3949
|
format: TA,
|
|
3950
|
-
annotateTypes:
|
|
3950
|
+
annotateTypes: VA,
|
|
3951
3951
|
getDialects: dA,
|
|
3952
|
-
getVersion:
|
|
3952
|
+
getVersion: ZA,
|
|
3953
3953
|
lineage: II,
|
|
3954
3954
|
lineageWithSchema: QI,
|
|
3955
3955
|
getSourceTables: CI,
|
|
@@ -3976,7 +3976,7 @@ const Mo = {
|
|
|
3976
3976
|
abs: Pi,
|
|
3977
3977
|
alias: Di,
|
|
3978
3978
|
and: ii,
|
|
3979
|
-
annotateTypes:
|
|
3979
|
+
annotateTypes: VA,
|
|
3980
3980
|
ast: _w,
|
|
3981
3981
|
avg: yi,
|
|
3982
3982
|
boolean: LA,
|
|
@@ -3990,17 +3990,17 @@ const Mo = {
|
|
|
3990
3990
|
concatWs: si,
|
|
3991
3991
|
condition: Ci,
|
|
3992
3992
|
count: ki,
|
|
3993
|
-
countDistinct:
|
|
3994
|
-
currentDate:
|
|
3993
|
+
countDistinct: Mi,
|
|
3994
|
+
currentDate: ni,
|
|
3995
3995
|
currentTime: ei,
|
|
3996
3996
|
currentTimestamp: fi,
|
|
3997
|
-
default:
|
|
3997
|
+
default: No,
|
|
3998
3998
|
del: _i,
|
|
3999
3999
|
deleteFrom: AI,
|
|
4000
4000
|
denseRank: mi,
|
|
4001
4001
|
diff: BI,
|
|
4002
4002
|
except: Bo,
|
|
4003
|
-
exp:
|
|
4003
|
+
exp: ti,
|
|
4004
4004
|
extract: ui,
|
|
4005
4005
|
findAll: YA,
|
|
4006
4006
|
floor: Ti,
|
|
@@ -4012,8 +4012,8 @@ const Mo = {
|
|
|
4012
4012
|
getDialects: dA,
|
|
4013
4013
|
getInferredType: Pg,
|
|
4014
4014
|
getSourceTables: CI,
|
|
4015
|
-
getVersion:
|
|
4016
|
-
greatest:
|
|
4015
|
+
getVersion: ZA,
|
|
4016
|
+
greatest: xi,
|
|
4017
4017
|
hasChanges: EI,
|
|
4018
4018
|
ifNull: pi,
|
|
4019
4019
|
init: iI,
|
|
@@ -4026,14 +4026,14 @@ const Mo = {
|
|
|
4026
4026
|
isInitialized: oI,
|
|
4027
4027
|
isLiteral: jg,
|
|
4028
4028
|
isSelect: Og,
|
|
4029
|
-
least:
|
|
4029
|
+
least: Wi,
|
|
4030
4030
|
length: Si,
|
|
4031
4031
|
lineage: II,
|
|
4032
4032
|
lineageWithSchema: QI,
|
|
4033
4033
|
lit: gi,
|
|
4034
|
-
ln:
|
|
4034
|
+
ln: Vi,
|
|
4035
4035
|
lower: hi,
|
|
4036
|
-
ltrim:
|
|
4036
|
+
ltrim: Ji,
|
|
4037
4037
|
max: Gi,
|
|
4038
4038
|
mergeInto: $i,
|
|
4039
4039
|
min: Ki,
|
|
@@ -4043,22 +4043,22 @@ const Mo = {
|
|
|
4043
4043
|
parse: pA,
|
|
4044
4044
|
plan: wI,
|
|
4045
4045
|
power: di,
|
|
4046
|
-
rank:
|
|
4047
|
-
renameColumns:
|
|
4046
|
+
rank: ri,
|
|
4047
|
+
renameColumns: tg,
|
|
4048
4048
|
replace: Ri,
|
|
4049
4049
|
reverse: Ui,
|
|
4050
4050
|
round: Oi,
|
|
4051
|
-
rowNumber:
|
|
4052
|
-
rtrim:
|
|
4051
|
+
rowNumber: li,
|
|
4052
|
+
rtrim: Hi,
|
|
4053
4053
|
select: bi,
|
|
4054
|
-
sign:
|
|
4054
|
+
sign: zi,
|
|
4055
4055
|
sqlExpr: mg,
|
|
4056
4056
|
sqlNull: Ii,
|
|
4057
|
-
sqrt:
|
|
4058
|
-
star:
|
|
4057
|
+
sqrt: Zi,
|
|
4058
|
+
star: rg,
|
|
4059
4059
|
subquery: wi,
|
|
4060
4060
|
substring: Li,
|
|
4061
|
-
sum:
|
|
4061
|
+
sum: Ni,
|
|
4062
4062
|
table: Qi,
|
|
4063
4063
|
tokenize: PA,
|
|
4064
4064
|
transform: GA,
|
|
@@ -4070,7 +4070,7 @@ const Mo = {
|
|
|
4070
4070
|
upper: Yi,
|
|
4071
4071
|
validate: ko,
|
|
4072
4072
|
validateWithSchema: io,
|
|
4073
|
-
walk:
|
|
4073
|
+
walk: Z
|
|
4074
4074
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4075
4075
|
export {
|
|
4076
4076
|
RA as CaseBuilder,
|
|
@@ -4087,7 +4087,7 @@ export {
|
|
|
4087
4087
|
Pi as abs,
|
|
4088
4088
|
Di as alias,
|
|
4089
4089
|
ii as and,
|
|
4090
|
-
|
|
4090
|
+
VA as annotateTypes,
|
|
4091
4091
|
_w as ast,
|
|
4092
4092
|
yi as avg,
|
|
4093
4093
|
LA as boolean,
|
|
@@ -4100,8 +4100,8 @@ export {
|
|
|
4100
4100
|
si as concatWs,
|
|
4101
4101
|
Ci as condition,
|
|
4102
4102
|
ki as count,
|
|
4103
|
-
|
|
4104
|
-
|
|
4103
|
+
Mi as countDistinct,
|
|
4104
|
+
ni as currentDate,
|
|
4105
4105
|
ei as currentTime,
|
|
4106
4106
|
fi as currentTimestamp,
|
|
4107
4107
|
yo as default,
|
|
@@ -4109,7 +4109,7 @@ export {
|
|
|
4109
4109
|
AI as deleteFrom,
|
|
4110
4110
|
mi as denseRank,
|
|
4111
4111
|
Bo as except,
|
|
4112
|
-
|
|
4112
|
+
ti as exp,
|
|
4113
4113
|
ui as extract,
|
|
4114
4114
|
YA as findAll,
|
|
4115
4115
|
Ti as floor,
|
|
@@ -4120,8 +4120,8 @@ export {
|
|
|
4120
4120
|
eg as getColumns,
|
|
4121
4121
|
dA as getDialects,
|
|
4122
4122
|
Pg as getInferredType,
|
|
4123
|
-
|
|
4124
|
-
|
|
4123
|
+
ZA as getVersion,
|
|
4124
|
+
xi as greatest,
|
|
4125
4125
|
pi as ifNull,
|
|
4126
4126
|
iI as init,
|
|
4127
4127
|
Fi as initcap,
|
|
@@ -4133,12 +4133,12 @@ export {
|
|
|
4133
4133
|
oI as isInitialized,
|
|
4134
4134
|
jg as isLiteral,
|
|
4135
4135
|
Og as isSelect,
|
|
4136
|
-
|
|
4136
|
+
Wi as least,
|
|
4137
4137
|
Si as length,
|
|
4138
4138
|
gi as lit,
|
|
4139
|
-
|
|
4139
|
+
Vi as ln,
|
|
4140
4140
|
hi as lower,
|
|
4141
|
-
|
|
4141
|
+
Ji as ltrim,
|
|
4142
4142
|
Gi as max,
|
|
4143
4143
|
$i as mergeInto,
|
|
4144
4144
|
Ki as min,
|
|
@@ -4147,21 +4147,21 @@ export {
|
|
|
4147
4147
|
oi as or,
|
|
4148
4148
|
pA as parse,
|
|
4149
4149
|
di as power,
|
|
4150
|
-
|
|
4151
|
-
|
|
4150
|
+
ri as rank,
|
|
4151
|
+
tg as renameColumns,
|
|
4152
4152
|
Ri as replace,
|
|
4153
4153
|
Ui as reverse,
|
|
4154
4154
|
Oi as round,
|
|
4155
|
-
|
|
4156
|
-
|
|
4155
|
+
li as rowNumber,
|
|
4156
|
+
Hi as rtrim,
|
|
4157
4157
|
bi as select,
|
|
4158
|
-
|
|
4158
|
+
zi as sign,
|
|
4159
4159
|
mg as sqlExpr,
|
|
4160
4160
|
Ii as sqlNull,
|
|
4161
|
-
|
|
4162
|
-
|
|
4161
|
+
Zi as sqrt,
|
|
4162
|
+
rg as star,
|
|
4163
4163
|
Li as substring,
|
|
4164
|
-
|
|
4164
|
+
Ni as sum,
|
|
4165
4165
|
Qi as table,
|
|
4166
4166
|
GA as transform,
|
|
4167
4167
|
qA as transpile,
|
|
@@ -4172,5 +4172,5 @@ export {
|
|
|
4172
4172
|
Yi as upper,
|
|
4173
4173
|
ko as validate,
|
|
4174
4174
|
io as validateWithSchema,
|
|
4175
|
-
|
|
4175
|
+
Z as walk
|
|
4176
4176
|
};
|