@polyglot-sql/sdk 0.2.2 → 0.2.3
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 +966 -966
- 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
|
@@ -59,10 +59,10 @@ class BA {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
|
|
62
|
-
class
|
|
62
|
+
class b {
|
|
63
63
|
static __wrap(A) {
|
|
64
64
|
A = A >>> 0;
|
|
65
|
-
const B = Object.create(
|
|
65
|
+
const B = Object.create(b.prototype);
|
|
66
66
|
return B.__wbg_ptr = A, yA.register(B, B.__wbg_ptr, B), B;
|
|
67
67
|
}
|
|
68
68
|
__destroy_into_raw() {
|
|
@@ -81,9 +81,9 @@ class l {
|
|
|
81
81
|
try {
|
|
82
82
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
83
83
|
I.wasmcasebuilder_build_expr(C, this.__wbg_ptr);
|
|
84
|
-
var A =
|
|
84
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
85
85
|
if (Q)
|
|
86
|
-
throw
|
|
86
|
+
throw H(B);
|
|
87
87
|
return K.__wrap(A);
|
|
88
88
|
} finally {
|
|
89
89
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -112,10 +112,10 @@ class l {
|
|
|
112
112
|
try {
|
|
113
113
|
const M = I.__wbindgen_add_to_stack_pointer(-16);
|
|
114
114
|
I.wasmcasebuilder_to_sql(M, this.__wbg_ptr);
|
|
115
|
-
var Q =
|
|
115
|
+
var Q = o().getInt32(M + 0, !0), C = o().getInt32(M + 4, !0), E = o().getInt32(M + 8, !0), D = o().getInt32(M + 12, !0), w = Q, N = C;
|
|
116
116
|
if (D)
|
|
117
|
-
throw
|
|
118
|
-
return A =
|
|
117
|
+
throw w = 0, N = 0, H(E);
|
|
118
|
+
return A = w, B = N, q(w, N);
|
|
119
119
|
} finally {
|
|
120
120
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
121
121
|
}
|
|
@@ -129,11 +129,11 @@ class l {
|
|
|
129
129
|
a(A, K), a(B, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, B.__wbg_ptr);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
Symbol.dispose && (
|
|
133
|
-
class
|
|
132
|
+
Symbol.dispose && (b.prototype[Symbol.dispose] = b.prototype.free);
|
|
133
|
+
class oA {
|
|
134
134
|
__destroy_into_raw() {
|
|
135
135
|
const A = this.__wbg_ptr;
|
|
136
|
-
return this.__wbg_ptr = 0,
|
|
136
|
+
return this.__wbg_ptr = 0, mA.unregister(this), A;
|
|
137
137
|
}
|
|
138
138
|
free() {
|
|
139
139
|
const A = this.__destroy_into_raw();
|
|
@@ -147,10 +147,10 @@ class wA {
|
|
|
147
147
|
try {
|
|
148
148
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
149
149
|
I.wasmdeletebuilder_build(C, this.__wbg_ptr);
|
|
150
|
-
var A =
|
|
150
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
151
151
|
if (Q)
|
|
152
|
-
throw
|
|
153
|
-
return
|
|
152
|
+
throw H(B);
|
|
153
|
+
return H(A);
|
|
154
154
|
} finally {
|
|
155
155
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
156
156
|
}
|
|
@@ -161,7 +161,7 @@ class wA {
|
|
|
161
161
|
*/
|
|
162
162
|
constructor(A) {
|
|
163
163
|
const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmdeletebuilder_new(B, Q);
|
|
164
|
-
return this.__wbg_ptr = C >>> 0,
|
|
164
|
+
return this.__wbg_ptr = C >>> 0, mA.register(this, this.__wbg_ptr, this), this;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Generate SQL string for the given dialect.
|
|
@@ -173,10 +173,10 @@ class wA {
|
|
|
173
173
|
try {
|
|
174
174
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
175
175
|
I.wasmdeletebuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
176
|
-
var C =
|
|
177
|
-
if (
|
|
178
|
-
throw N = 0, M = 0,
|
|
179
|
-
return B = N, Q = M,
|
|
176
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
177
|
+
if (w)
|
|
178
|
+
throw N = 0, M = 0, H(D);
|
|
179
|
+
return B = N, Q = M, q(N, M);
|
|
180
180
|
} finally {
|
|
181
181
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
182
182
|
}
|
|
@@ -189,16 +189,16 @@ class wA {
|
|
|
189
189
|
a(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
Symbol.dispose && (
|
|
192
|
+
Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
|
|
193
193
|
class K {
|
|
194
194
|
static __wrap(A) {
|
|
195
195
|
A = A >>> 0;
|
|
196
196
|
const B = Object.create(K.prototype);
|
|
197
|
-
return B.__wbg_ptr = A,
|
|
197
|
+
return B.__wbg_ptr = A, lA.register(B, B.__wbg_ptr, B), B;
|
|
198
198
|
}
|
|
199
199
|
__destroy_into_raw() {
|
|
200
200
|
const A = this.__wbg_ptr;
|
|
201
|
-
return this.__wbg_ptr = 0,
|
|
201
|
+
return this.__wbg_ptr = 0, lA.unregister(this), A;
|
|
202
202
|
}
|
|
203
203
|
free() {
|
|
204
204
|
const A = this.__destroy_into_raw();
|
|
@@ -325,7 +325,7 @@ class K {
|
|
|
325
325
|
* @returns {WasmExpr}
|
|
326
326
|
*/
|
|
327
327
|
in_list(A) {
|
|
328
|
-
a(A,
|
|
328
|
+
a(A, Z);
|
|
329
329
|
const B = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
|
|
330
330
|
return K.__wrap(B);
|
|
331
331
|
}
|
|
@@ -409,7 +409,7 @@ class K {
|
|
|
409
409
|
* @returns {WasmExpr}
|
|
410
410
|
*/
|
|
411
411
|
not_in(A) {
|
|
412
|
-
a(A,
|
|
412
|
+
a(A, Z);
|
|
413
413
|
const B = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
|
|
414
414
|
return K.__wrap(B);
|
|
415
415
|
}
|
|
@@ -451,10 +451,10 @@ class K {
|
|
|
451
451
|
try {
|
|
452
452
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
453
453
|
I.wasmexpr_to_json(C, this.__wbg_ptr);
|
|
454
|
-
var A =
|
|
454
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
455
455
|
if (Q)
|
|
456
|
-
throw
|
|
457
|
-
return
|
|
456
|
+
throw H(B);
|
|
457
|
+
return H(A);
|
|
458
458
|
} finally {
|
|
459
459
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
460
460
|
}
|
|
@@ -468,10 +468,10 @@ class K {
|
|
|
468
468
|
try {
|
|
469
469
|
const M = I.__wbindgen_add_to_stack_pointer(-16);
|
|
470
470
|
I.wasmexpr_to_sql(M, this.__wbg_ptr);
|
|
471
|
-
var Q =
|
|
471
|
+
var Q = o().getInt32(M + 0, !0), C = o().getInt32(M + 4, !0), E = o().getInt32(M + 8, !0), D = o().getInt32(M + 12, !0), w = Q, N = C;
|
|
472
472
|
if (D)
|
|
473
|
-
throw
|
|
474
|
-
return A =
|
|
473
|
+
throw w = 0, N = 0, H(E);
|
|
474
|
+
return A = w, B = N, q(w, N);
|
|
475
475
|
} finally {
|
|
476
476
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
477
477
|
}
|
|
@@ -488,10 +488,10 @@ class K {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
|
|
491
|
-
class
|
|
491
|
+
class Z {
|
|
492
492
|
__destroy_into_raw() {
|
|
493
493
|
const A = this.__wbg_ptr;
|
|
494
|
-
return this.__wbg_ptr = 0,
|
|
494
|
+
return this.__wbg_ptr = 0, dA.unregister(this), A;
|
|
495
495
|
}
|
|
496
496
|
free() {
|
|
497
497
|
const A = this.__destroy_into_raw();
|
|
@@ -509,7 +509,7 @@ class O {
|
|
|
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, dA.register(this, this.__wbg_ptr, this), this;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
515
|
* Push an expression.
|
|
@@ -555,11 +555,11 @@ class O {
|
|
|
555
555
|
I.wasmexprarray_push_str(this.__wbg_ptr, B, Q);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
Symbol.dispose && (
|
|
559
|
-
class
|
|
558
|
+
Symbol.dispose && (Z.prototype[Symbol.dispose] = Z.prototype.free);
|
|
559
|
+
class wA {
|
|
560
560
|
__destroy_into_raw() {
|
|
561
561
|
const A = this.__wbg_ptr;
|
|
562
|
-
return this.__wbg_ptr = 0,
|
|
562
|
+
return this.__wbg_ptr = 0, PA.unregister(this), A;
|
|
563
563
|
}
|
|
564
564
|
free() {
|
|
565
565
|
const A = this.__destroy_into_raw();
|
|
@@ -573,10 +573,10 @@ class oA {
|
|
|
573
573
|
try {
|
|
574
574
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
575
575
|
I.wasminsertbuilder_build(C, this.__wbg_ptr);
|
|
576
|
-
var A =
|
|
576
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
577
577
|
if (Q)
|
|
578
|
-
throw
|
|
579
|
-
return
|
|
578
|
+
throw H(B);
|
|
579
|
+
return H(A);
|
|
580
580
|
} finally {
|
|
581
581
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
582
582
|
}
|
|
@@ -586,7 +586,7 @@ class oA {
|
|
|
586
586
|
* @param {string[]} cols
|
|
587
587
|
*/
|
|
588
588
|
columns(A) {
|
|
589
|
-
const B =
|
|
589
|
+
const B = qA(A, I.__wbindgen_export), Q = G;
|
|
590
590
|
I.wasminsertbuilder_columns(this.__wbg_ptr, B, Q);
|
|
591
591
|
}
|
|
592
592
|
/**
|
|
@@ -595,7 +595,7 @@ class oA {
|
|
|
595
595
|
*/
|
|
596
596
|
constructor(A) {
|
|
597
597
|
const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasminsertbuilder_new(B, Q);
|
|
598
|
-
return this.__wbg_ptr = C >>> 0,
|
|
598
|
+
return this.__wbg_ptr = C >>> 0, PA.register(this, this.__wbg_ptr, this), this;
|
|
599
599
|
}
|
|
600
600
|
/**
|
|
601
601
|
* Set the source query for INSERT ... SELECT.
|
|
@@ -604,10 +604,10 @@ class oA {
|
|
|
604
604
|
query(A) {
|
|
605
605
|
try {
|
|
606
606
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
607
|
-
a(A,
|
|
608
|
-
var B =
|
|
607
|
+
a(A, x), I.wasminsertbuilder_query(C, this.__wbg_ptr, A.__wbg_ptr);
|
|
608
|
+
var B = o().getInt32(C + 0, !0), Q = o().getInt32(C + 4, !0);
|
|
609
609
|
if (Q)
|
|
610
|
-
throw
|
|
610
|
+
throw H(B);
|
|
611
611
|
} finally {
|
|
612
612
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
613
613
|
}
|
|
@@ -622,10 +622,10 @@ class oA {
|
|
|
622
622
|
try {
|
|
623
623
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
624
624
|
I.wasminsertbuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
625
|
-
var C =
|
|
626
|
-
if (
|
|
627
|
-
throw N = 0, M = 0,
|
|
628
|
-
return B = N, Q = M,
|
|
625
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
626
|
+
if (w)
|
|
627
|
+
throw N = 0, M = 0, H(D);
|
|
628
|
+
return B = N, Q = M, q(N, M);
|
|
629
629
|
} finally {
|
|
630
630
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
631
631
|
}
|
|
@@ -635,10 +635,10 @@ class oA {
|
|
|
635
635
|
* @param {WasmExprArray} vals
|
|
636
636
|
*/
|
|
637
637
|
values(A) {
|
|
638
|
-
a(A,
|
|
638
|
+
a(A, Z), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
Symbol.dispose && (
|
|
641
|
+
Symbol.dispose && (wA.prototype[Symbol.dispose] = wA.prototype.free);
|
|
642
642
|
class GA {
|
|
643
643
|
__destroy_into_raw() {
|
|
644
644
|
const A = this.__wbg_ptr;
|
|
@@ -656,10 +656,10 @@ class GA {
|
|
|
656
656
|
try {
|
|
657
657
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
658
658
|
I.wasmmergebuilder_build(C, this.__wbg_ptr);
|
|
659
|
-
var A =
|
|
659
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
660
660
|
if (Q)
|
|
661
|
-
throw
|
|
662
|
-
return
|
|
661
|
+
throw H(B);
|
|
662
|
+
return H(A);
|
|
663
663
|
} finally {
|
|
664
664
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
665
665
|
}
|
|
@@ -682,10 +682,10 @@ class GA {
|
|
|
682
682
|
try {
|
|
683
683
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
684
684
|
I.wasmmergebuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
685
|
-
var C =
|
|
686
|
-
if (
|
|
687
|
-
throw N = 0, M = 0,
|
|
688
|
-
return B = N, Q = M,
|
|
685
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
686
|
+
if (w)
|
|
687
|
+
throw N = 0, M = 0, H(D);
|
|
688
|
+
return B = N, Q = M, q(N, M);
|
|
689
689
|
} finally {
|
|
690
690
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
691
691
|
}
|
|
@@ -718,15 +718,15 @@ class GA {
|
|
|
718
718
|
* @param {WasmExprArray} values
|
|
719
719
|
*/
|
|
720
720
|
when_not_matched_insert(A, B) {
|
|
721
|
-
const Q =
|
|
722
|
-
a(B,
|
|
721
|
+
const Q = qA(A, I.__wbindgen_export), C = G;
|
|
722
|
+
a(B, Z), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, Q, C, B.__wbg_ptr);
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
Symbol.dispose && (GA.prototype[Symbol.dispose] = GA.prototype.free);
|
|
726
|
-
class
|
|
726
|
+
class x {
|
|
727
727
|
__destroy_into_raw() {
|
|
728
728
|
const A = this.__wbg_ptr;
|
|
729
|
-
return this.__wbg_ptr = 0,
|
|
729
|
+
return this.__wbg_ptr = 0, fA.unregister(this), A;
|
|
730
730
|
}
|
|
731
731
|
free() {
|
|
732
732
|
const A = this.__destroy_into_raw();
|
|
@@ -740,10 +740,10 @@ class T {
|
|
|
740
740
|
try {
|
|
741
741
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
742
742
|
I.wasmselectbuilder_build(C, this.__wbg_ptr);
|
|
743
|
-
var A =
|
|
743
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
744
744
|
if (Q)
|
|
745
|
-
throw
|
|
746
|
-
return
|
|
745
|
+
throw H(B);
|
|
746
|
+
return H(A);
|
|
747
747
|
} finally {
|
|
748
748
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
749
749
|
}
|
|
@@ -763,12 +763,12 @@ class T {
|
|
|
763
763
|
*/
|
|
764
764
|
ctas(A) {
|
|
765
765
|
try {
|
|
766
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
767
|
-
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D,
|
|
768
|
-
var B =
|
|
766
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
767
|
+
I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, w);
|
|
768
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
769
769
|
if (C)
|
|
770
|
-
throw
|
|
771
|
-
return
|
|
770
|
+
throw H(Q);
|
|
771
|
+
return H(B);
|
|
772
772
|
} finally {
|
|
773
773
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
774
774
|
}
|
|
@@ -782,12 +782,12 @@ class T {
|
|
|
782
782
|
ctas_sql(A, B) {
|
|
783
783
|
let Q, C;
|
|
784
784
|
try {
|
|
785
|
-
const y = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
786
|
-
I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr, h,
|
|
787
|
-
var E =
|
|
785
|
+
const y = I.__wbindgen_add_to_stack_pointer(-16), h = k(A, I.__wbindgen_export, I.__wbindgen_export2), s = G, j = k(B, I.__wbindgen_export, I.__wbindgen_export2), f = G;
|
|
786
|
+
I.wasmselectbuilder_ctas_sql(y, this.__wbg_ptr, h, s, j, f);
|
|
787
|
+
var E = o().getInt32(y + 0, !0), D = o().getInt32(y + 4, !0), w = o().getInt32(y + 8, !0), N = o().getInt32(y + 12, !0), M = E, J = D;
|
|
788
788
|
if (N)
|
|
789
|
-
throw M = 0, J = 0,
|
|
790
|
-
return Q = M, C = J,
|
|
789
|
+
throw M = 0, J = 0, H(w);
|
|
790
|
+
return Q = M, C = J, q(M, J);
|
|
791
791
|
} finally {
|
|
792
792
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
793
793
|
}
|
|
@@ -806,11 +806,11 @@ class T {
|
|
|
806
806
|
except_(A) {
|
|
807
807
|
try {
|
|
808
808
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
809
|
-
a(A,
|
|
810
|
-
var B =
|
|
809
|
+
a(A, x), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
810
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
811
811
|
if (C)
|
|
812
|
-
throw
|
|
813
|
-
return
|
|
812
|
+
throw H(Q);
|
|
813
|
+
return m.__wrap(B);
|
|
814
814
|
} finally {
|
|
815
815
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
816
816
|
}
|
|
@@ -841,7 +841,7 @@ class T {
|
|
|
841
841
|
* @param {WasmExprArray} cols
|
|
842
842
|
*/
|
|
843
843
|
group_by_cols(A) {
|
|
844
|
-
a(A,
|
|
844
|
+
a(A, Z), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
|
|
845
845
|
}
|
|
846
846
|
/**
|
|
847
847
|
* Set the HAVING clause.
|
|
@@ -866,11 +866,11 @@ class T {
|
|
|
866
866
|
intersect(A) {
|
|
867
867
|
try {
|
|
868
868
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
869
|
-
a(A,
|
|
870
|
-
var B =
|
|
869
|
+
a(A, x), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
870
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
871
871
|
if (C)
|
|
872
|
-
throw
|
|
873
|
-
return
|
|
872
|
+
throw H(Q);
|
|
873
|
+
return m.__wrap(B);
|
|
874
874
|
} finally {
|
|
875
875
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
876
876
|
}
|
|
@@ -892,8 +892,8 @@ class T {
|
|
|
892
892
|
*/
|
|
893
893
|
lateral_view(A, B, Q) {
|
|
894
894
|
a(A, K);
|
|
895
|
-
const C = k(B, I.__wbindgen_export, I.__wbindgen_export2), E = G, D =
|
|
896
|
-
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, C, E, D,
|
|
895
|
+
const C = k(B, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = qA(Q, I.__wbindgen_export), w = G;
|
|
896
|
+
I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, C, E, D, w);
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
899
899
|
* Add a LEFT JOIN.
|
|
@@ -916,7 +916,7 @@ class T {
|
|
|
916
916
|
*/
|
|
917
917
|
constructor() {
|
|
918
918
|
const A = I.wasmselectbuilder_new();
|
|
919
|
-
return this.__wbg_ptr = A >>> 0,
|
|
919
|
+
return this.__wbg_ptr = A >>> 0, fA.register(this, this.__wbg_ptr, this), this;
|
|
920
920
|
}
|
|
921
921
|
/**
|
|
922
922
|
* Set the OFFSET clause.
|
|
@@ -930,7 +930,7 @@ class T {
|
|
|
930
930
|
* @param {WasmExprArray} exprs
|
|
931
931
|
*/
|
|
932
932
|
order_by_exprs(A) {
|
|
933
|
-
a(A,
|
|
933
|
+
a(A, Z), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
934
934
|
}
|
|
935
935
|
/**
|
|
936
936
|
* Set the QUALIFY clause.
|
|
@@ -968,7 +968,7 @@ class T {
|
|
|
968
968
|
* @param {WasmExprArray} exprs
|
|
969
969
|
*/
|
|
970
970
|
select_exprs(A) {
|
|
971
|
-
a(A,
|
|
971
|
+
a(A, Z), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
972
972
|
}
|
|
973
973
|
/**
|
|
974
974
|
* Add a star (*) to the SELECT list.
|
|
@@ -981,7 +981,7 @@ class T {
|
|
|
981
981
|
* @param {WasmExprArray} exprs
|
|
982
982
|
*/
|
|
983
983
|
sort_by_exprs(A) {
|
|
984
|
-
a(A,
|
|
984
|
+
a(A, Z), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
985
985
|
}
|
|
986
986
|
/**
|
|
987
987
|
* Generate SQL string for the given dialect.
|
|
@@ -993,10 +993,10 @@ class T {
|
|
|
993
993
|
try {
|
|
994
994
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
995
995
|
I.wasmselectbuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
996
|
-
var C =
|
|
997
|
-
if (
|
|
998
|
-
throw N = 0, M = 0,
|
|
999
|
-
return B = N, Q = M,
|
|
996
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
997
|
+
if (w)
|
|
998
|
+
throw N = 0, M = 0, H(D);
|
|
999
|
+
return B = N, Q = M, q(N, M);
|
|
1000
1000
|
} finally {
|
|
1001
1001
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1002
1002
|
}
|
|
@@ -1009,11 +1009,11 @@ class T {
|
|
|
1009
1009
|
union(A) {
|
|
1010
1010
|
try {
|
|
1011
1011
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1012
|
-
a(A,
|
|
1013
|
-
var B =
|
|
1012
|
+
a(A, x), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1013
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
1014
1014
|
if (C)
|
|
1015
|
-
throw
|
|
1016
|
-
return
|
|
1015
|
+
throw H(Q);
|
|
1016
|
+
return m.__wrap(B);
|
|
1017
1017
|
} finally {
|
|
1018
1018
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1019
1019
|
}
|
|
@@ -1026,11 +1026,11 @@ class T {
|
|
|
1026
1026
|
union_all(A) {
|
|
1027
1027
|
try {
|
|
1028
1028
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1029
|
-
a(A,
|
|
1030
|
-
var B =
|
|
1029
|
+
a(A, x), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
|
|
1030
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
1031
1031
|
if (C)
|
|
1032
|
-
throw
|
|
1033
|
-
return
|
|
1032
|
+
throw H(Q);
|
|
1033
|
+
return m.__wrap(B);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1036
1036
|
}
|
|
@@ -1057,26 +1057,26 @@ class T {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
window(A, B) {
|
|
1059
1059
|
try {
|
|
1060
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1061
|
-
a(B, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D,
|
|
1062
|
-
var Q =
|
|
1060
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(A, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1061
|
+
a(B, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, w, B.__wbg_ptr);
|
|
1062
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1063
1063
|
if (C)
|
|
1064
|
-
throw
|
|
1064
|
+
throw H(Q);
|
|
1065
1065
|
} finally {
|
|
1066
1066
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
Symbol.dispose && (
|
|
1071
|
-
class
|
|
1070
|
+
Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
|
|
1071
|
+
class m {
|
|
1072
1072
|
static __wrap(A) {
|
|
1073
1073
|
A = A >>> 0;
|
|
1074
|
-
const B = Object.create(
|
|
1075
|
-
return B.__wbg_ptr = A,
|
|
1074
|
+
const B = Object.create(m.prototype);
|
|
1075
|
+
return B.__wbg_ptr = A, eA.register(B, B.__wbg_ptr, B), B;
|
|
1076
1076
|
}
|
|
1077
1077
|
__destroy_into_raw() {
|
|
1078
1078
|
const A = this.__wbg_ptr;
|
|
1079
|
-
return this.__wbg_ptr = 0,
|
|
1079
|
+
return this.__wbg_ptr = 0, eA.unregister(this), A;
|
|
1080
1080
|
}
|
|
1081
1081
|
free() {
|
|
1082
1082
|
const A = this.__destroy_into_raw();
|
|
@@ -1090,10 +1090,10 @@ class d {
|
|
|
1090
1090
|
try {
|
|
1091
1091
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1092
1092
|
I.wasmsetopbuilder_build(C, this.__wbg_ptr);
|
|
1093
|
-
var A =
|
|
1093
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
1094
1094
|
if (Q)
|
|
1095
|
-
throw
|
|
1096
|
-
return
|
|
1095
|
+
throw H(B);
|
|
1096
|
+
return H(A);
|
|
1097
1097
|
} finally {
|
|
1098
1098
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1099
1099
|
}
|
|
@@ -1117,7 +1117,7 @@ class d {
|
|
|
1117
1117
|
* @param {WasmExprArray} exprs
|
|
1118
1118
|
*/
|
|
1119
1119
|
order_by_exprs(A) {
|
|
1120
|
-
a(A,
|
|
1120
|
+
a(A, Z), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
|
|
1121
1121
|
}
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Generate SQL string for the given dialect.
|
|
@@ -1129,20 +1129,20 @@ class d {
|
|
|
1129
1129
|
try {
|
|
1130
1130
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
1131
1131
|
I.wasmsetopbuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
1132
|
-
var C =
|
|
1133
|
-
if (
|
|
1134
|
-
throw N = 0, M = 0,
|
|
1135
|
-
return B = N, Q = M,
|
|
1132
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
1133
|
+
if (w)
|
|
1134
|
+
throw N = 0, M = 0, H(D);
|
|
1135
|
+
return B = N, Q = M, q(N, M);
|
|
1136
1136
|
} finally {
|
|
1137
1137
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
Symbol.dispose && (
|
|
1141
|
+
Symbol.dispose && (m.prototype[Symbol.dispose] = m.prototype.free);
|
|
1142
1142
|
class kA {
|
|
1143
1143
|
__destroy_into_raw() {
|
|
1144
1144
|
const A = this.__wbg_ptr;
|
|
1145
|
-
return this.__wbg_ptr = 0,
|
|
1145
|
+
return this.__wbg_ptr = 0, bA.unregister(this), A;
|
|
1146
1146
|
}
|
|
1147
1147
|
free() {
|
|
1148
1148
|
const A = this.__destroy_into_raw();
|
|
@@ -1156,10 +1156,10 @@ class kA {
|
|
|
1156
1156
|
try {
|
|
1157
1157
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1158
1158
|
I.wasmupdatebuilder_build(C, this.__wbg_ptr);
|
|
1159
|
-
var A =
|
|
1159
|
+
var A = o().getInt32(C + 0, !0), B = o().getInt32(C + 4, !0), Q = o().getInt32(C + 8, !0);
|
|
1160
1160
|
if (Q)
|
|
1161
|
-
throw
|
|
1162
|
-
return
|
|
1161
|
+
throw H(B);
|
|
1162
|
+
return H(A);
|
|
1163
1163
|
} finally {
|
|
1164
1164
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1165
1165
|
}
|
|
@@ -1178,7 +1178,7 @@ class kA {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
constructor(A) {
|
|
1180
1180
|
const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasmupdatebuilder_new(B, Q);
|
|
1181
|
-
return this.__wbg_ptr = C >>> 0,
|
|
1181
|
+
return this.__wbg_ptr = C >>> 0, bA.register(this, this.__wbg_ptr, this), this;
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Add a SET column = value assignment.
|
|
@@ -1199,10 +1199,10 @@ class kA {
|
|
|
1199
1199
|
try {
|
|
1200
1200
|
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G;
|
|
1201
1201
|
I.wasmupdatebuilder_to_sql(J, this.__wbg_ptr, y, h);
|
|
1202
|
-
var C =
|
|
1203
|
-
if (
|
|
1204
|
-
throw N = 0, M = 0,
|
|
1205
|
-
return B = N, Q = M,
|
|
1202
|
+
var C = o().getInt32(J + 0, !0), E = o().getInt32(J + 4, !0), D = o().getInt32(J + 8, !0), w = o().getInt32(J + 12, !0), N = C, M = E;
|
|
1203
|
+
if (w)
|
|
1204
|
+
throw N = 0, M = 0, H(D);
|
|
1205
|
+
return B = N, Q = M, q(N, M);
|
|
1206
1206
|
} finally {
|
|
1207
1207
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1208
1208
|
}
|
|
@@ -1237,39 +1237,39 @@ class QA {
|
|
|
1237
1237
|
* @param {WasmExprArray} exprs
|
|
1238
1238
|
*/
|
|
1239
1239
|
order_by(A) {
|
|
1240
|
-
a(A,
|
|
1240
|
+
a(A, Z), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1241
1241
|
}
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Set the PARTITION BY expressions.
|
|
1244
1244
|
* @param {WasmExprArray} exprs
|
|
1245
1245
|
*/
|
|
1246
1246
|
partition_by(A) {
|
|
1247
|
-
a(A,
|
|
1247
|
+
a(A, Z), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
1251
1251
|
function MI(g, A, B) {
|
|
1252
1252
|
let Q, C;
|
|
1253
1253
|
try {
|
|
1254
|
-
const
|
|
1255
|
-
I.annotate_types(
|
|
1256
|
-
var E =
|
|
1257
|
-
return Q = E, C = D,
|
|
1254
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1255
|
+
I.annotate_types(w, N, M, J, y, h, s);
|
|
1256
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1257
|
+
return Q = E, C = D, q(E, D);
|
|
1258
1258
|
} finally {
|
|
1259
1259
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
function KI(g, A, B) {
|
|
1263
|
-
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G,
|
|
1264
|
-
return
|
|
1263
|
+
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, w = k(B, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = I.annotate_types_value(Q, C, E, D, w, N);
|
|
1264
|
+
return H(M);
|
|
1265
1265
|
}
|
|
1266
1266
|
function uA(g, A, B) {
|
|
1267
1267
|
let Q, C;
|
|
1268
1268
|
try {
|
|
1269
|
-
const
|
|
1270
|
-
I.ast_add_where(
|
|
1271
|
-
var E =
|
|
1272
|
-
return Q = E, C = D,
|
|
1269
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G;
|
|
1270
|
+
I.ast_add_where(w, N, M, J, y, B);
|
|
1271
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1272
|
+
return Q = E, C = D, q(E, D);
|
|
1273
1273
|
} finally {
|
|
1274
1274
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1275
1275
|
}
|
|
@@ -1277,10 +1277,10 @@ function uA(g, A, B) {
|
|
|
1277
1277
|
function XA(g) {
|
|
1278
1278
|
let A, B;
|
|
1279
1279
|
try {
|
|
1280
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1281
|
-
I.ast_get_aggregate_functions(E, D,
|
|
1282
|
-
var Q =
|
|
1283
|
-
return A = Q, B = C,
|
|
1280
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1281
|
+
I.ast_get_aggregate_functions(E, D, w);
|
|
1282
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1283
|
+
return A = Q, B = C, q(Q, C);
|
|
1284
1284
|
} finally {
|
|
1285
1285
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1286
1286
|
}
|
|
@@ -1288,10 +1288,10 @@ function XA(g) {
|
|
|
1288
1288
|
function vA(g) {
|
|
1289
1289
|
let A, B;
|
|
1290
1290
|
try {
|
|
1291
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1292
|
-
I.ast_get_column_names(E, D,
|
|
1293
|
-
var Q =
|
|
1294
|
-
return A = Q, B = C,
|
|
1291
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1292
|
+
I.ast_get_column_names(E, D, w);
|
|
1293
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1294
|
+
return A = Q, B = C, q(Q, C);
|
|
1295
1295
|
} finally {
|
|
1296
1296
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1297
1297
|
}
|
|
@@ -1299,10 +1299,10 @@ function vA(g) {
|
|
|
1299
1299
|
function _A(g) {
|
|
1300
1300
|
let A, B;
|
|
1301
1301
|
try {
|
|
1302
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1303
|
-
I.ast_get_functions(E, D,
|
|
1304
|
-
var Q =
|
|
1305
|
-
return A = Q, B = C,
|
|
1302
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1303
|
+
I.ast_get_functions(E, D, w);
|
|
1304
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1305
|
+
return A = Q, B = C, q(Q, C);
|
|
1306
1306
|
} finally {
|
|
1307
1307
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1308
1308
|
}
|
|
@@ -1310,10 +1310,10 @@ function _A(g) {
|
|
|
1310
1310
|
function $A(g) {
|
|
1311
1311
|
let A, B;
|
|
1312
1312
|
try {
|
|
1313
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1314
|
-
I.ast_get_literals(E, D,
|
|
1315
|
-
var Q =
|
|
1316
|
-
return A = Q, B = C,
|
|
1313
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1314
|
+
I.ast_get_literals(E, D, w);
|
|
1315
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1316
|
+
return A = Q, B = C, q(Q, C);
|
|
1317
1317
|
} finally {
|
|
1318
1318
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1319
1319
|
}
|
|
@@ -1321,10 +1321,10 @@ function $A(g) {
|
|
|
1321
1321
|
function Ag(g) {
|
|
1322
1322
|
let A, B;
|
|
1323
1323
|
try {
|
|
1324
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1325
|
-
I.ast_get_subqueries(E, D,
|
|
1326
|
-
var Q =
|
|
1327
|
-
return A = Q, B = C,
|
|
1324
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1325
|
+
I.ast_get_subqueries(E, D, w);
|
|
1326
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1327
|
+
return A = Q, B = C, q(Q, C);
|
|
1328
1328
|
} finally {
|
|
1329
1329
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1330
1330
|
}
|
|
@@ -1332,10 +1332,10 @@ function Ag(g) {
|
|
|
1332
1332
|
function gg(g) {
|
|
1333
1333
|
let A, B;
|
|
1334
1334
|
try {
|
|
1335
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1336
|
-
I.ast_get_table_names(E, D,
|
|
1337
|
-
var Q =
|
|
1338
|
-
return A = Q, B = C,
|
|
1335
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1336
|
+
I.ast_get_table_names(E, D, w);
|
|
1337
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1338
|
+
return A = Q, B = C, q(Q, C);
|
|
1339
1339
|
} finally {
|
|
1340
1340
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1341
1341
|
}
|
|
@@ -1343,10 +1343,10 @@ function gg(g) {
|
|
|
1343
1343
|
function Ig(g) {
|
|
1344
1344
|
let A, B;
|
|
1345
1345
|
try {
|
|
1346
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1347
|
-
I.ast_get_window_functions(E, D,
|
|
1348
|
-
var Q =
|
|
1349
|
-
return A = Q, B = C,
|
|
1346
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1347
|
+
I.ast_get_window_functions(E, D, w);
|
|
1348
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1349
|
+
return A = Q, B = C, q(Q, C);
|
|
1350
1350
|
} finally {
|
|
1351
1351
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1352
1352
|
}
|
|
@@ -1354,10 +1354,10 @@ function Ig(g) {
|
|
|
1354
1354
|
function Bg(g) {
|
|
1355
1355
|
let A, B;
|
|
1356
1356
|
try {
|
|
1357
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1358
|
-
I.ast_node_count(E, D,
|
|
1359
|
-
var Q =
|
|
1360
|
-
return A = Q, B = C,
|
|
1357
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1358
|
+
I.ast_node_count(E, D, w);
|
|
1359
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1360
|
+
return A = Q, B = C, q(Q, C);
|
|
1361
1361
|
} finally {
|
|
1362
1362
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1363
1363
|
}
|
|
@@ -1365,10 +1365,10 @@ function Bg(g) {
|
|
|
1365
1365
|
function Qg(g, A) {
|
|
1366
1366
|
let B, Q;
|
|
1367
1367
|
try {
|
|
1368
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1369
|
-
I.ast_qualify_columns(D,
|
|
1370
|
-
var C =
|
|
1371
|
-
return B = C, Q = E,
|
|
1368
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1369
|
+
I.ast_qualify_columns(D, w, N, M, J);
|
|
1370
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1371
|
+
return B = C, Q = E, q(C, E);
|
|
1372
1372
|
} finally {
|
|
1373
1373
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1374
1374
|
}
|
|
@@ -1376,10 +1376,10 @@ function Qg(g, A) {
|
|
|
1376
1376
|
function Cg(g) {
|
|
1377
1377
|
let A, B;
|
|
1378
1378
|
try {
|
|
1379
|
-
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1380
|
-
I.ast_remove_where(E, D,
|
|
1381
|
-
var Q =
|
|
1382
|
-
return A = Q, B = C,
|
|
1379
|
+
const E = I.__wbindgen_add_to_stack_pointer(-16), D = k(g, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1380
|
+
I.ast_remove_where(E, D, w);
|
|
1381
|
+
var Q = o().getInt32(E + 0, !0), C = o().getInt32(E + 4, !0);
|
|
1382
|
+
return A = Q, B = C, q(Q, C);
|
|
1383
1383
|
} finally {
|
|
1384
1384
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, B, 1);
|
|
1385
1385
|
}
|
|
@@ -1387,10 +1387,10 @@ function Cg(g) {
|
|
|
1387
1387
|
function Eg(g, A) {
|
|
1388
1388
|
let B, Q;
|
|
1389
1389
|
try {
|
|
1390
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1391
|
-
I.ast_rename_columns(D,
|
|
1392
|
-
var C =
|
|
1393
|
-
return B = C, Q = E,
|
|
1390
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1391
|
+
I.ast_rename_columns(D, w, N, M, J);
|
|
1392
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1393
|
+
return B = C, Q = E, q(C, E);
|
|
1394
1394
|
} finally {
|
|
1395
1395
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1396
1396
|
}
|
|
@@ -1398,10 +1398,10 @@ function Eg(g, A) {
|
|
|
1398
1398
|
function Dg(g, A) {
|
|
1399
1399
|
let B, Q;
|
|
1400
1400
|
try {
|
|
1401
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1402
|
-
I.ast_rename_tables(D,
|
|
1403
|
-
var C =
|
|
1404
|
-
return B = C, Q = E,
|
|
1401
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1402
|
+
I.ast_rename_tables(D, w, N, M, J);
|
|
1403
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1404
|
+
return B = C, Q = E, q(C, E);
|
|
1405
1405
|
} finally {
|
|
1406
1406
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1407
1407
|
}
|
|
@@ -1409,103 +1409,103 @@ function Dg(g, A) {
|
|
|
1409
1409
|
function ig(g, A) {
|
|
1410
1410
|
let B, Q;
|
|
1411
1411
|
try {
|
|
1412
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1413
|
-
I.ast_set_distinct(D,
|
|
1414
|
-
var C =
|
|
1415
|
-
return B = C, Q = E,
|
|
1412
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G;
|
|
1413
|
+
I.ast_set_distinct(D, w, N, A);
|
|
1414
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1415
|
+
return B = C, Q = E, q(C, E);
|
|
1416
1416
|
} finally {
|
|
1417
1417
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function og(g, A) {
|
|
1421
1421
|
let B, Q;
|
|
1422
1422
|
try {
|
|
1423
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1424
|
-
I.ast_set_limit(D,
|
|
1425
|
-
var C =
|
|
1426
|
-
return B = C, Q = E,
|
|
1423
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G;
|
|
1424
|
+
I.ast_set_limit(D, w, N, A);
|
|
1425
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1426
|
+
return B = C, Q = E, q(C, E);
|
|
1427
1427
|
} finally {
|
|
1428
1428
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1432
|
-
let D,
|
|
1431
|
+
function wg(g, A, B, Q, C, E) {
|
|
1432
|
+
let D, w;
|
|
1433
1433
|
try {
|
|
1434
|
-
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(g, I.__wbindgen_export, I.__wbindgen_export2), h = G,
|
|
1435
|
-
I.diff_sql(J, y, h,
|
|
1436
|
-
var N =
|
|
1437
|
-
return D = N,
|
|
1434
|
+
const J = I.__wbindgen_add_to_stack_pointer(-16), y = k(g, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = k(A, I.__wbindgen_export, I.__wbindgen_export2), j = G, f = k(B, I.__wbindgen_export, I.__wbindgen_export2), X = G;
|
|
1435
|
+
I.diff_sql(J, y, h, s, j, f, X, Q, C, E);
|
|
1436
|
+
var N = o().getInt32(J + 0, !0), M = o().getInt32(J + 4, !0);
|
|
1437
|
+
return D = N, w = M, q(N, M);
|
|
1438
1438
|
} finally {
|
|
1439
|
-
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D,
|
|
1439
|
+
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, w, 1);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
function JI(g, A) {
|
|
1443
1443
|
let B, Q;
|
|
1444
1444
|
try {
|
|
1445
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1446
|
-
I.format_sql(D,
|
|
1447
|
-
var C =
|
|
1448
|
-
return B = C, Q = E,
|
|
1445
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1446
|
+
I.format_sql(D, w, N, M, J);
|
|
1447
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1448
|
+
return B = C, Q = E, q(C, E);
|
|
1449
1449
|
} finally {
|
|
1450
1450
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
1453
|
function YI(g, A) {
|
|
1454
1454
|
const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.format_sql_value(B, Q, C, E);
|
|
1455
|
-
return
|
|
1455
|
+
return H(D);
|
|
1456
1456
|
}
|
|
1457
1457
|
function aI(g, A, B) {
|
|
1458
1458
|
let Q, C;
|
|
1459
1459
|
try {
|
|
1460
|
-
const
|
|
1461
|
-
I.format_sql_with_options(
|
|
1462
|
-
var E =
|
|
1463
|
-
return Q = E, C = D,
|
|
1460
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1461
|
+
I.format_sql_with_options(w, N, M, J, y, h, s);
|
|
1462
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1463
|
+
return Q = E, C = D, q(E, D);
|
|
1464
1464
|
} finally {
|
|
1465
1465
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function yI(g, A, B) {
|
|
1469
|
-
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G,
|
|
1470
|
-
return
|
|
1469
|
+
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, w = I.format_sql_with_options_value(Q, C, E, D, c(B));
|
|
1470
|
+
return H(w);
|
|
1471
1471
|
}
|
|
1472
1472
|
function RI(g, A) {
|
|
1473
1473
|
let B, Q;
|
|
1474
1474
|
try {
|
|
1475
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1476
|
-
I.generate(D,
|
|
1477
|
-
var C =
|
|
1478
|
-
return B = C, Q = E,
|
|
1475
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1476
|
+
I.generate(D, w, N, M, J);
|
|
1477
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1478
|
+
return B = C, Q = E, q(C, E);
|
|
1479
1479
|
} finally {
|
|
1480
1480
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
function FI(g, A) {
|
|
1484
1484
|
const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.generate_value(c(g), B, Q);
|
|
1485
|
-
return
|
|
1485
|
+
return H(C);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function UI() {
|
|
1488
1488
|
let g, A;
|
|
1489
1489
|
try {
|
|
1490
1490
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1491
1491
|
I.get_dialects(C);
|
|
1492
|
-
var B =
|
|
1493
|
-
return g = B, A = Q,
|
|
1492
|
+
var B = o().getInt32(C + 0, !0), Q = o().getInt32(C + 4, !0);
|
|
1493
|
+
return g = B, A = Q, q(B, Q);
|
|
1494
1494
|
} finally {
|
|
1495
1495
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function HI() {
|
|
1499
1499
|
const g = I.get_dialects_value();
|
|
1500
|
-
return
|
|
1500
|
+
return H(g);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Gg(g, A, B, Q) {
|
|
1503
1503
|
let C, E;
|
|
1504
1504
|
try {
|
|
1505
|
-
const N = I.__wbindgen_add_to_stack_pointer(-16), M = k(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G,
|
|
1506
|
-
I.lineage_sql(N, M, J, y, h,
|
|
1507
|
-
var D =
|
|
1508
|
-
return C = D, E =
|
|
1505
|
+
const N = I.__wbindgen_add_to_stack_pointer(-16), M = k(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = k(B, I.__wbindgen_export, I.__wbindgen_export2), j = G;
|
|
1506
|
+
I.lineage_sql(N, M, J, y, h, s, j, Q);
|
|
1507
|
+
var D = o().getInt32(N + 0, !0), w = o().getInt32(N + 4, !0);
|
|
1508
|
+
return C = D, E = w, q(D, w);
|
|
1509
1509
|
} finally {
|
|
1510
1510
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, E, 1);
|
|
1511
1511
|
}
|
|
@@ -1513,36 +1513,36 @@ function Gg(g, A, B, Q) {
|
|
|
1513
1513
|
function kg(g, A, B, Q, C) {
|
|
1514
1514
|
let E, D;
|
|
1515
1515
|
try {
|
|
1516
|
-
const M = I.__wbindgen_add_to_stack_pointer(-16), J = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1517
|
-
I.lineage_sql_with_schema(M, J, y, h,
|
|
1518
|
-
var
|
|
1519
|
-
return E =
|
|
1516
|
+
const M = I.__wbindgen_add_to_stack_pointer(-16), J = k(g, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(A, I.__wbindgen_export, I.__wbindgen_export2), s = G, j = k(B, I.__wbindgen_export, I.__wbindgen_export2), f = G, X = k(Q, I.__wbindgen_export, I.__wbindgen_export2), GI = G;
|
|
1517
|
+
I.lineage_sql_with_schema(M, J, y, h, s, j, f, X, GI, C);
|
|
1518
|
+
var w = o().getInt32(M + 0, !0), N = o().getInt32(M + 4, !0);
|
|
1519
|
+
return E = w, D = N, q(w, N);
|
|
1520
1520
|
} finally {
|
|
1521
1521
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function qI(g, A) {
|
|
1525
1525
|
let B, Q;
|
|
1526
1526
|
try {
|
|
1527
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1528
|
-
I.parse(D,
|
|
1529
|
-
var C =
|
|
1530
|
-
return B = C, Q = E,
|
|
1527
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1528
|
+
I.parse(D, w, N, M, J);
|
|
1529
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1530
|
+
return B = C, Q = E, q(C, E);
|
|
1531
1531
|
} finally {
|
|
1532
1532
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
1535
|
function SI(g, A) {
|
|
1536
1536
|
const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.parse_value(B, Q, C, E);
|
|
1537
|
-
return
|
|
1537
|
+
return H(D);
|
|
1538
1538
|
}
|
|
1539
1539
|
function Ng(g, A) {
|
|
1540
1540
|
let B, Q;
|
|
1541
1541
|
try {
|
|
1542
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1543
|
-
I.plan(D,
|
|
1544
|
-
var C =
|
|
1545
|
-
return B = C, Q = E,
|
|
1542
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1543
|
+
I.plan(D, w, N, M, J);
|
|
1544
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1545
|
+
return B = C, Q = E, q(C, E);
|
|
1546
1546
|
} finally {
|
|
1547
1547
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1548
1548
|
}
|
|
@@ -1550,10 +1550,10 @@ function Ng(g, A) {
|
|
|
1550
1550
|
function Mg(g, A, B) {
|
|
1551
1551
|
let Q, C;
|
|
1552
1552
|
try {
|
|
1553
|
-
const
|
|
1554
|
-
I.source_tables(
|
|
1555
|
-
var E =
|
|
1556
|
-
return Q = E, C = D,
|
|
1553
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1554
|
+
I.source_tables(w, N, M, J, y, h, s);
|
|
1555
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1556
|
+
return Q = E, C = D, q(E, D);
|
|
1557
1557
|
} finally {
|
|
1558
1558
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1559
1559
|
}
|
|
@@ -1561,51 +1561,51 @@ function Mg(g, A, B) {
|
|
|
1561
1561
|
function hI(g, A) {
|
|
1562
1562
|
let B, Q;
|
|
1563
1563
|
try {
|
|
1564
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1565
|
-
I.tokenize(D,
|
|
1566
|
-
var C =
|
|
1567
|
-
return B = C, Q = E,
|
|
1564
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1565
|
+
I.tokenize(D, w, N, M, J);
|
|
1566
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1567
|
+
return B = C, Q = E, q(C, E);
|
|
1568
1568
|
} finally {
|
|
1569
1569
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
function cI(g, A) {
|
|
1573
1573
|
const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = k(A, I.__wbindgen_export, I.__wbindgen_export2), E = G, D = I.tokenize_value(B, Q, C, E);
|
|
1574
|
-
return
|
|
1574
|
+
return H(D);
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function LI(g, A, B) {
|
|
1577
1577
|
let Q, C;
|
|
1578
1578
|
try {
|
|
1579
|
-
const
|
|
1580
|
-
I.transpile(
|
|
1581
|
-
var E =
|
|
1582
|
-
return Q = E, C = D,
|
|
1579
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1580
|
+
I.transpile(w, N, M, J, y, h, s);
|
|
1581
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1582
|
+
return Q = E, C = D, q(E, D);
|
|
1583
1583
|
} finally {
|
|
1584
1584
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G,
|
|
1589
|
-
return
|
|
1587
|
+
function sI(g, A, B) {
|
|
1588
|
+
const Q = k(g, I.__wbindgen_export, I.__wbindgen_export2), C = G, E = k(A, I.__wbindgen_export, I.__wbindgen_export2), D = G, w = k(B, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = I.transpile_value(Q, C, E, D, w, N);
|
|
1589
|
+
return H(M);
|
|
1590
1590
|
}
|
|
1591
1591
|
function pI(g, A) {
|
|
1592
1592
|
let B, Q;
|
|
1593
1593
|
try {
|
|
1594
|
-
const D = I.__wbindgen_add_to_stack_pointer(-16),
|
|
1595
|
-
I.validate(D,
|
|
1596
|
-
var C =
|
|
1597
|
-
return B = C, Q = E,
|
|
1594
|
+
const D = I.__wbindgen_add_to_stack_pointer(-16), w = k(g, I.__wbindgen_export, I.__wbindgen_export2), N = G, M = k(A, I.__wbindgen_export, I.__wbindgen_export2), J = G;
|
|
1595
|
+
I.validate(D, w, N, M, J);
|
|
1596
|
+
var C = o().getInt32(D + 0, !0), E = o().getInt32(D + 4, !0);
|
|
1597
|
+
return B = C, Q = E, q(C, E);
|
|
1598
1598
|
} finally {
|
|
1599
1599
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function ZI(g, A, B) {
|
|
1603
1603
|
let Q, C;
|
|
1604
1604
|
try {
|
|
1605
|
-
const
|
|
1606
|
-
I.validate_with_options(
|
|
1607
|
-
var E =
|
|
1608
|
-
return Q = E, C = D,
|
|
1605
|
+
const w = I.__wbindgen_add_to_stack_pointer(-16), N = k(g, I.__wbindgen_export, I.__wbindgen_export2), M = G, J = k(A, I.__wbindgen_export, I.__wbindgen_export2), y = G, h = k(B, I.__wbindgen_export, I.__wbindgen_export2), s = G;
|
|
1606
|
+
I.validate_with_options(w, N, M, J, y, h, s);
|
|
1607
|
+
var E = o().getInt32(w + 0, !0), D = o().getInt32(w + 4, !0);
|
|
1608
|
+
return Q = E, C = D, q(E, D);
|
|
1609
1609
|
} finally {
|
|
1610
1610
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, C, 1);
|
|
1611
1611
|
}
|
|
@@ -1613,21 +1613,21 @@ function OI(g, A, B) {
|
|
|
1613
1613
|
function Kg(g, A, B, Q) {
|
|
1614
1614
|
let C, E;
|
|
1615
1615
|
try {
|
|
1616
|
-
const N = I.__wbindgen_add_to_stack_pointer(-16), M = k(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G,
|
|
1617
|
-
I.validate_with_schema(N, M, J, y, h,
|
|
1618
|
-
var D =
|
|
1619
|
-
return C = D, E =
|
|
1616
|
+
const N = I.__wbindgen_add_to_stack_pointer(-16), M = k(g, I.__wbindgen_export, I.__wbindgen_export2), J = G, y = k(A, I.__wbindgen_export, I.__wbindgen_export2), h = G, s = k(B, I.__wbindgen_export, I.__wbindgen_export2), j = G, f = k(Q, I.__wbindgen_export, I.__wbindgen_export2), X = G;
|
|
1617
|
+
I.validate_with_schema(N, M, J, y, h, s, j, f, X);
|
|
1618
|
+
var D = o().getInt32(N + 0, !0), w = o().getInt32(N + 4, !0);
|
|
1619
|
+
return C = D, E = w, q(D, w);
|
|
1620
1620
|
} finally {
|
|
1621
1621
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, E, 1);
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function OI() {
|
|
1625
1625
|
let g, A;
|
|
1626
1626
|
try {
|
|
1627
1627
|
const C = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1628
1628
|
I.version(C);
|
|
1629
|
-
var B =
|
|
1630
|
-
return g = B, A = Q,
|
|
1629
|
+
var B = o().getInt32(C + 0, !0), Q = o().getInt32(C + 4, !0);
|
|
1630
|
+
return g = B, A = Q, q(B, Q);
|
|
1631
1631
|
} finally {
|
|
1632
1632
|
I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
|
|
1633
1633
|
}
|
|
@@ -1649,14 +1649,14 @@ function ag(g) {
|
|
|
1649
1649
|
function yg(g) {
|
|
1650
1650
|
a(g, K);
|
|
1651
1651
|
const A = I.wasm_case_of(g.__wbg_ptr);
|
|
1652
|
-
return
|
|
1652
|
+
return b.__wrap(A);
|
|
1653
1653
|
}
|
|
1654
1654
|
function Rg(g, A) {
|
|
1655
1655
|
a(g, K);
|
|
1656
1656
|
const B = k(A, I.__wbindgen_export, I.__wbindgen_export2), Q = G, C = I.wasm_cast(g.__wbg_ptr, B, Q);
|
|
1657
1657
|
return K.__wrap(C);
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function HA(g) {
|
|
1660
1660
|
const A = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, Q = I.wasm_col(A, B);
|
|
1661
1661
|
return K.__wrap(Q);
|
|
1662
1662
|
}
|
|
@@ -1665,15 +1665,15 @@ function Fg(g) {
|
|
|
1665
1665
|
const A = I.wasm_count_distinct(g.__wbg_ptr);
|
|
1666
1666
|
return K.__wrap(A);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function Ug(g, A) {
|
|
1669
1669
|
const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1670
1670
|
a(A, K);
|
|
1671
1671
|
const C = I.wasm_extract(B, Q, A.__wbg_ptr);
|
|
1672
1672
|
return K.__wrap(C);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Hg(g, A) {
|
|
1675
1675
|
const B = k(g, I.__wbindgen_export, I.__wbindgen_export2), Q = G;
|
|
1676
|
-
a(A,
|
|
1676
|
+
a(A, Z);
|
|
1677
1677
|
const C = I.wasm_func(B, Q, A.__wbg_ptr);
|
|
1678
1678
|
return K.__wrap(C);
|
|
1679
1679
|
}
|
|
@@ -1681,7 +1681,7 @@ function NA(g) {
|
|
|
1681
1681
|
const A = I.wasm_lit(c(g));
|
|
1682
1682
|
return K.__wrap(A);
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function qg(g) {
|
|
1685
1685
|
a(g, K);
|
|
1686
1686
|
const A = I.wasm_not(g.__wbg_ptr);
|
|
1687
1687
|
return K.__wrap(A);
|
|
@@ -1703,70 +1703,70 @@ function cg() {
|
|
|
1703
1703
|
const g = I.wasm_star();
|
|
1704
1704
|
return K.__wrap(g);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function Lg(g, A) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
const E = I.__wbindgen_add_to_stack_pointer(-16);
|
|
1709
|
-
a(g,
|
|
1710
|
-
const D = k(A, I.__wbindgen_export, I.__wbindgen_export2),
|
|
1711
|
-
I.wasm_subquery(E, g.__wbg_ptr, D,
|
|
1712
|
-
var B =
|
|
1709
|
+
a(g, x);
|
|
1710
|
+
const D = k(A, I.__wbindgen_export, I.__wbindgen_export2), w = G;
|
|
1711
|
+
I.wasm_subquery(E, g.__wbg_ptr, D, w);
|
|
1712
|
+
var B = o().getInt32(E + 0, !0), Q = o().getInt32(E + 4, !0), C = o().getInt32(E + 8, !0);
|
|
1713
1713
|
if (C)
|
|
1714
|
-
throw
|
|
1714
|
+
throw H(Q);
|
|
1715
1715
|
return K.__wrap(B);
|
|
1716
1716
|
} finally {
|
|
1717
1717
|
I.__wbindgen_add_to_stack_pointer(16);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function sg(g) {
|
|
1721
1721
|
const A = k(g, I.__wbindgen_export, I.__wbindgen_export2), B = G, Q = I.wasm_table(A, B);
|
|
1722
1722
|
return K.__wrap(Q);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const B = Error(
|
|
1724
|
+
function jI(g, A) {
|
|
1725
|
+
const B = Error(q(g, A));
|
|
1726
1726
|
return c(B);
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function xI(g) {
|
|
1729
1729
|
return Number(F(g));
|
|
1730
1730
|
}
|
|
1731
1731
|
function WI(g, A) {
|
|
1732
1732
|
const B = String(F(A)), Q = k(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1733
|
-
|
|
1733
|
+
o().setInt32(g + 4, C, !0), o().setInt32(g + 0, Q, !0);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function VI(g, A) {
|
|
1736
1736
|
const B = F(A), Q = typeof B == "bigint" ? B : void 0;
|
|
1737
|
-
|
|
1737
|
+
o().setBigInt64(g + 8, u(Q) ? BigInt(0) : Q, !0), o().setInt32(g + 0, !u(Q), !0);
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function TI(g) {
|
|
1740
1740
|
const A = F(g), B = typeof A == "boolean" ? A : void 0;
|
|
1741
1741
|
return u(B) ? 16777215 : B ? 1 : 0;
|
|
1742
1742
|
}
|
|
1743
1743
|
function tI(g, A) {
|
|
1744
1744
|
const B = FA(F(A)), Q = k(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1745
|
-
|
|
1745
|
+
o().setInt32(g + 4, C, !0), o().setInt32(g + 0, Q, !0);
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function mI(g, A) {
|
|
1748
1748
|
return F(g) in F(A);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function lI(g) {
|
|
1751
1751
|
return typeof F(g) == "bigint";
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function dI(g) {
|
|
1754
1754
|
return typeof F(g) == "function";
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function PI(g) {
|
|
1757
1757
|
return F(g) === null;
|
|
1758
1758
|
}
|
|
1759
1759
|
function zI(g) {
|
|
1760
1760
|
const A = F(g);
|
|
1761
1761
|
return typeof A == "object" && A !== null;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function fI(g) {
|
|
1764
1764
|
return typeof F(g) == "string";
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1766
|
+
function eI(g) {
|
|
1767
1767
|
return F(g) === void 0;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function bI(g, A) {
|
|
1770
1770
|
return F(g) === F(A);
|
|
1771
1771
|
}
|
|
1772
1772
|
function rI(g, A) {
|
|
@@ -1774,15 +1774,15 @@ function rI(g, A) {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
function nI(g, A) {
|
|
1776
1776
|
const B = F(A), Q = typeof B == "number" ? B : void 0;
|
|
1777
|
-
|
|
1777
|
+
o().setFloat64(g + 8, u(Q) ? 0 : Q, !0), o().setInt32(g + 0, !u(Q), !0);
|
|
1778
1778
|
}
|
|
1779
1779
|
function uI(g, A) {
|
|
1780
1780
|
const B = F(A), Q = typeof B == "string" ? B : void 0;
|
|
1781
1781
|
var C = u(Q) ? 0 : k(Q, I.__wbindgen_export, I.__wbindgen_export2), E = G;
|
|
1782
|
-
|
|
1782
|
+
o().setInt32(g + 4, E, !0), o().setInt32(g + 0, C, !0);
|
|
1783
1783
|
}
|
|
1784
1784
|
function XI(g, A) {
|
|
1785
|
-
throw new Error(
|
|
1785
|
+
throw new Error(q(g, A));
|
|
1786
1786
|
}
|
|
1787
1787
|
function vI() {
|
|
1788
1788
|
return KA(function(g, A) {
|
|
@@ -1804,7 +1804,7 @@ function AB(g) {
|
|
|
1804
1804
|
function gB(g, A) {
|
|
1805
1805
|
let B, Q;
|
|
1806
1806
|
try {
|
|
1807
|
-
B = g, Q = A, console.error(
|
|
1807
|
+
B = g, Q = A, console.error(q(g, A));
|
|
1808
1808
|
} finally {
|
|
1809
1809
|
I.__wbindgen_export4(B, Q, 1);
|
|
1810
1810
|
}
|
|
@@ -1856,10 +1856,10 @@ function iB(g) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return A;
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function oB(g) {
|
|
1860
1860
|
return Array.isArray(F(g));
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function wB(g) {
|
|
1863
1863
|
return Number.isSafeInteger(F(g));
|
|
1864
1864
|
}
|
|
1865
1865
|
function GB() {
|
|
@@ -1903,67 +1903,67 @@ function FB(g) {
|
|
|
1903
1903
|
const A = F(g).next;
|
|
1904
1904
|
return c(A);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function UB(g, A, B) {
|
|
1907
1907
|
Uint8Array.prototype.set.call(WB(g, A), F(B));
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function HB(g, A, B) {
|
|
1910
1910
|
const Q = F(g).set(F(A), F(B));
|
|
1911
1911
|
return c(Q);
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1914
|
-
F(g)[
|
|
1913
|
+
function qB(g, A, B) {
|
|
1914
|
+
F(g)[H(A)] = H(B);
|
|
1915
1915
|
}
|
|
1916
1916
|
function SB(g, A, B) {
|
|
1917
|
-
F(g)[A >>> 0] =
|
|
1917
|
+
F(g)[A >>> 0] = H(B);
|
|
1918
1918
|
}
|
|
1919
1919
|
function hB(g, A) {
|
|
1920
1920
|
const B = F(A).stack, Q = k(B, I.__wbindgen_export, I.__wbindgen_export2), C = G;
|
|
1921
|
-
|
|
1921
|
+
o().setInt32(g + 4, C, !0), o().setInt32(g + 0, Q, !0);
|
|
1922
1922
|
}
|
|
1923
1923
|
function cB(g) {
|
|
1924
1924
|
const A = F(g).value;
|
|
1925
1925
|
return c(A);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function LB(g) {
|
|
1928
1928
|
return c(g);
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function sB(g) {
|
|
1931
1931
|
return c(g);
|
|
1932
1932
|
}
|
|
1933
1933
|
function pB(g, A) {
|
|
1934
|
-
const B =
|
|
1934
|
+
const B = q(g, A);
|
|
1935
1935
|
return c(B);
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function ZB(g) {
|
|
1938
1938
|
const A = BigInt.asUintN(64, g);
|
|
1939
1939
|
return c(A);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function OB(g) {
|
|
1942
1942
|
const A = F(g);
|
|
1943
1943
|
return c(A);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1945
|
+
function jB(g) {
|
|
1946
|
+
H(g);
|
|
1947
1947
|
}
|
|
1948
1948
|
const tA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1949
1949
|
}, unregister: () => {
|
|
1950
1950
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), yA = 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)), mA = 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)), lA = 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)), dA = 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)), PA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1959
1959
|
}, unregister: () => {
|
|
1960
1960
|
} } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1961
1961
|
}, unregister: () => {
|
|
1962
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)),
|
|
1962
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1963
1963
|
}, unregister: () => {
|
|
1964
|
-
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)),
|
|
1964
|
+
} } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), eA = 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)), bA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1967
1967
|
}, unregister: () => {
|
|
1968
1968
|
} } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1969
1969
|
}, unregister: () => {
|
|
@@ -2014,18 +2014,18 @@ function FA(g) {
|
|
|
2014
2014
|
return g instanceof Error ? `${g.name}: ${g.message}
|
|
2015
2015
|
${g.stack}` : Q;
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function xB(g) {
|
|
2018
2018
|
g < 132 || (t[g] = AA, AA = g);
|
|
2019
2019
|
}
|
|
2020
2020
|
function WB(g, A) {
|
|
2021
2021
|
return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
|
|
2022
2022
|
}
|
|
2023
2023
|
let n = null;
|
|
2024
|
-
function
|
|
2024
|
+
function o() {
|
|
2025
2025
|
return (n === null || n.buffer.detached === !0 || n.buffer.detached === void 0 && n.buffer !== I.memory.buffer) && (n = new DataView(I.memory.buffer)), n;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return g = g >>> 0,
|
|
2027
|
+
function q(g, A) {
|
|
2028
|
+
return g = g >>> 0, TB(g, A);
|
|
2029
2029
|
}
|
|
2030
2030
|
let EA = null;
|
|
2031
2031
|
function $() {
|
|
@@ -2047,42 +2047,42 @@ let AA = t.length;
|
|
|
2047
2047
|
function u(g) {
|
|
2048
2048
|
return g == null;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2051
|
-
const B = A(g.length * 4, 4) >>> 0, Q =
|
|
2050
|
+
function qA(g, A) {
|
|
2051
|
+
const B = A(g.length * 4, 4) >>> 0, Q = o();
|
|
2052
2052
|
for (let C = 0; C < g.length; C++)
|
|
2053
2053
|
Q.setUint32(B + 4 * C, c(g[C]), !0);
|
|
2054
2054
|
return G = g.length, B;
|
|
2055
2055
|
}
|
|
2056
2056
|
function k(g, A, B) {
|
|
2057
2057
|
if (B === void 0) {
|
|
2058
|
-
const
|
|
2059
|
-
return $().subarray(N, N +
|
|
2058
|
+
const w = gA.encode(g), N = A(w.length, 1) >>> 0;
|
|
2059
|
+
return $().subarray(N, N + w.length).set(w), G = w.length, N;
|
|
2060
2060
|
}
|
|
2061
2061
|
let Q = g.length, C = A(Q, 1) >>> 0;
|
|
2062
2062
|
const E = $();
|
|
2063
2063
|
let D = 0;
|
|
2064
2064
|
for (; D < Q; D++) {
|
|
2065
|
-
const
|
|
2066
|
-
if (
|
|
2067
|
-
E[C + D] =
|
|
2065
|
+
const w = g.charCodeAt(D);
|
|
2066
|
+
if (w > 127) break;
|
|
2067
|
+
E[C + D] = w;
|
|
2068
2068
|
}
|
|
2069
2069
|
if (D !== Q) {
|
|
2070
2070
|
D !== 0 && (g = g.slice(D)), C = B(C, Q, Q = D + g.length * 3, 1) >>> 0;
|
|
2071
|
-
const
|
|
2071
|
+
const w = $().subarray(C + D, C + Q), N = gA.encodeInto(g, w);
|
|
2072
2072
|
D += N.written, C = B(C, Q, D, 1) >>> 0;
|
|
2073
2073
|
}
|
|
2074
2074
|
return G = D, C;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function H(g) {
|
|
2077
2077
|
const A = F(g);
|
|
2078
|
-
return
|
|
2078
|
+
return xB(g), A;
|
|
2079
2079
|
}
|
|
2080
2080
|
let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
2081
2081
|
DA.decode();
|
|
2082
|
-
const
|
|
2082
|
+
const VB = 2146435072;
|
|
2083
2083
|
let RA = 0;
|
|
2084
|
-
function
|
|
2085
|
-
return RA += A, RA >=
|
|
2084
|
+
function TB(g, A) {
|
|
2085
|
+
return RA += A, RA >= VB && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), RA = 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) {
|
|
@@ -2098,30 +2098,30 @@ function tB(g) {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
URL = globalThis.URL;
|
|
2100
2100
|
const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
2101
|
-
__wbindgen_object_drop_ref:
|
|
2102
|
-
__wbindgen_object_clone_ref:
|
|
2101
|
+
__wbindgen_object_drop_ref: jB,
|
|
2102
|
+
__wbindgen_object_clone_ref: OB,
|
|
2103
2103
|
__wbg_new_8a6f238a6ece86ea: YB,
|
|
2104
2104
|
__wbg_stack_0ed75d68575b0f3c: hB,
|
|
2105
2105
|
__wbg_error_7534b8e9a36f1ab4: gB,
|
|
2106
2106
|
__wbg_get_with_ref_key_1dc361bd10053bfe: CB,
|
|
2107
|
-
__wbg_set_3f1d0b984ed272ed:
|
|
2107
|
+
__wbg_set_3f1d0b984ed272ed: qB,
|
|
2108
2108
|
__wbg_String_8f0eb39a4a4c2f66: WI,
|
|
2109
2109
|
__wbg_new_dd2b680c8bf6ae29: yB,
|
|
2110
2110
|
__wbg_length_32ed9a279acd054c: kB,
|
|
2111
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d:
|
|
2111
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: UB,
|
|
2112
2112
|
__wbg_done_57b39ecd9addfe81: $I,
|
|
2113
2113
|
__wbg_value_0546255b415e96c1: cB,
|
|
2114
2114
|
__wbg_instanceof_Map_53af74335dec57f4: DB,
|
|
2115
2115
|
__wbg_instanceof_Uint8Array_9b9075935c74707c: iB,
|
|
2116
2116
|
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: EB,
|
|
2117
2117
|
__wbg_new_dca287b076112a51: aB,
|
|
2118
|
-
__wbg_set_1eb0999cf5d27fc8:
|
|
2118
|
+
__wbg_set_1eb0999cf5d27fc8: HB,
|
|
2119
2119
|
__wbg_get_9b94d73e6221f75c: BB,
|
|
2120
2120
|
__wbg_new_3eb36ae241fe6f44: JB,
|
|
2121
2121
|
__wbg_set_f43e577aea94465b: SB,
|
|
2122
2122
|
__wbg_length_35a7bace40f36eac: NB,
|
|
2123
|
-
__wbg_isArray_d314bb98fcf08331:
|
|
2124
|
-
__wbg_isSafeInteger_bfbc7332a9768d2a:
|
|
2123
|
+
__wbg_isArray_d314bb98fcf08331: oB,
|
|
2124
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: wB,
|
|
2125
2125
|
__wbg_new_361308b2356cecd0: KB,
|
|
2126
2126
|
__wbg_entries_58c7934c745daac7: AB,
|
|
2127
2127
|
__wbg_iterator_6ff6560ca1568e55: GB,
|
|
@@ -2132,36 +2132,36 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2132
2132
|
__wbg_codePointAt_bf59dbf74d8db275: _I,
|
|
2133
2133
|
__wbg_fromCodePoint_22365db7b7d6ac39: IB,
|
|
2134
2134
|
__wbg_length_68dc7c5cf1b6d349: MB,
|
|
2135
|
-
__wbg___wbindgen_in_47fa6863be6f2f25:
|
|
2135
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: mI,
|
|
2136
2136
|
__wbg___wbindgen_throw_be289d5034ed271b: XI,
|
|
2137
|
-
__wbg___wbindgen_is_null_ac34f5003991759a:
|
|
2138
|
-
__wbg___wbindgen_jsval_eq_11888390b0186270:
|
|
2139
|
-
__wbg_Number_04624de7d0e8332d:
|
|
2140
|
-
__wbg_Error_8c4e43fe74559d73:
|
|
2141
|
-
__wbg___wbindgen_is_bigint_31b12575b56f32fc:
|
|
2137
|
+
__wbg___wbindgen_is_null_ac34f5003991759a: PI,
|
|
2138
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: bI,
|
|
2139
|
+
__wbg_Number_04624de7d0e8332d: xI,
|
|
2140
|
+
__wbg_Error_8c4e43fe74559d73: jI,
|
|
2141
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: lI,
|
|
2142
2142
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: zI,
|
|
2143
|
-
__wbg___wbindgen_is_string_cd444516edc5b180:
|
|
2143
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: fI,
|
|
2144
2144
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: nI,
|
|
2145
2145
|
__wbg___wbindgen_string_get_72fb696202c56729: uI,
|
|
2146
|
-
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:
|
|
2147
|
-
__wbg___wbindgen_is_function_0095a73b8b156f76:
|
|
2148
|
-
__wbg___wbindgen_is_undefined_9e4d92534c42d778:
|
|
2146
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: TI,
|
|
2147
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: dI,
|
|
2148
|
+
__wbg___wbindgen_is_undefined_9e4d92534c42d778: eI,
|
|
2149
2149
|
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: rI,
|
|
2150
|
-
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:
|
|
2150
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: VI,
|
|
2151
2151
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: tI,
|
|
2152
|
-
__wbindgen_cast_0000000000000001:
|
|
2153
|
-
__wbindgen_cast_0000000000000002:
|
|
2152
|
+
__wbindgen_cast_0000000000000001: LB,
|
|
2153
|
+
__wbindgen_cast_0000000000000002: sB,
|
|
2154
2154
|
__wbindgen_cast_0000000000000003: pB,
|
|
2155
|
-
__wbindgen_cast_0000000000000004:
|
|
2156
|
-
} }, kI),
|
|
2155
|
+
__wbindgen_cast_0000000000000004: ZB
|
|
2156
|
+
} }, kI), mB = i.memory, lB = i.__wbg_wasmassignmentarray_free, dB = i.__wbg_wasmcasebuilder_free, PB = i.__wbg_wasmdeletebuilder_free, zB = i.__wbg_wasmexpr_free, fB = i.__wbg_wasmexprarray_free, eB = i.__wbg_wasminsertbuilder_free, bB = i.__wbg_wasmmergebuilder_free, rB = i.__wbg_wasmselectbuilder_free, nB = i.__wbg_wasmsetopbuilder_free, uB = i.__wbg_wasmupdatebuilder_free, XB = i.__wbg_wasmwindowdefbuilder_free, vB = i.annotate_types, _B = i.annotate_types_value, $B = i.ast_add_where, AQ = i.ast_get_aggregate_functions, gQ = i.ast_get_column_names, IQ = i.ast_get_functions, BQ = i.ast_get_literals, QQ = i.ast_get_subqueries, CQ = i.ast_get_table_names, EQ = i.ast_get_window_functions, DQ = i.ast_node_count, iQ = i.ast_qualify_columns, oQ = i.ast_remove_where, wQ = i.ast_rename_columns, GQ = i.ast_rename_tables, kQ = i.ast_set_distinct, NQ = i.ast_set_limit, MQ = i.diff_sql, KQ = i.format_sql, JQ = i.format_sql_value, YQ = i.format_sql_with_options, aQ = i.format_sql_with_options_value, yQ = i.generate, RQ = i.generate_value, FQ = i.get_dialects, UQ = i.get_dialects_value, HQ = i.lineage_sql, qQ = i.lineage_sql_with_schema, SQ = i.parse, hQ = i.parse_value, cQ = i.plan, LQ = i.source_tables, sQ = i.tokenize, pQ = i.tokenize_value, ZQ = i.transpile, OQ = i.transpile_value, jQ = i.validate, xQ = i.validate_with_options, WQ = i.validate_with_schema, VQ = i.version, TQ = i.wasm_alias, tQ = i.wasm_and, mQ = i.wasm_boolean, lQ = i.wasm_case_of, dQ = i.wasm_cast, PQ = i.wasm_col, zQ = i.wasm_count_distinct, fQ = i.wasm_extract, eQ = i.wasm_func, bQ = i.wasm_lit, rQ = i.wasm_not, nQ = i.wasm_null, uQ = i.wasm_or, XQ = i.wasm_sql_expr, vQ = i.wasm_star, _Q = i.wasm_subquery, $Q = i.wasm_table, AC = i.wasmassignmentarray_len, gC = i.wasmassignmentarray_new, IC = i.wasmassignmentarray_push, BC = i.wasmcasebuilder_build_expr, QC = i.wasmcasebuilder_else_, CC = i.wasmcasebuilder_new, EC = i.wasmcasebuilder_to_sql, DC = i.wasmcasebuilder_when, iC = i.wasmdeletebuilder_build, oC = i.wasmdeletebuilder_new, wC = i.wasmdeletebuilder_to_sql, GC = i.wasmdeletebuilder_where_expr, kC = i.wasmexpr_add, NC = i.wasmexpr_alias, MC = i.wasmexpr_and, KC = i.wasmexpr_asc, JC = i.wasmexpr_between, YC = i.wasmexpr_cast, aC = i.wasmexpr_desc, yC = i.wasmexpr_div, RC = i.wasmexpr_eq, FC = i.wasmexpr_gt, UC = i.wasmexpr_gte, HC = i.wasmexpr_ilike, qC = i.wasmexpr_in_list, SC = i.wasmexpr_is_not_null, hC = i.wasmexpr_is_null, cC = i.wasmexpr_like, LC = i.wasmexpr_lt, sC = i.wasmexpr_lte, pC = i.wasmexpr_mul, ZC = i.wasmexpr_neq, OC = i.wasmexpr_not, jC = i.wasmexpr_not_in, xC = i.wasmexpr_or, WC = i.wasmexpr_rlike, VC = i.wasmexpr_sub, TC = i.wasmexpr_to_json, tC = i.wasmexpr_to_sql, mC = i.wasmexpr_xor, lC = i.wasmexprarray_len, dC = i.wasmexprarray_push, PC = i.wasmexprarray_push_col, zC = i.wasmexprarray_push_float, fC = i.wasmexprarray_push_int, eC = i.wasmexprarray_push_star, bC = i.wasmexprarray_push_str, rC = i.wasminsertbuilder_build, nC = i.wasminsertbuilder_columns, uC = i.wasminsertbuilder_new, XC = i.wasminsertbuilder_query, vC = i.wasminsertbuilder_to_sql, _C = i.wasminsertbuilder_values, $C = i.wasmmergebuilder_build, AE = i.wasmmergebuilder_new, gE = i.wasmmergebuilder_to_sql, IE = i.wasmmergebuilder_using, BE = i.wasmmergebuilder_when_matched_delete, QE = i.wasmmergebuilder_when_matched_update, CE = i.wasmmergebuilder_when_not_matched_insert, EE = i.wasmselectbuilder_build, DE = i.wasmselectbuilder_cross_join, iE = i.wasmselectbuilder_ctas, oE = i.wasmselectbuilder_ctas_sql, wE = i.wasmselectbuilder_distinct, GE = i.wasmselectbuilder_except_, kE = i.wasmselectbuilder_for_update, NE = i.wasmselectbuilder_from, ME = i.wasmselectbuilder_from_expr, KE = i.wasmselectbuilder_group_by_cols, JE = i.wasmselectbuilder_having, YE = i.wasmselectbuilder_hint, aE = i.wasmselectbuilder_intersect, yE = i.wasmselectbuilder_join, RE = i.wasmselectbuilder_lateral_view, FE = i.wasmselectbuilder_left_join, UE = i.wasmselectbuilder_limit, HE = i.wasmselectbuilder_new, qE = i.wasmselectbuilder_offset, SE = i.wasmselectbuilder_order_by_exprs, hE = i.wasmselectbuilder_qualify, cE = i.wasmselectbuilder_right_join, LE = i.wasmselectbuilder_select_col, sE = i.wasmselectbuilder_select_expr, pE = i.wasmselectbuilder_select_exprs, ZE = i.wasmselectbuilder_select_star, OE = i.wasmselectbuilder_sort_by_exprs, jE = i.wasmselectbuilder_to_sql, xE = i.wasmselectbuilder_union, WE = i.wasmselectbuilder_union_all, VE = i.wasmselectbuilder_where_expr, TE = i.wasmselectbuilder_where_sql, tE = i.wasmselectbuilder_window, mE = i.wasmsetopbuilder_build, lE = i.wasmsetopbuilder_limit, dE = i.wasmsetopbuilder_offset, PE = i.wasmsetopbuilder_order_by_exprs, zE = i.wasmsetopbuilder_to_sql, fE = i.wasmupdatebuilder_build, eE = i.wasmupdatebuilder_from, bE = i.wasmupdatebuilder_new, rE = i.wasmupdatebuilder_set, nE = i.wasmupdatebuilder_to_sql, uE = i.wasmupdatebuilder_where_expr, XE = i.wasmwindowdefbuilder_new, vE = i.wasmwindowdefbuilder_order_by, _E = i.wasmwindowdefbuilder_partition_by, $E = i.wasmexprarray_new, AD = i.__wbindgen_export, gD = i.__wbindgen_export2, ID = i.__wbindgen_export3, BD = i.__wbindgen_export4, QD = i.__wbindgen_add_to_stack_pointer, CD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2157
2157
|
__proto__: null,
|
|
2158
|
-
__wbg_wasmassignmentarray_free:
|
|
2159
|
-
__wbg_wasmcasebuilder_free:
|
|
2160
|
-
__wbg_wasmdeletebuilder_free:
|
|
2158
|
+
__wbg_wasmassignmentarray_free: lB,
|
|
2159
|
+
__wbg_wasmcasebuilder_free: dB,
|
|
2160
|
+
__wbg_wasmdeletebuilder_free: PB,
|
|
2161
2161
|
__wbg_wasmexpr_free: zB,
|
|
2162
|
-
__wbg_wasmexprarray_free:
|
|
2163
|
-
__wbg_wasminsertbuilder_free:
|
|
2164
|
-
__wbg_wasmmergebuilder_free:
|
|
2162
|
+
__wbg_wasmexprarray_free: fB,
|
|
2163
|
+
__wbg_wasminsertbuilder_free: eB,
|
|
2164
|
+
__wbg_wasmmergebuilder_free: bB,
|
|
2165
2165
|
__wbg_wasmselectbuilder_free: rB,
|
|
2166
2166
|
__wbg_wasmsetopbuilder_free: nB,
|
|
2167
2167
|
__wbg_wasmupdatebuilder_free: uB,
|
|
@@ -2183,8 +2183,8 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2183
2183
|
ast_get_window_functions: EQ,
|
|
2184
2184
|
ast_node_count: DQ,
|
|
2185
2185
|
ast_qualify_columns: iQ,
|
|
2186
|
-
ast_remove_where:
|
|
2187
|
-
ast_rename_columns:
|
|
2186
|
+
ast_remove_where: oQ,
|
|
2187
|
+
ast_rename_columns: wQ,
|
|
2188
2188
|
ast_rename_tables: GQ,
|
|
2189
2189
|
ast_set_distinct: kQ,
|
|
2190
2190
|
ast_set_limit: NQ,
|
|
@@ -2196,32 +2196,32 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2196
2196
|
generate: yQ,
|
|
2197
2197
|
generate_value: RQ,
|
|
2198
2198
|
get_dialects: FQ,
|
|
2199
|
-
get_dialects_value:
|
|
2200
|
-
lineage_sql:
|
|
2201
|
-
lineage_sql_with_schema:
|
|
2202
|
-
memory:
|
|
2199
|
+
get_dialects_value: UQ,
|
|
2200
|
+
lineage_sql: HQ,
|
|
2201
|
+
lineage_sql_with_schema: qQ,
|
|
2202
|
+
memory: mB,
|
|
2203
2203
|
parse: SQ,
|
|
2204
2204
|
parse_value: hQ,
|
|
2205
2205
|
plan: cQ,
|
|
2206
|
-
source_tables:
|
|
2207
|
-
tokenize:
|
|
2206
|
+
source_tables: LQ,
|
|
2207
|
+
tokenize: sQ,
|
|
2208
2208
|
tokenize_value: pQ,
|
|
2209
|
-
transpile:
|
|
2210
|
-
transpile_value:
|
|
2211
|
-
validate:
|
|
2212
|
-
validate_with_options:
|
|
2209
|
+
transpile: ZQ,
|
|
2210
|
+
transpile_value: OQ,
|
|
2211
|
+
validate: jQ,
|
|
2212
|
+
validate_with_options: xQ,
|
|
2213
2213
|
validate_with_schema: WQ,
|
|
2214
|
-
version:
|
|
2215
|
-
wasm_alias:
|
|
2214
|
+
version: VQ,
|
|
2215
|
+
wasm_alias: TQ,
|
|
2216
2216
|
wasm_and: tQ,
|
|
2217
|
-
wasm_boolean:
|
|
2218
|
-
wasm_case_of:
|
|
2219
|
-
wasm_cast:
|
|
2220
|
-
wasm_col:
|
|
2217
|
+
wasm_boolean: mQ,
|
|
2218
|
+
wasm_case_of: lQ,
|
|
2219
|
+
wasm_cast: dQ,
|
|
2220
|
+
wasm_col: PQ,
|
|
2221
2221
|
wasm_count_distinct: zQ,
|
|
2222
|
-
wasm_extract:
|
|
2223
|
-
wasm_func:
|
|
2224
|
-
wasm_lit:
|
|
2222
|
+
wasm_extract: fQ,
|
|
2223
|
+
wasm_func: eQ,
|
|
2224
|
+
wasm_lit: bQ,
|
|
2225
2225
|
wasm_not: rQ,
|
|
2226
2226
|
wasm_null: nQ,
|
|
2227
2227
|
wasm_or: uQ,
|
|
@@ -2238,8 +2238,8 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2238
2238
|
wasmcasebuilder_to_sql: EC,
|
|
2239
2239
|
wasmcasebuilder_when: DC,
|
|
2240
2240
|
wasmdeletebuilder_build: iC,
|
|
2241
|
-
wasmdeletebuilder_new:
|
|
2242
|
-
wasmdeletebuilder_to_sql:
|
|
2241
|
+
wasmdeletebuilder_new: oC,
|
|
2242
|
+
wasmdeletebuilder_to_sql: wC,
|
|
2243
2243
|
wasmdeletebuilder_where_expr: GC,
|
|
2244
2244
|
wasmexpr_add: kC,
|
|
2245
2245
|
wasmexpr_alias: NC,
|
|
@@ -2251,32 +2251,32 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2251
2251
|
wasmexpr_div: yC,
|
|
2252
2252
|
wasmexpr_eq: RC,
|
|
2253
2253
|
wasmexpr_gt: FC,
|
|
2254
|
-
wasmexpr_gte:
|
|
2255
|
-
wasmexpr_ilike:
|
|
2256
|
-
wasmexpr_in_list:
|
|
2254
|
+
wasmexpr_gte: UC,
|
|
2255
|
+
wasmexpr_ilike: HC,
|
|
2256
|
+
wasmexpr_in_list: qC,
|
|
2257
2257
|
wasmexpr_is_not_null: SC,
|
|
2258
2258
|
wasmexpr_is_null: hC,
|
|
2259
2259
|
wasmexpr_like: cC,
|
|
2260
|
-
wasmexpr_lt:
|
|
2261
|
-
wasmexpr_lte:
|
|
2260
|
+
wasmexpr_lt: LC,
|
|
2261
|
+
wasmexpr_lte: sC,
|
|
2262
2262
|
wasmexpr_mul: pC,
|
|
2263
|
-
wasmexpr_neq:
|
|
2264
|
-
wasmexpr_not:
|
|
2265
|
-
wasmexpr_not_in:
|
|
2266
|
-
wasmexpr_or:
|
|
2263
|
+
wasmexpr_neq: ZC,
|
|
2264
|
+
wasmexpr_not: OC,
|
|
2265
|
+
wasmexpr_not_in: jC,
|
|
2266
|
+
wasmexpr_or: xC,
|
|
2267
2267
|
wasmexpr_rlike: WC,
|
|
2268
|
-
wasmexpr_sub:
|
|
2269
|
-
wasmexpr_to_json:
|
|
2268
|
+
wasmexpr_sub: VC,
|
|
2269
|
+
wasmexpr_to_json: TC,
|
|
2270
2270
|
wasmexpr_to_sql: tC,
|
|
2271
|
-
wasmexpr_xor:
|
|
2272
|
-
wasmexprarray_len:
|
|
2271
|
+
wasmexpr_xor: mC,
|
|
2272
|
+
wasmexprarray_len: lC,
|
|
2273
2273
|
wasmexprarray_new: $E,
|
|
2274
|
-
wasmexprarray_push:
|
|
2275
|
-
wasmexprarray_push_col:
|
|
2274
|
+
wasmexprarray_push: dC,
|
|
2275
|
+
wasmexprarray_push_col: PC,
|
|
2276
2276
|
wasmexprarray_push_float: zC,
|
|
2277
|
-
wasmexprarray_push_int:
|
|
2278
|
-
wasmexprarray_push_star:
|
|
2279
|
-
wasmexprarray_push_str:
|
|
2277
|
+
wasmexprarray_push_int: fC,
|
|
2278
|
+
wasmexprarray_push_star: eC,
|
|
2279
|
+
wasmexprarray_push_str: bC,
|
|
2280
2280
|
wasminsertbuilder_build: rC,
|
|
2281
2281
|
wasminsertbuilder_columns: nC,
|
|
2282
2282
|
wasminsertbuilder_new: uC,
|
|
@@ -2293,8 +2293,8 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2293
2293
|
wasmselectbuilder_build: EE,
|
|
2294
2294
|
wasmselectbuilder_cross_join: DE,
|
|
2295
2295
|
wasmselectbuilder_ctas: iE,
|
|
2296
|
-
wasmselectbuilder_ctas_sql:
|
|
2297
|
-
wasmselectbuilder_distinct:
|
|
2296
|
+
wasmselectbuilder_ctas_sql: oE,
|
|
2297
|
+
wasmselectbuilder_distinct: wE,
|
|
2298
2298
|
wasmselectbuilder_except_: GE,
|
|
2299
2299
|
wasmselectbuilder_for_update: kE,
|
|
2300
2300
|
wasmselectbuilder_from: NE,
|
|
@@ -2306,31 +2306,31 @@ const i = await NI({ "./polyglot_sql_wasm_bg.js": {
|
|
|
2306
2306
|
wasmselectbuilder_join: yE,
|
|
2307
2307
|
wasmselectbuilder_lateral_view: RE,
|
|
2308
2308
|
wasmselectbuilder_left_join: FE,
|
|
2309
|
-
wasmselectbuilder_limit:
|
|
2310
|
-
wasmselectbuilder_new:
|
|
2311
|
-
wasmselectbuilder_offset:
|
|
2309
|
+
wasmselectbuilder_limit: UE,
|
|
2310
|
+
wasmselectbuilder_new: HE,
|
|
2311
|
+
wasmselectbuilder_offset: qE,
|
|
2312
2312
|
wasmselectbuilder_order_by_exprs: SE,
|
|
2313
2313
|
wasmselectbuilder_qualify: hE,
|
|
2314
2314
|
wasmselectbuilder_right_join: cE,
|
|
2315
|
-
wasmselectbuilder_select_col:
|
|
2316
|
-
wasmselectbuilder_select_expr:
|
|
2315
|
+
wasmselectbuilder_select_col: LE,
|
|
2316
|
+
wasmselectbuilder_select_expr: sE,
|
|
2317
2317
|
wasmselectbuilder_select_exprs: pE,
|
|
2318
|
-
wasmselectbuilder_select_star:
|
|
2319
|
-
wasmselectbuilder_sort_by_exprs:
|
|
2320
|
-
wasmselectbuilder_to_sql:
|
|
2321
|
-
wasmselectbuilder_union:
|
|
2318
|
+
wasmselectbuilder_select_star: ZE,
|
|
2319
|
+
wasmselectbuilder_sort_by_exprs: OE,
|
|
2320
|
+
wasmselectbuilder_to_sql: jE,
|
|
2321
|
+
wasmselectbuilder_union: xE,
|
|
2322
2322
|
wasmselectbuilder_union_all: WE,
|
|
2323
|
-
wasmselectbuilder_where_expr:
|
|
2324
|
-
wasmselectbuilder_where_sql:
|
|
2323
|
+
wasmselectbuilder_where_expr: VE,
|
|
2324
|
+
wasmselectbuilder_where_sql: TE,
|
|
2325
2325
|
wasmselectbuilder_window: tE,
|
|
2326
|
-
wasmsetopbuilder_build:
|
|
2327
|
-
wasmsetopbuilder_limit:
|
|
2328
|
-
wasmsetopbuilder_offset:
|
|
2329
|
-
wasmsetopbuilder_order_by_exprs:
|
|
2326
|
+
wasmsetopbuilder_build: mE,
|
|
2327
|
+
wasmsetopbuilder_limit: lE,
|
|
2328
|
+
wasmsetopbuilder_offset: dE,
|
|
2329
|
+
wasmsetopbuilder_order_by_exprs: PE,
|
|
2330
2330
|
wasmsetopbuilder_to_sql: zE,
|
|
2331
|
-
wasmupdatebuilder_build:
|
|
2332
|
-
wasmupdatebuilder_from:
|
|
2333
|
-
wasmupdatebuilder_new:
|
|
2331
|
+
wasmupdatebuilder_build: fE,
|
|
2332
|
+
wasmupdatebuilder_from: eE,
|
|
2333
|
+
wasmupdatebuilder_new: bE,
|
|
2334
2334
|
wasmupdatebuilder_set: rE,
|
|
2335
2335
|
wasmupdatebuilder_to_sql: nE,
|
|
2336
2336
|
wasmupdatebuilder_where_expr: uE,
|
|
@@ -2342,14 +2342,14 @@ tB(CD);
|
|
|
2342
2342
|
const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2343
2343
|
__proto__: null,
|
|
2344
2344
|
WasmAssignmentArray: BA,
|
|
2345
|
-
WasmCaseBuilder:
|
|
2346
|
-
WasmDeleteBuilder:
|
|
2345
|
+
WasmCaseBuilder: b,
|
|
2346
|
+
WasmDeleteBuilder: oA,
|
|
2347
2347
|
WasmExpr: K,
|
|
2348
|
-
WasmExprArray:
|
|
2349
|
-
WasmInsertBuilder:
|
|
2348
|
+
WasmExprArray: Z,
|
|
2349
|
+
WasmInsertBuilder: wA,
|
|
2350
2350
|
WasmMergeBuilder: GA,
|
|
2351
|
-
WasmSelectBuilder:
|
|
2352
|
-
WasmSetOpBuilder:
|
|
2351
|
+
WasmSelectBuilder: x,
|
|
2352
|
+
WasmSetOpBuilder: m,
|
|
2353
2353
|
WasmUpdateBuilder: kA,
|
|
2354
2354
|
WasmWindowDefBuilder: QA,
|
|
2355
2355
|
annotate_types: MI,
|
|
@@ -2368,56 +2368,56 @@ const pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2368
2368
|
ast_rename_columns: Eg,
|
|
2369
2369
|
ast_rename_tables: Dg,
|
|
2370
2370
|
ast_set_distinct: ig,
|
|
2371
|
-
ast_set_limit:
|
|
2372
|
-
diff_sql:
|
|
2371
|
+
ast_set_limit: og,
|
|
2372
|
+
diff_sql: wg,
|
|
2373
2373
|
format_sql: JI,
|
|
2374
2374
|
format_sql_value: YI,
|
|
2375
2375
|
format_sql_with_options: aI,
|
|
2376
2376
|
format_sql_with_options_value: yI,
|
|
2377
2377
|
generate: RI,
|
|
2378
2378
|
generate_value: FI,
|
|
2379
|
-
get_dialects:
|
|
2380
|
-
get_dialects_value:
|
|
2379
|
+
get_dialects: UI,
|
|
2380
|
+
get_dialects_value: HI,
|
|
2381
2381
|
lineage_sql: Gg,
|
|
2382
2382
|
lineage_sql_with_schema: kg,
|
|
2383
|
-
parse:
|
|
2383
|
+
parse: qI,
|
|
2384
2384
|
parse_value: SI,
|
|
2385
2385
|
plan: Ng,
|
|
2386
2386
|
source_tables: Mg,
|
|
2387
2387
|
tokenize: hI,
|
|
2388
2388
|
tokenize_value: cI,
|
|
2389
|
-
transpile:
|
|
2390
|
-
transpile_value:
|
|
2389
|
+
transpile: LI,
|
|
2390
|
+
transpile_value: sI,
|
|
2391
2391
|
validate: pI,
|
|
2392
|
-
validate_with_options:
|
|
2392
|
+
validate_with_options: ZI,
|
|
2393
2393
|
validate_with_schema: Kg,
|
|
2394
|
-
version:
|
|
2394
|
+
version: OI,
|
|
2395
2395
|
wasm_alias: Jg,
|
|
2396
2396
|
wasm_and: Yg,
|
|
2397
2397
|
wasm_boolean: ag,
|
|
2398
2398
|
wasm_case_of: yg,
|
|
2399
2399
|
wasm_cast: Rg,
|
|
2400
|
-
wasm_col:
|
|
2400
|
+
wasm_col: HA,
|
|
2401
2401
|
wasm_count_distinct: Fg,
|
|
2402
|
-
wasm_extract:
|
|
2403
|
-
wasm_func:
|
|
2402
|
+
wasm_extract: Ug,
|
|
2403
|
+
wasm_func: Hg,
|
|
2404
2404
|
wasm_lit: NA,
|
|
2405
|
-
wasm_not:
|
|
2405
|
+
wasm_not: qg,
|
|
2406
2406
|
wasm_null: MA,
|
|
2407
2407
|
wasm_or: Sg,
|
|
2408
2408
|
wasm_sql_expr: hg,
|
|
2409
2409
|
wasm_star: cg,
|
|
2410
|
-
wasm_subquery:
|
|
2411
|
-
wasm_table:
|
|
2410
|
+
wasm_subquery: Lg,
|
|
2411
|
+
wasm_table: sg
|
|
2412
2412
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2413
2413
|
function p(g) {
|
|
2414
2414
|
return Object.keys(g)[0];
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function O(g) {
|
|
2417
2417
|
const A = Object.keys(g)[0];
|
|
2418
2418
|
return g[A];
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function l(g) {
|
|
2421
2421
|
if (typeof g != "object" || g === null || Array.isArray(g))
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
const A = Object.keys(g);
|
|
@@ -2425,11 +2425,11 @@ function m(g) {
|
|
|
2425
2425
|
const B = g[A[0]];
|
|
2426
2426
|
return B === null || typeof B == "object" && !Array.isArray(B);
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function T(g, A) {
|
|
2429
2429
|
return { [g]: A };
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2432
|
-
const A =
|
|
2431
|
+
function Zg(g) {
|
|
2432
|
+
const A = O(g);
|
|
2433
2433
|
if (A && typeof A == "object" && "inferred_type" in A) {
|
|
2434
2434
|
const B = A.inferred_type;
|
|
2435
2435
|
if (B != null)
|
|
@@ -2439,7 +2439,7 @@ function Og(g) {
|
|
|
2439
2439
|
function Y(g) {
|
|
2440
2440
|
return (A) => g in A;
|
|
2441
2441
|
}
|
|
2442
|
-
const
|
|
2442
|
+
const Og = Y("select"), ED = Y("insert"), DD = Y("update"), iD = Y("delete"), oD = Y("union"), wD = Y("intersect"), GD = Y("except"), kD = Y("subquery"), ND = Y("identifier"), jg = Y("column"), MD = Y("table"), KD = Y("star"), xg = Y("literal"), JD = Y("boolean"), YD = Y("null"), aD = Y("and"), yD = Y("or"), RD = Y("not"), FD = Y("eq"), UD = Y("neq"), HD = Y("lt"), qD = Y("lte"), SD = Y("gt"), hD = Y("gte"), cD = Y("like"), LD = Y("i_like"), sD = Y("add"), pD = Y("sub"), ZD = Y("mul"), OD = Y("div"), jD = Y("mod"), xD = Y("concat"), WD = Y("in"), VD = Y("between"), TD = Y("is_null"), tD = Y("exists"), Wg = Y("function"), mD = Y("aggregate_function"), lD = Y("window_function"), dD = Y("count"), PD = Y("sum"), zD = Y("avg"), fD = Y("min"), eD = Y("max"), bD = Y("coalesce"), rD = Y("null_if"), nD = Y("cast"), uD = Y("try_cast"), XD = Y("safe_cast"), vD = Y("case"), _D = Y("from"), $D = Y("join"), Ai = Y("where"), gi = Y("group_by"), Ii = Y("having"), Bi = Y("order_by"), Qi = Y("limit"), Ci = Y("offset"), Ei = Y("with"), Di = Y("cte"), ii = Y("alias"), oi = Y("paren"), wi = Y("ordered"), Gi = Y("create_table"), ki = Y("drop_table"), Ni = Y("alter_table"), Mi = Y("create_index"), Ki = Y("drop_index"), Ji = Y("create_view"), Yi = Y("drop_view");
|
|
2443
2443
|
function ai(g) {
|
|
2444
2444
|
const A = p(g);
|
|
2445
2445
|
return A === "select" || A === "insert" || A === "update" || A === "delete";
|
|
@@ -2456,35 +2456,35 @@ function Fi(g) {
|
|
|
2456
2456
|
const A = p(g);
|
|
2457
2457
|
return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Ui(g) {
|
|
2460
2460
|
const A = p(g);
|
|
2461
2461
|
return A === "and" || A === "or" || A === "not";
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function Hi(g) {
|
|
2464
2464
|
const A = p(g);
|
|
2465
2465
|
return A === "create_table" || A === "drop_table" || A === "alter_table" || A === "create_index" || A === "drop_index" || A === "create_view" || A === "drop_view" || A === "create_schema" || A === "drop_schema" || A === "create_database" || A === "drop_database" || A === "create_function" || A === "drop_function" || A === "create_procedure" || A === "drop_procedure" || A === "create_sequence" || A === "drop_sequence" || A === "alter_sequence" || A === "create_trigger" || A === "drop_trigger" || A === "create_type" || A === "drop_type";
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function d(g) {
|
|
2468
2468
|
return JSON.stringify(g);
|
|
2469
2469
|
}
|
|
2470
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 Vg(g, A, B) {
|
|
2475
2475
|
if (g == null) return g;
|
|
2476
2476
|
if (Array.isArray(g))
|
|
2477
|
-
return g.length > 0 &&
|
|
2477
|
+
return g.length > 0 && l(g[0]) ? g.map(
|
|
2478
2478
|
(Q, C) => iA(Q, A, B, null, C)
|
|
2479
|
-
) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((C, E) =>
|
|
2480
|
-
if (
|
|
2479
|
+
) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((C, E) => l(C) ? iA(C, A, B, null, E) : C) : Q) : g;
|
|
2480
|
+
if (l(g))
|
|
2481
2481
|
return iA(g, A, B, null, null);
|
|
2482
2482
|
if (typeof g == "object") {
|
|
2483
2483
|
const C = { ...g };
|
|
2484
2484
|
let E = !1;
|
|
2485
|
-
for (const [D,
|
|
2486
|
-
const N =
|
|
2487
|
-
N !==
|
|
2485
|
+
for (const [D, w] of Object.entries(C)) {
|
|
2486
|
+
const N = Vg(w, A, B);
|
|
2487
|
+
N !== w && (C[D] = N, E = !0);
|
|
2488
2488
|
}
|
|
2489
2489
|
return E ? C : g;
|
|
2490
2490
|
}
|
|
@@ -2498,24 +2498,24 @@ function iA(g, A, B, Q, C) {
|
|
|
2498
2498
|
return E;
|
|
2499
2499
|
y !== void 0 && (E = y);
|
|
2500
2500
|
}
|
|
2501
|
-
const D = p(E),
|
|
2502
|
-
if (
|
|
2503
|
-
const y =
|
|
2501
|
+
const D = p(E), w = A[D];
|
|
2502
|
+
if (w) {
|
|
2503
|
+
const y = w(E, B, Q, C);
|
|
2504
2504
|
if (y === null)
|
|
2505
2505
|
return E;
|
|
2506
2506
|
y !== void 0 && (E = y);
|
|
2507
2507
|
}
|
|
2508
|
-
const N = p(E), M =
|
|
2508
|
+
const N = p(E), M = O(E);
|
|
2509
2509
|
let J;
|
|
2510
2510
|
if (M == null)
|
|
2511
|
-
J =
|
|
2511
|
+
J = T(N, M);
|
|
2512
2512
|
else {
|
|
2513
2513
|
const y = { ...M };
|
|
2514
|
-
for (const [h,
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2514
|
+
for (const [h, s] of Object.entries(y)) {
|
|
2515
|
+
const j = Vg(s, A, E);
|
|
2516
|
+
j !== s && (y[h] = j);
|
|
2517
2517
|
}
|
|
2518
|
-
J =
|
|
2518
|
+
J = T(N, y);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (A.leave) {
|
|
2521
2521
|
const y = A.leave(J, B, Q, C);
|
|
@@ -2527,7 +2527,7 @@ function iA(g, A, B, Q, C) {
|
|
|
2527
2527
|
function JA(g, A) {
|
|
2528
2528
|
return iA(g, A, null, null, null);
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function Tg(g, A, B) {
|
|
2531
2531
|
return JA(g, {
|
|
2532
2532
|
enter: (Q, C) => {
|
|
2533
2533
|
if (A(Q, C))
|
|
@@ -2535,8 +2535,8 @@ function jg(g, A, B) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
});
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
return
|
|
2538
|
+
function qi(g, A, B) {
|
|
2539
|
+
return Tg(
|
|
2540
2540
|
g,
|
|
2541
2541
|
(Q) => p(Q) === A,
|
|
2542
2542
|
typeof B == "function" ? (Q) => B(Q) : B
|
|
@@ -2544,32 +2544,32 @@ function Ui(g, A, B) {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
function tg(g, A) {
|
|
2546
2546
|
return r(
|
|
2547
|
-
Eg(
|
|
2547
|
+
Eg(d(g), JSON.stringify(A))
|
|
2548
2548
|
) ?? g;
|
|
2549
2549
|
}
|
|
2550
2550
|
function Si(g, A) {
|
|
2551
2551
|
return r(
|
|
2552
|
-
Dg(
|
|
2552
|
+
Dg(d(g), JSON.stringify(A))
|
|
2553
2553
|
) ?? g;
|
|
2554
2554
|
}
|
|
2555
2555
|
function hi(g, A) {
|
|
2556
2556
|
return r(
|
|
2557
|
-
Qg(
|
|
2557
|
+
Qg(d(g), A)
|
|
2558
2558
|
) ?? g;
|
|
2559
2559
|
}
|
|
2560
2560
|
function ci(g, A, B = "and") {
|
|
2561
2561
|
return r(
|
|
2562
|
-
uA(
|
|
2562
|
+
uA(d(g), d(A), B === "or")
|
|
2563
2563
|
) ?? g;
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2566
|
-
return r(Cg(
|
|
2565
|
+
function Li(g) {
|
|
2566
|
+
return r(Cg(d(g))) ?? g;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function si(g, ...A) {
|
|
2569
2569
|
if (p(g) !== "select")
|
|
2570
2570
|
return g;
|
|
2571
|
-
const B =
|
|
2572
|
-
return
|
|
2571
|
+
const B = O(g);
|
|
2572
|
+
return T("select", {
|
|
2573
2573
|
...B,
|
|
2574
2574
|
expressions: [...B.expressions, ...A]
|
|
2575
2575
|
});
|
|
@@ -2577,117 +2577,117 @@ function Li(g, ...A) {
|
|
|
2577
2577
|
function pi(g, A) {
|
|
2578
2578
|
if (p(g) !== "select")
|
|
2579
2579
|
return g;
|
|
2580
|
-
const B =
|
|
2581
|
-
return
|
|
2580
|
+
const B = O(g);
|
|
2581
|
+
return T("select", {
|
|
2582
2582
|
...B,
|
|
2583
2583
|
expressions: B.expressions.filter((Q) => !A(Q))
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function Zi(g, A) {
|
|
2587
2587
|
if (typeof A == "number")
|
|
2588
|
-
return r(
|
|
2588
|
+
return r(og(d(g), A)) ?? g;
|
|
2589
2589
|
if (p(g) !== "select")
|
|
2590
2590
|
return g;
|
|
2591
|
-
const B =
|
|
2592
|
-
return
|
|
2591
|
+
const B = O(g);
|
|
2592
|
+
return T("select", {
|
|
2593
2593
|
...B,
|
|
2594
2594
|
limit: { this: A }
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function Oi(g, A) {
|
|
2598
2598
|
if (p(g) !== "select")
|
|
2599
2599
|
return g;
|
|
2600
|
-
const B =
|
|
2601
|
-
return
|
|
2600
|
+
const B = O(g), Q = typeof A == "number" ? T("literal", { literal_type: "number", value: String(A) }) : A;
|
|
2601
|
+
return T("select", {
|
|
2602
2602
|
...B,
|
|
2603
2603
|
offset: { this: Q }
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function ji(g) {
|
|
2607
2607
|
if (p(g) !== "select")
|
|
2608
2608
|
return g;
|
|
2609
|
-
const A =
|
|
2610
|
-
return
|
|
2609
|
+
const A = O(g);
|
|
2610
|
+
return T("select", {
|
|
2611
2611
|
...A,
|
|
2612
2612
|
limit: null,
|
|
2613
2613
|
offset: null
|
|
2614
2614
|
});
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return r(ig(
|
|
2616
|
+
function xi(g, A = !0) {
|
|
2617
|
+
return r(ig(d(g), A)) ?? g;
|
|
2618
2618
|
}
|
|
2619
2619
|
function Wi(g) {
|
|
2620
2620
|
return JA(g, {});
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function mg(g, A, B) {
|
|
2623
2623
|
if (g == null) return g;
|
|
2624
2624
|
if (Array.isArray(g))
|
|
2625
|
-
return g.length > 0 &&
|
|
2626
|
-
if (
|
|
2627
|
-
return
|
|
2625
|
+
return g.length > 0 && l(g[0]) ? g.filter((Q) => !A(Q, B)).map((Q) => UA(Q, A)) : g;
|
|
2626
|
+
if (l(g))
|
|
2627
|
+
return UA(g, A);
|
|
2628
2628
|
if (typeof g == "object") {
|
|
2629
2629
|
const C = { ...g };
|
|
2630
2630
|
let E = !1;
|
|
2631
|
-
for (const [D,
|
|
2632
|
-
const N =
|
|
2633
|
-
N !==
|
|
2631
|
+
for (const [D, w] of Object.entries(C)) {
|
|
2632
|
+
const N = mg(w, A, B);
|
|
2633
|
+
N !== w && (C[D] = N, E = !0);
|
|
2634
2634
|
}
|
|
2635
2635
|
return E ? C : g;
|
|
2636
2636
|
}
|
|
2637
2637
|
return g;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const B = p(g), C = { ...
|
|
2639
|
+
function UA(g, A) {
|
|
2640
|
+
const B = p(g), C = { ...O(g) };
|
|
2641
2641
|
for (const [E, D] of Object.entries(C)) {
|
|
2642
|
-
const
|
|
2643
|
-
|
|
2642
|
+
const w = mg(D, A, g);
|
|
2643
|
+
w !== D && (C[E] = w);
|
|
2644
2644
|
}
|
|
2645
|
-
return
|
|
2645
|
+
return T(B, C);
|
|
2646
2646
|
}
|
|
2647
2647
|
function z(g) {
|
|
2648
2648
|
return JSON.stringify(g);
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function lg(g, A, B) {
|
|
2651
2651
|
if (g != null) {
|
|
2652
2652
|
if (Array.isArray(g)) {
|
|
2653
|
-
if (g.length > 0 &&
|
|
2653
|
+
if (g.length > 0 && l(g[0]))
|
|
2654
2654
|
B.push({ key: A, value: g });
|
|
2655
2655
|
else if (g.length > 0 && Array.isArray(g[0])) {
|
|
2656
2656
|
for (const Q of g)
|
|
2657
2657
|
if (Array.isArray(Q))
|
|
2658
2658
|
for (const C of Q)
|
|
2659
|
-
|
|
2659
|
+
l(C) && B.push({ key: A, value: C });
|
|
2660
2660
|
}
|
|
2661
|
-
} else if (
|
|
2661
|
+
} else if (l(g))
|
|
2662
2662
|
B.push({ key: A, value: g });
|
|
2663
2663
|
else if (typeof g == "object")
|
|
2664
2664
|
for (const [, Q] of Object.entries(
|
|
2665
2665
|
g
|
|
2666
2666
|
))
|
|
2667
|
-
|
|
2667
|
+
lg(Q, A, B);
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2671
|
-
const A = [], B =
|
|
2670
|
+
function dg(g) {
|
|
2671
|
+
const A = [], B = O(g);
|
|
2672
2672
|
if (!B || typeof B != "object") return A;
|
|
2673
2673
|
for (const [Q, C] of Object.entries(B))
|
|
2674
|
-
|
|
2674
|
+
lg(C, Q, A);
|
|
2675
2675
|
return A;
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function V(g, A, B = null, Q = null, C = null) {
|
|
2678
2678
|
A.enter && A.enter(g, B, Q, C);
|
|
2679
2679
|
const E = p(g), D = A[E];
|
|
2680
2680
|
D && D(g, B, Q, C);
|
|
2681
|
-
const
|
|
2682
|
-
for (const N of
|
|
2681
|
+
const w = dg(g);
|
|
2682
|
+
for (const N of w)
|
|
2683
2683
|
Array.isArray(N.value) ? N.value.forEach((M, J) => {
|
|
2684
|
-
|
|
2685
|
-
}) :
|
|
2684
|
+
V(M, A, g, N.key, J);
|
|
2685
|
+
}) : V(N.value, A, g, N.key, null);
|
|
2686
2686
|
A.leave && A.leave(g, B, Q, C);
|
|
2687
2687
|
}
|
|
2688
2688
|
function YA(g, A) {
|
|
2689
2689
|
const B = [];
|
|
2690
|
-
return
|
|
2690
|
+
return V(g, {
|
|
2691
2691
|
enter: (Q, C) => {
|
|
2692
2692
|
A(Q, C) && B.push(Q);
|
|
2693
2693
|
}
|
|
@@ -2696,20 +2696,20 @@ function YA(g, A) {
|
|
|
2696
2696
|
function CA(g, A) {
|
|
2697
2697
|
return YA(g, (B) => p(B) === A);
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function Pg(g, A) {
|
|
2700
2700
|
let B, Q = !1;
|
|
2701
|
-
return
|
|
2701
|
+
return V(g, {
|
|
2702
2702
|
enter: (C, E) => {
|
|
2703
2703
|
!Q && A(C, E) && (B = C, Q = !0);
|
|
2704
2704
|
}
|
|
2705
2705
|
}), B;
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return
|
|
2707
|
+
function Vi(g, A) {
|
|
2708
|
+
return Pg(g, A) !== void 0;
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function Ti(g, A) {
|
|
2711
2711
|
let B = !0;
|
|
2712
|
-
return
|
|
2712
|
+
return V(g, {
|
|
2713
2713
|
enter: (Q, C) => {
|
|
2714
2714
|
A(Q, C) || (B = !1);
|
|
2715
2715
|
}
|
|
@@ -2721,13 +2721,13 @@ function ti(g, A) {
|
|
|
2721
2721
|
function zg(g) {
|
|
2722
2722
|
return CA(g, "column");
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function mi(g) {
|
|
2725
2725
|
return CA(g, "table");
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function li(g) {
|
|
2728
2728
|
return CA(g, "identifier");
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function di(g) {
|
|
2731
2731
|
const A = JSON.parse(_A(z(g)));
|
|
2732
2732
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2733
2733
|
}
|
|
@@ -2735,15 +2735,15 @@ function IA(g) {
|
|
|
2735
2735
|
const A = JSON.parse(XA(z(g)));
|
|
2736
2736
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function fg(g) {
|
|
2739
2739
|
const A = JSON.parse(Ig(z(g)));
|
|
2740
2740
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function eg(g) {
|
|
2743
2743
|
const A = JSON.parse(Ag(z(g)));
|
|
2744
2744
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function Pi(g) {
|
|
2747
2747
|
const A = JSON.parse($A(z(g)));
|
|
2748
2748
|
return A.success ? JSON.parse(A.ast) : [];
|
|
2749
2749
|
}
|
|
@@ -2751,22 +2751,22 @@ function zi(g) {
|
|
|
2751
2751
|
const A = JSON.parse(vA(z(g)));
|
|
2752
2752
|
return A.success ? A.result : [];
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function fi(g) {
|
|
2755
2755
|
const A = JSON.parse(gg(z(g)));
|
|
2756
2756
|
return A.success ? A.result : [];
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function bg(g) {
|
|
2759
2759
|
return IA(g).length > 0;
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2762
|
-
return eg(g).length > 0;
|
|
2763
|
-
}
|
|
2764
|
-
function li(g) {
|
|
2761
|
+
function ei(g) {
|
|
2765
2762
|
return fg(g).length > 0;
|
|
2766
2763
|
}
|
|
2764
|
+
function bi(g) {
|
|
2765
|
+
return eg(g).length > 0;
|
|
2766
|
+
}
|
|
2767
2767
|
function ri(g) {
|
|
2768
2768
|
let A = 0, B = 0;
|
|
2769
|
-
return
|
|
2769
|
+
return V(g, {
|
|
2770
2770
|
enter: () => {
|
|
2771
2771
|
B++, A = Math.max(A, B);
|
|
2772
2772
|
},
|
|
@@ -2781,7 +2781,7 @@ function ni(g) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
function ui(g, A) {
|
|
2783
2783
|
let B = null;
|
|
2784
|
-
return
|
|
2784
|
+
return V(g, {
|
|
2785
2785
|
enter: (Q, C) => {
|
|
2786
2786
|
Q === A && (B = C);
|
|
2787
2787
|
}
|
|
@@ -2790,13 +2790,13 @@ function ui(g, A) {
|
|
|
2790
2790
|
function Xi(g, A, B) {
|
|
2791
2791
|
const Q = [];
|
|
2792
2792
|
let C = null;
|
|
2793
|
-
return
|
|
2793
|
+
return V(g, {
|
|
2794
2794
|
enter: (E) => {
|
|
2795
2795
|
if (C === null) {
|
|
2796
2796
|
if (E === A)
|
|
2797
2797
|
for (let D = Q.length - 1; D >= 0; D--) {
|
|
2798
|
-
const
|
|
2799
|
-
if (B(Q[D],
|
|
2798
|
+
const w = D > 0 ? Q[D - 1] : null;
|
|
2799
|
+
if (B(Q[D], w)) {
|
|
2800
2800
|
C = Q[D];
|
|
2801
2801
|
break;
|
|
2802
2802
|
}
|
|
@@ -2811,7 +2811,7 @@ function Xi(g, A, B) {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
function vi(g, A) {
|
|
2813
2813
|
let B = 0, Q = 0;
|
|
2814
|
-
return
|
|
2814
|
+
return V(g, {
|
|
2815
2815
|
enter: (C) => {
|
|
2816
2816
|
Q++, C === A && (B = Q);
|
|
2817
2817
|
},
|
|
@@ -2822,135 +2822,135 @@ function vi(g, A) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2824
2824
|
__proto__: null,
|
|
2825
|
-
addSelectColumns:
|
|
2825
|
+
addSelectColumns: si,
|
|
2826
2826
|
addWhere: ci,
|
|
2827
2827
|
clone: Wi,
|
|
2828
2828
|
countNodes: ti,
|
|
2829
|
-
every:
|
|
2829
|
+
every: Ti,
|
|
2830
2830
|
findAll: YA,
|
|
2831
2831
|
findAncestor: Xi,
|
|
2832
2832
|
findByType: CA,
|
|
2833
|
-
findFirst:
|
|
2833
|
+
findFirst: Pg,
|
|
2834
2834
|
getAggregateFunctions: IA,
|
|
2835
|
-
getChildren:
|
|
2835
|
+
getChildren: dg,
|
|
2836
2836
|
getColumnNames: zi,
|
|
2837
2837
|
getColumns: zg,
|
|
2838
2838
|
getDepth: ri,
|
|
2839
|
-
getExprData:
|
|
2839
|
+
getExprData: O,
|
|
2840
2840
|
getExprType: p,
|
|
2841
|
-
getFunctions:
|
|
2842
|
-
getIdentifiers:
|
|
2843
|
-
getInferredType:
|
|
2844
|
-
getLiterals:
|
|
2841
|
+
getFunctions: di,
|
|
2842
|
+
getIdentifiers: li,
|
|
2843
|
+
getInferredType: Zg,
|
|
2844
|
+
getLiterals: Pi,
|
|
2845
2845
|
getNodeDepth: vi,
|
|
2846
2846
|
getParent: ui,
|
|
2847
|
-
getSubqueries:
|
|
2848
|
-
getTableNames:
|
|
2849
|
-
getTables:
|
|
2850
|
-
getWindowFunctions:
|
|
2851
|
-
hasAggregates:
|
|
2852
|
-
hasSubqueries:
|
|
2853
|
-
hasWindowFunctions:
|
|
2854
|
-
isAdd:
|
|
2855
|
-
isAggregateFunction:
|
|
2847
|
+
getSubqueries: eg,
|
|
2848
|
+
getTableNames: fi,
|
|
2849
|
+
getTables: mi,
|
|
2850
|
+
getWindowFunctions: fg,
|
|
2851
|
+
hasAggregates: bg,
|
|
2852
|
+
hasSubqueries: bi,
|
|
2853
|
+
hasWindowFunctions: ei,
|
|
2854
|
+
isAdd: sD,
|
|
2855
|
+
isAggregateFunction: mD,
|
|
2856
2856
|
isAlias: ii,
|
|
2857
2857
|
isAlterTable: Ni,
|
|
2858
2858
|
isAnd: aD,
|
|
2859
2859
|
isArithmetic: Fi,
|
|
2860
2860
|
isAvg: zD,
|
|
2861
|
-
isBetween:
|
|
2861
|
+
isBetween: VD,
|
|
2862
2862
|
isBoolean: JD,
|
|
2863
2863
|
isCase: vD,
|
|
2864
2864
|
isCast: nD,
|
|
2865
|
-
isCoalesce:
|
|
2866
|
-
isColumn:
|
|
2865
|
+
isCoalesce: bD,
|
|
2866
|
+
isColumn: jg,
|
|
2867
2867
|
isComparison: Ri,
|
|
2868
|
-
isConcat:
|
|
2869
|
-
isCount:
|
|
2868
|
+
isConcat: xD,
|
|
2869
|
+
isCount: dD,
|
|
2870
2870
|
isCreateIndex: Mi,
|
|
2871
2871
|
isCreateTable: Gi,
|
|
2872
2872
|
isCreateView: Ji,
|
|
2873
2873
|
isCte: Di,
|
|
2874
|
-
isDDL:
|
|
2874
|
+
isDDL: Hi,
|
|
2875
2875
|
isDelete: iD,
|
|
2876
|
-
isDiv:
|
|
2876
|
+
isDiv: OD,
|
|
2877
2877
|
isDropIndex: Ki,
|
|
2878
2878
|
isDropTable: ki,
|
|
2879
2879
|
isDropView: Yi,
|
|
2880
2880
|
isEq: FD,
|
|
2881
2881
|
isExcept: GD,
|
|
2882
2882
|
isExists: tD,
|
|
2883
|
-
isExpressionValue:
|
|
2883
|
+
isExpressionValue: l,
|
|
2884
2884
|
isFrom: _D,
|
|
2885
2885
|
isFunction: Wg,
|
|
2886
2886
|
isGroupBy: gi,
|
|
2887
2887
|
isGt: SD,
|
|
2888
2888
|
isGte: hD,
|
|
2889
2889
|
isHaving: Ii,
|
|
2890
|
-
isILike:
|
|
2890
|
+
isILike: LD,
|
|
2891
2891
|
isIdentifier: ND,
|
|
2892
2892
|
isIn: WD,
|
|
2893
2893
|
isInsert: ED,
|
|
2894
|
-
isIntersect:
|
|
2895
|
-
isIsNull:
|
|
2894
|
+
isIntersect: wD,
|
|
2895
|
+
isIsNull: TD,
|
|
2896
2896
|
isJoin: $D,
|
|
2897
2897
|
isLike: cD,
|
|
2898
2898
|
isLimit: Qi,
|
|
2899
|
-
isLiteral:
|
|
2900
|
-
isLogical:
|
|
2901
|
-
isLt:
|
|
2902
|
-
isLte:
|
|
2903
|
-
isMax:
|
|
2904
|
-
isMin:
|
|
2905
|
-
isMod:
|
|
2906
|
-
isMul:
|
|
2907
|
-
isNeq:
|
|
2899
|
+
isLiteral: xg,
|
|
2900
|
+
isLogical: Ui,
|
|
2901
|
+
isLt: HD,
|
|
2902
|
+
isLte: qD,
|
|
2903
|
+
isMax: eD,
|
|
2904
|
+
isMin: fD,
|
|
2905
|
+
isMod: jD,
|
|
2906
|
+
isMul: ZD,
|
|
2907
|
+
isNeq: UD,
|
|
2908
2908
|
isNot: RD,
|
|
2909
2909
|
isNullIf: rD,
|
|
2910
2910
|
isNullLiteral: YD,
|
|
2911
2911
|
isOffset: Ci,
|
|
2912
2912
|
isOr: yD,
|
|
2913
2913
|
isOrderBy: Bi,
|
|
2914
|
-
isOrdered:
|
|
2915
|
-
isParen:
|
|
2914
|
+
isOrdered: wi,
|
|
2915
|
+
isParen: oi,
|
|
2916
2916
|
isQuery: ai,
|
|
2917
2917
|
isSafeCast: XD,
|
|
2918
|
-
isSelect:
|
|
2918
|
+
isSelect: Og,
|
|
2919
2919
|
isSetOperation: yi,
|
|
2920
2920
|
isStar: KD,
|
|
2921
2921
|
isSub: pD,
|
|
2922
2922
|
isSubquery: kD,
|
|
2923
|
-
isSum:
|
|
2923
|
+
isSum: PD,
|
|
2924
2924
|
isTable: MD,
|
|
2925
2925
|
isTryCast: uD,
|
|
2926
|
-
isUnion:
|
|
2926
|
+
isUnion: oD,
|
|
2927
2927
|
isUpdate: DD,
|
|
2928
2928
|
isWhere: Ai,
|
|
2929
|
-
isWindowFunction:
|
|
2929
|
+
isWindowFunction: lD,
|
|
2930
2930
|
isWith: Ei,
|
|
2931
|
-
makeExpr:
|
|
2931
|
+
makeExpr: T,
|
|
2932
2932
|
nodeCount: ni,
|
|
2933
2933
|
qualifyColumns: hi,
|
|
2934
|
-
remove:
|
|
2935
|
-
removeLimitOffset:
|
|
2934
|
+
remove: UA,
|
|
2935
|
+
removeLimitOffset: ji,
|
|
2936
2936
|
removeSelectColumns: pi,
|
|
2937
|
-
removeWhere:
|
|
2937
|
+
removeWhere: Li,
|
|
2938
2938
|
renameColumns: tg,
|
|
2939
2939
|
renameTables: Si,
|
|
2940
|
-
replaceByType:
|
|
2941
|
-
replaceNodes:
|
|
2942
|
-
setDistinct:
|
|
2943
|
-
setLimit:
|
|
2944
|
-
setOffset:
|
|
2945
|
-
some:
|
|
2940
|
+
replaceByType: qi,
|
|
2941
|
+
replaceNodes: Tg,
|
|
2942
|
+
setDistinct: xi,
|
|
2943
|
+
setLimit: Zi,
|
|
2944
|
+
setOffset: Oi,
|
|
2945
|
+
some: Vi,
|
|
2946
2946
|
transform: JA,
|
|
2947
|
-
walk:
|
|
2947
|
+
walk: V
|
|
2948
2948
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2949
|
-
function
|
|
2950
|
-
return g instanceof R ? g._w : typeof g == "string" ?
|
|
2949
|
+
function U(g) {
|
|
2950
|
+
return g instanceof R ? g._w : typeof g == "string" ? HA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? NA(g) : MA();
|
|
2951
2951
|
}
|
|
2952
2952
|
function W(g) {
|
|
2953
|
-
const A = new
|
|
2953
|
+
const A = new Z();
|
|
2954
2954
|
for (const B of g)
|
|
2955
2955
|
B instanceof R ? A.push(B._w) : typeof B == "string" ? A.push_col(B) : typeof B == "number" ? Number.isInteger(B) ? A.push_int(B) : A.push_float(B) : typeof B == "boolean" || B === null ? A.push(NA(B)) : A.push(MA());
|
|
2956
2956
|
return A;
|
|
@@ -2964,58 +2964,58 @@ class R {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
// -- Comparison --
|
|
2966
2966
|
eq(A) {
|
|
2967
|
-
return new R(this._w.eq(
|
|
2967
|
+
return new R(this._w.eq(U(A)));
|
|
2968
2968
|
}
|
|
2969
2969
|
neq(A) {
|
|
2970
|
-
return new R(this._w.neq(
|
|
2970
|
+
return new R(this._w.neq(U(A)));
|
|
2971
2971
|
}
|
|
2972
2972
|
lt(A) {
|
|
2973
|
-
return new R(this._w.lt(
|
|
2973
|
+
return new R(this._w.lt(U(A)));
|
|
2974
2974
|
}
|
|
2975
2975
|
lte(A) {
|
|
2976
|
-
return new R(this._w.lte(
|
|
2976
|
+
return new R(this._w.lte(U(A)));
|
|
2977
2977
|
}
|
|
2978
2978
|
gt(A) {
|
|
2979
|
-
return new R(this._w.gt(
|
|
2979
|
+
return new R(this._w.gt(U(A)));
|
|
2980
2980
|
}
|
|
2981
2981
|
gte(A) {
|
|
2982
|
-
return new R(this._w.gte(
|
|
2982
|
+
return new R(this._w.gte(U(A)));
|
|
2983
2983
|
}
|
|
2984
2984
|
// -- Logical --
|
|
2985
2985
|
and(A) {
|
|
2986
|
-
return new R(this._w.and(
|
|
2986
|
+
return new R(this._w.and(U(A)));
|
|
2987
2987
|
}
|
|
2988
2988
|
or(A) {
|
|
2989
|
-
return new R(this._w.or(
|
|
2989
|
+
return new R(this._w.or(U(A)));
|
|
2990
2990
|
}
|
|
2991
2991
|
not() {
|
|
2992
2992
|
return new R(this._w.not());
|
|
2993
2993
|
}
|
|
2994
2994
|
xor(A) {
|
|
2995
|
-
return new R(this._w.xor(
|
|
2995
|
+
return new R(this._w.xor(U(A)));
|
|
2996
2996
|
}
|
|
2997
2997
|
// -- Arithmetic --
|
|
2998
2998
|
add(A) {
|
|
2999
|
-
return new R(this._w.add(
|
|
2999
|
+
return new R(this._w.add(U(A)));
|
|
3000
3000
|
}
|
|
3001
3001
|
sub(A) {
|
|
3002
|
-
return new R(this._w.sub(
|
|
3002
|
+
return new R(this._w.sub(U(A)));
|
|
3003
3003
|
}
|
|
3004
3004
|
mul(A) {
|
|
3005
|
-
return new R(this._w.mul(
|
|
3005
|
+
return new R(this._w.mul(U(A)));
|
|
3006
3006
|
}
|
|
3007
3007
|
div(A) {
|
|
3008
|
-
return new R(this._w.div(
|
|
3008
|
+
return new R(this._w.div(U(A)));
|
|
3009
3009
|
}
|
|
3010
3010
|
// -- Pattern matching --
|
|
3011
3011
|
like(A) {
|
|
3012
|
-
return new R(this._w.like(
|
|
3012
|
+
return new R(this._w.like(U(A)));
|
|
3013
3013
|
}
|
|
3014
3014
|
ilike(A) {
|
|
3015
|
-
return new R(this._w.ilike(
|
|
3015
|
+
return new R(this._w.ilike(U(A)));
|
|
3016
3016
|
}
|
|
3017
3017
|
rlike(A) {
|
|
3018
|
-
return new R(this._w.rlike(
|
|
3018
|
+
return new R(this._w.rlike(U(A)));
|
|
3019
3019
|
}
|
|
3020
3020
|
// -- Predicates --
|
|
3021
3021
|
isNull() {
|
|
@@ -3025,7 +3025,7 @@ class R {
|
|
|
3025
3025
|
return new R(this._w.is_not_null());
|
|
3026
3026
|
}
|
|
3027
3027
|
between(A, B) {
|
|
3028
|
-
return new R(this._w.between(
|
|
3028
|
+
return new R(this._w.between(U(A), U(B)));
|
|
3029
3029
|
}
|
|
3030
3030
|
inList(...A) {
|
|
3031
3031
|
return new R(this._w.in_list(W(A)));
|
|
@@ -3082,187 +3082,187 @@ class $i {
|
|
|
3082
3082
|
this._w.free();
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
|
-
function
|
|
3086
|
-
return new R(
|
|
3085
|
+
function Ao(g) {
|
|
3086
|
+
return new R(HA(g));
|
|
3087
3087
|
}
|
|
3088
|
-
function
|
|
3088
|
+
function go(g) {
|
|
3089
3089
|
return new R(NA(g));
|
|
3090
3090
|
}
|
|
3091
3091
|
function rg() {
|
|
3092
3092
|
return new R(cg());
|
|
3093
3093
|
}
|
|
3094
|
-
function
|
|
3094
|
+
function Io() {
|
|
3095
3095
|
return new R(MA());
|
|
3096
3096
|
}
|
|
3097
3097
|
function SA(g) {
|
|
3098
3098
|
return new R(ag(g));
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3101
|
-
return new R(
|
|
3100
|
+
function Bo(g) {
|
|
3101
|
+
return new R(sg(g));
|
|
3102
3102
|
}
|
|
3103
3103
|
function ng(g) {
|
|
3104
3104
|
return new R(hg(g));
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3106
|
+
function Qo(g) {
|
|
3107
3107
|
return ng(g);
|
|
3108
3108
|
}
|
|
3109
3109
|
function S(g, ...A) {
|
|
3110
|
-
return new R(
|
|
3110
|
+
return new R(Hg(g, W(A)));
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3113
|
-
return new R(
|
|
3112
|
+
function Co(g) {
|
|
3113
|
+
return new R(qg(U(g)));
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3116
|
-
return new R(Rg(
|
|
3115
|
+
function Eo(g, A) {
|
|
3116
|
+
return new R(Rg(U(g), A));
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3119
|
-
return new R(Jg(
|
|
3118
|
+
function Do(g, A) {
|
|
3119
|
+
return new R(Jg(U(g), A));
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3122
|
-
return new R(
|
|
3121
|
+
function io(g, A) {
|
|
3122
|
+
return new R(Lg(g._w, A));
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function oo(...g) {
|
|
3125
3125
|
if (g.length === 0) return SA(!0);
|
|
3126
3126
|
if (g.length === 1)
|
|
3127
|
-
return g[0] instanceof R ? g[0] : new R(
|
|
3128
|
-
let A =
|
|
3127
|
+
return g[0] instanceof R ? g[0] : new R(U(g[0]));
|
|
3128
|
+
let A = U(g[0]);
|
|
3129
3129
|
for (let B = 1; B < g.length; B++)
|
|
3130
|
-
A = Yg(A,
|
|
3130
|
+
A = Yg(A, U(g[B]));
|
|
3131
3131
|
return new R(A);
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function wo(...g) {
|
|
3134
3134
|
if (g.length === 0) return SA(!1);
|
|
3135
3135
|
if (g.length === 1)
|
|
3136
|
-
return g[0] instanceof R ? g[0] : new R(
|
|
3137
|
-
let A =
|
|
3136
|
+
return g[0] instanceof R ? g[0] : new R(U(g[0]));
|
|
3137
|
+
let A = U(g[0]);
|
|
3138
3138
|
for (let B = 1; B < g.length; B++)
|
|
3139
|
-
A = Sg(A,
|
|
3139
|
+
A = Sg(A, U(g[B]));
|
|
3140
3140
|
return new R(A);
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function Go(g) {
|
|
3143
3143
|
return g !== void 0 ? S("COUNT", g) : S("COUNT", rg());
|
|
3144
3144
|
}
|
|
3145
|
-
function
|
|
3146
|
-
return new R(Fg(
|
|
3145
|
+
function ko(g) {
|
|
3146
|
+
return new R(Fg(U(g)));
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function No(g) {
|
|
3149
3149
|
return S("SUM", g);
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function Mo(g) {
|
|
3152
3152
|
return S("AVG", g);
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3154
|
+
function Ko(g) {
|
|
3155
3155
|
return S("MIN", g);
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3157
|
+
function Jo(g) {
|
|
3158
3158
|
return S("MAX", g);
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3160
|
+
function Yo(g) {
|
|
3161
3161
|
return S("UPPER", g);
|
|
3162
3162
|
}
|
|
3163
|
-
function
|
|
3163
|
+
function ao(g) {
|
|
3164
3164
|
return S("LOWER", g);
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function yo(g) {
|
|
3167
3167
|
return S("LENGTH", g);
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Ro(g) {
|
|
3170
3170
|
return S("TRIM", g);
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Fo(g) {
|
|
3173
3173
|
return S("LTRIM", g);
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function Uo(g) {
|
|
3176
3176
|
return S("RTRIM", g);
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Ho(g) {
|
|
3179
3179
|
return S("REVERSE", g);
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function qo(g) {
|
|
3182
3182
|
return S("INITCAP", g);
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3184
|
+
function So(g, A, B) {
|
|
3185
3185
|
return B !== void 0 ? S("SUBSTRING", g, A, B) : S("SUBSTRING", g, A);
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function ho(g, A, B) {
|
|
3188
3188
|
return S("REPLACE", g, A, B);
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function co(g, ...A) {
|
|
3191
3191
|
return S("CONCAT_WS", g, ...A);
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function Lo(...g) {
|
|
3194
3194
|
return S("COALESCE", ...g);
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3196
|
+
function so(g, A) {
|
|
3197
3197
|
return S("NULLIF", g, A);
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function po(g, A) {
|
|
3200
3200
|
return S("IFNULL", g, A);
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function Zo(g) {
|
|
3203
3203
|
return S("ABS", g);
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function Oo(g, A) {
|
|
3206
3206
|
return A !== void 0 ? S("ROUND", g, A) : S("ROUND", g);
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3208
|
+
function jo(g) {
|
|
3209
3209
|
return S("FLOOR", g);
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3211
|
+
function xo(g) {
|
|
3212
3212
|
return S("CEIL", g);
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function Wo(g, A) {
|
|
3215
3215
|
return S("POWER", g, A);
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function Vo(g) {
|
|
3218
3218
|
return S("SQRT", g);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function To(g) {
|
|
3221
3221
|
return S("LN", g);
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function to(g) {
|
|
3224
3224
|
return S("EXP", g);
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function mo(g) {
|
|
3227
3227
|
return S("SIGN", g);
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function lo(...g) {
|
|
3230
3230
|
return S("GREATEST", ...g);
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Po(...g) {
|
|
3233
3233
|
return S("LEAST", ...g);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function zo() {
|
|
3236
3236
|
return S("CURRENT_DATE");
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function fo() {
|
|
3239
3239
|
return S("CURRENT_TIME");
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function eo() {
|
|
3242
3242
|
return S("CURRENT_TIMESTAMP");
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3245
|
-
return new R(
|
|
3244
|
+
function bo(g, A) {
|
|
3245
|
+
return new R(Ug(g, U(A)));
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function ro() {
|
|
3248
3248
|
return S("ROW_NUMBER");
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
function no() {
|
|
3251
3251
|
return S("RANK");
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function uo() {
|
|
3254
3254
|
return S("DENSE_RANK");
|
|
3255
3255
|
}
|
|
3256
3256
|
class ug {
|
|
3257
3257
|
/** @internal */
|
|
3258
3258
|
_w;
|
|
3259
3259
|
constructor() {
|
|
3260
|
-
this._w = new
|
|
3260
|
+
this._w = new x();
|
|
3261
3261
|
}
|
|
3262
3262
|
/** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
|
|
3263
3263
|
select(...A) {
|
|
3264
3264
|
for (const B of A)
|
|
3265
|
-
B === "*" ? this._w.select_star() : B instanceof R ? this._w.select_expr(B._w) : typeof B == "string" ? this._w.select_col(B) : this._w.select_expr(
|
|
3265
|
+
B === "*" ? this._w.select_star() : B instanceof R ? this._w.select_expr(B._w) : typeof B == "string" ? this._w.select_col(B) : this._w.select_expr(U(B));
|
|
3266
3266
|
return this;
|
|
3267
3267
|
}
|
|
3268
3268
|
/** Set the FROM clause. */
|
|
@@ -3271,15 +3271,15 @@ class ug {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
/** Add an INNER JOIN. */
|
|
3273
3273
|
join(A, B) {
|
|
3274
|
-
return this._w.join(A,
|
|
3274
|
+
return this._w.join(A, U(B)), this;
|
|
3275
3275
|
}
|
|
3276
3276
|
/** Add a LEFT JOIN. */
|
|
3277
3277
|
leftJoin(A, B) {
|
|
3278
|
-
return this._w.left_join(A,
|
|
3278
|
+
return this._w.left_join(A, U(B)), this;
|
|
3279
3279
|
}
|
|
3280
3280
|
/** Add a RIGHT JOIN. */
|
|
3281
3281
|
rightJoin(A, B) {
|
|
3282
|
-
return this._w.right_join(A,
|
|
3282
|
+
return this._w.right_join(A, U(B)), this;
|
|
3283
3283
|
}
|
|
3284
3284
|
/** Add a CROSS JOIN. */
|
|
3285
3285
|
crossJoin(A) {
|
|
@@ -3287,7 +3287,7 @@ class ug {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
/** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
|
|
3289
3289
|
where(A) {
|
|
3290
|
-
return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(
|
|
3290
|
+
return typeof A == "string" ? this._w.where_sql(A) : A instanceof R ? this._w.where_expr(A._w) : this._w.where_expr(U(A)), this;
|
|
3291
3291
|
}
|
|
3292
3292
|
/** Set the GROUP BY clause. */
|
|
3293
3293
|
groupBy(...A) {
|
|
@@ -3295,7 +3295,7 @@ class ug {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
/** Set the HAVING clause. */
|
|
3297
3297
|
having(A) {
|
|
3298
|
-
return this._w.having(
|
|
3298
|
+
return this._w.having(U(A)), this;
|
|
3299
3299
|
}
|
|
3300
3300
|
/** Set the ORDER BY clause. */
|
|
3301
3301
|
orderBy(...A) {
|
|
@@ -3315,7 +3315,7 @@ class ug {
|
|
|
3315
3315
|
}
|
|
3316
3316
|
/** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
|
|
3317
3317
|
qualify(A) {
|
|
3318
|
-
return this._w.qualify(
|
|
3318
|
+
return this._w.qualify(U(A)), this;
|
|
3319
3319
|
}
|
|
3320
3320
|
/** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
|
|
3321
3321
|
sortBy(...A) {
|
|
@@ -3380,7 +3380,7 @@ class ug {
|
|
|
3380
3380
|
this._w.free();
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3383
|
+
function Xo(...g) {
|
|
3384
3384
|
const A = new ug();
|
|
3385
3385
|
return g.length > 0 && A.select(...g), A;
|
|
3386
3386
|
}
|
|
@@ -3388,7 +3388,7 @@ class Xg {
|
|
|
3388
3388
|
/** @internal */
|
|
3389
3389
|
_w;
|
|
3390
3390
|
constructor(A) {
|
|
3391
|
-
this._w = new
|
|
3391
|
+
this._w = new wA(A);
|
|
3392
3392
|
}
|
|
3393
3393
|
/** Set the target column names. */
|
|
3394
3394
|
columns(...A) {
|
|
@@ -3418,7 +3418,7 @@ class Xg {
|
|
|
3418
3418
|
function vg(g) {
|
|
3419
3419
|
return new Xg(g);
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3421
|
+
function vo(g) {
|
|
3422
3422
|
return vg(g);
|
|
3423
3423
|
}
|
|
3424
3424
|
class _g {
|
|
@@ -3429,11 +3429,11 @@ class _g {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
/** Add a SET column = value assignment. */
|
|
3431
3431
|
set(A, B) {
|
|
3432
|
-
return this._w.set(A,
|
|
3432
|
+
return this._w.set(A, U(B)), this;
|
|
3433
3433
|
}
|
|
3434
3434
|
/** Set the WHERE clause. */
|
|
3435
3435
|
where(A) {
|
|
3436
|
-
return this._w.where_expr(
|
|
3436
|
+
return this._w.where_expr(U(A)), this;
|
|
3437
3437
|
}
|
|
3438
3438
|
/** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
|
|
3439
3439
|
from(A) {
|
|
@@ -3452,18 +3452,18 @@ class _g {
|
|
|
3452
3452
|
this._w.free();
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function _o(g) {
|
|
3456
3456
|
return new _g(g);
|
|
3457
3457
|
}
|
|
3458
3458
|
class $g {
|
|
3459
3459
|
/** @internal */
|
|
3460
3460
|
_w;
|
|
3461
3461
|
constructor(A) {
|
|
3462
|
-
this._w = new
|
|
3462
|
+
this._w = new oA(A);
|
|
3463
3463
|
}
|
|
3464
3464
|
/** Set the WHERE clause. */
|
|
3465
3465
|
where(A) {
|
|
3466
|
-
return this._w.where_expr(
|
|
3466
|
+
return this._w.where_expr(U(A)), this;
|
|
3467
3467
|
}
|
|
3468
3468
|
/** Generate SQL string. Defaults to generic dialect. */
|
|
3469
3469
|
toSql(A = "generic") {
|
|
@@ -3481,7 +3481,7 @@ class $g {
|
|
|
3481
3481
|
function AI(g) {
|
|
3482
3482
|
return new $g(g);
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3484
|
+
function $o(g) {
|
|
3485
3485
|
return AI(g);
|
|
3486
3486
|
}
|
|
3487
3487
|
class gI {
|
|
@@ -3492,13 +3492,13 @@ class gI {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
/** Set the source table and ON condition. */
|
|
3494
3494
|
using(A, B) {
|
|
3495
|
-
return this._w.using(A,
|
|
3495
|
+
return this._w.using(A, U(B)), this;
|
|
3496
3496
|
}
|
|
3497
3497
|
/** Add a WHEN MATCHED THEN UPDATE SET clause. */
|
|
3498
3498
|
whenMatchedUpdate(A) {
|
|
3499
3499
|
const B = new BA();
|
|
3500
3500
|
for (const [Q, C] of Object.entries(A))
|
|
3501
|
-
B.push(Q,
|
|
3501
|
+
B.push(Q, U(C));
|
|
3502
3502
|
return this._w.when_matched_update(B), this;
|
|
3503
3503
|
}
|
|
3504
3504
|
/** Add a WHEN MATCHED THEN DELETE clause. */
|
|
@@ -3522,7 +3522,7 @@ class gI {
|
|
|
3522
3522
|
this._w.free();
|
|
3523
3523
|
}
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function Aw(g) {
|
|
3526
3526
|
return new gI(g);
|
|
3527
3527
|
}
|
|
3528
3528
|
class hA {
|
|
@@ -3534,11 +3534,11 @@ class hA {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
/** Add a WHEN condition THEN result branch. */
|
|
3536
3536
|
when(A, B) {
|
|
3537
|
-
return this._w.when(
|
|
3537
|
+
return this._w.when(U(A), U(B)), this;
|
|
3538
3538
|
}
|
|
3539
3539
|
/** Set the ELSE result. */
|
|
3540
3540
|
else_(A) {
|
|
3541
|
-
return this._w.else_(
|
|
3541
|
+
return this._w.else_(U(A)), this;
|
|
3542
3542
|
}
|
|
3543
3543
|
/** Build the CASE expression as an Expr. */
|
|
3544
3544
|
build() {
|
|
@@ -3549,11 +3549,11 @@ class hA {
|
|
|
3549
3549
|
return this._w.to_sql();
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
|
-
function
|
|
3553
|
-
return new hA(new
|
|
3552
|
+
function gw() {
|
|
3553
|
+
return new hA(new b());
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3556
|
-
return new hA(yg(
|
|
3555
|
+
function Iw(g) {
|
|
3556
|
+
return new hA(yg(U(g)));
|
|
3557
3557
|
}
|
|
3558
3558
|
class _ {
|
|
3559
3559
|
/** @internal */
|
|
@@ -3587,26 +3587,26 @@ class _ {
|
|
|
3587
3587
|
this._w.free();
|
|
3588
3588
|
}
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3590
|
+
function Bw(g, A) {
|
|
3591
3591
|
return g.union(A);
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3593
|
+
function Qw(g, A) {
|
|
3594
3594
|
return g.unionAll(A);
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3596
|
+
function Cw(g, A) {
|
|
3597
3597
|
return g.intersect(A);
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function Ew(g, A) {
|
|
3600
3600
|
return g.except(A);
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function Dw(g, A) {
|
|
3603
3603
|
const B = [];
|
|
3604
|
-
return p(g) === "select" && B.push(...
|
|
3604
|
+
return p(g) === "select" && B.push(...iw(g)), B;
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3606
|
+
function iw(g, A) {
|
|
3607
3607
|
const B = [], Q = CA(g, "star");
|
|
3608
3608
|
if (Q.length > 0) {
|
|
3609
|
-
const D =
|
|
3609
|
+
const D = O(Q[0])?.span;
|
|
3610
3610
|
B.push({
|
|
3611
3611
|
message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
|
|
3612
3612
|
severity: "warning",
|
|
@@ -3617,8 +3617,8 @@ function Do(g, A) {
|
|
|
3617
3617
|
end: D?.end
|
|
3618
3618
|
});
|
|
3619
3619
|
}
|
|
3620
|
-
const C =
|
|
3621
|
-
if (
|
|
3620
|
+
const C = O(g);
|
|
3621
|
+
if (bg(g) && !C.group_by) {
|
|
3622
3622
|
const E = IA(g), D = C.expressions || [];
|
|
3623
3623
|
if (D.some((N) => {
|
|
3624
3624
|
const M = p(N);
|
|
@@ -3627,7 +3627,7 @@ function Do(g, A) {
|
|
|
3627
3627
|
const N = D.find((J) => {
|
|
3628
3628
|
const y = p(J);
|
|
3629
3629
|
return y === "column" || y === "identifier" ? IA(J).length === 0 : !1;
|
|
3630
|
-
}), M = N ?
|
|
3630
|
+
}), M = N ? O(N)?.span : void 0;
|
|
3631
3631
|
B.push({
|
|
3632
3632
|
message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
|
|
3633
3633
|
severity: "warning",
|
|
@@ -3644,7 +3644,7 @@ function Do(g, A) {
|
|
|
3644
3644
|
severity: "warning",
|
|
3645
3645
|
code: "W003"
|
|
3646
3646
|
}), C.limit && !C.order_by) {
|
|
3647
|
-
const E = C.limit, D = E ?
|
|
3647
|
+
const E = C.limit, D = E ? O(E)?.span : void 0;
|
|
3648
3648
|
B.push({
|
|
3649
3649
|
message: "LIMIT without ORDER BY produces non-deterministic results",
|
|
3650
3650
|
severity: "warning",
|
|
@@ -3657,7 +3657,7 @@ function Do(g, A) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
return B;
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function ow(g) {
|
|
3661
3661
|
try {
|
|
3662
3662
|
return JSON.parse(g);
|
|
3663
3663
|
} catch {
|
|
@@ -3673,7 +3673,7 @@ function io(g) {
|
|
|
3673
3673
|
};
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
function
|
|
3676
|
+
function ww(g, A, B = "generic", Q = {}) {
|
|
3677
3677
|
const C = Q.strict ?? A.strict ?? !0, E = {
|
|
3678
3678
|
check_types: Q.checkTypes ?? !1,
|
|
3679
3679
|
check_references: Q.checkReferences ?? !1,
|
|
@@ -3686,16 +3686,16 @@ function wo(g, A, B = "generic", Q = {}) {
|
|
|
3686
3686
|
B,
|
|
3687
3687
|
JSON.stringify(E)
|
|
3688
3688
|
);
|
|
3689
|
-
return
|
|
3689
|
+
return ow(D);
|
|
3690
3690
|
}
|
|
3691
|
-
const
|
|
3691
|
+
const Gw = {
|
|
3692
3692
|
Error: "error",
|
|
3693
3693
|
Warning: "warning"
|
|
3694
3694
|
}, v = pg;
|
|
3695
3695
|
function nA(g) {
|
|
3696
3696
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function kw(g, A = "generic", B = {}) {
|
|
3699
3699
|
const Q = B.strictSyntax ? v.validate_with_options(
|
|
3700
3700
|
g,
|
|
3701
3701
|
A,
|
|
@@ -3710,14 +3710,14 @@ function Go(g, A = "generic", B = {}) {
|
|
|
3710
3710
|
);
|
|
3711
3711
|
if (!E.success || !E.ast)
|
|
3712
3712
|
return C;
|
|
3713
|
-
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast,
|
|
3713
|
+
const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, w = [...C.errors];
|
|
3714
3714
|
for (const M of D) {
|
|
3715
|
-
const J =
|
|
3716
|
-
|
|
3715
|
+
const J = Dw(M);
|
|
3716
|
+
w.push(...J);
|
|
3717
3717
|
}
|
|
3718
3718
|
return {
|
|
3719
|
-
valid: !
|
|
3720
|
-
errors:
|
|
3719
|
+
valid: !w.some((M) => M.severity === "error"),
|
|
3720
|
+
errors: w
|
|
3721
3721
|
};
|
|
3722
3722
|
}
|
|
3723
3723
|
function II(g, A, B = "generic", Q = !1) {
|
|
@@ -3739,8 +3739,8 @@ function QI(g, A, B = "generic") {
|
|
|
3739
3739
|
return JSON.parse(Q);
|
|
3740
3740
|
}
|
|
3741
3741
|
function CI(g, A, B = "generic", Q = {}) {
|
|
3742
|
-
const { deltaOnly: C = !1, f: E = 0.6, t: D = 0.6 } = Q,
|
|
3743
|
-
return JSON.parse(
|
|
3742
|
+
const { deltaOnly: C = !1, f: E = 0.6, t: D = 0.6 } = Q, w = wg(g, A, B, C, E, D);
|
|
3743
|
+
return JSON.parse(w);
|
|
3744
3744
|
}
|
|
3745
3745
|
function EI(g) {
|
|
3746
3746
|
return g.some((A) => A.type !== "keep");
|
|
@@ -3753,11 +3753,11 @@ function iI(g, A = "generic") {
|
|
|
3753
3753
|
return JSON.parse(B);
|
|
3754
3754
|
}
|
|
3755
3755
|
var cA = /* @__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))(cA || {});
|
|
3756
|
-
const
|
|
3756
|
+
const L = pg;
|
|
3757
3757
|
function aA(g) {
|
|
3758
3758
|
return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function LA(g, A) {
|
|
3761
3761
|
return {
|
|
3762
3762
|
success: !1,
|
|
3763
3763
|
sql: void 0,
|
|
@@ -3766,7 +3766,7 @@ function sA(g, A) {
|
|
|
3766
3766
|
errorColumn: void 0
|
|
3767
3767
|
};
|
|
3768
3768
|
}
|
|
3769
|
-
function
|
|
3769
|
+
function Nw(g, A) {
|
|
3770
3770
|
return {
|
|
3771
3771
|
success: !1,
|
|
3772
3772
|
ast: void 0,
|
|
@@ -3775,39 +3775,39 @@ function ko(g, A) {
|
|
|
3775
3775
|
errorColumn: void 0
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function P(g) {
|
|
3779
3779
|
return typeof g == "string" ? JSON.parse(g) : g;
|
|
3780
3780
|
}
|
|
3781
|
-
async function
|
|
3781
|
+
async function oI() {
|
|
3782
3782
|
return Promise.resolve();
|
|
3783
3783
|
}
|
|
3784
|
-
function
|
|
3784
|
+
function wI() {
|
|
3785
3785
|
return !0;
|
|
3786
3786
|
}
|
|
3787
|
-
function
|
|
3787
|
+
function sA(g, A, B) {
|
|
3788
3788
|
try {
|
|
3789
|
-
return typeof
|
|
3790
|
-
|
|
3791
|
-
) : JSON.parse(
|
|
3789
|
+
return typeof L.transpile_value == "function" ? P(
|
|
3790
|
+
L.transpile_value(g, A, B)
|
|
3791
|
+
) : JSON.parse(L.transpile(g, A, B));
|
|
3792
3792
|
} catch (Q) {
|
|
3793
|
-
return
|
|
3793
|
+
return LA("transpile", Q);
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
function pA(g, A = "generic") {
|
|
3797
3797
|
try {
|
|
3798
|
-
if (typeof
|
|
3799
|
-
return
|
|
3800
|
-
const B = JSON.parse(
|
|
3798
|
+
if (typeof L.parse_value == "function")
|
|
3799
|
+
return P(L.parse_value(g, A));
|
|
3800
|
+
const B = JSON.parse(L.parse(g, A));
|
|
3801
3801
|
return B.success && typeof B.ast == "string" && (B.ast = JSON.parse(B.ast)), B;
|
|
3802
3802
|
} catch (B) {
|
|
3803
|
-
return
|
|
3803
|
+
return Nw("parse", B);
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function ZA(g, A = "generic") {
|
|
3807
3807
|
try {
|
|
3808
|
-
return typeof
|
|
3809
|
-
|
|
3810
|
-
) : JSON.parse(
|
|
3808
|
+
return typeof L.tokenize_value == "function" ? P(
|
|
3809
|
+
L.tokenize_value(g, A)
|
|
3810
|
+
) : JSON.parse(L.tokenize(g, A));
|
|
3811
3811
|
} catch (B) {
|
|
3812
3812
|
return {
|
|
3813
3813
|
success: !1,
|
|
@@ -3816,47 +3816,47 @@ function OA(g, A = "generic") {
|
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
3818
|
}
|
|
3819
|
-
function
|
|
3819
|
+
function OA(g, A = "generic") {
|
|
3820
3820
|
try {
|
|
3821
|
-
if (typeof
|
|
3822
|
-
return
|
|
3823
|
-
|
|
3821
|
+
if (typeof L.generate_value == "function" && Array.isArray(g))
|
|
3822
|
+
return P(
|
|
3823
|
+
L.generate_value(g, A)
|
|
3824
3824
|
);
|
|
3825
3825
|
const B = JSON.stringify(g);
|
|
3826
|
-
return JSON.parse(
|
|
3826
|
+
return JSON.parse(L.generate(B, A));
|
|
3827
3827
|
} catch (B) {
|
|
3828
|
-
return
|
|
3828
|
+
return LA("generate", B);
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3832
|
-
return
|
|
3831
|
+
function jA(g, A = "generic") {
|
|
3832
|
+
return xA(g, A, {});
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3834
|
+
function xA(g, A = "generic", B = {}) {
|
|
3835
3835
|
try {
|
|
3836
|
-
return typeof
|
|
3837
|
-
|
|
3838
|
-
) : typeof
|
|
3839
|
-
|
|
3840
|
-
) : typeof
|
|
3841
|
-
|
|
3842
|
-
) : JSON.parse(
|
|
3836
|
+
return typeof L.format_sql_with_options_value == "function" ? P(
|
|
3837
|
+
L.format_sql_with_options_value(g, A, B)
|
|
3838
|
+
) : typeof L.format_sql_with_options == "function" ? JSON.parse(
|
|
3839
|
+
L.format_sql_with_options(g, A, JSON.stringify(B))
|
|
3840
|
+
) : typeof L.format_sql_value == "function" ? P(
|
|
3841
|
+
L.format_sql_value(g, A)
|
|
3842
|
+
) : JSON.parse(L.format_sql(g, A));
|
|
3843
3843
|
} catch (Q) {
|
|
3844
|
-
return
|
|
3844
|
+
return LA("format", Q);
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
3847
|
function WA() {
|
|
3848
|
-
return typeof
|
|
3848
|
+
return typeof L.get_dialects_value == "function" ? P(L.get_dialects_value()) : JSON.parse(L.get_dialects());
|
|
3849
3849
|
}
|
|
3850
|
-
function
|
|
3851
|
-
return
|
|
3850
|
+
function VA() {
|
|
3851
|
+
return L.version();
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function TA(g, A = "generic", B) {
|
|
3854
3854
|
try {
|
|
3855
3855
|
const Q = B ? JSON.stringify(B) : "";
|
|
3856
|
-
return typeof
|
|
3857
|
-
|
|
3858
|
-
) : typeof
|
|
3859
|
-
|
|
3856
|
+
return typeof L.annotate_types_value == "function" ? P(
|
|
3857
|
+
L.annotate_types_value(g, A, Q)
|
|
3858
|
+
) : typeof L.annotate_types == "function" ? JSON.parse(
|
|
3859
|
+
L.annotate_types(g, A, Q)
|
|
3860
3860
|
) : {
|
|
3861
3861
|
success: !1,
|
|
3862
3862
|
error: "annotate_types not available in this WASM build"
|
|
@@ -3868,7 +3868,7 @@ function jA(g, A = "generic", B) {
|
|
|
3868
3868
|
};
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
|
-
class
|
|
3871
|
+
class e {
|
|
3872
3872
|
static instance = null;
|
|
3873
3873
|
constructor() {
|
|
3874
3874
|
}
|
|
@@ -3877,7 +3877,7 @@ class f {
|
|
|
3877
3877
|
* The WASM module is automatically initialized on import.
|
|
3878
3878
|
*/
|
|
3879
3879
|
static getInstance() {
|
|
3880
|
-
return
|
|
3880
|
+
return e.instance || (e.instance = new e()), e.instance;
|
|
3881
3881
|
}
|
|
3882
3882
|
/**
|
|
3883
3883
|
* Transpile SQL from one dialect to another.
|
|
@@ -3887,7 +3887,7 @@ class f {
|
|
|
3887
3887
|
* Use {@link Polyglot.getDialects} to check available dialects.
|
|
3888
3888
|
*/
|
|
3889
3889
|
transpile(A, B, Q) {
|
|
3890
|
-
return
|
|
3890
|
+
return sA(A, B, Q);
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
3893
3893
|
* Parse SQL into an AST.
|
|
@@ -3899,25 +3899,25 @@ class f {
|
|
|
3899
3899
|
* Tokenize SQL into a token stream.
|
|
3900
3900
|
*/
|
|
3901
3901
|
tokenize(A, B = "generic") {
|
|
3902
|
-
return
|
|
3902
|
+
return ZA(A, B);
|
|
3903
3903
|
}
|
|
3904
3904
|
/**
|
|
3905
3905
|
* Generate SQL from an AST.
|
|
3906
3906
|
*/
|
|
3907
3907
|
generate(A, B = "generic") {
|
|
3908
|
-
return
|
|
3908
|
+
return OA(A, B);
|
|
3909
3909
|
}
|
|
3910
3910
|
/**
|
|
3911
3911
|
* Format SQL.
|
|
3912
3912
|
*/
|
|
3913
3913
|
format(A, B = "generic") {
|
|
3914
|
-
return
|
|
3914
|
+
return jA(A, B);
|
|
3915
3915
|
}
|
|
3916
3916
|
/**
|
|
3917
3917
|
* Format SQL with explicit guard limits.
|
|
3918
3918
|
*/
|
|
3919
3919
|
formatWithOptions(A, B = "generic", Q = {}) {
|
|
3920
|
-
return
|
|
3920
|
+
return xA(A, B, Q);
|
|
3921
3921
|
}
|
|
3922
3922
|
/**
|
|
3923
3923
|
* Get supported dialects in this build.
|
|
@@ -3930,26 +3930,26 @@ class f {
|
|
|
3930
3930
|
* Get library version.
|
|
3931
3931
|
*/
|
|
3932
3932
|
getVersion() {
|
|
3933
|
-
return
|
|
3933
|
+
return VA();
|
|
3934
3934
|
}
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Parse SQL and annotate the AST with inferred type information.
|
|
3937
3937
|
*/
|
|
3938
3938
|
annotateTypes(A, B = "generic", Q) {
|
|
3939
|
-
return
|
|
3939
|
+
return TA(A, B, Q);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3943
|
-
init:
|
|
3944
|
-
isInitialized:
|
|
3945
|
-
transpile:
|
|
3942
|
+
const Mw = {
|
|
3943
|
+
init: oI,
|
|
3944
|
+
isInitialized: wI,
|
|
3945
|
+
transpile: sA,
|
|
3946
3946
|
parse: pA,
|
|
3947
|
-
tokenize:
|
|
3948
|
-
generate:
|
|
3949
|
-
format:
|
|
3950
|
-
annotateTypes:
|
|
3947
|
+
tokenize: ZA,
|
|
3948
|
+
generate: OA,
|
|
3949
|
+
format: jA,
|
|
3950
|
+
annotateTypes: TA,
|
|
3951
3951
|
getDialects: WA,
|
|
3952
|
-
getVersion:
|
|
3952
|
+
getVersion: VA,
|
|
3953
3953
|
lineage: II,
|
|
3954
3954
|
lineageWithSchema: BI,
|
|
3955
3955
|
getSourceTables: QI,
|
|
@@ -3958,8 +3958,8 @@ const No = {
|
|
|
3958
3958
|
changesOnly: DI,
|
|
3959
3959
|
plan: iI,
|
|
3960
3960
|
Dialect: cA,
|
|
3961
|
-
Polyglot:
|
|
3962
|
-
},
|
|
3961
|
+
Polyglot: e
|
|
3962
|
+
}, Kw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3963
3963
|
__proto__: null,
|
|
3964
3964
|
CaseBuilder: hA,
|
|
3965
3965
|
DeleteBuilder: $g,
|
|
@@ -3967,110 +3967,110 @@ const No = {
|
|
|
3967
3967
|
Expr: R,
|
|
3968
3968
|
InsertBuilder: Xg,
|
|
3969
3969
|
MergeBuilder: gI,
|
|
3970
|
-
Polyglot:
|
|
3970
|
+
Polyglot: e,
|
|
3971
3971
|
SelectBuilder: ug,
|
|
3972
3972
|
SetOpBuilder: _,
|
|
3973
3973
|
UpdateBuilder: _g,
|
|
3974
|
-
ValidationSeverity:
|
|
3974
|
+
ValidationSeverity: Gw,
|
|
3975
3975
|
WindowDefBuilder: $i,
|
|
3976
|
-
abs:
|
|
3977
|
-
alias:
|
|
3978
|
-
and:
|
|
3979
|
-
annotateTypes:
|
|
3976
|
+
abs: Zo,
|
|
3977
|
+
alias: Do,
|
|
3978
|
+
and: oo,
|
|
3979
|
+
annotateTypes: TA,
|
|
3980
3980
|
ast: _i,
|
|
3981
|
-
avg:
|
|
3981
|
+
avg: Mo,
|
|
3982
3982
|
boolean: SA,
|
|
3983
|
-
caseOf:
|
|
3984
|
-
caseWhen:
|
|
3985
|
-
cast:
|
|
3986
|
-
ceil:
|
|
3983
|
+
caseOf: Iw,
|
|
3984
|
+
caseWhen: gw,
|
|
3985
|
+
cast: Eo,
|
|
3986
|
+
ceil: xo,
|
|
3987
3987
|
changesOnly: DI,
|
|
3988
|
-
coalesce:
|
|
3989
|
-
col:
|
|
3990
|
-
concatWs:
|
|
3991
|
-
condition:
|
|
3992
|
-
count:
|
|
3993
|
-
countDistinct:
|
|
3994
|
-
currentDate:
|
|
3995
|
-
currentTime:
|
|
3996
|
-
currentTimestamp:
|
|
3997
|
-
default:
|
|
3998
|
-
del:
|
|
3988
|
+
coalesce: Lo,
|
|
3989
|
+
col: Ao,
|
|
3990
|
+
concatWs: co,
|
|
3991
|
+
condition: Qo,
|
|
3992
|
+
count: Go,
|
|
3993
|
+
countDistinct: ko,
|
|
3994
|
+
currentDate: zo,
|
|
3995
|
+
currentTime: fo,
|
|
3996
|
+
currentTimestamp: eo,
|
|
3997
|
+
default: Mw,
|
|
3998
|
+
del: $o,
|
|
3999
3999
|
deleteFrom: AI,
|
|
4000
|
-
denseRank:
|
|
4000
|
+
denseRank: uo,
|
|
4001
4001
|
diff: CI,
|
|
4002
|
-
except:
|
|
4003
|
-
exp:
|
|
4004
|
-
extract:
|
|
4002
|
+
except: Ew,
|
|
4003
|
+
exp: to,
|
|
4004
|
+
extract: bo,
|
|
4005
4005
|
findAll: YA,
|
|
4006
|
-
floor:
|
|
4007
|
-
format:
|
|
4008
|
-
formatWithOptions:
|
|
4006
|
+
floor: jo,
|
|
4007
|
+
format: jA,
|
|
4008
|
+
formatWithOptions: xA,
|
|
4009
4009
|
func: S,
|
|
4010
|
-
generate:
|
|
4010
|
+
generate: OA,
|
|
4011
4011
|
getColumns: zg,
|
|
4012
4012
|
getDialects: WA,
|
|
4013
|
-
getInferredType:
|
|
4013
|
+
getInferredType: Zg,
|
|
4014
4014
|
getSourceTables: QI,
|
|
4015
|
-
getVersion:
|
|
4016
|
-
greatest:
|
|
4015
|
+
getVersion: VA,
|
|
4016
|
+
greatest: lo,
|
|
4017
4017
|
hasChanges: EI,
|
|
4018
|
-
ifNull:
|
|
4019
|
-
init:
|
|
4020
|
-
initcap:
|
|
4021
|
-
insert:
|
|
4018
|
+
ifNull: po,
|
|
4019
|
+
init: oI,
|
|
4020
|
+
initcap: qo,
|
|
4021
|
+
insert: vo,
|
|
4022
4022
|
insertInto: vg,
|
|
4023
|
-
intersect:
|
|
4024
|
-
isColumn:
|
|
4023
|
+
intersect: Cw,
|
|
4024
|
+
isColumn: jg,
|
|
4025
4025
|
isFunction: Wg,
|
|
4026
|
-
isInitialized:
|
|
4027
|
-
isLiteral:
|
|
4028
|
-
isSelect:
|
|
4029
|
-
least:
|
|
4030
|
-
length:
|
|
4026
|
+
isInitialized: wI,
|
|
4027
|
+
isLiteral: xg,
|
|
4028
|
+
isSelect: Og,
|
|
4029
|
+
least: Po,
|
|
4030
|
+
length: yo,
|
|
4031
4031
|
lineage: II,
|
|
4032
4032
|
lineageWithSchema: BI,
|
|
4033
|
-
lit:
|
|
4034
|
-
ln:
|
|
4035
|
-
lower:
|
|
4036
|
-
ltrim:
|
|
4037
|
-
max:
|
|
4038
|
-
mergeInto:
|
|
4039
|
-
min:
|
|
4040
|
-
not:
|
|
4041
|
-
nullIf:
|
|
4042
|
-
or:
|
|
4033
|
+
lit: go,
|
|
4034
|
+
ln: To,
|
|
4035
|
+
lower: ao,
|
|
4036
|
+
ltrim: Fo,
|
|
4037
|
+
max: Jo,
|
|
4038
|
+
mergeInto: Aw,
|
|
4039
|
+
min: Ko,
|
|
4040
|
+
not: Co,
|
|
4041
|
+
nullIf: so,
|
|
4042
|
+
or: wo,
|
|
4043
4043
|
parse: pA,
|
|
4044
4044
|
plan: iI,
|
|
4045
|
-
power:
|
|
4046
|
-
rank:
|
|
4045
|
+
power: Wo,
|
|
4046
|
+
rank: no,
|
|
4047
4047
|
renameColumns: tg,
|
|
4048
|
-
replace:
|
|
4049
|
-
reverse:
|
|
4050
|
-
round:
|
|
4051
|
-
rowNumber:
|
|
4052
|
-
rtrim:
|
|
4053
|
-
select:
|
|
4054
|
-
sign:
|
|
4048
|
+
replace: ho,
|
|
4049
|
+
reverse: Ho,
|
|
4050
|
+
round: Oo,
|
|
4051
|
+
rowNumber: ro,
|
|
4052
|
+
rtrim: Uo,
|
|
4053
|
+
select: Xo,
|
|
4054
|
+
sign: mo,
|
|
4055
4055
|
sqlExpr: ng,
|
|
4056
|
-
sqlNull:
|
|
4057
|
-
sqrt:
|
|
4056
|
+
sqlNull: Io,
|
|
4057
|
+
sqrt: Vo,
|
|
4058
4058
|
star: rg,
|
|
4059
|
-
subquery:
|
|
4060
|
-
substring:
|
|
4061
|
-
sum:
|
|
4062
|
-
table:
|
|
4063
|
-
tokenize:
|
|
4059
|
+
subquery: io,
|
|
4060
|
+
substring: So,
|
|
4061
|
+
sum: No,
|
|
4062
|
+
table: Bo,
|
|
4063
|
+
tokenize: ZA,
|
|
4064
4064
|
transform: JA,
|
|
4065
|
-
transpile:
|
|
4066
|
-
trim:
|
|
4067
|
-
union:
|
|
4068
|
-
unionAll:
|
|
4069
|
-
update:
|
|
4070
|
-
upper:
|
|
4071
|
-
validate:
|
|
4072
|
-
validateWithSchema:
|
|
4073
|
-
walk:
|
|
4065
|
+
transpile: sA,
|
|
4066
|
+
trim: Ro,
|
|
4067
|
+
union: Bw,
|
|
4068
|
+
unionAll: Qw,
|
|
4069
|
+
update: _o,
|
|
4070
|
+
upper: Yo,
|
|
4071
|
+
validate: kw,
|
|
4072
|
+
validateWithSchema: ww,
|
|
4073
|
+
walk: V
|
|
4074
4074
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4075
4075
|
export {
|
|
4076
4076
|
hA as CaseBuilder,
|
|
@@ -4079,98 +4079,98 @@ export {
|
|
|
4079
4079
|
R as Expr,
|
|
4080
4080
|
Xg as InsertBuilder,
|
|
4081
4081
|
gI as MergeBuilder,
|
|
4082
|
-
|
|
4082
|
+
e as Polyglot,
|
|
4083
4083
|
ug as SelectBuilder,
|
|
4084
4084
|
_ as SetOpBuilder,
|
|
4085
4085
|
_g as UpdateBuilder,
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4086
|
+
Gw as ValidationSeverity,
|
|
4087
|
+
Zo as abs,
|
|
4088
|
+
Do as alias,
|
|
4089
|
+
oo as and,
|
|
4090
|
+
TA as annotateTypes,
|
|
4091
4091
|
_i as ast,
|
|
4092
|
-
|
|
4092
|
+
Mo as avg,
|
|
4093
4093
|
SA as boolean,
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4094
|
+
Iw as caseOf,
|
|
4095
|
+
gw as caseWhen,
|
|
4096
|
+
Eo as cast,
|
|
4097
|
+
xo as ceil,
|
|
4098
|
+
Lo as coalesce,
|
|
4099
|
+
Ao as col,
|
|
4100
|
+
co as concatWs,
|
|
4101
|
+
Qo as condition,
|
|
4102
|
+
Go as count,
|
|
4103
|
+
ko as countDistinct,
|
|
4104
|
+
zo as currentDate,
|
|
4105
|
+
fo as currentTime,
|
|
4106
|
+
eo as currentTimestamp,
|
|
4107
|
+
Kw as default,
|
|
4108
|
+
$o as del,
|
|
4109
4109
|
AI as deleteFrom,
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4110
|
+
uo as denseRank,
|
|
4111
|
+
Ew as except,
|
|
4112
|
+
to as exp,
|
|
4113
|
+
bo as extract,
|
|
4114
4114
|
YA as findAll,
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4115
|
+
jo as floor,
|
|
4116
|
+
jA as format,
|
|
4117
|
+
xA as formatWithOptions,
|
|
4118
4118
|
S as func,
|
|
4119
|
-
|
|
4119
|
+
OA as generate,
|
|
4120
4120
|
zg as getColumns,
|
|
4121
4121
|
WA as getDialects,
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4122
|
+
Zg as getInferredType,
|
|
4123
|
+
VA as getVersion,
|
|
4124
|
+
lo as greatest,
|
|
4125
|
+
po as ifNull,
|
|
4126
|
+
oI as init,
|
|
4127
|
+
qo as initcap,
|
|
4128
|
+
vo as insert,
|
|
4129
4129
|
vg as insertInto,
|
|
4130
|
-
|
|
4131
|
-
|
|
4130
|
+
Cw as intersect,
|
|
4131
|
+
jg as isColumn,
|
|
4132
4132
|
Wg as isFunction,
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4133
|
+
wI as isInitialized,
|
|
4134
|
+
xg as isLiteral,
|
|
4135
|
+
Og as isSelect,
|
|
4136
|
+
Po as least,
|
|
4137
|
+
yo as length,
|
|
4138
|
+
go as lit,
|
|
4139
|
+
To as ln,
|
|
4140
|
+
ao as lower,
|
|
4141
|
+
Fo as ltrim,
|
|
4142
|
+
Jo as max,
|
|
4143
|
+
Aw as mergeInto,
|
|
4144
|
+
Ko as min,
|
|
4145
|
+
Co as not,
|
|
4146
|
+
so as nullIf,
|
|
4147
|
+
wo as or,
|
|
4148
4148
|
pA as parse,
|
|
4149
|
-
|
|
4150
|
-
|
|
4149
|
+
Wo as power,
|
|
4150
|
+
no as rank,
|
|
4151
4151
|
tg as renameColumns,
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4152
|
+
ho as replace,
|
|
4153
|
+
Ho as reverse,
|
|
4154
|
+
Oo as round,
|
|
4155
|
+
ro as rowNumber,
|
|
4156
|
+
Uo as rtrim,
|
|
4157
|
+
Xo as select,
|
|
4158
|
+
mo as sign,
|
|
4159
4159
|
ng as sqlExpr,
|
|
4160
|
-
|
|
4161
|
-
|
|
4160
|
+
Io as sqlNull,
|
|
4161
|
+
Vo as sqrt,
|
|
4162
4162
|
rg as star,
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4163
|
+
So as substring,
|
|
4164
|
+
No as sum,
|
|
4165
|
+
Bo as table,
|
|
4166
4166
|
JA as transform,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4167
|
+
sA as transpile,
|
|
4168
|
+
Ro as trim,
|
|
4169
|
+
Bw as union,
|
|
4170
|
+
Qw as unionAll,
|
|
4171
|
+
_o as update,
|
|
4172
|
+
Yo as upper,
|
|
4173
|
+
kw as validate,
|
|
4174
|
+
ww as validateWithSchema,
|
|
4175
|
+
V as walk
|
|
4176
4176
|
};
|