@polyglot-sql/sdk 0.5.0 → 0.5.2

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.
@@ -1,4 +1,4 @@
1
- const cI = new URL("../polyglot_sql.wasm",import.meta.url).href, LI = async (g = {}, A) => {
1
+ const RI = new URL("../polyglot_sql.wasm",import.meta.url).href, UI = async (g = {}, A) => {
2
2
  let C;
3
3
  if (A.startsWith("data:")) {
4
4
  const B = A.replace(/^data:.*?base64,/, "");
@@ -24,10 +24,10 @@ const cI = new URL("../polyglot_sql.wasm",import.meta.url).href, LI = async (g =
24
24
  }
25
25
  return C.instance.exports;
26
26
  };
27
- class CA {
27
+ class BA {
28
28
  __destroy_into_raw() {
29
29
  const A = this.__wbg_ptr;
30
- return this.__wbg_ptr = 0, zA.unregister(this), A;
30
+ return this.__wbg_ptr = 0, WA.unregister(this), A;
31
31
  }
32
32
  free() {
33
33
  const A = this.__destroy_into_raw();
@@ -45,7 +45,7 @@ class CA {
45
45
  */
46
46
  constructor() {
47
47
  const A = I.wasmassignmentarray_new();
48
- return this.__wbg_ptr = A >>> 0, zA.register(this, this.__wbg_ptr, this), this;
48
+ return this.__wbg_ptr = A >>> 0, WA.register(this, this.__wbg_ptr, this), this;
49
49
  }
50
50
  /**
51
51
  * Add a column = value assignment.
@@ -57,11 +57,11 @@ class CA {
57
57
  H(C, G), I.wasmassignmentarray_push(this.__wbg_ptr, B, Q, C.__wbg_ptr);
58
58
  }
59
59
  }
60
- Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
61
- class m {
60
+ Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
61
+ class u {
62
62
  static __wrap(A) {
63
63
  A = A >>> 0;
64
- const C = Object.create(m.prototype);
64
+ const C = Object.create(u.prototype);
65
65
  return C.__wbg_ptr = A, hA.register(C, C.__wbg_ptr, C), C;
66
66
  }
67
67
  __destroy_into_raw() {
@@ -82,7 +82,7 @@ class m {
82
82
  I.wasmcasebuilder_build_expr(Q, this.__wbg_ptr);
83
83
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
84
84
  if (B)
85
- throw U(C);
85
+ throw J(C);
86
86
  return G.__wrap(A);
87
87
  } finally {
88
88
  I.__wbindgen_add_to_stack_pointer(16);
@@ -114,7 +114,7 @@ class m {
114
114
  I.wasmcasebuilder_to_sql(y, this.__wbg_ptr, h, R);
115
115
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
116
116
  if (o)
117
- throw k = 0, K = 0, U(D);
117
+ throw k = 0, K = 0, J(D);
118
118
  return C = k, B = K, c(k, K);
119
119
  } finally {
120
120
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -129,8 +129,8 @@ class m {
129
129
  H(A, G), H(C, G), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
130
130
  }
131
131
  }
132
- Symbol.dispose && (m.prototype[Symbol.dispose] = m.prototype.free);
133
- class iA {
132
+ Symbol.dispose && (u.prototype[Symbol.dispose] = u.prototype.free);
133
+ class oA {
134
134
  __destroy_into_raw() {
135
135
  const A = this.__wbg_ptr;
136
136
  return this.__wbg_ptr = 0, VA.unregister(this), A;
@@ -149,8 +149,8 @@ class iA {
149
149
  I.wasmdeletebuilder_build(Q, this.__wbg_ptr);
150
150
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
151
151
  if (B)
152
- throw U(C);
153
- return U(A);
152
+ throw J(C);
153
+ return J(A);
154
154
  } finally {
155
155
  I.__wbindgen_add_to_stack_pointer(16);
156
156
  }
@@ -175,7 +175,7 @@ class iA {
175
175
  I.wasmdeletebuilder_to_sql(y, this.__wbg_ptr, h, R);
176
176
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
177
177
  if (o)
178
- throw k = 0, K = 0, U(D);
178
+ throw k = 0, K = 0, J(D);
179
179
  return C = k, B = K, c(k, K);
180
180
  } finally {
181
181
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -189,16 +189,16 @@ class iA {
189
189
  H(A, G), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
190
190
  }
191
191
  }
192
- Symbol.dispose && (iA.prototype[Symbol.dispose] = iA.prototype.free);
192
+ Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
193
193
  class G {
194
194
  static __wrap(A) {
195
195
  A = A >>> 0;
196
196
  const C = Object.create(G.prototype);
197
- return C.__wbg_ptr = A, xA.register(C, C.__wbg_ptr, C), C;
197
+ return C.__wbg_ptr = A, lA.register(C, C.__wbg_ptr, C), C;
198
198
  }
199
199
  __destroy_into_raw() {
200
200
  const A = this.__wbg_ptr;
201
- return this.__wbg_ptr = 0, xA.unregister(this), A;
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 G {
325
325
  * @returns {WasmExpr}
326
326
  */
327
327
  in_list(A) {
328
- H(A, O);
328
+ H(A, P);
329
329
  const C = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
330
330
  return G.__wrap(C);
331
331
  }
@@ -409,7 +409,7 @@ class G {
409
409
  * @returns {WasmExpr}
410
410
  */
411
411
  not_in(A) {
412
- H(A, O);
412
+ H(A, P);
413
413
  const C = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
414
414
  return G.__wrap(C);
415
415
  }
@@ -453,8 +453,8 @@ class G {
453
453
  I.wasmexpr_to_json(Q, this.__wbg_ptr);
454
454
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
455
455
  if (B)
456
- throw U(C);
457
- return U(A);
456
+ throw J(C);
457
+ return J(A);
458
458
  } finally {
459
459
  I.__wbindgen_add_to_stack_pointer(16);
460
460
  }
@@ -471,7 +471,7 @@ class G {
471
471
  I.wasmexpr_to_sql(y, this.__wbg_ptr, h, R);
472
472
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
473
473
  if (o)
474
- throw k = 0, K = 0, U(D);
474
+ throw k = 0, K = 0, J(D);
475
475
  return C = k, B = K, c(k, K);
476
476
  } finally {
477
477
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -489,10 +489,10 @@ class G {
489
489
  }
490
490
  }
491
491
  Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
492
- class O {
492
+ class P {
493
493
  __destroy_into_raw() {
494
494
  const A = this.__wbg_ptr;
495
- return this.__wbg_ptr = 0, eA.unregister(this), A;
495
+ return this.__wbg_ptr = 0, nA.unregister(this), A;
496
496
  }
497
497
  free() {
498
498
  const A = this.__destroy_into_raw();
@@ -510,7 +510,7 @@ class O {
510
510
  */
511
511
  constructor() {
512
512
  const A = I.wasmassignmentarray_new();
513
- return this.__wbg_ptr = A >>> 0, eA.register(this, this.__wbg_ptr, this), this;
513
+ return this.__wbg_ptr = A >>> 0, nA.register(this, this.__wbg_ptr, this), this;
514
514
  }
515
515
  /**
516
516
  * Push an expression.
@@ -556,11 +556,11 @@ class O {
556
556
  I.wasmexprarray_push_str(this.__wbg_ptr, C, B);
557
557
  }
558
558
  }
559
- Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
560
- class oA {
559
+ Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
560
+ class MA {
561
561
  __destroy_into_raw() {
562
562
  const A = this.__wbg_ptr;
563
- return this.__wbg_ptr = 0, WA.unregister(this), A;
563
+ return this.__wbg_ptr = 0, rA.unregister(this), A;
564
564
  }
565
565
  free() {
566
566
  const A = this.__destroy_into_raw();
@@ -576,8 +576,8 @@ class oA {
576
576
  I.wasminsertbuilder_build(Q, this.__wbg_ptr);
577
577
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
578
578
  if (B)
579
- throw U(C);
580
- return U(A);
579
+ throw J(C);
580
+ return J(A);
581
581
  } finally {
582
582
  I.__wbindgen_add_to_stack_pointer(16);
583
583
  }
@@ -587,7 +587,7 @@ class oA {
587
587
  * @param {string[]} cols
588
588
  */
589
589
  columns(A) {
590
- const C = FA(A, I.__wbindgen_export), B = M;
590
+ const C = LA(A, I.__wbindgen_export), B = M;
591
591
  I.wasminsertbuilder_columns(this.__wbg_ptr, C, B);
592
592
  }
593
593
  /**
@@ -596,7 +596,7 @@ class oA {
596
596
  */
597
597
  constructor(A) {
598
598
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.wasminsertbuilder_new(C, B);
599
- return this.__wbg_ptr = Q >>> 0, WA.register(this, this.__wbg_ptr, this), this;
599
+ return this.__wbg_ptr = Q >>> 0, rA.register(this, this.__wbg_ptr, this), this;
600
600
  }
601
601
  /**
602
602
  * Set the source query for INSERT ... SELECT.
@@ -605,10 +605,10 @@ class oA {
605
605
  query(A) {
606
606
  try {
607
607
  const Q = I.__wbindgen_add_to_stack_pointer(-16);
608
- H(A, j), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
608
+ H(A, t), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
609
609
  var C = i().getInt32(Q + 0, !0), B = i().getInt32(Q + 4, !0);
610
610
  if (B)
611
- throw U(C);
611
+ throw J(C);
612
612
  } finally {
613
613
  I.__wbindgen_add_to_stack_pointer(16);
614
614
  }
@@ -625,7 +625,7 @@ class oA {
625
625
  I.wasminsertbuilder_to_sql(y, this.__wbg_ptr, h, R);
626
626
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
627
627
  if (o)
628
- throw k = 0, K = 0, U(D);
628
+ throw k = 0, K = 0, J(D);
629
629
  return C = k, B = K, c(k, K);
630
630
  } finally {
631
631
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -636,14 +636,14 @@ class oA {
636
636
  * @param {WasmExprArray} vals
637
637
  */
638
638
  values(A) {
639
- H(A, O), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
639
+ H(A, P), I.wasminsertbuilder_values(this.__wbg_ptr, A.__wbg_ptr);
640
640
  }
641
641
  }
642
- Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
643
- class MA {
642
+ Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
643
+ class NA {
644
644
  __destroy_into_raw() {
645
645
  const A = this.__wbg_ptr;
646
- return this.__wbg_ptr = 0, lA.unregister(this), A;
646
+ return this.__wbg_ptr = 0, mA.unregister(this), A;
647
647
  }
648
648
  free() {
649
649
  const A = this.__destroy_into_raw();
@@ -659,8 +659,8 @@ class MA {
659
659
  I.wasmmergebuilder_build(Q, this.__wbg_ptr);
660
660
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
661
661
  if (B)
662
- throw U(C);
663
- return U(A);
662
+ throw J(C);
663
+ return J(A);
664
664
  } finally {
665
665
  I.__wbindgen_add_to_stack_pointer(16);
666
666
  }
@@ -671,7 +671,7 @@ class MA {
671
671
  */
672
672
  constructor(A) {
673
673
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.wasmmergebuilder_new(C, B);
674
- return this.__wbg_ptr = Q >>> 0, lA.register(this, this.__wbg_ptr, this), this;
674
+ return this.__wbg_ptr = Q >>> 0, mA.register(this, this.__wbg_ptr, this), this;
675
675
  }
676
676
  /**
677
677
  * Generate SQL string for the given dialect.
@@ -685,7 +685,7 @@ class MA {
685
685
  I.wasmmergebuilder_to_sql(y, this.__wbg_ptr, h, R);
686
686
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
687
687
  if (o)
688
- throw k = 0, K = 0, U(D);
688
+ throw k = 0, K = 0, J(D);
689
689
  return C = k, B = K, c(k, K);
690
690
  } finally {
691
691
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -711,7 +711,7 @@ class MA {
711
711
  * @param {WasmAssignmentArray} assignments
712
712
  */
713
713
  when_matched_update(A) {
714
- H(A, CA), I.wasmmergebuilder_when_matched_update(this.__wbg_ptr, A.__wbg_ptr);
714
+ H(A, BA), I.wasmmergebuilder_when_matched_update(this.__wbg_ptr, A.__wbg_ptr);
715
715
  }
716
716
  /**
717
717
  * Add a WHEN NOT MATCHED THEN INSERT clause.
@@ -719,15 +719,15 @@ class MA {
719
719
  * @param {WasmExprArray} values
720
720
  */
721
721
  when_not_matched_insert(A, C) {
722
- const B = FA(A, I.__wbindgen_export), Q = M;
723
- H(C, O), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, B, Q, C.__wbg_ptr);
722
+ const B = LA(A, I.__wbindgen_export), Q = M;
723
+ H(C, P), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, B, Q, C.__wbg_ptr);
724
724
  }
725
725
  }
726
- Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
727
- class j {
726
+ Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
727
+ class t {
728
728
  __destroy_into_raw() {
729
729
  const A = this.__wbg_ptr;
730
- return this.__wbg_ptr = 0, nA.unregister(this), A;
730
+ return this.__wbg_ptr = 0, uA.unregister(this), A;
731
731
  }
732
732
  free() {
733
733
  const A = this.__destroy_into_raw();
@@ -743,8 +743,8 @@ class j {
743
743
  I.wasmselectbuilder_build(Q, this.__wbg_ptr);
744
744
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
745
745
  if (B)
746
- throw U(C);
747
- return U(A);
746
+ throw J(C);
747
+ return J(A);
748
748
  } finally {
749
749
  I.__wbindgen_add_to_stack_pointer(16);
750
750
  }
@@ -768,8 +768,8 @@ class j {
768
768
  I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, o);
769
769
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
770
770
  if (Q)
771
- throw U(B);
772
- return U(C);
771
+ throw J(B);
772
+ return J(C);
773
773
  } finally {
774
774
  I.__wbindgen_add_to_stack_pointer(16);
775
775
  }
@@ -783,11 +783,11 @@ class j {
783
783
  ctas_sql(A, C) {
784
784
  let B, Q;
785
785
  try {
786
- const h = I.__wbindgen_add_to_stack_pointer(-16), R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = M, P = N(C, I.__wbindgen_export, I.__wbindgen_export2), z = M;
787
- I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, P, z);
786
+ const h = I.__wbindgen_add_to_stack_pointer(-16), R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = M, T = N(C, I.__wbindgen_export, I.__wbindgen_export2), e = M;
787
+ I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, T, e);
788
788
  var E = i().getInt32(h + 0, !0), D = i().getInt32(h + 4, !0), o = i().getInt32(h + 8, !0), k = i().getInt32(h + 12, !0), K = E, y = D;
789
789
  if (k)
790
- throw K = 0, y = 0, U(o);
790
+ throw K = 0, y = 0, J(o);
791
791
  return B = K, Q = y, c(K, y);
792
792
  } finally {
793
793
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
@@ -807,11 +807,11 @@ class j {
807
807
  except_(A) {
808
808
  try {
809
809
  const E = I.__wbindgen_add_to_stack_pointer(-16);
810
- H(A, j), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
810
+ H(A, t), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
811
811
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
812
812
  if (Q)
813
- throw U(B);
814
- return x.__wrap(C);
813
+ throw J(B);
814
+ return W.__wrap(C);
815
815
  } finally {
816
816
  I.__wbindgen_add_to_stack_pointer(16);
817
817
  }
@@ -842,7 +842,7 @@ class j {
842
842
  * @param {WasmExprArray} cols
843
843
  */
844
844
  group_by_cols(A) {
845
- H(A, O), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
845
+ H(A, P), I.wasmselectbuilder_group_by_cols(this.__wbg_ptr, A.__wbg_ptr);
846
846
  }
847
847
  /**
848
848
  * Set the HAVING clause.
@@ -867,11 +867,11 @@ class j {
867
867
  intersect(A) {
868
868
  try {
869
869
  const E = I.__wbindgen_add_to_stack_pointer(-16);
870
- H(A, j), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
870
+ H(A, t), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
871
871
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
872
872
  if (Q)
873
- throw U(B);
874
- return x.__wrap(C);
873
+ throw J(B);
874
+ return W.__wrap(C);
875
875
  } finally {
876
876
  I.__wbindgen_add_to_stack_pointer(16);
877
877
  }
@@ -893,7 +893,7 @@ class j {
893
893
  */
894
894
  lateral_view(A, C, B) {
895
895
  H(A, G);
896
- const Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = FA(B, I.__wbindgen_export), o = M;
896
+ const Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = LA(B, I.__wbindgen_export), o = M;
897
897
  I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, Q, E, D, o);
898
898
  }
899
899
  /**
@@ -917,7 +917,7 @@ class j {
917
917
  */
918
918
  constructor() {
919
919
  const A = I.wasmselectbuilder_new();
920
- return this.__wbg_ptr = A >>> 0, nA.register(this, this.__wbg_ptr, this), this;
920
+ return this.__wbg_ptr = A >>> 0, uA.register(this, this.__wbg_ptr, this), this;
921
921
  }
922
922
  /**
923
923
  * Set the OFFSET clause.
@@ -931,7 +931,7 @@ class j {
931
931
  * @param {WasmExprArray} exprs
932
932
  */
933
933
  order_by_exprs(A) {
934
- H(A, O), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
934
+ H(A, P), I.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
935
935
  }
936
936
  /**
937
937
  * Set the QUALIFY clause.
@@ -969,7 +969,7 @@ class j {
969
969
  * @param {WasmExprArray} exprs
970
970
  */
971
971
  select_exprs(A) {
972
- H(A, O), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
972
+ H(A, P), I.wasmselectbuilder_select_exprs(this.__wbg_ptr, A.__wbg_ptr);
973
973
  }
974
974
  /**
975
975
  * Add a star (*) to the SELECT list.
@@ -982,7 +982,7 @@ class j {
982
982
  * @param {WasmExprArray} exprs
983
983
  */
984
984
  sort_by_exprs(A) {
985
- H(A, O), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
985
+ H(A, P), I.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
986
986
  }
987
987
  /**
988
988
  * Generate SQL string for the given dialect.
@@ -996,7 +996,7 @@ class j {
996
996
  I.wasmselectbuilder_to_sql(y, this.__wbg_ptr, h, R);
997
997
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
998
998
  if (o)
999
- throw k = 0, K = 0, U(D);
999
+ throw k = 0, K = 0, J(D);
1000
1000
  return C = k, B = K, c(k, K);
1001
1001
  } finally {
1002
1002
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -1010,11 +1010,11 @@ class j {
1010
1010
  union(A) {
1011
1011
  try {
1012
1012
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1013
- H(A, j), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1013
+ H(A, t), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1014
1014
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
1015
1015
  if (Q)
1016
- throw U(B);
1017
- return x.__wrap(C);
1016
+ throw J(B);
1017
+ return W.__wrap(C);
1018
1018
  } finally {
1019
1019
  I.__wbindgen_add_to_stack_pointer(16);
1020
1020
  }
@@ -1027,11 +1027,11 @@ class j {
1027
1027
  union_all(A) {
1028
1028
  try {
1029
1029
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1030
- H(A, j), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1030
+ H(A, t), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1031
1031
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
1032
1032
  if (Q)
1033
- throw U(B);
1034
- return x.__wrap(C);
1033
+ throw J(B);
1034
+ return W.__wrap(C);
1035
1035
  } finally {
1036
1036
  I.__wbindgen_add_to_stack_pointer(16);
1037
1037
  }
@@ -1059,25 +1059,25 @@ class j {
1059
1059
  window(A, C) {
1060
1060
  try {
1061
1061
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = M;
1062
- H(C, BA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, C.__wbg_ptr);
1062
+ H(C, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, o, C.__wbg_ptr);
1063
1063
  var B = i().getInt32(E + 0, !0), Q = i().getInt32(E + 4, !0);
1064
1064
  if (Q)
1065
- throw U(B);
1065
+ throw J(B);
1066
1066
  } finally {
1067
1067
  I.__wbindgen_add_to_stack_pointer(16);
1068
1068
  }
1069
1069
  }
1070
1070
  }
1071
- Symbol.dispose && (j.prototype[Symbol.dispose] = j.prototype.free);
1072
- class x {
1071
+ Symbol.dispose && (t.prototype[Symbol.dispose] = t.prototype.free);
1072
+ class W {
1073
1073
  static __wrap(A) {
1074
1074
  A = A >>> 0;
1075
- const C = Object.create(x.prototype);
1076
- return C.__wbg_ptr = A, rA.register(C, C.__wbg_ptr, C), C;
1075
+ const C = Object.create(W.prototype);
1076
+ return C.__wbg_ptr = A, bA.register(C, C.__wbg_ptr, C), C;
1077
1077
  }
1078
1078
  __destroy_into_raw() {
1079
1079
  const A = this.__wbg_ptr;
1080
- return this.__wbg_ptr = 0, rA.unregister(this), A;
1080
+ return this.__wbg_ptr = 0, bA.unregister(this), A;
1081
1081
  }
1082
1082
  free() {
1083
1083
  const A = this.__destroy_into_raw();
@@ -1093,8 +1093,8 @@ class x {
1093
1093
  I.wasmsetopbuilder_build(Q, this.__wbg_ptr);
1094
1094
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
1095
1095
  if (B)
1096
- throw U(C);
1097
- return U(A);
1096
+ throw J(C);
1097
+ return J(A);
1098
1098
  } finally {
1099
1099
  I.__wbindgen_add_to_stack_pointer(16);
1100
1100
  }
@@ -1118,7 +1118,7 @@ class x {
1118
1118
  * @param {WasmExprArray} exprs
1119
1119
  */
1120
1120
  order_by_exprs(A) {
1121
- H(A, O), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
1121
+ H(A, P), I.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, A.__wbg_ptr);
1122
1122
  }
1123
1123
  /**
1124
1124
  * Generate SQL string for the given dialect.
@@ -1132,18 +1132,18 @@ class x {
1132
1132
  I.wasmsetopbuilder_to_sql(y, this.__wbg_ptr, h, R);
1133
1133
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
1134
1134
  if (o)
1135
- throw k = 0, K = 0, U(D);
1135
+ throw k = 0, K = 0, J(D);
1136
1136
  return C = k, B = K, c(k, K);
1137
1137
  } finally {
1138
1138
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1139
1139
  }
1140
1140
  }
1141
1141
  }
1142
- Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
1143
- class NA {
1142
+ Symbol.dispose && (W.prototype[Symbol.dispose] = W.prototype.free);
1143
+ class kA {
1144
1144
  __destroy_into_raw() {
1145
1145
  const A = this.__wbg_ptr;
1146
- return this.__wbg_ptr = 0, uA.unregister(this), A;
1146
+ return this.__wbg_ptr = 0, vA.unregister(this), A;
1147
1147
  }
1148
1148
  free() {
1149
1149
  const A = this.__destroy_into_raw();
@@ -1159,8 +1159,8 @@ class NA {
1159
1159
  I.wasmupdatebuilder_build(Q, this.__wbg_ptr);
1160
1160
  var A = i().getInt32(Q + 0, !0), C = i().getInt32(Q + 4, !0), B = i().getInt32(Q + 8, !0);
1161
1161
  if (B)
1162
- throw U(C);
1163
- return U(A);
1162
+ throw J(C);
1163
+ return J(A);
1164
1164
  } finally {
1165
1165
  I.__wbindgen_add_to_stack_pointer(16);
1166
1166
  }
@@ -1179,7 +1179,7 @@ class NA {
1179
1179
  */
1180
1180
  constructor(A) {
1181
1181
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.wasmupdatebuilder_new(C, B);
1182
- return this.__wbg_ptr = Q >>> 0, uA.register(this, this.__wbg_ptr, this), this;
1182
+ return this.__wbg_ptr = Q >>> 0, vA.register(this, this.__wbg_ptr, this), this;
1183
1183
  }
1184
1184
  /**
1185
1185
  * Add a SET column = value assignment.
@@ -1202,7 +1202,7 @@ class NA {
1202
1202
  I.wasmupdatebuilder_to_sql(y, this.__wbg_ptr, h, R);
1203
1203
  var Q = i().getInt32(y + 0, !0), E = i().getInt32(y + 4, !0), D = i().getInt32(y + 8, !0), o = i().getInt32(y + 12, !0), k = Q, K = E;
1204
1204
  if (o)
1205
- throw k = 0, K = 0, U(D);
1205
+ throw k = 0, K = 0, J(D);
1206
1206
  return C = k, B = K, c(k, K);
1207
1207
  } finally {
1208
1208
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
@@ -1216,11 +1216,11 @@ class NA {
1216
1216
  H(A, G), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1217
1217
  }
1218
1218
  }
1219
- Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
1220
- class BA {
1219
+ Symbol.dispose && (kA.prototype[Symbol.dispose] = kA.prototype.free);
1220
+ class QA {
1221
1221
  __destroy_into_raw() {
1222
1222
  const A = this.__wbg_ptr;
1223
- return this.__wbg_ptr = 0, mA.unregister(this), A;
1223
+ return this.__wbg_ptr = 0, XA.unregister(this), A;
1224
1224
  }
1225
1225
  free() {
1226
1226
  const A = this.__destroy_into_raw();
@@ -1231,25 +1231,40 @@ class BA {
1231
1231
  */
1232
1232
  constructor() {
1233
1233
  const A = I.wasmwindowdefbuilder_new();
1234
- return this.__wbg_ptr = A >>> 0, mA.register(this, this.__wbg_ptr, this), this;
1234
+ return this.__wbg_ptr = A >>> 0, XA.register(this, this.__wbg_ptr, this), this;
1235
1235
  }
1236
1236
  /**
1237
1237
  * Set the ORDER BY expressions.
1238
1238
  * @param {WasmExprArray} exprs
1239
1239
  */
1240
1240
  order_by(A) {
1241
- H(A, O), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
1241
+ H(A, P), I.wasmwindowdefbuilder_order_by(this.__wbg_ptr, A.__wbg_ptr);
1242
1242
  }
1243
1243
  /**
1244
1244
  * Set the PARTITION BY expressions.
1245
1245
  * @param {WasmExprArray} exprs
1246
1246
  */
1247
1247
  partition_by(A) {
1248
- H(A, O), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1248
+ H(A, P), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1249
1249
  }
1250
1250
  }
1251
- Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
1252
- function UI(g, A, C) {
1251
+ Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
1252
+ function sI(g, A) {
1253
+ let C, B;
1254
+ try {
1255
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
1256
+ I.analyze_query(D, o, k, K, y);
1257
+ var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
1258
+ return C = Q, B = E, c(Q, E);
1259
+ } finally {
1260
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1261
+ }
1262
+ }
1263
+ function aI(g, A) {
1264
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.analyze_query_value(C, B, a(A));
1265
+ return J(Q);
1266
+ }
1267
+ function qI(g, A, C) {
1253
1268
  let B, Q;
1254
1269
  try {
1255
1270
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1260,11 +1275,11 @@ function UI(g, A, C) {
1260
1275
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1261
1276
  }
1262
1277
  }
1263
- function FI(g, A, C) {
1278
+ function pI(g, A, C) {
1264
1279
  const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = M, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = M, o = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = I.annotate_types_value(B, Q, E, D, o, k);
1265
- return U(K);
1280
+ return J(K);
1266
1281
  }
1267
- function bA(g, A, C) {
1282
+ function $A(g, A, C) {
1268
1283
  let B, Q;
1269
1284
  try {
1270
1285
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M;
@@ -1275,7 +1290,7 @@ function bA(g, A, C) {
1275
1290
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1276
1291
  }
1277
1292
  }
1278
- function XA(g) {
1293
+ function Ag(g) {
1279
1294
  let A, C;
1280
1295
  try {
1281
1296
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1286,7 +1301,7 @@ function XA(g) {
1286
1301
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1287
1302
  }
1288
1303
  }
1289
- function _A(g) {
1304
+ function gg(g) {
1290
1305
  let A, C;
1291
1306
  try {
1292
1307
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1297,7 +1312,7 @@ function _A(g) {
1297
1312
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1298
1313
  }
1299
1314
  }
1300
- function $A(g) {
1315
+ function Ig(g) {
1301
1316
  let A, C;
1302
1317
  try {
1303
1318
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1308,7 +1323,7 @@ function $A(g) {
1308
1323
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1309
1324
  }
1310
1325
  }
1311
- function Ag(g) {
1326
+ function Cg(g) {
1312
1327
  let A, C;
1313
1328
  try {
1314
1329
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1319,7 +1334,7 @@ function Ag(g) {
1319
1334
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1320
1335
  }
1321
1336
  }
1322
- function gg(g) {
1337
+ function Bg(g) {
1323
1338
  let A, C;
1324
1339
  try {
1325
1340
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1330,7 +1345,7 @@ function gg(g) {
1330
1345
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1331
1346
  }
1332
1347
  }
1333
- function Ig(g) {
1348
+ function Qg(g) {
1334
1349
  let A, C;
1335
1350
  try {
1336
1351
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1341,7 +1356,7 @@ function Ig(g) {
1341
1356
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1342
1357
  }
1343
1358
  }
1344
- function Cg(g) {
1359
+ function Eg(g) {
1345
1360
  let A, C;
1346
1361
  try {
1347
1362
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1352,7 +1367,7 @@ function Cg(g) {
1352
1367
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1353
1368
  }
1354
1369
  }
1355
- function Bg(g) {
1370
+ function Dg(g) {
1356
1371
  let A, C;
1357
1372
  try {
1358
1373
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1363,7 +1378,7 @@ function Bg(g) {
1363
1378
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1364
1379
  }
1365
1380
  }
1366
- function Qg(g, A) {
1381
+ function wg(g, A) {
1367
1382
  let C, B;
1368
1383
  try {
1369
1384
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1374,7 +1389,7 @@ function Qg(g, A) {
1374
1389
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1375
1390
  }
1376
1391
  }
1377
- function Eg(g, A) {
1392
+ function ig(g, A) {
1378
1393
  let C, B;
1379
1394
  try {
1380
1395
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1385,7 +1400,7 @@ function Eg(g, A) {
1385
1400
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1386
1401
  }
1387
1402
  }
1388
- function Dg(g) {
1403
+ function og(g) {
1389
1404
  let A, C;
1390
1405
  try {
1391
1406
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), o = M;
@@ -1396,7 +1411,7 @@ function Dg(g) {
1396
1411
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1397
1412
  }
1398
1413
  }
1399
- function wg(g, A) {
1414
+ function Mg(g, A) {
1400
1415
  let C, B;
1401
1416
  try {
1402
1417
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1407,7 +1422,7 @@ function wg(g, A) {
1407
1422
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1408
1423
  }
1409
1424
  }
1410
- function ig(g, A) {
1425
+ function Ng(g, A) {
1411
1426
  let C, B;
1412
1427
  try {
1413
1428
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1418,7 +1433,7 @@ function ig(g, A) {
1418
1433
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1419
1434
  }
1420
1435
  }
1421
- function og(g, A, C) {
1436
+ function kg(g, A, C) {
1422
1437
  let B, Q;
1423
1438
  try {
1424
1439
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1429,7 +1444,7 @@ function og(g, A, C) {
1429
1444
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1430
1445
  }
1431
1446
  }
1432
- function Mg(g, A) {
1447
+ function yg(g, A) {
1433
1448
  let C, B;
1434
1449
  try {
1435
1450
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M;
@@ -1440,7 +1455,7 @@ function Mg(g, A) {
1440
1455
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1441
1456
  }
1442
1457
  }
1443
- function Ng(g, A) {
1458
+ function Kg(g, A) {
1444
1459
  let C, B;
1445
1460
  try {
1446
1461
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M;
@@ -1451,18 +1466,18 @@ function Ng(g, A) {
1451
1466
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1452
1467
  }
1453
1468
  }
1454
- function kg(g, A, C, B, Q, E) {
1469
+ function Gg(g, A, C, B, Q, E) {
1455
1470
  let D, o;
1456
1471
  try {
1457
- const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), P = M, z = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1458
- I.diff_sql(y, h, R, q, P, z, r, B, Q, E);
1472
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), T = M, e = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1473
+ I.diff_sql(y, h, R, q, T, e, r, B, Q, E);
1459
1474
  var k = i().getInt32(y + 0, !0), K = i().getInt32(y + 4, !0);
1460
1475
  return D = k, o = K, c(k, K);
1461
1476
  } finally {
1462
1477
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, o, 1);
1463
1478
  }
1464
1479
  }
1465
- function RI(g, A) {
1480
+ function PI(g, A) {
1466
1481
  let C, B;
1467
1482
  try {
1468
1483
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1473,11 +1488,11 @@ function RI(g, A) {
1473
1488
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1474
1489
  }
1475
1490
  }
1476
- function JI(g, A) {
1491
+ function TI(g, A) {
1477
1492
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = I.format_sql_value(C, B, Q, E);
1478
- return U(D);
1493
+ return J(D);
1479
1494
  }
1480
- function sI(g, A, C) {
1495
+ function OI(g, A, C) {
1481
1496
  let B, Q;
1482
1497
  try {
1483
1498
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1488,11 +1503,11 @@ function sI(g, A, C) {
1488
1503
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1489
1504
  }
1490
1505
  }
1491
- function aI(g, A, C) {
1506
+ function jI(g, A, C) {
1492
1507
  const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = M, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = M, o = I.format_sql_with_options_value(B, Q, E, D, a(C));
1493
- return U(o);
1508
+ return J(o);
1494
1509
  }
1495
- function qI(g, A) {
1510
+ function tI(g, A) {
1496
1511
  let C, B;
1497
1512
  try {
1498
1513
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1503,11 +1518,26 @@ function qI(g, A) {
1503
1518
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1504
1519
  }
1505
1520
  }
1506
- function pI(g, A) {
1521
+ function fI(g, A) {
1522
+ let C, B;
1523
+ try {
1524
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
1525
+ I.generate_data_type(D, o, k, K, y);
1526
+ var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
1527
+ return C = Q, B = E, c(Q, E);
1528
+ } finally {
1529
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1530
+ }
1531
+ }
1532
+ function dI(g, A) {
1533
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.generate_data_type_value(a(g), C, B);
1534
+ return J(Q);
1535
+ }
1536
+ function zI(g, A) {
1507
1537
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.generate_value(a(g), C, B);
1508
- return U(Q);
1538
+ return J(Q);
1509
1539
  }
1510
- function OI() {
1540
+ function ZI() {
1511
1541
  let g, A;
1512
1542
  try {
1513
1543
  const Q = I.__wbindgen_add_to_stack_pointer(-16);
@@ -1518,33 +1548,33 @@ function OI() {
1518
1548
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1519
1549
  }
1520
1550
  }
1521
- function PI() {
1551
+ function eI() {
1522
1552
  const g = I.get_dialects_value();
1523
- return U(g);
1553
+ return J(g);
1524
1554
  }
1525
- function yg(g, A, C, B) {
1555
+ function Yg(g, A, C, B) {
1526
1556
  let Q, E;
1527
1557
  try {
1528
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), P = M;
1529
- I.lineage_sql(k, K, y, h, R, q, P, B);
1558
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), T = M;
1559
+ I.lineage_sql(k, K, y, h, R, q, T, B);
1530
1560
  var D = i().getInt32(k + 0, !0), o = i().getInt32(k + 4, !0);
1531
1561
  return Q = D, E = o, c(D, o);
1532
1562
  } finally {
1533
1563
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1534
1564
  }
1535
1565
  }
1536
- function Kg(g, A, C, B, Q) {
1566
+ function Hg(g, A, C, B, Q) {
1537
1567
  let E, D;
1538
1568
  try {
1539
- const K = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = M, P = N(C, I.__wbindgen_export, I.__wbindgen_export2), z = M, r = N(B, I.__wbindgen_export, I.__wbindgen_export2), SI = M;
1540
- I.lineage_sql_with_schema(K, y, h, R, q, P, z, r, SI, Q);
1569
+ const K = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = M, T = N(C, I.__wbindgen_export, I.__wbindgen_export2), e = M, r = N(B, I.__wbindgen_export, I.__wbindgen_export2), LI = M;
1570
+ I.lineage_sql_with_schema(K, y, h, R, q, T, e, r, LI, Q);
1541
1571
  var o = i().getInt32(K + 0, !0), k = i().getInt32(K + 4, !0);
1542
1572
  return E = o, D = k, c(o, k);
1543
1573
  } finally {
1544
1574
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
1545
1575
  }
1546
1576
  }
1547
- function Gg(g, A) {
1577
+ function hg(g, A) {
1548
1578
  let C, B;
1549
1579
  try {
1550
1580
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1555,7 +1585,7 @@ function Gg(g, A) {
1555
1585
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1556
1586
  }
1557
1587
  }
1558
- function Yg(g, A) {
1588
+ function cg(g, A) {
1559
1589
  let C, B;
1560
1590
  try {
1561
1591
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1566,7 +1596,7 @@ function Yg(g, A) {
1566
1596
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1567
1597
  }
1568
1598
  }
1569
- function Hg(g, A) {
1599
+ function Sg(g, A) {
1570
1600
  let C, B;
1571
1601
  try {
1572
1602
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1577,7 +1607,7 @@ function Hg(g, A) {
1577
1607
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1578
1608
  }
1579
1609
  }
1580
- function TI(g, A) {
1610
+ function xI(g, A) {
1581
1611
  let C, B;
1582
1612
  try {
1583
1613
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1588,11 +1618,26 @@ function TI(g, A) {
1588
1618
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1589
1619
  }
1590
1620
  }
1591
- function jI(g, A) {
1621
+ function WI(g, A) {
1622
+ let C, B;
1623
+ try {
1624
+ const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
1625
+ I.parse_data_type(D, o, k, K, y);
1626
+ var Q = i().getInt32(D + 0, !0), E = i().getInt32(D + 4, !0);
1627
+ return C = Q, B = E, c(Q, E);
1628
+ } finally {
1629
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1630
+ }
1631
+ }
1632
+ function VI(g, A) {
1633
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = I.parse_data_type_value(C, B, Q, E);
1634
+ return J(D);
1635
+ }
1636
+ function lI(g, A) {
1592
1637
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = I.parse_value(C, B, Q, E);
1593
- return U(D);
1638
+ return J(D);
1594
1639
  }
1595
- function hg(g, A) {
1640
+ function Fg(g, A) {
1596
1641
  let C, B;
1597
1642
  try {
1598
1643
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1603,7 +1648,7 @@ function hg(g, A) {
1603
1648
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1604
1649
  }
1605
1650
  }
1606
- function Sg(g, A, C) {
1651
+ function Jg(g, A, C) {
1607
1652
  let B, Q;
1608
1653
  try {
1609
1654
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1614,7 +1659,7 @@ function Sg(g, A, C) {
1614
1659
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1615
1660
  }
1616
1661
  }
1617
- function tI(g, A) {
1662
+ function nI(g, A) {
1618
1663
  let C, B;
1619
1664
  try {
1620
1665
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1625,11 +1670,11 @@ function tI(g, A) {
1625
1670
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1626
1671
  }
1627
1672
  }
1628
- function fI(g, A) {
1673
+ function rI(g, A) {
1629
1674
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = I.tokenize_value(C, B, Q, E);
1630
- return U(D);
1675
+ return J(D);
1631
1676
  }
1632
- function ZI(g, A, C) {
1677
+ function mI(g, A, C) {
1633
1678
  let B, Q;
1634
1679
  try {
1635
1680
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1640,26 +1685,26 @@ function ZI(g, A, C) {
1640
1685
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1641
1686
  }
1642
1687
  }
1643
- function dI(g, A, C) {
1688
+ function uI(g, A, C) {
1644
1689
  const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = M, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = M, o = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = I.transpile_value(B, Q, E, D, o, k);
1645
- return U(K);
1690
+ return J(K);
1646
1691
  }
1647
- function zI(g, A, C, B) {
1692
+ function bI(g, A, C, B) {
1648
1693
  let Q, E;
1649
1694
  try {
1650
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), P = M, z = N(B, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1651
- I.transpile_with_options(k, K, y, h, R, q, P, z, r);
1695
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), T = M, e = N(B, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1696
+ I.transpile_with_options(k, K, y, h, R, q, T, e, r);
1652
1697
  var D = i().getInt32(k + 0, !0), o = i().getInt32(k + 4, !0);
1653
1698
  return Q = D, E = o, c(D, o);
1654
1699
  } finally {
1655
1700
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1656
1701
  }
1657
1702
  }
1658
- function VI(g, A, C, B) {
1703
+ function vI(g, A, C, B) {
1659
1704
  const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), E = M, D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = M, k = N(C, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = I.transpile_with_options_value(Q, E, D, o, k, K, a(B));
1660
- return U(y);
1705
+ return J(y);
1661
1706
  }
1662
- function xI(g, A) {
1707
+ function XI(g, A) {
1663
1708
  let C, B;
1664
1709
  try {
1665
1710
  const D = I.__wbindgen_add_to_stack_pointer(-16), o = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = M, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = M;
@@ -1670,7 +1715,7 @@ function xI(g, A) {
1670
1715
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1671
1716
  }
1672
1717
  }
1673
- function eI(g, A, C) {
1718
+ function _I(g, A, C) {
1674
1719
  let B, Q;
1675
1720
  try {
1676
1721
  const o = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = M, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = M, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = M;
@@ -1681,18 +1726,18 @@ function eI(g, A, C) {
1681
1726
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1682
1727
  }
1683
1728
  }
1684
- function cg(g, A, C, B) {
1729
+ function Lg(g, A, C, B) {
1685
1730
  let Q, E;
1686
1731
  try {
1687
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), P = M, z = N(B, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1688
- I.validate_with_schema(k, K, y, h, R, q, P, z, r);
1732
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = M, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = M, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), T = M, e = N(B, I.__wbindgen_export, I.__wbindgen_export2), r = M;
1733
+ I.validate_with_schema(k, K, y, h, R, q, T, e, r);
1689
1734
  var D = i().getInt32(k + 0, !0), o = i().getInt32(k + 4, !0);
1690
1735
  return Q = D, E = o, c(D, o);
1691
1736
  } finally {
1692
1737
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1693
1738
  }
1694
1739
  }
1695
- function WI() {
1740
+ function $I() {
1696
1741
  let g, A;
1697
1742
  try {
1698
1743
  const Q = I.__wbindgen_add_to_stack_pointer(-16);
@@ -1703,7 +1748,7 @@ function WI() {
1703
1748
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1704
1749
  }
1705
1750
  }
1706
- function Lg(g, A) {
1751
+ function Rg(g, A) {
1707
1752
  H(g, G);
1708
1753
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.wasm_alias(g.__wbg_ptr, C, B);
1709
1754
  return G.__wrap(Q);
@@ -1713,166 +1758,166 @@ function Ug(g, A) {
1713
1758
  const C = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
1714
1759
  return G.__wrap(C);
1715
1760
  }
1716
- function Fg(g) {
1761
+ function sg(g) {
1717
1762
  const A = I.wasm_boolean(g);
1718
1763
  return G.__wrap(A);
1719
1764
  }
1720
- function Rg(g) {
1765
+ function ag(g) {
1721
1766
  H(g, G);
1722
1767
  const A = I.wasm_case_of(g.__wbg_ptr);
1723
- return m.__wrap(A);
1768
+ return u.__wrap(A);
1724
1769
  }
1725
- function Jg(g, A) {
1770
+ function qg(g, A) {
1726
1771
  H(g, G);
1727
1772
  const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = M, Q = I.wasm_cast(g.__wbg_ptr, C, B);
1728
1773
  return G.__wrap(Q);
1729
1774
  }
1730
- function UA(g) {
1775
+ function JA(g) {
1731
1776
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = M, B = I.wasm_col(A, C);
1732
1777
  return G.__wrap(B);
1733
1778
  }
1734
- function sg(g) {
1779
+ function pg(g) {
1735
1780
  H(g, G);
1736
1781
  const A = I.wasm_count_distinct(g.__wbg_ptr);
1737
1782
  return G.__wrap(A);
1738
1783
  }
1739
- function ag(g, A) {
1784
+ function Pg(g, A) {
1740
1785
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M;
1741
1786
  H(A, G);
1742
1787
  const Q = I.wasm_extract(C, B, A.__wbg_ptr);
1743
1788
  return G.__wrap(Q);
1744
1789
  }
1745
- function qg(g, A) {
1790
+ function Tg(g, A) {
1746
1791
  const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = M;
1747
- H(A, O);
1792
+ H(A, P);
1748
1793
  const Q = I.wasm_func(C, B, A.__wbg_ptr);
1749
1794
  return G.__wrap(Q);
1750
1795
  }
1751
- function kA(g) {
1796
+ function yA(g) {
1752
1797
  const A = I.wasm_lit(a(g));
1753
1798
  return G.__wrap(A);
1754
1799
  }
1755
- function pg(g) {
1800
+ function Og(g) {
1756
1801
  H(g, G);
1757
1802
  const A = I.wasm_not(g.__wbg_ptr);
1758
1803
  return G.__wrap(A);
1759
1804
  }
1760
- function yA() {
1805
+ function KA() {
1761
1806
  const g = I.wasm_null();
1762
1807
  return G.__wrap(g);
1763
1808
  }
1764
- function Og(g, A) {
1809
+ function jg(g, A) {
1765
1810
  H(g, G), H(A, G);
1766
1811
  const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
1767
1812
  return G.__wrap(C);
1768
1813
  }
1769
- function Pg(g) {
1814
+ function tg(g) {
1770
1815
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = M, B = I.wasm_sql_expr(A, C);
1771
1816
  return G.__wrap(B);
1772
1817
  }
1773
- function Tg() {
1818
+ function fg() {
1774
1819
  const g = I.wasm_star();
1775
1820
  return G.__wrap(g);
1776
1821
  }
1777
- function jg(g, A) {
1822
+ function dg(g, A) {
1778
1823
  try {
1779
1824
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1780
- H(g, j);
1825
+ H(g, t);
1781
1826
  const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), o = M;
1782
1827
  I.wasm_subquery(E, g.__wbg_ptr, D, o);
1783
1828
  var C = i().getInt32(E + 0, !0), B = i().getInt32(E + 4, !0), Q = i().getInt32(E + 8, !0);
1784
1829
  if (Q)
1785
- throw U(B);
1830
+ throw J(B);
1786
1831
  return G.__wrap(C);
1787
1832
  } finally {
1788
1833
  I.__wbindgen_add_to_stack_pointer(16);
1789
1834
  }
1790
1835
  }
1791
- function tg(g) {
1836
+ function zg(g) {
1792
1837
  const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = M, B = I.wasm_table(A, C);
1793
1838
  return G.__wrap(B);
1794
1839
  }
1795
- function lI(g, A) {
1840
+ function AC(g, A) {
1796
1841
  const C = Error(c(g, A));
1797
1842
  return a(C);
1798
1843
  }
1799
- function nI(g) {
1800
- return Number(L(g));
1844
+ function gC(g) {
1845
+ return Number(F(g));
1801
1846
  }
1802
- function rI(g, A) {
1803
- const C = String(L(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
1847
+ function IC(g, A) {
1848
+ const C = String(F(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
1804
1849
  i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
1805
1850
  }
1806
- function uI(g, A) {
1807
- const C = L(A), B = typeof C == "bigint" ? C : void 0;
1808
- i().setBigInt64(g + 8, b(B) ? BigInt(0) : B, !0), i().setInt32(g + 0, !b(B), !0);
1851
+ function CC(g, A) {
1852
+ const C = F(A), B = typeof C == "bigint" ? C : void 0;
1853
+ i().setBigInt64(g + 8, X(B) ? BigInt(0) : B, !0), i().setInt32(g + 0, !X(B), !0);
1809
1854
  }
1810
- function mI(g) {
1811
- const A = L(g), C = typeof A == "boolean" ? A : void 0;
1812
- return b(C) ? 16777215 : C ? 1 : 0;
1855
+ function BC(g) {
1856
+ const A = F(g), C = typeof A == "boolean" ? A : void 0;
1857
+ return X(C) ? 16777215 : C ? 1 : 0;
1813
1858
  }
1814
- function vI(g, A) {
1815
- const C = cA(L(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
1859
+ function QC(g, A) {
1860
+ const C = SA(F(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
1816
1861
  i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
1817
1862
  }
1818
- function bI(g, A) {
1819
- return L(g) in L(A);
1863
+ function EC(g, A) {
1864
+ return F(g) in F(A);
1820
1865
  }
1821
- function XI(g) {
1822
- return typeof L(g) == "bigint";
1866
+ function DC(g) {
1867
+ return typeof F(g) == "bigint";
1823
1868
  }
1824
- function _I(g) {
1825
- return typeof L(g) == "function";
1869
+ function wC(g) {
1870
+ return typeof F(g) == "function";
1826
1871
  }
1827
- function $I(g) {
1828
- return L(g) === null;
1872
+ function iC(g) {
1873
+ return F(g) === null;
1829
1874
  }
1830
- function AC(g) {
1831
- const A = L(g);
1875
+ function oC(g) {
1876
+ const A = F(g);
1832
1877
  return typeof A == "object" && A !== null;
1833
1878
  }
1834
- function gC(g) {
1835
- return typeof L(g) == "string";
1879
+ function MC(g) {
1880
+ return typeof F(g) == "string";
1836
1881
  }
1837
- function IC(g) {
1838
- return L(g) === void 0;
1882
+ function NC(g) {
1883
+ return F(g) === void 0;
1839
1884
  }
1840
- function CC(g, A) {
1841
- return L(g) === L(A);
1885
+ function kC(g, A) {
1886
+ return F(g) === F(A);
1842
1887
  }
1843
- function BC(g, A) {
1844
- return L(g) == L(A);
1888
+ function yC(g, A) {
1889
+ return F(g) == F(A);
1845
1890
  }
1846
- function QC(g, A) {
1847
- const C = L(A), B = typeof C == "number" ? C : void 0;
1848
- i().setFloat64(g + 8, b(B) ? 0 : B, !0), i().setInt32(g + 0, !b(B), !0);
1891
+ function KC(g, A) {
1892
+ const C = F(A), B = typeof C == "number" ? C : void 0;
1893
+ i().setFloat64(g + 8, X(B) ? 0 : B, !0), i().setInt32(g + 0, !X(B), !0);
1849
1894
  }
1850
- function EC(g, A) {
1851
- const C = L(A), B = typeof C == "string" ? C : void 0;
1852
- var Q = b(B) ? 0 : N(B, I.__wbindgen_export, I.__wbindgen_export2), E = M;
1895
+ function GC(g, A) {
1896
+ const C = F(A), B = typeof C == "string" ? C : void 0;
1897
+ var Q = X(B) ? 0 : N(B, I.__wbindgen_export, I.__wbindgen_export2), E = M;
1853
1898
  i().setInt32(g + 4, E, !0), i().setInt32(g + 0, Q, !0);
1854
1899
  }
1855
- function DC(g, A) {
1900
+ function YC(g, A) {
1856
1901
  throw new Error(c(g, A));
1857
1902
  }
1858
- function wC() {
1859
- return KA(function(g, A) {
1860
- const C = L(g).call(L(A));
1903
+ function HC() {
1904
+ return GA(function(g, A) {
1905
+ const C = F(g).call(F(A));
1861
1906
  return a(C);
1862
1907
  }, arguments);
1863
1908
  }
1864
- function iC(g, A) {
1865
- const C = L(g).codePointAt(A >>> 0);
1909
+ function hC(g, A) {
1910
+ const C = F(g).codePointAt(A >>> 0);
1866
1911
  return a(C);
1867
1912
  }
1868
- function oC(g) {
1869
- return L(g).done;
1913
+ function cC(g) {
1914
+ return F(g).done;
1870
1915
  }
1871
- function MC(g) {
1872
- const A = Object.entries(L(g));
1916
+ function SC(g) {
1917
+ const A = Object.entries(F(g));
1873
1918
  return a(A);
1874
1919
  }
1875
- function NC(g, A) {
1920
+ function FC(g, A) {
1876
1921
  let C, B;
1877
1922
  try {
1878
1923
  C = g, B = A, console.error(c(g, A));
@@ -1880,175 +1925,175 @@ function NC(g, A) {
1880
1925
  I.__wbindgen_export4(C, B, 1);
1881
1926
  }
1882
1927
  }
1883
- function kC() {
1884
- return KA(function(g) {
1928
+ function JC() {
1929
+ return GA(function(g) {
1885
1930
  const A = String.fromCodePoint(g >>> 0);
1886
1931
  return a(A);
1887
1932
  }, arguments);
1888
1933
  }
1889
- function yC(g, A) {
1890
- const C = L(g)[A >>> 0];
1934
+ function LC(g, A) {
1935
+ const C = F(g)[A >>> 0];
1891
1936
  return a(C);
1892
1937
  }
1893
- function KC() {
1894
- return KA(function(g, A) {
1895
- const C = Reflect.get(L(g), L(A));
1938
+ function RC() {
1939
+ return GA(function(g, A) {
1940
+ const C = Reflect.get(F(g), F(A));
1896
1941
  return a(C);
1897
1942
  }, arguments);
1898
1943
  }
1899
- function GC(g, A) {
1900
- const C = L(g)[L(A)];
1944
+ function UC(g, A) {
1945
+ const C = F(g)[F(A)];
1901
1946
  return a(C);
1902
1947
  }
1903
- function YC(g) {
1948
+ function sC(g) {
1904
1949
  let A;
1905
1950
  try {
1906
- A = L(g) instanceof ArrayBuffer;
1951
+ A = F(g) instanceof ArrayBuffer;
1907
1952
  } catch {
1908
1953
  A = !1;
1909
1954
  }
1910
1955
  return A;
1911
1956
  }
1912
- function HC(g) {
1957
+ function aC(g) {
1913
1958
  let A;
1914
1959
  try {
1915
- A = L(g) instanceof Map;
1960
+ A = F(g) instanceof Map;
1916
1961
  } catch {
1917
1962
  A = !1;
1918
1963
  }
1919
1964
  return A;
1920
1965
  }
1921
- function hC(g) {
1966
+ function qC(g) {
1922
1967
  let A;
1923
1968
  try {
1924
- A = L(g) instanceof Uint8Array;
1969
+ A = F(g) instanceof Uint8Array;
1925
1970
  } catch {
1926
1971
  A = !1;
1927
1972
  }
1928
1973
  return A;
1929
1974
  }
1930
- function SC(g) {
1931
- return Array.isArray(L(g));
1975
+ function pC(g) {
1976
+ return Array.isArray(F(g));
1932
1977
  }
1933
- function cC(g) {
1934
- return Number.isSafeInteger(L(g));
1978
+ function PC(g) {
1979
+ return Number.isSafeInteger(F(g));
1935
1980
  }
1936
- function LC() {
1981
+ function TC() {
1937
1982
  return a(Symbol.iterator);
1938
1983
  }
1939
- function UC(g) {
1940
- return L(g).length;
1984
+ function OC(g) {
1985
+ return F(g).length;
1941
1986
  }
1942
- function FC(g) {
1943
- return L(g).length;
1987
+ function jC(g) {
1988
+ return F(g).length;
1944
1989
  }
1945
- function RC(g) {
1946
- return L(g).length;
1990
+ function tC(g) {
1991
+ return F(g).length;
1947
1992
  }
1948
- function JC() {
1993
+ function fC() {
1949
1994
  const g = new Object();
1950
1995
  return a(g);
1951
1996
  }
1952
- function sC() {
1997
+ function dC() {
1953
1998
  const g = new Array();
1954
1999
  return a(g);
1955
2000
  }
1956
- function aC() {
2001
+ function zC() {
1957
2002
  const g = new Error();
1958
2003
  return a(g);
1959
2004
  }
1960
- function qC() {
2005
+ function ZC() {
1961
2006
  return a(/* @__PURE__ */ new Map());
1962
2007
  }
1963
- function pC(g) {
1964
- const A = new Uint8Array(L(g));
2008
+ function eC(g) {
2009
+ const A = new Uint8Array(F(g));
1965
2010
  return a(A);
1966
2011
  }
1967
- function OC() {
1968
- return KA(function(g) {
1969
- const A = L(g).next();
2012
+ function xC() {
2013
+ return GA(function(g) {
2014
+ const A = F(g).next();
1970
2015
  return a(A);
1971
2016
  }, arguments);
1972
2017
  }
1973
- function PC(g) {
1974
- const A = L(g).next;
2018
+ function WC(g) {
2019
+ const A = F(g).next;
1975
2020
  return a(A);
1976
2021
  }
1977
- function TC(g, A, C) {
1978
- Uint8Array.prototype.set.call(rC(g, A), L(C));
2022
+ function VC(g, A, C) {
2023
+ Uint8Array.prototype.set.call(IB(g, A), F(C));
1979
2024
  }
1980
- function jC(g, A, C) {
1981
- const B = L(g).set(L(A), L(C));
2025
+ function lC(g, A, C) {
2026
+ const B = F(g).set(F(A), F(C));
1982
2027
  return a(B);
1983
2028
  }
1984
- function tC(g, A, C) {
1985
- L(g)[U(A)] = U(C);
2029
+ function nC(g, A, C) {
2030
+ F(g)[J(A)] = J(C);
1986
2031
  }
1987
- function fC(g, A, C) {
1988
- L(g)[A >>> 0] = U(C);
2032
+ function rC(g, A, C) {
2033
+ F(g)[A >>> 0] = J(C);
1989
2034
  }
1990
- function ZC(g, A) {
1991
- const C = L(A).stack, B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
2035
+ function mC(g, A) {
2036
+ const C = F(A).stack, B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = M;
1992
2037
  i().setInt32(g + 4, Q, !0), i().setInt32(g + 0, B, !0);
1993
2038
  }
1994
- function dC(g) {
1995
- const A = L(g).value;
2039
+ function uC(g) {
2040
+ const A = F(g).value;
1996
2041
  return a(A);
1997
2042
  }
1998
- function zC(g) {
2043
+ function bC(g) {
1999
2044
  return a(g);
2000
2045
  }
2001
- function VC(g) {
2046
+ function vC(g) {
2002
2047
  return a(g);
2003
2048
  }
2004
- function xC(g, A) {
2049
+ function XC(g, A) {
2005
2050
  const C = c(g, A);
2006
2051
  return a(C);
2007
2052
  }
2008
- function eC(g) {
2053
+ function _C(g) {
2009
2054
  const A = BigInt.asUintN(64, g);
2010
2055
  return a(A);
2011
2056
  }
2012
- function WC(g) {
2013
- const A = L(g);
2057
+ function $C(g) {
2058
+ const A = F(g);
2014
2059
  return a(A);
2015
2060
  }
2016
- function lC(g) {
2017
- U(g);
2061
+ function AB(g) {
2062
+ J(g);
2018
2063
  }
2019
- const zA = typeof FinalizationRegistry > "u" ? { register: () => {
2064
+ const WA = typeof FinalizationRegistry > "u" ? { register: () => {
2020
2065
  }, unregister: () => {
2021
2066
  } } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), hA = typeof FinalizationRegistry > "u" ? { register: () => {
2022
2067
  }, unregister: () => {
2023
2068
  } } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
2024
2069
  }, unregister: () => {
2025
- } } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), xA = typeof FinalizationRegistry > "u" ? { register: () => {
2070
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
2026
2071
  }, unregister: () => {
2027
- } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), eA = typeof FinalizationRegistry > "u" ? { register: () => {
2072
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
2028
2073
  }, unregister: () => {
2029
- } } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
2074
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
2030
2075
  }, unregister: () => {
2031
- } } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
2076
+ } } : new FinalizationRegistry((g) => I.__wbg_wasminsertbuilder_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
2032
2077
  }, unregister: () => {
2033
- } } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
2078
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), uA = typeof FinalizationRegistry > "u" ? { register: () => {
2034
2079
  }, unregister: () => {
2035
- } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
2080
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), bA = typeof FinalizationRegistry > "u" ? { register: () => {
2036
2081
  }, unregister: () => {
2037
- } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), uA = typeof FinalizationRegistry > "u" ? { register: () => {
2082
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), vA = typeof FinalizationRegistry > "u" ? { register: () => {
2038
2083
  }, unregister: () => {
2039
- } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), mA = typeof FinalizationRegistry > "u" ? { register: () => {
2084
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), XA = typeof FinalizationRegistry > "u" ? { register: () => {
2040
2085
  }, unregister: () => {
2041
2086
  } } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
2042
2087
  function a(g) {
2043
- AA === V.length && V.push(V.length + 1);
2044
- const A = AA;
2045
- return AA = V[A], V[A] = g, A;
2088
+ gA === x.length && x.push(x.length + 1);
2089
+ const A = gA;
2090
+ return gA = x[A], x[A] = g, A;
2046
2091
  }
2047
2092
  function H(g, A) {
2048
2093
  if (!(g instanceof A))
2049
2094
  throw new Error(`expected instance of ${A.name}`);
2050
2095
  }
2051
- function cA(g) {
2096
+ function SA(g) {
2052
2097
  const A = typeof g;
2053
2098
  if (A == "number" || A == "boolean" || g == null)
2054
2099
  return `${g}`;
@@ -2065,9 +2110,9 @@ function cA(g) {
2065
2110
  if (Array.isArray(g)) {
2066
2111
  const Q = g.length;
2067
2112
  let E = "[";
2068
- Q > 0 && (E += cA(g[0]));
2113
+ Q > 0 && (E += SA(g[0]));
2069
2114
  for (let D = 1; D < Q; D++)
2070
- E += ", " + cA(g[D]);
2115
+ E += ", " + SA(g[D]);
2071
2116
  return E += "]", E;
2072
2117
  }
2073
2118
  const C = /\[object ([^\]]+)\]/.exec(toString.call(g));
@@ -2085,40 +2130,40 @@ function cA(g) {
2085
2130
  return g instanceof Error ? `${g.name}: ${g.message}
2086
2131
  ${g.stack}` : B;
2087
2132
  }
2088
- function nC(g) {
2089
- g < 132 || (V[g] = AA, AA = g);
2133
+ function gB(g) {
2134
+ g < 132 || (x[g] = gA, gA = g);
2090
2135
  }
2091
- function rC(g, A) {
2092
- return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
2136
+ function IB(g, A) {
2137
+ return g = g >>> 0, AA().subarray(g / 1, g / 1 + A);
2093
2138
  }
2094
2139
  let v = null;
2095
2140
  function i() {
2096
2141
  return (v === null || v.buffer.detached === !0 || v.buffer.detached === void 0 && v.buffer !== I.memory.buffer) && (v = new DataView(I.memory.buffer)), v;
2097
2142
  }
2098
2143
  function c(g, A) {
2099
- return g = g >>> 0, mC(g, A);
2144
+ return g = g >>> 0, BB(g, A);
2100
2145
  }
2101
- let EA = null;
2102
- function $() {
2103
- return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
2146
+ let DA = null;
2147
+ function AA() {
2148
+ return (DA === null || DA.byteLength === 0) && (DA = new Uint8Array(I.memory.buffer)), DA;
2104
2149
  }
2105
- function L(g) {
2106
- return V[g];
2150
+ function F(g) {
2151
+ return x[g];
2107
2152
  }
2108
- function KA(g, A) {
2153
+ function GA(g, A) {
2109
2154
  try {
2110
2155
  return g.apply(this, A);
2111
2156
  } catch (C) {
2112
2157
  I.__wbindgen_export3(a(C));
2113
2158
  }
2114
2159
  }
2115
- let V = new Array(128).fill(void 0);
2116
- V.push(void 0, null, !0, !1);
2117
- let AA = V.length;
2118
- function b(g) {
2160
+ let x = new Array(128).fill(void 0);
2161
+ x.push(void 0, null, !0, !1);
2162
+ let gA = x.length;
2163
+ function X(g) {
2119
2164
  return g == null;
2120
2165
  }
2121
- function FA(g, A) {
2166
+ function LA(g, A) {
2122
2167
  const C = A(g.length * 4, 4) >>> 0, B = i();
2123
2168
  for (let Q = 0; Q < g.length; Q++)
2124
2169
  B.setUint32(C + 4 * Q, a(g[Q]), !0);
@@ -2126,11 +2171,11 @@ function FA(g, A) {
2126
2171
  }
2127
2172
  function N(g, A, C) {
2128
2173
  if (C === void 0) {
2129
- const o = gA.encode(g), k = A(o.length, 1) >>> 0;
2130
- return $().subarray(k, k + o.length).set(o), M = o.length, k;
2174
+ const o = IA.encode(g), k = A(o.length, 1) >>> 0;
2175
+ return AA().subarray(k, k + o.length).set(o), M = o.length, k;
2131
2176
  }
2132
2177
  let B = g.length, Q = A(B, 1) >>> 0;
2133
- const E = $();
2178
+ const E = AA();
2134
2179
  let D = 0;
2135
2180
  for (; D < B; D++) {
2136
2181
  const o = g.charCodeAt(D);
@@ -2139,370 +2184,382 @@ function N(g, A, C) {
2139
2184
  }
2140
2185
  if (D !== B) {
2141
2186
  D !== 0 && (g = g.slice(D)), Q = C(Q, B, B = D + g.length * 3, 1) >>> 0;
2142
- const o = $().subarray(Q + D, Q + B), k = gA.encodeInto(g, o);
2187
+ const o = AA().subarray(Q + D, Q + B), k = IA.encodeInto(g, o);
2143
2188
  D += k.written, Q = C(Q, B, D, 1) >>> 0;
2144
2189
  }
2145
2190
  return M = D, Q;
2146
2191
  }
2147
- function U(g) {
2148
- const A = L(g);
2149
- return nC(g), A;
2192
+ function J(g) {
2193
+ const A = F(g);
2194
+ return gB(g), A;
2150
2195
  }
2151
- let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2152
- DA.decode();
2153
- const uC = 2146435072;
2154
- let SA = 0;
2155
- function mC(g, A) {
2156
- return SA += A, SA >= uC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), SA = A), DA.decode($().subarray(g, g + A));
2196
+ let wA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2197
+ wA.decode();
2198
+ const CB = 2146435072;
2199
+ let cA = 0;
2200
+ function BB(g, A) {
2201
+ return cA += A, cA >= CB && (wA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), wA.decode(), cA = A), wA.decode(AA().subarray(g, g + A));
2157
2202
  }
2158
- const gA = new TextEncoder();
2159
- "encodeInto" in gA || (gA.encodeInto = function(g, A) {
2160
- const C = gA.encode(g);
2203
+ const IA = new TextEncoder();
2204
+ "encodeInto" in IA || (IA.encodeInto = function(g, A) {
2205
+ const C = IA.encode(g);
2161
2206
  return A.set(C), {
2162
2207
  read: g.length,
2163
2208
  written: C.length
2164
2209
  };
2165
2210
  });
2166
2211
  let M = 0, I;
2167
- function vC(g) {
2212
+ function QB(g) {
2168
2213
  I = g;
2169
2214
  }
2170
2215
  URL = globalThis.URL;
2171
- const w = await LI({ "./polyglot_sql_wasm_bg.js": {
2172
- __wbindgen_object_drop_ref: lC,
2173
- __wbindgen_object_clone_ref: WC,
2174
- __wbg_new_8a6f238a6ece86ea: aC,
2175
- __wbg_stack_0ed75d68575b0f3c: ZC,
2176
- __wbg_error_7534b8e9a36f1ab4: NC,
2177
- __wbg_get_with_ref_key_1dc361bd10053bfe: GC,
2178
- __wbg_set_3f1d0b984ed272ed: tC,
2179
- __wbg_String_8f0eb39a4a4c2f66: rI,
2180
- __wbg_new_dd2b680c8bf6ae29: pC,
2181
- __wbg_length_32ed9a279acd054c: UC,
2182
- __wbg_prototypesetcall_bdcdcc5842e4d77d: TC,
2183
- __wbg_done_57b39ecd9addfe81: oC,
2184
- __wbg_value_0546255b415e96c1: dC,
2185
- __wbg_instanceof_Map_53af74335dec57f4: HC,
2186
- __wbg_instanceof_Uint8Array_9b9075935c74707c: hC,
2187
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: YC,
2188
- __wbg_new_dca287b076112a51: qC,
2189
- __wbg_set_1eb0999cf5d27fc8: jC,
2190
- __wbg_get_9b94d73e6221f75c: yC,
2191
- __wbg_new_3eb36ae241fe6f44: sC,
2192
- __wbg_set_f43e577aea94465b: fC,
2193
- __wbg_length_35a7bace40f36eac: FC,
2194
- __wbg_isArray_d314bb98fcf08331: SC,
2195
- __wbg_isSafeInteger_bfbc7332a9768d2a: cC,
2196
- __wbg_new_361308b2356cecd0: JC,
2197
- __wbg_entries_58c7934c745daac7: MC,
2198
- __wbg_iterator_6ff6560ca1568e55: LC,
2199
- __wbg_get_b3ed3ad4be2bc8ac: KC,
2200
- __wbg_call_389efe28435a9388: wC,
2201
- __wbg_next_418f80d8f5303233: PC,
2202
- __wbg_next_3482f54c49e8af19: OC,
2203
- __wbg_codePointAt_bf59dbf74d8db275: iC,
2204
- __wbg_fromCodePoint_22365db7b7d6ac39: kC,
2205
- __wbg_length_68dc7c5cf1b6d349: RC,
2206
- __wbg___wbindgen_in_47fa6863be6f2f25: bI,
2207
- __wbg___wbindgen_throw_be289d5034ed271b: DC,
2208
- __wbg___wbindgen_is_null_ac34f5003991759a: $I,
2209
- __wbg___wbindgen_jsval_eq_11888390b0186270: CC,
2210
- __wbg_Number_04624de7d0e8332d: nI,
2211
- __wbg_Error_8c4e43fe74559d73: lI,
2212
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: XI,
2213
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: AC,
2214
- __wbg___wbindgen_is_string_cd444516edc5b180: gC,
2215
- __wbg___wbindgen_number_get_8ff4255516ccad3e: QC,
2216
- __wbg___wbindgen_string_get_72fb696202c56729: EC,
2217
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: mI,
2218
- __wbg___wbindgen_is_function_0095a73b8b156f76: _I,
2219
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: IC,
2220
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: BC,
2221
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: uI,
2222
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: vI,
2223
- __wbindgen_cast_0000000000000001: zC,
2224
- __wbindgen_cast_0000000000000002: VC,
2225
- __wbindgen_cast_0000000000000003: xC,
2226
- __wbindgen_cast_0000000000000004: eC
2227
- } }, cI), bC = w.memory, XC = w.__wbg_wasmassignmentarray_free, _C = w.__wbg_wasmcasebuilder_free, $C = w.__wbg_wasmdeletebuilder_free, AB = w.__wbg_wasmexpr_free, gB = w.__wbg_wasmexprarray_free, IB = w.__wbg_wasminsertbuilder_free, CB = w.__wbg_wasmmergebuilder_free, BB = w.__wbg_wasmselectbuilder_free, QB = w.__wbg_wasmsetopbuilder_free, EB = w.__wbg_wasmupdatebuilder_free, DB = w.__wbg_wasmwindowdefbuilder_free, wB = w.annotate_types, iB = w.annotate_types_value, oB = w.ast_add_where, MB = w.ast_get_aggregate_functions, NB = w.ast_get_column_names, kB = w.ast_get_functions, yB = w.ast_get_literals, KB = w.ast_get_subqueries, GB = w.ast_get_table_names, YB = w.ast_get_window_functions, HB = w.ast_node_count, hB = w.ast_qualify_columns, SB = w.ast_qualify_tables, cB = w.ast_remove_where, LB = w.ast_rename_columns, UB = w.ast_rename_tables, FB = w.ast_rename_tables_with_options, RB = w.ast_set_distinct, JB = w.ast_set_limit, sB = w.diff_sql, aB = w.format_sql, qB = w.format_sql_value, pB = w.format_sql_with_options, OB = w.format_sql_with_options_value, PB = w.generate, TB = w.generate_value, jB = w.get_dialects, tB = w.get_dialects_value, fB = w.lineage_sql, ZB = w.lineage_sql_with_schema, dB = w.openlineage_column_lineage, zB = w.openlineage_job_event, VB = w.openlineage_run_event, xB = w.parse, eB = w.parse_value, WB = w.plan, lB = w.source_tables, nB = w.tokenize, rB = w.tokenize_value, uB = w.transpile, mB = w.transpile_value, vB = w.transpile_with_options, bB = w.transpile_with_options_value, XB = w.validate, _B = w.validate_with_options, $B = w.validate_with_schema, AQ = w.version, gQ = w.wasm_alias, IQ = w.wasm_and, CQ = w.wasm_boolean, BQ = w.wasm_case_of, QQ = w.wasm_cast, EQ = w.wasm_col, DQ = w.wasm_count_distinct, wQ = w.wasm_extract, iQ = w.wasm_func, oQ = w.wasm_lit, MQ = w.wasm_not, NQ = w.wasm_null, kQ = w.wasm_or, yQ = w.wasm_sql_expr, KQ = w.wasm_star, GQ = w.wasm_subquery, YQ = w.wasm_table, HQ = w.wasmassignmentarray_len, hQ = w.wasmassignmentarray_new, SQ = w.wasmassignmentarray_push, cQ = w.wasmcasebuilder_build_expr, LQ = w.wasmcasebuilder_else_, UQ = w.wasmcasebuilder_new, FQ = w.wasmcasebuilder_to_sql, RQ = w.wasmcasebuilder_when, JQ = w.wasmdeletebuilder_build, sQ = w.wasmdeletebuilder_new, aQ = w.wasmdeletebuilder_to_sql, qQ = w.wasmdeletebuilder_where_expr, pQ = w.wasmexpr_add, OQ = w.wasmexpr_alias, PQ = w.wasmexpr_and, TQ = w.wasmexpr_asc, jQ = w.wasmexpr_between, tQ = w.wasmexpr_cast, fQ = w.wasmexpr_desc, ZQ = w.wasmexpr_div, dQ = w.wasmexpr_eq, zQ = w.wasmexpr_gt, VQ = w.wasmexpr_gte, xQ = w.wasmexpr_ilike, eQ = w.wasmexpr_in_list, WQ = w.wasmexpr_is_not_null, lQ = w.wasmexpr_is_null, nQ = w.wasmexpr_like, rQ = w.wasmexpr_lt, uQ = w.wasmexpr_lte, mQ = w.wasmexpr_mul, vQ = w.wasmexpr_neq, bQ = w.wasmexpr_not, XQ = w.wasmexpr_not_in, _Q = w.wasmexpr_or, $Q = w.wasmexpr_rlike, AE = w.wasmexpr_sub, gE = w.wasmexpr_to_json, IE = w.wasmexpr_to_sql, CE = w.wasmexpr_xor, BE = w.wasmexprarray_len, QE = w.wasmexprarray_push, EE = w.wasmexprarray_push_col, DE = w.wasmexprarray_push_float, wE = w.wasmexprarray_push_int, iE = w.wasmexprarray_push_star, oE = w.wasmexprarray_push_str, ME = w.wasminsertbuilder_build, NE = w.wasminsertbuilder_columns, kE = w.wasminsertbuilder_new, yE = w.wasminsertbuilder_query, KE = w.wasminsertbuilder_to_sql, GE = w.wasminsertbuilder_values, YE = w.wasmmergebuilder_build, HE = w.wasmmergebuilder_new, hE = w.wasmmergebuilder_to_sql, SE = w.wasmmergebuilder_using, cE = w.wasmmergebuilder_when_matched_delete, LE = w.wasmmergebuilder_when_matched_update, UE = w.wasmmergebuilder_when_not_matched_insert, FE = w.wasmselectbuilder_build, RE = w.wasmselectbuilder_cross_join, JE = w.wasmselectbuilder_ctas, sE = w.wasmselectbuilder_ctas_sql, aE = w.wasmselectbuilder_distinct, qE = w.wasmselectbuilder_except_, pE = w.wasmselectbuilder_for_update, OE = w.wasmselectbuilder_from, PE = w.wasmselectbuilder_from_expr, TE = w.wasmselectbuilder_group_by_cols, jE = w.wasmselectbuilder_having, tE = w.wasmselectbuilder_hint, fE = w.wasmselectbuilder_intersect, ZE = w.wasmselectbuilder_join, dE = w.wasmselectbuilder_lateral_view, zE = w.wasmselectbuilder_left_join, VE = w.wasmselectbuilder_limit, xE = w.wasmselectbuilder_new, eE = w.wasmselectbuilder_offset, WE = w.wasmselectbuilder_order_by_exprs, lE = w.wasmselectbuilder_qualify, nE = w.wasmselectbuilder_right_join, rE = w.wasmselectbuilder_select_col, uE = w.wasmselectbuilder_select_expr, mE = w.wasmselectbuilder_select_exprs, vE = w.wasmselectbuilder_select_star, bE = w.wasmselectbuilder_sort_by_exprs, XE = w.wasmselectbuilder_to_sql, _E = w.wasmselectbuilder_union, $E = w.wasmselectbuilder_union_all, AD = w.wasmselectbuilder_where_expr, gD = w.wasmselectbuilder_where_sql, ID = w.wasmselectbuilder_window, CD = w.wasmsetopbuilder_build, BD = w.wasmsetopbuilder_limit, QD = w.wasmsetopbuilder_offset, ED = w.wasmsetopbuilder_order_by_exprs, DD = w.wasmsetopbuilder_to_sql, wD = w.wasmupdatebuilder_build, iD = w.wasmupdatebuilder_from, oD = w.wasmupdatebuilder_new, MD = w.wasmupdatebuilder_set, ND = w.wasmupdatebuilder_to_sql, kD = w.wasmupdatebuilder_where_expr, yD = w.wasmwindowdefbuilder_new, KD = w.wasmwindowdefbuilder_order_by, GD = w.wasmwindowdefbuilder_partition_by, YD = w.wasmexprarray_new, HD = w.__wbindgen_export, hD = w.__wbindgen_export2, SD = w.__wbindgen_export3, cD = w.__wbindgen_export4, LD = w.__wbindgen_add_to_stack_pointer, UD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2216
+ const w = await UI({ "./polyglot_sql_wasm_bg.js": {
2217
+ __wbindgen_object_drop_ref: AB,
2218
+ __wbindgen_object_clone_ref: $C,
2219
+ __wbg_new_8a6f238a6ece86ea: zC,
2220
+ __wbg_stack_0ed75d68575b0f3c: mC,
2221
+ __wbg_error_7534b8e9a36f1ab4: FC,
2222
+ __wbg_get_with_ref_key_1dc361bd10053bfe: UC,
2223
+ __wbg_set_3f1d0b984ed272ed: nC,
2224
+ __wbg_String_8f0eb39a4a4c2f66: IC,
2225
+ __wbg_new_dd2b680c8bf6ae29: eC,
2226
+ __wbg_length_32ed9a279acd054c: OC,
2227
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: VC,
2228
+ __wbg_done_57b39ecd9addfe81: cC,
2229
+ __wbg_value_0546255b415e96c1: uC,
2230
+ __wbg_instanceof_Map_53af74335dec57f4: aC,
2231
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: qC,
2232
+ __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: sC,
2233
+ __wbg_new_dca287b076112a51: ZC,
2234
+ __wbg_set_1eb0999cf5d27fc8: lC,
2235
+ __wbg_get_9b94d73e6221f75c: LC,
2236
+ __wbg_new_3eb36ae241fe6f44: dC,
2237
+ __wbg_set_f43e577aea94465b: rC,
2238
+ __wbg_length_35a7bace40f36eac: jC,
2239
+ __wbg_isArray_d314bb98fcf08331: pC,
2240
+ __wbg_isSafeInteger_bfbc7332a9768d2a: PC,
2241
+ __wbg_new_361308b2356cecd0: fC,
2242
+ __wbg_entries_58c7934c745daac7: SC,
2243
+ __wbg_iterator_6ff6560ca1568e55: TC,
2244
+ __wbg_get_b3ed3ad4be2bc8ac: RC,
2245
+ __wbg_call_389efe28435a9388: HC,
2246
+ __wbg_next_418f80d8f5303233: WC,
2247
+ __wbg_next_3482f54c49e8af19: xC,
2248
+ __wbg_codePointAt_bf59dbf74d8db275: hC,
2249
+ __wbg_fromCodePoint_22365db7b7d6ac39: JC,
2250
+ __wbg_length_68dc7c5cf1b6d349: tC,
2251
+ __wbg___wbindgen_in_47fa6863be6f2f25: EC,
2252
+ __wbg___wbindgen_throw_be289d5034ed271b: YC,
2253
+ __wbg___wbindgen_is_null_ac34f5003991759a: iC,
2254
+ __wbg___wbindgen_jsval_eq_11888390b0186270: kC,
2255
+ __wbg_Number_04624de7d0e8332d: gC,
2256
+ __wbg_Error_8c4e43fe74559d73: AC,
2257
+ __wbg___wbindgen_is_bigint_31b12575b56f32fc: DC,
2258
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: oC,
2259
+ __wbg___wbindgen_is_string_cd444516edc5b180: MC,
2260
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: KC,
2261
+ __wbg___wbindgen_string_get_72fb696202c56729: GC,
2262
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: BC,
2263
+ __wbg___wbindgen_is_function_0095a73b8b156f76: wC,
2264
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: NC,
2265
+ __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: yC,
2266
+ __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: CC,
2267
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: QC,
2268
+ __wbindgen_cast_0000000000000001: bC,
2269
+ __wbindgen_cast_0000000000000002: vC,
2270
+ __wbindgen_cast_0000000000000003: XC,
2271
+ __wbindgen_cast_0000000000000004: _C
2272
+ } }, RI), EB = w.memory, DB = w.__wbg_wasmassignmentarray_free, wB = w.__wbg_wasmcasebuilder_free, iB = w.__wbg_wasmdeletebuilder_free, oB = w.__wbg_wasmexpr_free, MB = w.__wbg_wasmexprarray_free, NB = w.__wbg_wasminsertbuilder_free, kB = w.__wbg_wasmmergebuilder_free, yB = w.__wbg_wasmselectbuilder_free, KB = w.__wbg_wasmsetopbuilder_free, GB = w.__wbg_wasmupdatebuilder_free, YB = w.__wbg_wasmwindowdefbuilder_free, HB = w.analyze_query, hB = w.analyze_query_value, cB = w.annotate_types, SB = w.annotate_types_value, FB = w.ast_add_where, JB = w.ast_get_aggregate_functions, LB = w.ast_get_column_names, RB = w.ast_get_functions, UB = w.ast_get_literals, sB = w.ast_get_subqueries, aB = w.ast_get_table_names, qB = w.ast_get_window_functions, pB = w.ast_node_count, PB = w.ast_qualify_columns, TB = w.ast_qualify_tables, OB = w.ast_remove_where, jB = w.ast_rename_columns, tB = w.ast_rename_tables, fB = w.ast_rename_tables_with_options, dB = w.ast_set_distinct, zB = w.ast_set_limit, ZB = w.diff_sql, eB = w.format_sql, xB = w.format_sql_value, WB = w.format_sql_with_options, VB = w.format_sql_with_options_value, lB = w.generate, nB = w.generate_data_type, rB = w.generate_data_type_value, mB = w.generate_value, uB = w.get_dialects, bB = w.get_dialects_value, vB = w.lineage_sql, XB = w.lineage_sql_with_schema, _B = w.openlineage_column_lineage, $B = w.openlineage_job_event, AQ = w.openlineage_run_event, gQ = w.parse, IQ = w.parse_data_type, CQ = w.parse_data_type_value, BQ = w.parse_value, QQ = w.plan, EQ = w.source_tables, DQ = w.tokenize, wQ = w.tokenize_value, iQ = w.transpile, oQ = w.transpile_value, MQ = w.transpile_with_options, NQ = w.transpile_with_options_value, kQ = w.validate, yQ = w.validate_with_options, KQ = w.validate_with_schema, GQ = w.version, YQ = w.wasm_alias, HQ = w.wasm_and, hQ = w.wasm_boolean, cQ = w.wasm_case_of, SQ = w.wasm_cast, FQ = w.wasm_col, JQ = w.wasm_count_distinct, LQ = w.wasm_extract, RQ = w.wasm_func, UQ = w.wasm_lit, sQ = w.wasm_not, aQ = w.wasm_null, qQ = w.wasm_or, pQ = w.wasm_sql_expr, PQ = w.wasm_star, TQ = w.wasm_subquery, OQ = w.wasm_table, jQ = w.wasmassignmentarray_len, tQ = w.wasmassignmentarray_new, fQ = w.wasmassignmentarray_push, dQ = w.wasmcasebuilder_build_expr, zQ = w.wasmcasebuilder_else_, ZQ = w.wasmcasebuilder_new, eQ = w.wasmcasebuilder_to_sql, xQ = w.wasmcasebuilder_when, WQ = w.wasmdeletebuilder_build, VQ = w.wasmdeletebuilder_new, lQ = w.wasmdeletebuilder_to_sql, nQ = w.wasmdeletebuilder_where_expr, rQ = w.wasmexpr_add, mQ = w.wasmexpr_alias, uQ = w.wasmexpr_and, bQ = w.wasmexpr_asc, vQ = w.wasmexpr_between, XQ = w.wasmexpr_cast, _Q = w.wasmexpr_desc, $Q = w.wasmexpr_div, AE = w.wasmexpr_eq, gE = w.wasmexpr_gt, IE = w.wasmexpr_gte, CE = w.wasmexpr_ilike, BE = w.wasmexpr_in_list, QE = w.wasmexpr_is_not_null, EE = w.wasmexpr_is_null, DE = w.wasmexpr_like, wE = w.wasmexpr_lt, iE = w.wasmexpr_lte, oE = w.wasmexpr_mul, ME = w.wasmexpr_neq, NE = w.wasmexpr_not, kE = w.wasmexpr_not_in, yE = w.wasmexpr_or, KE = w.wasmexpr_rlike, GE = w.wasmexpr_sub, YE = w.wasmexpr_to_json, HE = w.wasmexpr_to_sql, hE = w.wasmexpr_xor, cE = w.wasmexprarray_len, SE = w.wasmexprarray_push, FE = w.wasmexprarray_push_col, JE = w.wasmexprarray_push_float, LE = w.wasmexprarray_push_int, RE = w.wasmexprarray_push_star, UE = w.wasmexprarray_push_str, sE = w.wasminsertbuilder_build, aE = w.wasminsertbuilder_columns, qE = w.wasminsertbuilder_new, pE = w.wasminsertbuilder_query, PE = w.wasminsertbuilder_to_sql, TE = w.wasminsertbuilder_values, OE = w.wasmmergebuilder_build, jE = w.wasmmergebuilder_new, tE = w.wasmmergebuilder_to_sql, fE = w.wasmmergebuilder_using, dE = w.wasmmergebuilder_when_matched_delete, zE = w.wasmmergebuilder_when_matched_update, ZE = w.wasmmergebuilder_when_not_matched_insert, eE = w.wasmselectbuilder_build, xE = w.wasmselectbuilder_cross_join, WE = w.wasmselectbuilder_ctas, VE = w.wasmselectbuilder_ctas_sql, lE = w.wasmselectbuilder_distinct, nE = w.wasmselectbuilder_except_, rE = w.wasmselectbuilder_for_update, mE = w.wasmselectbuilder_from, uE = w.wasmselectbuilder_from_expr, bE = w.wasmselectbuilder_group_by_cols, vE = w.wasmselectbuilder_having, XE = w.wasmselectbuilder_hint, _E = w.wasmselectbuilder_intersect, $E = w.wasmselectbuilder_join, AD = w.wasmselectbuilder_lateral_view, gD = w.wasmselectbuilder_left_join, ID = w.wasmselectbuilder_limit, CD = w.wasmselectbuilder_new, BD = w.wasmselectbuilder_offset, QD = w.wasmselectbuilder_order_by_exprs, ED = w.wasmselectbuilder_qualify, DD = w.wasmselectbuilder_right_join, wD = w.wasmselectbuilder_select_col, iD = w.wasmselectbuilder_select_expr, oD = w.wasmselectbuilder_select_exprs, MD = w.wasmselectbuilder_select_star, ND = w.wasmselectbuilder_sort_by_exprs, kD = w.wasmselectbuilder_to_sql, yD = w.wasmselectbuilder_union, KD = w.wasmselectbuilder_union_all, GD = w.wasmselectbuilder_where_expr, YD = w.wasmselectbuilder_where_sql, HD = w.wasmselectbuilder_window, hD = w.wasmsetopbuilder_build, cD = w.wasmsetopbuilder_limit, SD = w.wasmsetopbuilder_offset, FD = w.wasmsetopbuilder_order_by_exprs, JD = w.wasmsetopbuilder_to_sql, LD = w.wasmupdatebuilder_build, RD = w.wasmupdatebuilder_from, UD = w.wasmupdatebuilder_new, sD = w.wasmupdatebuilder_set, aD = w.wasmupdatebuilder_to_sql, qD = w.wasmupdatebuilder_where_expr, pD = w.wasmwindowdefbuilder_new, PD = w.wasmwindowdefbuilder_order_by, TD = w.wasmwindowdefbuilder_partition_by, OD = w.wasmexprarray_new, jD = w.__wbindgen_export, tD = w.__wbindgen_export2, fD = w.__wbindgen_export3, dD = w.__wbindgen_export4, zD = w.__wbindgen_add_to_stack_pointer, ZD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2228
2273
  __proto__: null,
2229
- __wbg_wasmassignmentarray_free: XC,
2230
- __wbg_wasmcasebuilder_free: _C,
2231
- __wbg_wasmdeletebuilder_free: $C,
2232
- __wbg_wasmexpr_free: AB,
2233
- __wbg_wasmexprarray_free: gB,
2234
- __wbg_wasminsertbuilder_free: IB,
2235
- __wbg_wasmmergebuilder_free: CB,
2236
- __wbg_wasmselectbuilder_free: BB,
2237
- __wbg_wasmsetopbuilder_free: QB,
2238
- __wbg_wasmupdatebuilder_free: EB,
2239
- __wbg_wasmwindowdefbuilder_free: DB,
2240
- __wbindgen_add_to_stack_pointer: LD,
2241
- __wbindgen_export: HD,
2242
- __wbindgen_export2: hD,
2243
- __wbindgen_export3: SD,
2244
- __wbindgen_export4: cD,
2245
- annotate_types: wB,
2246
- annotate_types_value: iB,
2247
- ast_add_where: oB,
2248
- ast_get_aggregate_functions: MB,
2249
- ast_get_column_names: NB,
2250
- ast_get_functions: kB,
2251
- ast_get_literals: yB,
2252
- ast_get_subqueries: KB,
2253
- ast_get_table_names: GB,
2254
- ast_get_window_functions: YB,
2255
- ast_node_count: HB,
2256
- ast_qualify_columns: hB,
2257
- ast_qualify_tables: SB,
2258
- ast_remove_where: cB,
2259
- ast_rename_columns: LB,
2260
- ast_rename_tables: UB,
2261
- ast_rename_tables_with_options: FB,
2262
- ast_set_distinct: RB,
2263
- ast_set_limit: JB,
2264
- diff_sql: sB,
2265
- format_sql: aB,
2266
- format_sql_value: qB,
2267
- format_sql_with_options: pB,
2268
- format_sql_with_options_value: OB,
2269
- generate: PB,
2270
- generate_value: TB,
2271
- get_dialects: jB,
2272
- get_dialects_value: tB,
2273
- lineage_sql: fB,
2274
- lineage_sql_with_schema: ZB,
2275
- memory: bC,
2276
- openlineage_column_lineage: dB,
2277
- openlineage_job_event: zB,
2278
- openlineage_run_event: VB,
2279
- parse: xB,
2280
- parse_value: eB,
2281
- plan: WB,
2282
- source_tables: lB,
2283
- tokenize: nB,
2284
- tokenize_value: rB,
2285
- transpile: uB,
2286
- transpile_value: mB,
2287
- transpile_with_options: vB,
2288
- transpile_with_options_value: bB,
2289
- validate: XB,
2290
- validate_with_options: _B,
2291
- validate_with_schema: $B,
2292
- version: AQ,
2293
- wasm_alias: gQ,
2294
- wasm_and: IQ,
2295
- wasm_boolean: CQ,
2296
- wasm_case_of: BQ,
2297
- wasm_cast: QQ,
2298
- wasm_col: EQ,
2299
- wasm_count_distinct: DQ,
2300
- wasm_extract: wQ,
2301
- wasm_func: iQ,
2302
- wasm_lit: oQ,
2303
- wasm_not: MQ,
2304
- wasm_null: NQ,
2305
- wasm_or: kQ,
2306
- wasm_sql_expr: yQ,
2307
- wasm_star: KQ,
2308
- wasm_subquery: GQ,
2309
- wasm_table: YQ,
2310
- wasmassignmentarray_len: HQ,
2311
- wasmassignmentarray_new: hQ,
2312
- wasmassignmentarray_push: SQ,
2313
- wasmcasebuilder_build_expr: cQ,
2314
- wasmcasebuilder_else_: LQ,
2315
- wasmcasebuilder_new: UQ,
2316
- wasmcasebuilder_to_sql: FQ,
2317
- wasmcasebuilder_when: RQ,
2318
- wasmdeletebuilder_build: JQ,
2319
- wasmdeletebuilder_new: sQ,
2320
- wasmdeletebuilder_to_sql: aQ,
2321
- wasmdeletebuilder_where_expr: qQ,
2322
- wasmexpr_add: pQ,
2323
- wasmexpr_alias: OQ,
2324
- wasmexpr_and: PQ,
2325
- wasmexpr_asc: TQ,
2326
- wasmexpr_between: jQ,
2327
- wasmexpr_cast: tQ,
2328
- wasmexpr_desc: fQ,
2329
- wasmexpr_div: ZQ,
2330
- wasmexpr_eq: dQ,
2331
- wasmexpr_gt: zQ,
2332
- wasmexpr_gte: VQ,
2333
- wasmexpr_ilike: xQ,
2334
- wasmexpr_in_list: eQ,
2335
- wasmexpr_is_not_null: WQ,
2336
- wasmexpr_is_null: lQ,
2337
- wasmexpr_like: nQ,
2338
- wasmexpr_lt: rQ,
2339
- wasmexpr_lte: uQ,
2340
- wasmexpr_mul: mQ,
2341
- wasmexpr_neq: vQ,
2342
- wasmexpr_not: bQ,
2343
- wasmexpr_not_in: XQ,
2344
- wasmexpr_or: _Q,
2345
- wasmexpr_rlike: $Q,
2346
- wasmexpr_sub: AE,
2347
- wasmexpr_to_json: gE,
2348
- wasmexpr_to_sql: IE,
2349
- wasmexpr_xor: CE,
2350
- wasmexprarray_len: BE,
2351
- wasmexprarray_new: YD,
2352
- wasmexprarray_push: QE,
2353
- wasmexprarray_push_col: EE,
2354
- wasmexprarray_push_float: DE,
2355
- wasmexprarray_push_int: wE,
2356
- wasmexprarray_push_star: iE,
2357
- wasmexprarray_push_str: oE,
2358
- wasminsertbuilder_build: ME,
2359
- wasminsertbuilder_columns: NE,
2360
- wasminsertbuilder_new: kE,
2361
- wasminsertbuilder_query: yE,
2362
- wasminsertbuilder_to_sql: KE,
2363
- wasminsertbuilder_values: GE,
2364
- wasmmergebuilder_build: YE,
2365
- wasmmergebuilder_new: HE,
2366
- wasmmergebuilder_to_sql: hE,
2367
- wasmmergebuilder_using: SE,
2368
- wasmmergebuilder_when_matched_delete: cE,
2369
- wasmmergebuilder_when_matched_update: LE,
2370
- wasmmergebuilder_when_not_matched_insert: UE,
2371
- wasmselectbuilder_build: FE,
2372
- wasmselectbuilder_cross_join: RE,
2373
- wasmselectbuilder_ctas: JE,
2374
- wasmselectbuilder_ctas_sql: sE,
2375
- wasmselectbuilder_distinct: aE,
2376
- wasmselectbuilder_except_: qE,
2377
- wasmselectbuilder_for_update: pE,
2378
- wasmselectbuilder_from: OE,
2379
- wasmselectbuilder_from_expr: PE,
2380
- wasmselectbuilder_group_by_cols: TE,
2381
- wasmselectbuilder_having: jE,
2382
- wasmselectbuilder_hint: tE,
2383
- wasmselectbuilder_intersect: fE,
2384
- wasmselectbuilder_join: ZE,
2385
- wasmselectbuilder_lateral_view: dE,
2386
- wasmselectbuilder_left_join: zE,
2387
- wasmselectbuilder_limit: VE,
2388
- wasmselectbuilder_new: xE,
2389
- wasmselectbuilder_offset: eE,
2390
- wasmselectbuilder_order_by_exprs: WE,
2391
- wasmselectbuilder_qualify: lE,
2392
- wasmselectbuilder_right_join: nE,
2393
- wasmselectbuilder_select_col: rE,
2394
- wasmselectbuilder_select_expr: uE,
2395
- wasmselectbuilder_select_exprs: mE,
2396
- wasmselectbuilder_select_star: vE,
2397
- wasmselectbuilder_sort_by_exprs: bE,
2398
- wasmselectbuilder_to_sql: XE,
2399
- wasmselectbuilder_union: _E,
2400
- wasmselectbuilder_union_all: $E,
2401
- wasmselectbuilder_where_expr: AD,
2402
- wasmselectbuilder_where_sql: gD,
2403
- wasmselectbuilder_window: ID,
2404
- wasmsetopbuilder_build: CD,
2405
- wasmsetopbuilder_limit: BD,
2406
- wasmsetopbuilder_offset: QD,
2407
- wasmsetopbuilder_order_by_exprs: ED,
2408
- wasmsetopbuilder_to_sql: DD,
2409
- wasmupdatebuilder_build: wD,
2410
- wasmupdatebuilder_from: iD,
2411
- wasmupdatebuilder_new: oD,
2412
- wasmupdatebuilder_set: MD,
2413
- wasmupdatebuilder_to_sql: ND,
2414
- wasmupdatebuilder_where_expr: kD,
2415
- wasmwindowdefbuilder_new: yD,
2416
- wasmwindowdefbuilder_order_by: KD,
2417
- wasmwindowdefbuilder_partition_by: GD
2274
+ __wbg_wasmassignmentarray_free: DB,
2275
+ __wbg_wasmcasebuilder_free: wB,
2276
+ __wbg_wasmdeletebuilder_free: iB,
2277
+ __wbg_wasmexpr_free: oB,
2278
+ __wbg_wasmexprarray_free: MB,
2279
+ __wbg_wasminsertbuilder_free: NB,
2280
+ __wbg_wasmmergebuilder_free: kB,
2281
+ __wbg_wasmselectbuilder_free: yB,
2282
+ __wbg_wasmsetopbuilder_free: KB,
2283
+ __wbg_wasmupdatebuilder_free: GB,
2284
+ __wbg_wasmwindowdefbuilder_free: YB,
2285
+ __wbindgen_add_to_stack_pointer: zD,
2286
+ __wbindgen_export: jD,
2287
+ __wbindgen_export2: tD,
2288
+ __wbindgen_export3: fD,
2289
+ __wbindgen_export4: dD,
2290
+ analyze_query: HB,
2291
+ analyze_query_value: hB,
2292
+ annotate_types: cB,
2293
+ annotate_types_value: SB,
2294
+ ast_add_where: FB,
2295
+ ast_get_aggregate_functions: JB,
2296
+ ast_get_column_names: LB,
2297
+ ast_get_functions: RB,
2298
+ ast_get_literals: UB,
2299
+ ast_get_subqueries: sB,
2300
+ ast_get_table_names: aB,
2301
+ ast_get_window_functions: qB,
2302
+ ast_node_count: pB,
2303
+ ast_qualify_columns: PB,
2304
+ ast_qualify_tables: TB,
2305
+ ast_remove_where: OB,
2306
+ ast_rename_columns: jB,
2307
+ ast_rename_tables: tB,
2308
+ ast_rename_tables_with_options: fB,
2309
+ ast_set_distinct: dB,
2310
+ ast_set_limit: zB,
2311
+ diff_sql: ZB,
2312
+ format_sql: eB,
2313
+ format_sql_value: xB,
2314
+ format_sql_with_options: WB,
2315
+ format_sql_with_options_value: VB,
2316
+ generate: lB,
2317
+ generate_data_type: nB,
2318
+ generate_data_type_value: rB,
2319
+ generate_value: mB,
2320
+ get_dialects: uB,
2321
+ get_dialects_value: bB,
2322
+ lineage_sql: vB,
2323
+ lineage_sql_with_schema: XB,
2324
+ memory: EB,
2325
+ openlineage_column_lineage: _B,
2326
+ openlineage_job_event: $B,
2327
+ openlineage_run_event: AQ,
2328
+ parse: gQ,
2329
+ parse_data_type: IQ,
2330
+ parse_data_type_value: CQ,
2331
+ parse_value: BQ,
2332
+ plan: QQ,
2333
+ source_tables: EQ,
2334
+ tokenize: DQ,
2335
+ tokenize_value: wQ,
2336
+ transpile: iQ,
2337
+ transpile_value: oQ,
2338
+ transpile_with_options: MQ,
2339
+ transpile_with_options_value: NQ,
2340
+ validate: kQ,
2341
+ validate_with_options: yQ,
2342
+ validate_with_schema: KQ,
2343
+ version: GQ,
2344
+ wasm_alias: YQ,
2345
+ wasm_and: HQ,
2346
+ wasm_boolean: hQ,
2347
+ wasm_case_of: cQ,
2348
+ wasm_cast: SQ,
2349
+ wasm_col: FQ,
2350
+ wasm_count_distinct: JQ,
2351
+ wasm_extract: LQ,
2352
+ wasm_func: RQ,
2353
+ wasm_lit: UQ,
2354
+ wasm_not: sQ,
2355
+ wasm_null: aQ,
2356
+ wasm_or: qQ,
2357
+ wasm_sql_expr: pQ,
2358
+ wasm_star: PQ,
2359
+ wasm_subquery: TQ,
2360
+ wasm_table: OQ,
2361
+ wasmassignmentarray_len: jQ,
2362
+ wasmassignmentarray_new: tQ,
2363
+ wasmassignmentarray_push: fQ,
2364
+ wasmcasebuilder_build_expr: dQ,
2365
+ wasmcasebuilder_else_: zQ,
2366
+ wasmcasebuilder_new: ZQ,
2367
+ wasmcasebuilder_to_sql: eQ,
2368
+ wasmcasebuilder_when: xQ,
2369
+ wasmdeletebuilder_build: WQ,
2370
+ wasmdeletebuilder_new: VQ,
2371
+ wasmdeletebuilder_to_sql: lQ,
2372
+ wasmdeletebuilder_where_expr: nQ,
2373
+ wasmexpr_add: rQ,
2374
+ wasmexpr_alias: mQ,
2375
+ wasmexpr_and: uQ,
2376
+ wasmexpr_asc: bQ,
2377
+ wasmexpr_between: vQ,
2378
+ wasmexpr_cast: XQ,
2379
+ wasmexpr_desc: _Q,
2380
+ wasmexpr_div: $Q,
2381
+ wasmexpr_eq: AE,
2382
+ wasmexpr_gt: gE,
2383
+ wasmexpr_gte: IE,
2384
+ wasmexpr_ilike: CE,
2385
+ wasmexpr_in_list: BE,
2386
+ wasmexpr_is_not_null: QE,
2387
+ wasmexpr_is_null: EE,
2388
+ wasmexpr_like: DE,
2389
+ wasmexpr_lt: wE,
2390
+ wasmexpr_lte: iE,
2391
+ wasmexpr_mul: oE,
2392
+ wasmexpr_neq: ME,
2393
+ wasmexpr_not: NE,
2394
+ wasmexpr_not_in: kE,
2395
+ wasmexpr_or: yE,
2396
+ wasmexpr_rlike: KE,
2397
+ wasmexpr_sub: GE,
2398
+ wasmexpr_to_json: YE,
2399
+ wasmexpr_to_sql: HE,
2400
+ wasmexpr_xor: hE,
2401
+ wasmexprarray_len: cE,
2402
+ wasmexprarray_new: OD,
2403
+ wasmexprarray_push: SE,
2404
+ wasmexprarray_push_col: FE,
2405
+ wasmexprarray_push_float: JE,
2406
+ wasmexprarray_push_int: LE,
2407
+ wasmexprarray_push_star: RE,
2408
+ wasmexprarray_push_str: UE,
2409
+ wasminsertbuilder_build: sE,
2410
+ wasminsertbuilder_columns: aE,
2411
+ wasminsertbuilder_new: qE,
2412
+ wasminsertbuilder_query: pE,
2413
+ wasminsertbuilder_to_sql: PE,
2414
+ wasminsertbuilder_values: TE,
2415
+ wasmmergebuilder_build: OE,
2416
+ wasmmergebuilder_new: jE,
2417
+ wasmmergebuilder_to_sql: tE,
2418
+ wasmmergebuilder_using: fE,
2419
+ wasmmergebuilder_when_matched_delete: dE,
2420
+ wasmmergebuilder_when_matched_update: zE,
2421
+ wasmmergebuilder_when_not_matched_insert: ZE,
2422
+ wasmselectbuilder_build: eE,
2423
+ wasmselectbuilder_cross_join: xE,
2424
+ wasmselectbuilder_ctas: WE,
2425
+ wasmselectbuilder_ctas_sql: VE,
2426
+ wasmselectbuilder_distinct: lE,
2427
+ wasmselectbuilder_except_: nE,
2428
+ wasmselectbuilder_for_update: rE,
2429
+ wasmselectbuilder_from: mE,
2430
+ wasmselectbuilder_from_expr: uE,
2431
+ wasmselectbuilder_group_by_cols: bE,
2432
+ wasmselectbuilder_having: vE,
2433
+ wasmselectbuilder_hint: XE,
2434
+ wasmselectbuilder_intersect: _E,
2435
+ wasmselectbuilder_join: $E,
2436
+ wasmselectbuilder_lateral_view: AD,
2437
+ wasmselectbuilder_left_join: gD,
2438
+ wasmselectbuilder_limit: ID,
2439
+ wasmselectbuilder_new: CD,
2440
+ wasmselectbuilder_offset: BD,
2441
+ wasmselectbuilder_order_by_exprs: QD,
2442
+ wasmselectbuilder_qualify: ED,
2443
+ wasmselectbuilder_right_join: DD,
2444
+ wasmselectbuilder_select_col: wD,
2445
+ wasmselectbuilder_select_expr: iD,
2446
+ wasmselectbuilder_select_exprs: oD,
2447
+ wasmselectbuilder_select_star: MD,
2448
+ wasmselectbuilder_sort_by_exprs: ND,
2449
+ wasmselectbuilder_to_sql: kD,
2450
+ wasmselectbuilder_union: yD,
2451
+ wasmselectbuilder_union_all: KD,
2452
+ wasmselectbuilder_where_expr: GD,
2453
+ wasmselectbuilder_where_sql: YD,
2454
+ wasmselectbuilder_window: HD,
2455
+ wasmsetopbuilder_build: hD,
2456
+ wasmsetopbuilder_limit: cD,
2457
+ wasmsetopbuilder_offset: SD,
2458
+ wasmsetopbuilder_order_by_exprs: FD,
2459
+ wasmsetopbuilder_to_sql: JD,
2460
+ wasmupdatebuilder_build: LD,
2461
+ wasmupdatebuilder_from: RD,
2462
+ wasmupdatebuilder_new: UD,
2463
+ wasmupdatebuilder_set: sD,
2464
+ wasmupdatebuilder_to_sql: aD,
2465
+ wasmupdatebuilder_where_expr: qD,
2466
+ wasmwindowdefbuilder_new: pD,
2467
+ wasmwindowdefbuilder_order_by: PD,
2468
+ wasmwindowdefbuilder_partition_by: TD
2418
2469
  }, Symbol.toStringTag, { value: "Module" }));
2419
- vC(UD);
2420
- const fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2470
+ QB(ZD);
2471
+ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2421
2472
  __proto__: null,
2422
- WasmAssignmentArray: CA,
2423
- WasmCaseBuilder: m,
2424
- WasmDeleteBuilder: iA,
2473
+ WasmAssignmentArray: BA,
2474
+ WasmCaseBuilder: u,
2475
+ WasmDeleteBuilder: oA,
2425
2476
  WasmExpr: G,
2426
- WasmExprArray: O,
2427
- WasmInsertBuilder: oA,
2428
- WasmMergeBuilder: MA,
2429
- WasmSelectBuilder: j,
2430
- WasmSetOpBuilder: x,
2431
- WasmUpdateBuilder: NA,
2432
- WasmWindowDefBuilder: BA,
2433
- annotate_types: UI,
2434
- annotate_types_value: FI,
2435
- ast_add_where: bA,
2436
- ast_get_aggregate_functions: XA,
2437
- ast_get_column_names: _A,
2438
- ast_get_functions: $A,
2439
- ast_get_literals: Ag,
2440
- ast_get_subqueries: gg,
2441
- ast_get_table_names: Ig,
2442
- ast_get_window_functions: Cg,
2443
- ast_node_count: Bg,
2444
- ast_qualify_columns: Qg,
2445
- ast_qualify_tables: Eg,
2446
- ast_remove_where: Dg,
2447
- ast_rename_columns: wg,
2448
- ast_rename_tables: ig,
2449
- ast_rename_tables_with_options: og,
2450
- ast_set_distinct: Mg,
2451
- ast_set_limit: Ng,
2452
- diff_sql: kg,
2453
- format_sql: RI,
2454
- format_sql_value: JI,
2455
- format_sql_with_options: sI,
2456
- format_sql_with_options_value: aI,
2457
- generate: qI,
2458
- generate_value: pI,
2459
- get_dialects: OI,
2460
- get_dialects_value: PI,
2461
- lineage_sql: yg,
2462
- lineage_sql_with_schema: Kg,
2463
- openlineage_column_lineage: Gg,
2464
- openlineage_job_event: Yg,
2465
- openlineage_run_event: Hg,
2466
- parse: TI,
2467
- parse_value: jI,
2468
- plan: hg,
2469
- source_tables: Sg,
2470
- tokenize: tI,
2471
- tokenize_value: fI,
2472
- transpile: ZI,
2473
- transpile_value: dI,
2474
- transpile_with_options: zI,
2475
- transpile_with_options_value: VI,
2476
- validate: xI,
2477
- validate_with_options: eI,
2478
- validate_with_schema: cg,
2479
- version: WI,
2480
- wasm_alias: Lg,
2477
+ WasmExprArray: P,
2478
+ WasmInsertBuilder: MA,
2479
+ WasmMergeBuilder: NA,
2480
+ WasmSelectBuilder: t,
2481
+ WasmSetOpBuilder: W,
2482
+ WasmUpdateBuilder: kA,
2483
+ WasmWindowDefBuilder: QA,
2484
+ analyze_query: sI,
2485
+ analyze_query_value: aI,
2486
+ annotate_types: qI,
2487
+ annotate_types_value: pI,
2488
+ ast_add_where: $A,
2489
+ ast_get_aggregate_functions: Ag,
2490
+ ast_get_column_names: gg,
2491
+ ast_get_functions: Ig,
2492
+ ast_get_literals: Cg,
2493
+ ast_get_subqueries: Bg,
2494
+ ast_get_table_names: Qg,
2495
+ ast_get_window_functions: Eg,
2496
+ ast_node_count: Dg,
2497
+ ast_qualify_columns: wg,
2498
+ ast_qualify_tables: ig,
2499
+ ast_remove_where: og,
2500
+ ast_rename_columns: Mg,
2501
+ ast_rename_tables: Ng,
2502
+ ast_rename_tables_with_options: kg,
2503
+ ast_set_distinct: yg,
2504
+ ast_set_limit: Kg,
2505
+ diff_sql: Gg,
2506
+ format_sql: PI,
2507
+ format_sql_value: TI,
2508
+ format_sql_with_options: OI,
2509
+ format_sql_with_options_value: jI,
2510
+ generate: tI,
2511
+ generate_data_type: fI,
2512
+ generate_data_type_value: dI,
2513
+ generate_value: zI,
2514
+ get_dialects: ZI,
2515
+ get_dialects_value: eI,
2516
+ lineage_sql: Yg,
2517
+ lineage_sql_with_schema: Hg,
2518
+ openlineage_column_lineage: hg,
2519
+ openlineage_job_event: cg,
2520
+ openlineage_run_event: Sg,
2521
+ parse: xI,
2522
+ parse_data_type: WI,
2523
+ parse_data_type_value: VI,
2524
+ parse_value: lI,
2525
+ plan: Fg,
2526
+ source_tables: Jg,
2527
+ tokenize: nI,
2528
+ tokenize_value: rI,
2529
+ transpile: mI,
2530
+ transpile_value: uI,
2531
+ transpile_with_options: bI,
2532
+ transpile_with_options_value: vI,
2533
+ validate: XI,
2534
+ validate_with_options: _I,
2535
+ validate_with_schema: Lg,
2536
+ version: $I,
2537
+ wasm_alias: Rg,
2481
2538
  wasm_and: Ug,
2482
- wasm_boolean: Fg,
2483
- wasm_case_of: Rg,
2484
- wasm_cast: Jg,
2485
- wasm_col: UA,
2486
- wasm_count_distinct: sg,
2487
- wasm_extract: ag,
2488
- wasm_func: qg,
2489
- wasm_lit: kA,
2490
- wasm_not: pg,
2491
- wasm_null: yA,
2492
- wasm_or: Og,
2493
- wasm_sql_expr: Pg,
2494
- wasm_star: Tg,
2495
- wasm_subquery: jg,
2496
- wasm_table: tg
2539
+ wasm_boolean: sg,
2540
+ wasm_case_of: ag,
2541
+ wasm_cast: qg,
2542
+ wasm_col: JA,
2543
+ wasm_count_distinct: pg,
2544
+ wasm_extract: Pg,
2545
+ wasm_func: Tg,
2546
+ wasm_lit: yA,
2547
+ wasm_not: Og,
2548
+ wasm_null: KA,
2549
+ wasm_or: jg,
2550
+ wasm_sql_expr: tg,
2551
+ wasm_star: fg,
2552
+ wasm_subquery: dg,
2553
+ wasm_table: zg
2497
2554
  }, Symbol.toStringTag, { value: "Module" }));
2498
2555
  function p(g) {
2499
2556
  return Object.keys(g)[0];
2500
2557
  }
2501
- function T(g) {
2558
+ function O(g) {
2502
2559
  const A = Object.keys(g)[0];
2503
2560
  return g[A];
2504
2561
  }
2505
- function e(g) {
2562
+ function V(g) {
2506
2563
  if (typeof g != "object" || g === null || Array.isArray(g))
2507
2564
  return !1;
2508
2565
  const A = Object.keys(g);
@@ -2510,11 +2567,11 @@ function e(g) {
2510
2567
  const C = g[A[0]];
2511
2568
  return C === null || typeof C == "object" && !Array.isArray(C);
2512
2569
  }
2513
- function Z(g, A) {
2570
+ function z(g, A) {
2514
2571
  return { [g]: A };
2515
2572
  }
2516
- function Zg(g) {
2517
- const A = T(g);
2573
+ function eg(g) {
2574
+ const A = O(g);
2518
2575
  if (A && typeof A == "object" && "inferred_type" in A) {
2519
2576
  const C = A.inferred_type;
2520
2577
  if (C != null)
@@ -2524,58 +2581,58 @@ function Zg(g) {
2524
2581
  function Y(g) {
2525
2582
  return (A) => g in A;
2526
2583
  }
2527
- const dg = Y("select"), FD = Y("insert"), RD = Y("update"), JD = Y("delete"), sD = Y("union"), aD = Y("intersect"), qD = Y("except"), pD = Y("subquery"), OD = Y("identifier"), zg = Y("column"), PD = Y("table"), TD = Y("star"), Vg = Y("literal"), jD = Y("boolean"), tD = Y("null"), fD = Y("and"), ZD = Y("or"), dD = Y("not"), zD = Y("eq"), VD = Y("neq"), xD = Y("lt"), eD = Y("lte"), WD = Y("gt"), lD = Y("gte"), nD = Y("like"), rD = Y("i_like"), uD = Y("add"), mD = Y("sub"), vD = Y("mul"), bD = Y("div"), XD = Y("mod"), _D = Y("concat"), $D = Y("in"), Aw = Y("between"), gw = Y("is_null"), Iw = Y("exists"), xg = Y("function"), Cw = Y("aggregate_function"), Bw = Y("window_function"), Qw = Y("count"), Ew = Y("sum"), Dw = Y("avg"), ww = Y("min"), iw = Y("max"), ow = Y("coalesce"), Mw = Y("null_if"), Nw = Y("cast"), kw = Y("try_cast"), yw = Y("safe_cast"), Kw = Y("case"), Gw = Y("from"), Yw = Y("join"), Hw = Y("where"), hw = Y("group_by"), Sw = Y("having"), cw = Y("order_by"), Lw = Y("limit"), Uw = Y("offset"), Fw = Y("with"), Rw = Y("cte"), Jw = Y("alias"), sw = Y("paren"), aw = Y("ordered"), qw = Y("create_table"), pw = Y("drop_table"), Ow = Y("alter_table"), Pw = Y("create_index"), Tw = Y("drop_index"), jw = Y("create_view"), tw = Y("drop_view");
2528
- function fw(g) {
2584
+ const xg = Y("select"), eD = Y("insert"), xD = Y("update"), WD = Y("delete"), VD = Y("union"), lD = Y("intersect"), nD = Y("except"), rD = Y("subquery"), mD = Y("identifier"), Wg = Y("column"), uD = Y("table"), bD = Y("star"), Vg = Y("literal"), vD = Y("boolean"), XD = Y("null"), _D = Y("and"), $D = Y("or"), Aw = Y("not"), gw = Y("eq"), Iw = Y("neq"), Cw = Y("lt"), Bw = Y("lte"), Qw = Y("gt"), Ew = Y("gte"), Dw = Y("like"), ww = Y("i_like"), iw = Y("add"), ow = Y("sub"), Mw = Y("mul"), Nw = Y("div"), kw = Y("mod"), yw = Y("concat"), Kw = Y("in"), Gw = Y("between"), Yw = Y("is_null"), Hw = Y("exists"), lg = Y("function"), hw = Y("aggregate_function"), cw = Y("window_function"), Sw = Y("count"), Fw = Y("sum"), Jw = Y("avg"), Lw = Y("min"), Rw = Y("max"), Uw = Y("coalesce"), sw = Y("null_if"), aw = Y("cast"), qw = Y("try_cast"), pw = Y("safe_cast"), Pw = Y("case"), Tw = Y("from"), Ow = Y("join"), jw = Y("where"), tw = Y("group_by"), fw = Y("having"), dw = Y("order_by"), zw = Y("limit"), Zw = Y("offset"), ew = Y("with"), xw = Y("cte"), Ww = Y("alias"), Vw = Y("paren"), lw = Y("ordered"), nw = Y("create_table"), rw = Y("drop_table"), mw = Y("alter_table"), uw = Y("create_index"), bw = Y("drop_index"), vw = Y("create_view"), Xw = Y("drop_view");
2585
+ function _w(g) {
2529
2586
  const A = p(g);
2530
2587
  return A === "select" || A === "insert" || A === "update" || A === "delete";
2531
2588
  }
2532
- function Zw(g) {
2589
+ function $w(g) {
2533
2590
  const A = p(g);
2534
2591
  return A === "union" || A === "intersect" || A === "except";
2535
2592
  }
2536
- function dw(g) {
2593
+ function Ai(g) {
2537
2594
  const A = p(g);
2538
2595
  return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
2539
2596
  }
2540
- function zw(g) {
2597
+ function gi(g) {
2541
2598
  const A = p(g);
2542
2599
  return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
2543
2600
  }
2544
- function Vw(g) {
2601
+ function Ii(g) {
2545
2602
  const A = p(g);
2546
2603
  return A === "and" || A === "or" || A === "not";
2547
2604
  }
2548
- function xw(g) {
2605
+ function Ci(g) {
2549
2606
  const A = p(g);
2550
2607
  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";
2551
2608
  }
2552
- function d(g) {
2609
+ function Z(g) {
2553
2610
  return JSON.stringify(g);
2554
2611
  }
2555
2612
  function l(g) {
2556
2613
  const A = JSON.parse(g);
2557
2614
  return A.success ? JSON.parse(A.ast) : null;
2558
2615
  }
2559
- function eg(g, A, C) {
2616
+ function ng(g, A, C) {
2560
2617
  if (g == null) return g;
2561
2618
  if (Array.isArray(g))
2562
- return g.length > 0 && e(g[0]) ? g.map(
2563
- (B, Q) => wA(B, A, C, null, Q)
2564
- ) : g.length > 0 && Array.isArray(g[0]) ? g.map((B) => Array.isArray(B) ? B.map((Q, E) => e(Q) ? wA(Q, A, C, null, E) : Q) : B) : g;
2565
- if (e(g))
2566
- return wA(g, A, C, null, null);
2619
+ return g.length > 0 && V(g[0]) ? g.map(
2620
+ (B, Q) => iA(B, A, C, null, Q)
2621
+ ) : g.length > 0 && Array.isArray(g[0]) ? g.map((B) => Array.isArray(B) ? B.map((Q, E) => V(Q) ? iA(Q, A, C, null, E) : Q) : B) : g;
2622
+ if (V(g))
2623
+ return iA(g, A, C, null, null);
2567
2624
  if (typeof g == "object") {
2568
2625
  const Q = { ...g };
2569
2626
  let E = !1;
2570
2627
  for (const [D, o] of Object.entries(Q)) {
2571
- const k = eg(o, A, C);
2628
+ const k = ng(o, A, C);
2572
2629
  k !== o && (Q[D] = k, E = !0);
2573
2630
  }
2574
2631
  return E ? Q : g;
2575
2632
  }
2576
2633
  return g;
2577
2634
  }
2578
- function wA(g, A, C, B, Q) {
2635
+ function iA(g, A, C, B, Q) {
2579
2636
  let E = g;
2580
2637
  if (A.enter) {
2581
2638
  const h = A.enter(E, C, B, Q);
@@ -2590,17 +2647,17 @@ function wA(g, A, C, B, Q) {
2590
2647
  return E;
2591
2648
  h !== void 0 && (E = h);
2592
2649
  }
2593
- const k = p(E), K = T(E);
2650
+ const k = p(E), K = O(E);
2594
2651
  let y;
2595
2652
  if (K == null)
2596
- y = Z(k, K);
2653
+ y = z(k, K);
2597
2654
  else {
2598
2655
  const h = { ...K };
2599
2656
  for (const [R, q] of Object.entries(h)) {
2600
- const P = eg(q, A, E);
2601
- P !== q && (h[R] = P);
2657
+ const T = ng(q, A, E);
2658
+ T !== q && (h[R] = T);
2602
2659
  }
2603
- y = Z(k, h);
2660
+ y = z(k, h);
2604
2661
  }
2605
2662
  if (A.leave) {
2606
2663
  const h = A.leave(y, C, B, Q);
@@ -2609,258 +2666,258 @@ function wA(g, A, C, B, Q) {
2609
2666
  }
2610
2667
  return y;
2611
2668
  }
2612
- function GA(g, A) {
2613
- return wA(g, A, null, null, null);
2669
+ function YA(g, A) {
2670
+ return iA(g, A, null, null, null);
2614
2671
  }
2615
- function Wg(g, A, C) {
2616
- return GA(g, {
2672
+ function rg(g, A, C) {
2673
+ return YA(g, {
2617
2674
  enter: (B, Q) => {
2618
2675
  if (A(B, Q))
2619
2676
  return typeof C == "function" ? C(B) : C;
2620
2677
  }
2621
2678
  });
2622
2679
  }
2623
- function ew(g, A, C) {
2624
- return Wg(
2680
+ function Bi(g, A, C) {
2681
+ return rg(
2625
2682
  g,
2626
2683
  (B) => p(B) === A,
2627
2684
  typeof C == "function" ? (B) => C(B) : C
2628
2685
  );
2629
2686
  }
2630
- function lg(g, A) {
2687
+ function mg(g, A) {
2631
2688
  return l(
2632
- wg(d(g), JSON.stringify(A))
2689
+ Mg(Z(g), JSON.stringify(A))
2633
2690
  ) ?? g;
2634
2691
  }
2635
- function Ww(g, A, C) {
2692
+ function Qi(g, A, C) {
2636
2693
  return l(
2637
- C ? og(
2638
- d(g),
2694
+ C ? kg(
2695
+ Z(g),
2639
2696
  JSON.stringify(A),
2640
2697
  JSON.stringify(C)
2641
- ) : ig(d(g), JSON.stringify(A))
2698
+ ) : Ng(Z(g), JSON.stringify(A))
2642
2699
  ) ?? g;
2643
2700
  }
2644
- function lw(g, A) {
2701
+ function Ei(g, A) {
2645
2702
  return l(
2646
- Qg(d(g), A)
2703
+ wg(Z(g), A)
2647
2704
  ) ?? g;
2648
2705
  }
2649
- function nw(g, A = {}) {
2706
+ function Di(g, A = {}) {
2650
2707
  return l(
2651
- Eg(d(g), JSON.stringify(A))
2708
+ ig(Z(g), JSON.stringify(A))
2652
2709
  ) ?? g;
2653
2710
  }
2654
- function rw(g, A, C = "and") {
2711
+ function wi(g, A, C = "and") {
2655
2712
  return l(
2656
- bA(d(g), d(A), C === "or")
2713
+ $A(Z(g), Z(A), C === "or")
2657
2714
  ) ?? g;
2658
2715
  }
2659
- function uw(g) {
2660
- return l(Dg(d(g))) ?? g;
2716
+ function ii(g) {
2717
+ return l(og(Z(g))) ?? g;
2661
2718
  }
2662
- function mw(g, ...A) {
2719
+ function oi(g, ...A) {
2663
2720
  if (p(g) !== "select")
2664
2721
  return g;
2665
- const C = T(g);
2666
- return Z("select", {
2722
+ const C = O(g);
2723
+ return z("select", {
2667
2724
  ...C,
2668
2725
  expressions: [...C.expressions, ...A]
2669
2726
  });
2670
2727
  }
2671
- function vw(g, A) {
2728
+ function Mi(g, A) {
2672
2729
  if (p(g) !== "select")
2673
2730
  return g;
2674
- const C = T(g);
2675
- return Z("select", {
2731
+ const C = O(g);
2732
+ return z("select", {
2676
2733
  ...C,
2677
2734
  expressions: C.expressions.filter((B) => !A(B))
2678
2735
  });
2679
2736
  }
2680
- function bw(g, A) {
2737
+ function Ni(g, A) {
2681
2738
  if (typeof A == "number")
2682
- return l(Ng(d(g), A)) ?? g;
2739
+ return l(Kg(Z(g), A)) ?? g;
2683
2740
  if (p(g) !== "select")
2684
2741
  return g;
2685
- const C = T(g);
2686
- return Z("select", {
2742
+ const C = O(g);
2743
+ return z("select", {
2687
2744
  ...C,
2688
2745
  limit: { this: A }
2689
2746
  });
2690
2747
  }
2691
- function Xw(g, A) {
2748
+ function ki(g, A) {
2692
2749
  if (p(g) !== "select")
2693
2750
  return g;
2694
- const C = T(g), B = typeof A == "number" ? Z("literal", { literal_type: "number", value: String(A) }) : A;
2695
- return Z("select", {
2751
+ const C = O(g), B = typeof A == "number" ? z("literal", { literal_type: "number", value: String(A) }) : A;
2752
+ return z("select", {
2696
2753
  ...C,
2697
2754
  offset: { this: B }
2698
2755
  });
2699
2756
  }
2700
- function _w(g) {
2757
+ function yi(g) {
2701
2758
  if (p(g) !== "select")
2702
2759
  return g;
2703
- const A = T(g);
2704
- return Z("select", {
2760
+ const A = O(g);
2761
+ return z("select", {
2705
2762
  ...A,
2706
2763
  limit: null,
2707
2764
  offset: null
2708
2765
  });
2709
2766
  }
2710
- function $w(g, A = !0) {
2711
- return l(Mg(d(g), A)) ?? g;
2767
+ function Ki(g, A = !0) {
2768
+ return l(yg(Z(g), A)) ?? g;
2712
2769
  }
2713
- function Ai(g) {
2714
- return GA(g, {});
2770
+ function Gi(g) {
2771
+ return YA(g, {});
2715
2772
  }
2716
- function ng(g, A, C) {
2773
+ function ug(g, A, C) {
2717
2774
  if (g == null) return g;
2718
2775
  if (Array.isArray(g))
2719
- return g.length > 0 && e(g[0]) ? g.filter((B) => !A(B, C)).map((B) => LA(B, A)) : g;
2720
- if (e(g))
2721
- return LA(g, A);
2776
+ return g.length > 0 && V(g[0]) ? g.filter((B) => !A(B, C)).map((B) => FA(B, A)) : g;
2777
+ if (V(g))
2778
+ return FA(g, A);
2722
2779
  if (typeof g == "object") {
2723
2780
  const Q = { ...g };
2724
2781
  let E = !1;
2725
2782
  for (const [D, o] of Object.entries(Q)) {
2726
- const k = ng(o, A, C);
2783
+ const k = ug(o, A, C);
2727
2784
  k !== o && (Q[D] = k, E = !0);
2728
2785
  }
2729
2786
  return E ? Q : g;
2730
2787
  }
2731
2788
  return g;
2732
2789
  }
2733
- function LA(g, A) {
2734
- const C = p(g), Q = { ...T(g) };
2790
+ function FA(g, A) {
2791
+ const C = p(g), Q = { ...O(g) };
2735
2792
  for (const [E, D] of Object.entries(Q)) {
2736
- const o = ng(D, A, g);
2793
+ const o = ug(D, A, g);
2737
2794
  o !== D && (Q[E] = o);
2738
2795
  }
2739
- return Z(C, Q);
2796
+ return z(C, Q);
2740
2797
  }
2741
2798
  function n(g) {
2742
2799
  return JSON.stringify(g);
2743
2800
  }
2744
- function rg(g, A, C) {
2801
+ function bg(g, A, C) {
2745
2802
  if (g != null) {
2746
2803
  if (Array.isArray(g)) {
2747
- if (g.length > 0 && e(g[0]))
2804
+ if (g.length > 0 && V(g[0]))
2748
2805
  C.push({ key: A, value: g });
2749
2806
  else if (g.length > 0 && Array.isArray(g[0])) {
2750
2807
  for (const B of g)
2751
2808
  if (Array.isArray(B))
2752
2809
  for (const Q of B)
2753
- e(Q) && C.push({ key: A, value: Q });
2810
+ V(Q) && C.push({ key: A, value: Q });
2754
2811
  }
2755
- } else if (e(g))
2812
+ } else if (V(g))
2756
2813
  C.push({ key: A, value: g });
2757
2814
  else if (typeof g == "object")
2758
2815
  for (const [, B] of Object.entries(
2759
2816
  g
2760
2817
  ))
2761
- rg(B, A, C);
2818
+ bg(B, A, C);
2762
2819
  }
2763
2820
  }
2764
- function ug(g) {
2765
- const A = [], C = T(g);
2821
+ function vg(g) {
2822
+ const A = [], C = O(g);
2766
2823
  if (!C || typeof C != "object") return A;
2767
2824
  for (const [B, Q] of Object.entries(C))
2768
- rg(Q, B, A);
2825
+ bg(Q, B, A);
2769
2826
  return A;
2770
2827
  }
2771
- function f(g, A, C = null, B = null, Q = null) {
2828
+ function d(g, A, C = null, B = null, Q = null) {
2772
2829
  A.enter && A.enter(g, C, B, Q);
2773
2830
  const E = p(g), D = A[E];
2774
2831
  D && D(g, C, B, Q);
2775
- const o = ug(g);
2832
+ const o = vg(g);
2776
2833
  for (const k of o)
2777
2834
  Array.isArray(k.value) ? k.value.forEach((K, y) => {
2778
- f(K, A, g, k.key, y);
2779
- }) : f(k.value, A, g, k.key, null);
2835
+ d(K, A, g, k.key, y);
2836
+ }) : d(k.value, A, g, k.key, null);
2780
2837
  A.leave && A.leave(g, C, B, Q);
2781
2838
  }
2782
- function YA(g, A) {
2839
+ function HA(g, A) {
2783
2840
  const C = [];
2784
- return f(g, {
2841
+ return d(g, {
2785
2842
  enter: (B, Q) => {
2786
2843
  A(B, Q) && C.push(B);
2787
2844
  }
2788
2845
  }), C;
2789
2846
  }
2790
- function QA(g, A) {
2791
- return YA(g, (C) => p(C) === A);
2847
+ function EA(g, A) {
2848
+ return HA(g, (C) => p(C) === A);
2792
2849
  }
2793
- function mg(g, A) {
2850
+ function Xg(g, A) {
2794
2851
  let C, B = !1;
2795
- return f(g, {
2852
+ return d(g, {
2796
2853
  enter: (Q, E) => {
2797
2854
  !B && A(Q, E) && (C = Q, B = !0);
2798
2855
  }
2799
2856
  }), C;
2800
2857
  }
2801
- function gi(g, A) {
2802
- return mg(g, A) !== void 0;
2858
+ function Yi(g, A) {
2859
+ return Xg(g, A) !== void 0;
2803
2860
  }
2804
- function Ii(g, A) {
2861
+ function Hi(g, A) {
2805
2862
  let C = !0;
2806
- return f(g, {
2863
+ return d(g, {
2807
2864
  enter: (B, Q) => {
2808
2865
  A(B, Q) || (C = !1);
2809
2866
  }
2810
2867
  }), C;
2811
2868
  }
2812
- function Ci(g, A) {
2813
- return YA(g, A).length;
2869
+ function hi(g, A) {
2870
+ return HA(g, A).length;
2814
2871
  }
2815
- function vg(g) {
2816
- return QA(g, "column");
2872
+ function _g(g) {
2873
+ return EA(g, "column");
2817
2874
  }
2818
- function Bi(g) {
2819
- return QA(g, "table");
2875
+ function ci(g) {
2876
+ return EA(g, "table");
2820
2877
  }
2821
- function Qi(g) {
2822
- return QA(g, "identifier");
2878
+ function Si(g) {
2879
+ return EA(g, "identifier");
2823
2880
  }
2824
- function Ei(g) {
2825
- const A = JSON.parse($A(n(g)));
2881
+ function Fi(g) {
2882
+ const A = JSON.parse(Ig(n(g)));
2826
2883
  return A.success ? JSON.parse(A.ast) : [];
2827
2884
  }
2828
- function IA(g) {
2829
- const A = JSON.parse(XA(n(g)));
2885
+ function CA(g) {
2886
+ const A = JSON.parse(Ag(n(g)));
2830
2887
  return A.success ? JSON.parse(A.ast) : [];
2831
2888
  }
2832
- function bg(g) {
2833
- const A = JSON.parse(Cg(n(g)));
2889
+ function $g(g) {
2890
+ const A = JSON.parse(Eg(n(g)));
2834
2891
  return A.success ? JSON.parse(A.ast) : [];
2835
2892
  }
2836
- function Xg(g) {
2837
- const A = JSON.parse(gg(n(g)));
2893
+ function AI(g) {
2894
+ const A = JSON.parse(Bg(n(g)));
2838
2895
  return A.success ? JSON.parse(A.ast) : [];
2839
2896
  }
2840
- function Di(g) {
2841
- const A = JSON.parse(Ag(n(g)));
2897
+ function Ji(g) {
2898
+ const A = JSON.parse(Cg(n(g)));
2842
2899
  return A.success ? JSON.parse(A.ast) : [];
2843
2900
  }
2844
- function wi(g) {
2845
- const A = JSON.parse(_A(n(g)));
2901
+ function Li(g) {
2902
+ const A = JSON.parse(gg(n(g)));
2846
2903
  return A.success ? A.result : [];
2847
2904
  }
2848
- function ii(g) {
2849
- const A = JSON.parse(Ig(n(g)));
2905
+ function Ri(g) {
2906
+ const A = JSON.parse(Qg(n(g)));
2850
2907
  return A.success ? A.result : [];
2851
2908
  }
2852
- function _g(g) {
2853
- return IA(g).length > 0;
2909
+ function gI(g) {
2910
+ return CA(g).length > 0;
2854
2911
  }
2855
- function oi(g) {
2856
- return bg(g).length > 0;
2912
+ function Ui(g) {
2913
+ return $g(g).length > 0;
2857
2914
  }
2858
- function Mi(g) {
2859
- return Xg(g).length > 0;
2915
+ function si(g) {
2916
+ return AI(g).length > 0;
2860
2917
  }
2861
- function Ni(g) {
2918
+ function ai(g) {
2862
2919
  let A = 0, C = 0;
2863
- return f(g, {
2920
+ return d(g, {
2864
2921
  enter: () => {
2865
2922
  C++, A = Math.max(A, C);
2866
2923
  },
@@ -2869,22 +2926,22 @@ function Ni(g) {
2869
2926
  }
2870
2927
  }), A;
2871
2928
  }
2872
- function ki(g) {
2873
- const A = JSON.parse(Bg(n(g)));
2929
+ function qi(g) {
2930
+ const A = JSON.parse(Dg(n(g)));
2874
2931
  return A.success ? A.result : 0;
2875
2932
  }
2876
- function yi(g, A) {
2933
+ function pi(g, A) {
2877
2934
  let C = null;
2878
- return f(g, {
2935
+ return d(g, {
2879
2936
  enter: (B, Q) => {
2880
2937
  B === A && (C = Q);
2881
2938
  }
2882
2939
  }), C;
2883
2940
  }
2884
- function Ki(g, A, C) {
2941
+ function Pi(g, A, C) {
2885
2942
  const B = [];
2886
2943
  let Q = null;
2887
- return f(g, {
2944
+ return d(g, {
2888
2945
  enter: (E) => {
2889
2946
  if (Q === null) {
2890
2947
  if (E === A)
@@ -2903,9 +2960,9 @@ function Ki(g, A, C) {
2903
2960
  }
2904
2961
  }), Q;
2905
2962
  }
2906
- function Gi(g, A) {
2963
+ function Ti(g, A) {
2907
2964
  let C = 0, B = 0;
2908
- return f(g, {
2965
+ return d(g, {
2909
2966
  enter: (Q) => {
2910
2967
  B++, Q === A && (C = B);
2911
2968
  },
@@ -2914,140 +2971,140 @@ function Gi(g, A) {
2914
2971
  }
2915
2972
  }), C;
2916
2973
  }
2917
- const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2974
+ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2918
2975
  __proto__: null,
2919
- addSelectColumns: mw,
2920
- addWhere: rw,
2921
- clone: Ai,
2922
- countNodes: Ci,
2923
- every: Ii,
2924
- findAll: YA,
2925
- findAncestor: Ki,
2926
- findByType: QA,
2927
- findFirst: mg,
2928
- getAggregateFunctions: IA,
2929
- getChildren: ug,
2930
- getColumnNames: wi,
2931
- getColumns: vg,
2932
- getDepth: Ni,
2933
- getExprData: T,
2976
+ addSelectColumns: oi,
2977
+ addWhere: wi,
2978
+ clone: Gi,
2979
+ countNodes: hi,
2980
+ every: Hi,
2981
+ findAll: HA,
2982
+ findAncestor: Pi,
2983
+ findByType: EA,
2984
+ findFirst: Xg,
2985
+ getAggregateFunctions: CA,
2986
+ getChildren: vg,
2987
+ getColumnNames: Li,
2988
+ getColumns: _g,
2989
+ getDepth: ai,
2990
+ getExprData: O,
2934
2991
  getExprType: p,
2935
- getFunctions: Ei,
2936
- getIdentifiers: Qi,
2937
- getInferredType: Zg,
2938
- getLiterals: Di,
2939
- getNodeDepth: Gi,
2940
- getParent: yi,
2941
- getSubqueries: Xg,
2942
- getTableNames: ii,
2943
- getTables: Bi,
2944
- getWindowFunctions: bg,
2945
- hasAggregates: _g,
2946
- hasSubqueries: Mi,
2947
- hasWindowFunctions: oi,
2948
- isAdd: uD,
2949
- isAggregateFunction: Cw,
2950
- isAlias: Jw,
2951
- isAlterTable: Ow,
2952
- isAnd: fD,
2953
- isArithmetic: zw,
2954
- isAvg: Dw,
2955
- isBetween: Aw,
2956
- isBoolean: jD,
2957
- isCase: Kw,
2958
- isCast: Nw,
2959
- isCoalesce: ow,
2960
- isColumn: zg,
2961
- isComparison: dw,
2962
- isConcat: _D,
2963
- isCount: Qw,
2964
- isCreateIndex: Pw,
2965
- isCreateTable: qw,
2966
- isCreateView: jw,
2967
- isCte: Rw,
2968
- isDDL: xw,
2969
- isDelete: JD,
2970
- isDiv: bD,
2971
- isDropIndex: Tw,
2972
- isDropTable: pw,
2973
- isDropView: tw,
2974
- isEq: zD,
2975
- isExcept: qD,
2976
- isExists: Iw,
2977
- isExpressionValue: e,
2978
- isFrom: Gw,
2979
- isFunction: xg,
2980
- isGroupBy: hw,
2981
- isGt: WD,
2982
- isGte: lD,
2983
- isHaving: Sw,
2984
- isILike: rD,
2985
- isIdentifier: OD,
2986
- isIn: $D,
2987
- isInsert: FD,
2988
- isIntersect: aD,
2989
- isIsNull: gw,
2990
- isJoin: Yw,
2991
- isLike: nD,
2992
- isLimit: Lw,
2992
+ getFunctions: Fi,
2993
+ getIdentifiers: Si,
2994
+ getInferredType: eg,
2995
+ getLiterals: Ji,
2996
+ getNodeDepth: Ti,
2997
+ getParent: pi,
2998
+ getSubqueries: AI,
2999
+ getTableNames: Ri,
3000
+ getTables: ci,
3001
+ getWindowFunctions: $g,
3002
+ hasAggregates: gI,
3003
+ hasSubqueries: si,
3004
+ hasWindowFunctions: Ui,
3005
+ isAdd: iw,
3006
+ isAggregateFunction: hw,
3007
+ isAlias: Ww,
3008
+ isAlterTable: mw,
3009
+ isAnd: _D,
3010
+ isArithmetic: gi,
3011
+ isAvg: Jw,
3012
+ isBetween: Gw,
3013
+ isBoolean: vD,
3014
+ isCase: Pw,
3015
+ isCast: aw,
3016
+ isCoalesce: Uw,
3017
+ isColumn: Wg,
3018
+ isComparison: Ai,
3019
+ isConcat: yw,
3020
+ isCount: Sw,
3021
+ isCreateIndex: uw,
3022
+ isCreateTable: nw,
3023
+ isCreateView: vw,
3024
+ isCte: xw,
3025
+ isDDL: Ci,
3026
+ isDelete: WD,
3027
+ isDiv: Nw,
3028
+ isDropIndex: bw,
3029
+ isDropTable: rw,
3030
+ isDropView: Xw,
3031
+ isEq: gw,
3032
+ isExcept: nD,
3033
+ isExists: Hw,
3034
+ isExpressionValue: V,
3035
+ isFrom: Tw,
3036
+ isFunction: lg,
3037
+ isGroupBy: tw,
3038
+ isGt: Qw,
3039
+ isGte: Ew,
3040
+ isHaving: fw,
3041
+ isILike: ww,
3042
+ isIdentifier: mD,
3043
+ isIn: Kw,
3044
+ isInsert: eD,
3045
+ isIntersect: lD,
3046
+ isIsNull: Yw,
3047
+ isJoin: Ow,
3048
+ isLike: Dw,
3049
+ isLimit: zw,
2993
3050
  isLiteral: Vg,
2994
- isLogical: Vw,
2995
- isLt: xD,
2996
- isLte: eD,
2997
- isMax: iw,
2998
- isMin: ww,
2999
- isMod: XD,
3000
- isMul: vD,
3001
- isNeq: VD,
3002
- isNot: dD,
3003
- isNullIf: Mw,
3004
- isNullLiteral: tD,
3005
- isOffset: Uw,
3006
- isOr: ZD,
3007
- isOrderBy: cw,
3008
- isOrdered: aw,
3009
- isParen: sw,
3010
- isQuery: fw,
3011
- isSafeCast: yw,
3012
- isSelect: dg,
3013
- isSetOperation: Zw,
3014
- isStar: TD,
3015
- isSub: mD,
3016
- isSubquery: pD,
3017
- isSum: Ew,
3018
- isTable: PD,
3019
- isTryCast: kw,
3020
- isUnion: sD,
3021
- isUpdate: RD,
3022
- isWhere: Hw,
3023
- isWindowFunction: Bw,
3024
- isWith: Fw,
3025
- makeExpr: Z,
3026
- nodeCount: ki,
3027
- qualifyColumns: lw,
3028
- qualifyTables: nw,
3029
- remove: LA,
3030
- removeLimitOffset: _w,
3031
- removeSelectColumns: vw,
3032
- removeWhere: uw,
3033
- renameColumns: lg,
3034
- renameTables: Ww,
3035
- replaceByType: ew,
3036
- replaceNodes: Wg,
3037
- setDistinct: $w,
3038
- setLimit: bw,
3039
- setOffset: Xw,
3040
- some: gi,
3041
- transform: GA,
3042
- walk: f
3051
+ isLogical: Ii,
3052
+ isLt: Cw,
3053
+ isLte: Bw,
3054
+ isMax: Rw,
3055
+ isMin: Lw,
3056
+ isMod: kw,
3057
+ isMul: Mw,
3058
+ isNeq: Iw,
3059
+ isNot: Aw,
3060
+ isNullIf: sw,
3061
+ isNullLiteral: XD,
3062
+ isOffset: Zw,
3063
+ isOr: $D,
3064
+ isOrderBy: dw,
3065
+ isOrdered: lw,
3066
+ isParen: Vw,
3067
+ isQuery: _w,
3068
+ isSafeCast: pw,
3069
+ isSelect: xg,
3070
+ isSetOperation: $w,
3071
+ isStar: bD,
3072
+ isSub: ow,
3073
+ isSubquery: rD,
3074
+ isSum: Fw,
3075
+ isTable: uD,
3076
+ isTryCast: qw,
3077
+ isUnion: VD,
3078
+ isUpdate: xD,
3079
+ isWhere: jw,
3080
+ isWindowFunction: cw,
3081
+ isWith: ew,
3082
+ makeExpr: z,
3083
+ nodeCount: qi,
3084
+ qualifyColumns: Ei,
3085
+ qualifyTables: Di,
3086
+ remove: FA,
3087
+ removeLimitOffset: yi,
3088
+ removeSelectColumns: Mi,
3089
+ removeWhere: ii,
3090
+ renameColumns: mg,
3091
+ renameTables: Qi,
3092
+ replaceByType: Bi,
3093
+ replaceNodes: rg,
3094
+ setDistinct: Ki,
3095
+ setLimit: Ni,
3096
+ setOffset: ki,
3097
+ some: Yi,
3098
+ transform: YA,
3099
+ walk: d
3043
3100
  }, Symbol.toStringTag, { value: "Module" }));
3044
- function F(g) {
3045
- return g instanceof S ? g._w : typeof g == "string" ? UA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : yA();
3101
+ function L(g) {
3102
+ return g instanceof S ? g._w : typeof g == "string" ? JA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? yA(g) : KA();
3046
3103
  }
3047
- function t(g) {
3048
- const A = new O();
3104
+ function f(g) {
3105
+ const A = new P();
3049
3106
  for (const C of g)
3050
- C instanceof S ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(kA(C)) : A.push(yA());
3107
+ C instanceof S ? A.push(C._w) : typeof C == "string" ? A.push_col(C) : typeof C == "number" ? Number.isInteger(C) ? A.push_int(C) : A.push_float(C) : typeof C == "boolean" || C === null ? A.push(yA(C)) : A.push(KA());
3051
3108
  return A;
3052
3109
  }
3053
3110
  class S {
@@ -3059,58 +3116,58 @@ class S {
3059
3116
  }
3060
3117
  // -- Comparison --
3061
3118
  eq(A) {
3062
- return new S(this._w.eq(F(A)));
3119
+ return new S(this._w.eq(L(A)));
3063
3120
  }
3064
3121
  neq(A) {
3065
- return new S(this._w.neq(F(A)));
3122
+ return new S(this._w.neq(L(A)));
3066
3123
  }
3067
3124
  lt(A) {
3068
- return new S(this._w.lt(F(A)));
3125
+ return new S(this._w.lt(L(A)));
3069
3126
  }
3070
3127
  lte(A) {
3071
- return new S(this._w.lte(F(A)));
3128
+ return new S(this._w.lte(L(A)));
3072
3129
  }
3073
3130
  gt(A) {
3074
- return new S(this._w.gt(F(A)));
3131
+ return new S(this._w.gt(L(A)));
3075
3132
  }
3076
3133
  gte(A) {
3077
- return new S(this._w.gte(F(A)));
3134
+ return new S(this._w.gte(L(A)));
3078
3135
  }
3079
3136
  // -- Logical --
3080
3137
  and(A) {
3081
- return new S(this._w.and(F(A)));
3138
+ return new S(this._w.and(L(A)));
3082
3139
  }
3083
3140
  or(A) {
3084
- return new S(this._w.or(F(A)));
3141
+ return new S(this._w.or(L(A)));
3085
3142
  }
3086
3143
  not() {
3087
3144
  return new S(this._w.not());
3088
3145
  }
3089
3146
  xor(A) {
3090
- return new S(this._w.xor(F(A)));
3147
+ return new S(this._w.xor(L(A)));
3091
3148
  }
3092
3149
  // -- Arithmetic --
3093
3150
  add(A) {
3094
- return new S(this._w.add(F(A)));
3151
+ return new S(this._w.add(L(A)));
3095
3152
  }
3096
3153
  sub(A) {
3097
- return new S(this._w.sub(F(A)));
3154
+ return new S(this._w.sub(L(A)));
3098
3155
  }
3099
3156
  mul(A) {
3100
- return new S(this._w.mul(F(A)));
3157
+ return new S(this._w.mul(L(A)));
3101
3158
  }
3102
3159
  div(A) {
3103
- return new S(this._w.div(F(A)));
3160
+ return new S(this._w.div(L(A)));
3104
3161
  }
3105
3162
  // -- Pattern matching --
3106
3163
  like(A) {
3107
- return new S(this._w.like(F(A)));
3164
+ return new S(this._w.like(L(A)));
3108
3165
  }
3109
3166
  ilike(A) {
3110
- return new S(this._w.ilike(F(A)));
3167
+ return new S(this._w.ilike(L(A)));
3111
3168
  }
3112
3169
  rlike(A) {
3113
- return new S(this._w.rlike(F(A)));
3170
+ return new S(this._w.rlike(L(A)));
3114
3171
  }
3115
3172
  // -- Predicates --
3116
3173
  isNull() {
@@ -3120,13 +3177,13 @@ class S {
3120
3177
  return new S(this._w.is_not_null());
3121
3178
  }
3122
3179
  between(A, C) {
3123
- return new S(this._w.between(F(A), F(C)));
3180
+ return new S(this._w.between(L(A), L(C)));
3124
3181
  }
3125
3182
  inList(...A) {
3126
- return new S(this._w.in_list(t(A)));
3183
+ return new S(this._w.in_list(f(A)));
3127
3184
  }
3128
3185
  notIn(...A) {
3129
- return new S(this._w.not_in(t(A)));
3186
+ return new S(this._w.not_in(f(A)));
3130
3187
  }
3131
3188
  // -- Transform --
3132
3189
  alias(A) {
@@ -3158,206 +3215,206 @@ class S {
3158
3215
  this._w.free();
3159
3216
  }
3160
3217
  }
3161
- class Hi {
3218
+ class ji {
3162
3219
  /** @internal WASM handle */
3163
3220
  _w;
3164
3221
  constructor() {
3165
- this._w = new BA();
3222
+ this._w = new QA();
3166
3223
  }
3167
3224
  /** Set the PARTITION BY expressions. */
3168
3225
  partitionBy(...A) {
3169
- return this._w.partition_by(t(A)), this;
3226
+ return this._w.partition_by(f(A)), this;
3170
3227
  }
3171
3228
  /** Set the ORDER BY expressions. */
3172
3229
  orderBy(...A) {
3173
- return this._w.order_by(t(A)), this;
3230
+ return this._w.order_by(f(A)), this;
3174
3231
  }
3175
3232
  /** Free the underlying WASM handle. */
3176
3233
  free() {
3177
3234
  this._w.free();
3178
3235
  }
3179
3236
  }
3180
- function hi(g) {
3181
- return new S(UA(g));
3237
+ function ti(g) {
3238
+ return new S(JA(g));
3182
3239
  }
3183
- function Si(g) {
3184
- return new S(kA(g));
3240
+ function fi(g) {
3241
+ return new S(yA(g));
3185
3242
  }
3186
- function $g() {
3187
- return new S(Tg());
3243
+ function II() {
3244
+ return new S(fg());
3188
3245
  }
3189
- function ci() {
3190
- return new S(yA());
3246
+ function di() {
3247
+ return new S(KA());
3191
3248
  }
3192
3249
  function RA(g) {
3193
- return new S(Fg(g));
3250
+ return new S(sg(g));
3194
3251
  }
3195
- function Li(g) {
3196
- return new S(tg(g));
3252
+ function zi(g) {
3253
+ return new S(zg(g));
3197
3254
  }
3198
- function AI(g) {
3199
- return new S(Pg(g));
3255
+ function CI(g) {
3256
+ return new S(tg(g));
3200
3257
  }
3201
- function Ui(g) {
3202
- return AI(g);
3258
+ function Zi(g) {
3259
+ return CI(g);
3203
3260
  }
3204
- function J(g, ...A) {
3205
- return new S(qg(g, t(A)));
3261
+ function s(g, ...A) {
3262
+ return new S(Tg(g, f(A)));
3206
3263
  }
3207
- function Fi(g) {
3208
- return new S(pg(F(g)));
3264
+ function ei(g) {
3265
+ return new S(Og(L(g)));
3209
3266
  }
3210
- function Ri(g, A) {
3211
- return new S(Jg(F(g), A));
3267
+ function xi(g, A) {
3268
+ return new S(qg(L(g), A));
3212
3269
  }
3213
- function Ji(g, A) {
3214
- return new S(Lg(F(g), A));
3270
+ function Wi(g, A) {
3271
+ return new S(Rg(L(g), A));
3215
3272
  }
3216
- function si(g, A) {
3217
- return new S(jg(g._w, A));
3273
+ function Vi(g, A) {
3274
+ return new S(dg(g._w, A));
3218
3275
  }
3219
- function ai(...g) {
3276
+ function li(...g) {
3220
3277
  if (g.length === 0) return RA(!0);
3221
3278
  if (g.length === 1)
3222
- return g[0] instanceof S ? g[0] : new S(F(g[0]));
3223
- let A = F(g[0]);
3279
+ return g[0] instanceof S ? g[0] : new S(L(g[0]));
3280
+ let A = L(g[0]);
3224
3281
  for (let C = 1; C < g.length; C++)
3225
- A = Ug(A, F(g[C]));
3282
+ A = Ug(A, L(g[C]));
3226
3283
  return new S(A);
3227
3284
  }
3228
- function qi(...g) {
3285
+ function ni(...g) {
3229
3286
  if (g.length === 0) return RA(!1);
3230
3287
  if (g.length === 1)
3231
- return g[0] instanceof S ? g[0] : new S(F(g[0]));
3232
- let A = F(g[0]);
3288
+ return g[0] instanceof S ? g[0] : new S(L(g[0]));
3289
+ let A = L(g[0]);
3233
3290
  for (let C = 1; C < g.length; C++)
3234
- A = Og(A, F(g[C]));
3291
+ A = jg(A, L(g[C]));
3235
3292
  return new S(A);
3236
3293
  }
3237
- function pi(g) {
3238
- return g !== void 0 ? J("COUNT", g) : J("COUNT", $g());
3294
+ function ri(g) {
3295
+ return g !== void 0 ? s("COUNT", g) : s("COUNT", II());
3239
3296
  }
3240
- function Oi(g) {
3241
- return new S(sg(F(g)));
3297
+ function mi(g) {
3298
+ return new S(pg(L(g)));
3242
3299
  }
3243
- function Pi(g) {
3244
- return J("SUM", g);
3300
+ function ui(g) {
3301
+ return s("SUM", g);
3245
3302
  }
3246
- function Ti(g) {
3247
- return J("AVG", g);
3303
+ function bi(g) {
3304
+ return s("AVG", g);
3248
3305
  }
3249
- function ji(g) {
3250
- return J("MIN", g);
3306
+ function vi(g) {
3307
+ return s("MIN", g);
3251
3308
  }
3252
- function ti(g) {
3253
- return J("MAX", g);
3309
+ function Xi(g) {
3310
+ return s("MAX", g);
3254
3311
  }
3255
- function fi(g) {
3256
- return J("UPPER", g);
3312
+ function _i(g) {
3313
+ return s("UPPER", g);
3257
3314
  }
3258
- function Zi(g) {
3259
- return J("LOWER", g);
3315
+ function $i(g) {
3316
+ return s("LOWER", g);
3260
3317
  }
3261
- function di(g) {
3262
- return J("LENGTH", g);
3318
+ function Ao(g) {
3319
+ return s("LENGTH", g);
3263
3320
  }
3264
- function zi(g) {
3265
- return J("TRIM", g);
3321
+ function go(g) {
3322
+ return s("TRIM", g);
3266
3323
  }
3267
- function Vi(g) {
3268
- return J("LTRIM", g);
3324
+ function Io(g) {
3325
+ return s("LTRIM", g);
3269
3326
  }
3270
- function xi(g) {
3271
- return J("RTRIM", g);
3327
+ function Co(g) {
3328
+ return s("RTRIM", g);
3272
3329
  }
3273
- function ei(g) {
3274
- return J("REVERSE", g);
3330
+ function Bo(g) {
3331
+ return s("REVERSE", g);
3275
3332
  }
3276
- function Wi(g) {
3277
- return J("INITCAP", g);
3333
+ function Qo(g) {
3334
+ return s("INITCAP", g);
3278
3335
  }
3279
- function li(g, A, C) {
3280
- return C !== void 0 ? J("SUBSTRING", g, A, C) : J("SUBSTRING", g, A);
3336
+ function Eo(g, A, C) {
3337
+ return C !== void 0 ? s("SUBSTRING", g, A, C) : s("SUBSTRING", g, A);
3281
3338
  }
3282
- function ni(g, A, C) {
3283
- return J("REPLACE", g, A, C);
3339
+ function Do(g, A, C) {
3340
+ return s("REPLACE", g, A, C);
3284
3341
  }
3285
- function ri(g, ...A) {
3286
- return J("CONCAT_WS", g, ...A);
3342
+ function wo(g, ...A) {
3343
+ return s("CONCAT_WS", g, ...A);
3287
3344
  }
3288
- function ui(...g) {
3289
- return J("COALESCE", ...g);
3345
+ function io(...g) {
3346
+ return s("COALESCE", ...g);
3290
3347
  }
3291
- function mi(g, A) {
3292
- return J("NULLIF", g, A);
3348
+ function oo(g, A) {
3349
+ return s("NULLIF", g, A);
3293
3350
  }
3294
- function vi(g, A) {
3295
- return J("IFNULL", g, A);
3351
+ function Mo(g, A) {
3352
+ return s("IFNULL", g, A);
3296
3353
  }
3297
- function bi(g) {
3298
- return J("ABS", g);
3354
+ function No(g) {
3355
+ return s("ABS", g);
3299
3356
  }
3300
- function Xi(g, A) {
3301
- return A !== void 0 ? J("ROUND", g, A) : J("ROUND", g);
3357
+ function ko(g, A) {
3358
+ return A !== void 0 ? s("ROUND", g, A) : s("ROUND", g);
3302
3359
  }
3303
- function _i(g) {
3304
- return J("FLOOR", g);
3360
+ function yo(g) {
3361
+ return s("FLOOR", g);
3305
3362
  }
3306
- function $i(g) {
3307
- return J("CEIL", g);
3363
+ function Ko(g) {
3364
+ return s("CEIL", g);
3308
3365
  }
3309
- function Ao(g, A) {
3310
- return J("POWER", g, A);
3366
+ function Go(g, A) {
3367
+ return s("POWER", g, A);
3311
3368
  }
3312
- function go(g) {
3313
- return J("SQRT", g);
3369
+ function Yo(g) {
3370
+ return s("SQRT", g);
3314
3371
  }
3315
- function Io(g) {
3316
- return J("LN", g);
3372
+ function Ho(g) {
3373
+ return s("LN", g);
3317
3374
  }
3318
- function Co(g) {
3319
- return J("EXP", g);
3375
+ function ho(g) {
3376
+ return s("EXP", g);
3320
3377
  }
3321
- function Bo(g) {
3322
- return J("SIGN", g);
3378
+ function co(g) {
3379
+ return s("SIGN", g);
3323
3380
  }
3324
- function Qo(...g) {
3325
- return J("GREATEST", ...g);
3381
+ function So(...g) {
3382
+ return s("GREATEST", ...g);
3326
3383
  }
3327
- function Eo(...g) {
3328
- return J("LEAST", ...g);
3384
+ function Fo(...g) {
3385
+ return s("LEAST", ...g);
3329
3386
  }
3330
- function Do() {
3331
- return J("CURRENT_DATE");
3387
+ function Jo() {
3388
+ return s("CURRENT_DATE");
3332
3389
  }
3333
- function wo() {
3334
- return J("CURRENT_TIME");
3390
+ function Lo() {
3391
+ return s("CURRENT_TIME");
3335
3392
  }
3336
- function io() {
3337
- return J("CURRENT_TIMESTAMP");
3393
+ function Ro() {
3394
+ return s("CURRENT_TIMESTAMP");
3338
3395
  }
3339
- function oo(g, A) {
3340
- return new S(ag(g, F(A)));
3396
+ function Uo(g, A) {
3397
+ return new S(Pg(g, L(A)));
3341
3398
  }
3342
- function Mo() {
3343
- return J("ROW_NUMBER");
3399
+ function so() {
3400
+ return s("ROW_NUMBER");
3344
3401
  }
3345
- function No() {
3346
- return J("RANK");
3402
+ function ao() {
3403
+ return s("RANK");
3347
3404
  }
3348
- function ko() {
3349
- return J("DENSE_RANK");
3405
+ function qo() {
3406
+ return s("DENSE_RANK");
3350
3407
  }
3351
- class gI {
3408
+ class BI {
3352
3409
  /** @internal */
3353
3410
  _w;
3354
3411
  constructor() {
3355
- this._w = new j();
3412
+ this._w = new t();
3356
3413
  }
3357
3414
  /** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
3358
3415
  select(...A) {
3359
3416
  for (const C of A)
3360
- C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(F(C));
3417
+ C === "*" ? this._w.select_star() : C instanceof S ? this._w.select_expr(C._w) : typeof C == "string" ? this._w.select_col(C) : this._w.select_expr(L(C));
3361
3418
  return this;
3362
3419
  }
3363
3420
  /** Set the FROM clause. */
@@ -3366,15 +3423,15 @@ class gI {
3366
3423
  }
3367
3424
  /** Add an INNER JOIN. */
3368
3425
  join(A, C) {
3369
- return this._w.join(A, F(C)), this;
3426
+ return this._w.join(A, L(C)), this;
3370
3427
  }
3371
3428
  /** Add a LEFT JOIN. */
3372
3429
  leftJoin(A, C) {
3373
- return this._w.left_join(A, F(C)), this;
3430
+ return this._w.left_join(A, L(C)), this;
3374
3431
  }
3375
3432
  /** Add a RIGHT JOIN. */
3376
3433
  rightJoin(A, C) {
3377
- return this._w.right_join(A, F(C)), this;
3434
+ return this._w.right_join(A, L(C)), this;
3378
3435
  }
3379
3436
  /** Add a CROSS JOIN. */
3380
3437
  crossJoin(A) {
@@ -3382,19 +3439,19 @@ class gI {
3382
3439
  }
3383
3440
  /** Set the WHERE clause. Accepts an Expr or a raw SQL string. */
3384
3441
  where(A) {
3385
- return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(F(A)), this;
3442
+ return typeof A == "string" ? this._w.where_sql(A) : A instanceof S ? this._w.where_expr(A._w) : this._w.where_expr(L(A)), this;
3386
3443
  }
3387
3444
  /** Set the GROUP BY clause. */
3388
3445
  groupBy(...A) {
3389
- return this._w.group_by_cols(t(A)), this;
3446
+ return this._w.group_by_cols(f(A)), this;
3390
3447
  }
3391
3448
  /** Set the HAVING clause. */
3392
3449
  having(A) {
3393
- return this._w.having(F(A)), this;
3450
+ return this._w.having(L(A)), this;
3394
3451
  }
3395
3452
  /** Set the ORDER BY clause. */
3396
3453
  orderBy(...A) {
3397
- return this._w.order_by_exprs(t(A)), this;
3454
+ return this._w.order_by_exprs(f(A)), this;
3398
3455
  }
3399
3456
  /** Set the LIMIT. */
3400
3457
  limit(A) {
@@ -3410,11 +3467,11 @@ class gI {
3410
3467
  }
3411
3468
  /** Set the QUALIFY clause (Snowflake/BigQuery/DuckDB). */
3412
3469
  qualify(A) {
3413
- return this._w.qualify(F(A)), this;
3470
+ return this._w.qualify(L(A)), this;
3414
3471
  }
3415
3472
  /** Set the SORT BY clause (Hive/Spark — sorts within each partition). */
3416
3473
  sortBy(...A) {
3417
- return this._w.sort_by_exprs(t(A)), this;
3474
+ return this._w.sort_by_exprs(f(A)), this;
3418
3475
  }
3419
3476
  /** Add a named WINDOW clause definition. */
3420
3477
  window(A, C) {
@@ -3448,19 +3505,19 @@ class gI {
3448
3505
  }
3449
3506
  /** Combine with UNION. */
3450
3507
  union(A) {
3451
- return new _(this._w.union(A._w));
3508
+ return new $(this._w.union(A._w));
3452
3509
  }
3453
3510
  /** Combine with UNION ALL. */
3454
3511
  unionAll(A) {
3455
- return new _(this._w.union_all(A._w));
3512
+ return new $(this._w.union_all(A._w));
3456
3513
  }
3457
3514
  /** Combine with INTERSECT. */
3458
3515
  intersect(A) {
3459
- return new _(this._w.intersect(A._w));
3516
+ return new $(this._w.intersect(A._w));
3460
3517
  }
3461
3518
  /** Combine with EXCEPT. */
3462
3519
  except(A) {
3463
- return new _(this._w.except_(A._w));
3520
+ return new $(this._w.except_(A._w));
3464
3521
  }
3465
3522
  /** Generate SQL string. Defaults to generic dialect. */
3466
3523
  toSql(A = "generic") {
@@ -3475,15 +3532,15 @@ class gI {
3475
3532
  this._w.free();
3476
3533
  }
3477
3534
  }
3478
- function yo(...g) {
3479
- const A = new gI();
3535
+ function po(...g) {
3536
+ const A = new BI();
3480
3537
  return g.length > 0 && A.select(...g), A;
3481
3538
  }
3482
- class II {
3539
+ class QI {
3483
3540
  /** @internal */
3484
3541
  _w;
3485
3542
  constructor(A) {
3486
- this._w = new oA(A);
3543
+ this._w = new MA(A);
3487
3544
  }
3488
3545
  /** Set the target column names. */
3489
3546
  columns(...A) {
@@ -3491,7 +3548,7 @@ class II {
3491
3548
  }
3492
3549
  /** Append a row of values. Call multiple times for multiple rows. */
3493
3550
  values(...A) {
3494
- return this._w.values(t(A)), this;
3551
+ return this._w.values(f(A)), this;
3495
3552
  }
3496
3553
  /** Set the source query for INSERT ... SELECT. */
3497
3554
  query(A) {
@@ -3510,25 +3567,25 @@ class II {
3510
3567
  this._w.free();
3511
3568
  }
3512
3569
  }
3513
- function CI(g) {
3514
- return new II(g);
3570
+ function EI(g) {
3571
+ return new QI(g);
3515
3572
  }
3516
- function Ko(g) {
3517
- return CI(g);
3573
+ function Po(g) {
3574
+ return EI(g);
3518
3575
  }
3519
- class BI {
3576
+ class DI {
3520
3577
  /** @internal */
3521
3578
  _w;
3522
3579
  constructor(A) {
3523
- this._w = new NA(A);
3580
+ this._w = new kA(A);
3524
3581
  }
3525
3582
  /** Add a SET column = value assignment. */
3526
3583
  set(A, C) {
3527
- return this._w.set(A, F(C)), this;
3584
+ return this._w.set(A, L(C)), this;
3528
3585
  }
3529
3586
  /** Set the WHERE clause. */
3530
3587
  where(A) {
3531
- return this._w.where_expr(F(A)), this;
3588
+ return this._w.where_expr(L(A)), this;
3532
3589
  }
3533
3590
  /** Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM). */
3534
3591
  from(A) {
@@ -3547,18 +3604,18 @@ class BI {
3547
3604
  this._w.free();
3548
3605
  }
3549
3606
  }
3550
- function Go(g) {
3551
- return new BI(g);
3607
+ function To(g) {
3608
+ return new DI(g);
3552
3609
  }
3553
- class QI {
3610
+ class wI {
3554
3611
  /** @internal */
3555
3612
  _w;
3556
3613
  constructor(A) {
3557
- this._w = new iA(A);
3614
+ this._w = new oA(A);
3558
3615
  }
3559
3616
  /** Set the WHERE clause. */
3560
3617
  where(A) {
3561
- return this._w.where_expr(F(A)), this;
3618
+ return this._w.where_expr(L(A)), this;
3562
3619
  }
3563
3620
  /** Generate SQL string. Defaults to generic dialect. */
3564
3621
  toSql(A = "generic") {
@@ -3573,27 +3630,27 @@ class QI {
3573
3630
  this._w.free();
3574
3631
  }
3575
3632
  }
3576
- function EI(g) {
3577
- return new QI(g);
3633
+ function iI(g) {
3634
+ return new wI(g);
3578
3635
  }
3579
- function Yo(g) {
3580
- return EI(g);
3636
+ function Oo(g) {
3637
+ return iI(g);
3581
3638
  }
3582
- class DI {
3639
+ class oI {
3583
3640
  /** @internal */
3584
3641
  _w;
3585
3642
  constructor(A) {
3586
- this._w = new MA(A);
3643
+ this._w = new NA(A);
3587
3644
  }
3588
3645
  /** Set the source table and ON condition. */
3589
3646
  using(A, C) {
3590
- return this._w.using(A, F(C)), this;
3647
+ return this._w.using(A, L(C)), this;
3591
3648
  }
3592
3649
  /** Add a WHEN MATCHED THEN UPDATE SET clause. */
3593
3650
  whenMatchedUpdate(A) {
3594
- const C = new CA();
3651
+ const C = new BA();
3595
3652
  for (const [B, Q] of Object.entries(A))
3596
- C.push(B, F(Q));
3653
+ C.push(B, L(Q));
3597
3654
  return this._w.when_matched_update(C), this;
3598
3655
  }
3599
3656
  /** Add a WHEN MATCHED THEN DELETE clause. */
@@ -3602,7 +3659,7 @@ class DI {
3602
3659
  }
3603
3660
  /** Add a WHEN NOT MATCHED THEN INSERT clause. */
3604
3661
  whenNotMatchedInsert(A, C) {
3605
- return this._w.when_not_matched_insert(A, t(C)), this;
3662
+ return this._w.when_not_matched_insert(A, f(C)), this;
3606
3663
  }
3607
3664
  /** Generate SQL string. Defaults to generic dialect. */
3608
3665
  toSql(A = "generic") {
@@ -3617,10 +3674,10 @@ class DI {
3617
3674
  this._w.free();
3618
3675
  }
3619
3676
  }
3620
- function Ho(g) {
3621
- return new DI(g);
3677
+ function jo(g) {
3678
+ return new oI(g);
3622
3679
  }
3623
- class JA {
3680
+ class UA {
3624
3681
  /** @internal */
3625
3682
  _w;
3626
3683
  /** @internal */
@@ -3629,11 +3686,11 @@ class JA {
3629
3686
  }
3630
3687
  /** Add a WHEN condition THEN result branch. */
3631
3688
  when(A, C) {
3632
- return this._w.when(F(A), F(C)), this;
3689
+ return this._w.when(L(A), L(C)), this;
3633
3690
  }
3634
3691
  /** Set the ELSE result. */
3635
3692
  else_(A) {
3636
- return this._w.else_(F(A)), this;
3693
+ return this._w.else_(L(A)), this;
3637
3694
  }
3638
3695
  /** Build the CASE expression as an Expr. */
3639
3696
  build() {
@@ -3644,13 +3701,13 @@ class JA {
3644
3701
  return this._w.to_sql(A);
3645
3702
  }
3646
3703
  }
3647
- function ho() {
3648
- return new JA(new m());
3704
+ function to() {
3705
+ return new UA(new u());
3649
3706
  }
3650
- function So(g) {
3651
- return new JA(Rg(F(g)));
3707
+ function fo(g) {
3708
+ return new UA(ag(L(g)));
3652
3709
  }
3653
- class _ {
3710
+ class $ {
3654
3711
  /** @internal */
3655
3712
  _w;
3656
3713
  /** @internal */
@@ -3659,7 +3716,7 @@ class _ {
3659
3716
  }
3660
3717
  /** Set the ORDER BY clause. */
3661
3718
  orderBy(...A) {
3662
- return this._w.order_by_exprs(t(A)), this;
3719
+ return this._w.order_by_exprs(f(A)), this;
3663
3720
  }
3664
3721
  /** Set the LIMIT. */
3665
3722
  limit(A) {
@@ -3682,34 +3739,34 @@ class _ {
3682
3739
  this._w.free();
3683
3740
  }
3684
3741
  }
3685
- function co(g, A) {
3742
+ function zo(g, A) {
3686
3743
  return g.union(A);
3687
3744
  }
3688
- function Lo(g, A) {
3745
+ function Zo(g, A) {
3689
3746
  return g.unionAll(A);
3690
3747
  }
3691
- function Uo(g, A) {
3748
+ function eo(g, A) {
3692
3749
  return g.intersect(A);
3693
3750
  }
3694
- function Fo(g, A) {
3751
+ function xo(g, A) {
3695
3752
  return g.except(A);
3696
3753
  }
3697
- function wI(g, A, C = "generic", B = {}) {
3698
- const { deltaOnly: Q = !1, f: E = 0.6, t: D = 0.6 } = B, o = kg(g, A, C, Q, E, D);
3754
+ function MI(g, A, C = "generic", B = {}) {
3755
+ const { deltaOnly: Q = !1, f: E = 0.6, t: D = 0.6 } = B, o = Gg(g, A, C, Q, E, D);
3699
3756
  return JSON.parse(o);
3700
3757
  }
3701
- function iI(g) {
3758
+ function NI(g) {
3702
3759
  return g.some((A) => A.type !== "keep");
3703
3760
  }
3704
- function oI(g) {
3761
+ function kI(g) {
3705
3762
  return g.filter((A) => A.type !== "keep");
3706
3763
  }
3707
- function MI(g, A, C = "generic", B = !1) {
3708
- const Q = yg(A, g, C, B);
3764
+ function yI(g, A, C = "generic", B = !1) {
3765
+ const Q = Yg(A, g, C, B);
3709
3766
  return JSON.parse(Q);
3710
3767
  }
3711
- function NI(g, A, C, B = "generic", Q = !1) {
3712
- const E = Kg(
3768
+ function KI(g, A, C, B = "generic", Q = !1) {
3769
+ const E = Hg(
3713
3770
  A,
3714
3771
  g,
3715
3772
  JSON.stringify(C),
@@ -3718,8 +3775,8 @@ function NI(g, A, C, B = "generic", Q = !1) {
3718
3775
  );
3719
3776
  return JSON.parse(E);
3720
3777
  }
3721
- function kI(g, A, C = "generic") {
3722
- const B = Sg(A, g, C);
3778
+ function GI(g, A, C = "generic") {
3779
+ const B = Jg(A, g, C);
3723
3780
  return JSON.parse(B);
3724
3781
  }
3725
3782
  function sA(g) {
@@ -3729,39 +3786,39 @@ function sA(g) {
3729
3786
  ...g
3730
3787
  };
3731
3788
  }
3732
- function yI(g, A) {
3733
- const C = Gg(
3789
+ function YI(g, A) {
3790
+ const C = hg(
3734
3791
  g,
3735
3792
  JSON.stringify(sA(A))
3736
3793
  );
3737
3794
  return JSON.parse(C);
3738
3795
  }
3739
- function KI(g, A) {
3740
- const C = Yg(
3796
+ function HI(g, A) {
3797
+ const C = cg(
3741
3798
  g,
3742
3799
  JSON.stringify(sA(A))
3743
3800
  );
3744
3801
  return JSON.parse(C);
3745
3802
  }
3746
- function GI(g, A) {
3747
- const C = Hg(
3803
+ function hI(g, A) {
3804
+ const C = Sg(
3748
3805
  g,
3749
3806
  JSON.stringify(sA(A))
3750
3807
  );
3751
3808
  return JSON.parse(C);
3752
3809
  }
3753
- function YI(g, A = "generic") {
3754
- const C = hg(g, A);
3810
+ function cI(g, A = "generic") {
3811
+ const C = Fg(g, A);
3755
3812
  return JSON.parse(C);
3756
3813
  }
3757
- function Ro(g, A) {
3814
+ function Wo(g, A) {
3758
3815
  const C = [];
3759
- return p(g) === "select" && C.push(...Jo(g)), C;
3816
+ return p(g) === "select" && C.push(...Vo(g)), C;
3760
3817
  }
3761
- function Jo(g, A) {
3762
- const C = [], B = QA(g, "star");
3818
+ function Vo(g, A) {
3819
+ const C = [], B = EA(g, "star");
3763
3820
  if (B.length > 0) {
3764
- const D = T(B[0])?.span;
3821
+ const D = O(B[0])?.span;
3765
3822
  C.push({
3766
3823
  message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
3767
3824
  severity: "warning",
@@ -3772,17 +3829,17 @@ function Jo(g, A) {
3772
3829
  end: D?.end
3773
3830
  });
3774
3831
  }
3775
- const Q = T(g);
3776
- if (_g(g) && !Q.group_by) {
3777
- const E = IA(g), D = Q.expressions || [];
3832
+ const Q = O(g);
3833
+ if (gI(g) && !Q.group_by) {
3834
+ const E = CA(g), D = Q.expressions || [];
3778
3835
  if (D.some((k) => {
3779
3836
  const K = p(k);
3780
- return K === "column" || K === "identifier" ? IA(k).length === 0 : !1;
3837
+ return K === "column" || K === "identifier" ? CA(k).length === 0 : !1;
3781
3838
  }) && E.length > 0) {
3782
3839
  const k = D.find((y) => {
3783
3840
  const h = p(y);
3784
- return h === "column" || h === "identifier" ? IA(y).length === 0 : !1;
3785
- }), K = k ? T(k)?.span : void 0;
3841
+ return h === "column" || h === "identifier" ? CA(y).length === 0 : !1;
3842
+ }), K = k ? O(k)?.span : void 0;
3786
3843
  C.push({
3787
3844
  message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
3788
3845
  severity: "warning",
@@ -3799,7 +3856,7 @@ function Jo(g, A) {
3799
3856
  severity: "warning",
3800
3857
  code: "W003"
3801
3858
  }), Q.limit && !Q.order_by) {
3802
- const E = Q.limit, D = E ? T(E)?.span : void 0;
3859
+ const E = Q.limit, D = E ? O(E)?.span : void 0;
3803
3860
  C.push({
3804
3861
  message: "LIMIT without ORDER BY produces non-deterministic results",
3805
3862
  severity: "warning",
@@ -3812,7 +3869,7 @@ function Jo(g, A) {
3812
3869
  }
3813
3870
  return C;
3814
3871
  }
3815
- function so(g) {
3872
+ function lo(g) {
3816
3873
  try {
3817
3874
  return JSON.parse(g);
3818
3875
  } catch {
@@ -3828,46 +3885,46 @@ function so(g) {
3828
3885
  };
3829
3886
  }
3830
3887
  }
3831
- function ao(g, A, C = "generic", B = {}) {
3888
+ function no(g, A, C = "generic", B = {}) {
3832
3889
  const Q = B.strict ?? A.strict ?? !0, E = {
3833
3890
  check_types: B.checkTypes ?? !1,
3834
3891
  check_references: B.checkReferences ?? !1,
3835
3892
  strict: Q,
3836
3893
  semantic: B.semantic ?? !1,
3837
3894
  strict_syntax: B.strictSyntax ?? !1
3838
- }, D = cg(
3895
+ }, D = Lg(
3839
3896
  g,
3840
3897
  JSON.stringify(A),
3841
3898
  C,
3842
3899
  JSON.stringify(E)
3843
3900
  );
3844
- return so(D);
3901
+ return lo(D);
3845
3902
  }
3846
- const qo = {
3903
+ const ro = {
3847
3904
  Error: "error",
3848
3905
  Warning: "warning"
3849
- }, X = fg;
3850
- function vA(g) {
3906
+ }, _ = Zg;
3907
+ function _A(g) {
3851
3908
  return typeof g == "string" ? JSON.parse(g) : g;
3852
3909
  }
3853
- function po(g, A = "generic", C = {}) {
3854
- const B = C.strictSyntax ? X.validate_with_options(
3910
+ function mo(g, A = "generic", C = {}) {
3911
+ const B = C.strictSyntax ? _.validate_with_options(
3855
3912
  g,
3856
3913
  A,
3857
3914
  JSON.stringify({ strictSyntax: !0 })
3858
- ) : X.validate(g, A), Q = JSON.parse(B);
3915
+ ) : _.validate(g, A), Q = JSON.parse(B);
3859
3916
  if (!Q.valid || !C.semantic)
3860
3917
  return Q;
3861
- const E = typeof X.parse_value == "function" ? vA(
3862
- X.parse_value(g, A)
3863
- ) : vA(
3864
- X.parse(g, A)
3918
+ const E = typeof _.parse_value == "function" ? _A(
3919
+ _.parse_value(g, A)
3920
+ ) : _A(
3921
+ _.parse(g, A)
3865
3922
  );
3866
3923
  if (!E.success || !E.ast)
3867
3924
  return Q;
3868
3925
  const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, o = [...Q.errors];
3869
3926
  for (const K of D) {
3870
- const y = Ro(K);
3927
+ const y = Wo(K);
3871
3928
  o.push(...y);
3872
3929
  }
3873
3930
  return {
@@ -3876,118 +3933,192 @@ function po(g, A = "generic", C = {}) {
3876
3933
  };
3877
3934
  }
3878
3935
  var aA = /* @__PURE__ */ ((g) => (g.Generic = "generic", g.PostgreSQL = "postgresql", g.MySQL = "mysql", g.BigQuery = "bigquery", g.Snowflake = "snowflake", g.DuckDB = "duckdb", g.SQLite = "sqlite", g.Hive = "hive", g.Spark = "spark", g.Trino = "trino", g.Presto = "presto", g.Redshift = "redshift", g.TSQL = "tsql", g.Oracle = "oracle", g.ClickHouse = "clickhouse", g.Databricks = "databricks", g.Athena = "athena", g.Teradata = "teradata", g.Doris = "doris", g.StarRocks = "starrocks", g.Materialize = "materialize", g.RisingWave = "risingwave", g.SingleStore = "singlestore", g.CockroachDB = "cockroachdb", g.TiDB = "tidb", g.Druid = "druid", g.Solr = "solr", g.Tableau = "tableau", g.Dune = "dune", g.Fabric = "fabric", g.Drill = "drill", g.Dremio = "dremio", g.Exasol = "exasol", g.DataFusion = "datafusion", g))(aA || {});
3879
- const s = fg;
3880
- function HA(g) {
3936
+ const U = Zg;
3937
+ function b(g) {
3881
3938
  return g instanceof Error && g.message ? g.message : typeof g == "string" ? g : String(g);
3882
3939
  }
3883
3940
  function qA(g, A) {
3884
3941
  return {
3885
3942
  success: !1,
3886
3943
  sql: void 0,
3887
- error: `WASM ${g} failed: ${HA(A)}`,
3944
+ error: `WASM ${g} failed: ${b(A)}`,
3888
3945
  errorLine: void 0,
3889
3946
  errorColumn: void 0
3890
3947
  };
3891
3948
  }
3892
- function Oo(g, A) {
3949
+ function uo(g, A) {
3893
3950
  return {
3894
3951
  success: !1,
3895
3952
  ast: void 0,
3896
- error: `WASM ${g} failed: ${HA(A)}`,
3953
+ error: `WASM ${g} failed: ${b(A)}`,
3954
+ errorLine: void 0,
3955
+ errorColumn: void 0
3956
+ };
3957
+ }
3958
+ function bo(g, A) {
3959
+ return {
3960
+ success: !1,
3961
+ dataType: void 0,
3962
+ error: `WASM ${g} failed: ${b(A)}`,
3897
3963
  errorLine: void 0,
3898
3964
  errorColumn: void 0
3899
3965
  };
3900
3966
  }
3901
- function W(g) {
3967
+ function vo(g, A) {
3968
+ return {
3969
+ success: !1,
3970
+ sql: void 0,
3971
+ error: `WASM ${g} failed: ${b(A)}`,
3972
+ errorLine: void 0,
3973
+ errorColumn: void 0
3974
+ };
3975
+ }
3976
+ function j(g) {
3902
3977
  return typeof g == "string" ? JSON.parse(g) : g;
3903
3978
  }
3904
- async function HI() {
3979
+ function Xo(g, A) {
3980
+ return {
3981
+ success: !1,
3982
+ analysis: void 0,
3983
+ error: `WASM ${g} failed: ${b(A)}`
3984
+ };
3985
+ }
3986
+ function SI(g = {}) {
3987
+ return typeof g == "string" ? { dialect: g } : {
3988
+ dialect: "generic",
3989
+ ...g
3990
+ };
3991
+ }
3992
+ async function FI() {
3905
3993
  return Promise.resolve();
3906
3994
  }
3907
- function hI() {
3995
+ function JI() {
3908
3996
  return !0;
3909
3997
  }
3910
3998
  function pA(g, A, C, B) {
3911
3999
  try {
3912
- return B && Object.keys(B).length > 0 ? typeof s.transpile_with_options_value == "function" ? W(
3913
- s.transpile_with_options_value(g, A, C, B)
3914
- ) : typeof s.transpile_with_options == "function" ? JSON.parse(
3915
- s.transpile_with_options(g, A, C, JSON.stringify(B))
4000
+ return B && Object.keys(B).length > 0 ? typeof U.transpile_with_options_value == "function" ? j(
4001
+ U.transpile_with_options_value(g, A, C, B)
4002
+ ) : typeof U.transpile_with_options == "function" ? JSON.parse(
4003
+ U.transpile_with_options(g, A, C, JSON.stringify(B))
3916
4004
  ) : {
3917
4005
  success: !1,
3918
4006
  sql: void 0,
3919
4007
  error: "WASM transpile options are not available in this build"
3920
- } : typeof s.transpile_value == "function" ? W(
3921
- s.transpile_value(g, A, C)
3922
- ) : JSON.parse(s.transpile(g, A, C));
4008
+ } : typeof U.transpile_value == "function" ? j(
4009
+ U.transpile_value(g, A, C)
4010
+ ) : JSON.parse(U.transpile(g, A, C));
3923
4011
  } catch (Q) {
3924
4012
  return qA("transpile", Q);
3925
4013
  }
3926
4014
  }
3927
- function OA(g, A = "generic") {
4015
+ function PA(g, A = "generic") {
3928
4016
  try {
3929
- if (typeof s.parse_value == "function")
3930
- return W(s.parse_value(g, A));
3931
- const C = JSON.parse(s.parse(g, A));
4017
+ if (typeof U.parse_value == "function")
4018
+ return j(U.parse_value(g, A));
4019
+ const C = JSON.parse(U.parse(g, A));
3932
4020
  return C.success && typeof C.ast == "string" && (C.ast = JSON.parse(C.ast)), C;
3933
4021
  } catch (C) {
3934
- return Oo("parse", C);
4022
+ return uo("parse", C);
3935
4023
  }
3936
4024
  }
3937
- function PA(g, A = "generic") {
4025
+ function TA(g, A = "generic") {
4026
+ try {
4027
+ if (typeof U.parse_data_type_value == "function")
4028
+ return j(
4029
+ U.parse_data_type_value(g, A)
4030
+ );
4031
+ const C = JSON.parse(
4032
+ U.parse_data_type(g, A)
4033
+ );
4034
+ return C.success && typeof C.dataType == "string" && (C.dataType = JSON.parse(C.dataType)), C;
4035
+ } catch (C) {
4036
+ return bo("parseDataType", C);
4037
+ }
4038
+ }
4039
+ function OA(g, A = "generic") {
3938
4040
  try {
3939
- return typeof s.tokenize_value == "function" ? W(
3940
- s.tokenize_value(g, A)
3941
- ) : JSON.parse(s.tokenize(g, A));
4041
+ return typeof U.tokenize_value == "function" ? j(
4042
+ U.tokenize_value(g, A)
4043
+ ) : JSON.parse(U.tokenize(g, A));
3942
4044
  } catch (C) {
3943
4045
  return {
3944
4046
  success: !1,
3945
4047
  tokens: void 0,
3946
- error: `WASM tokenize failed: ${HA(C)}`
4048
+ error: `WASM tokenize failed: ${b(C)}`
3947
4049
  };
3948
4050
  }
3949
4051
  }
3950
- function TA(g, A = "generic") {
4052
+ function jA(g, A = "generic") {
3951
4053
  try {
3952
- if (typeof s.generate_value == "function" && Array.isArray(g))
3953
- return W(
3954
- s.generate_value(g, A)
4054
+ if (typeof U.generate_value == "function" && Array.isArray(g))
4055
+ return j(
4056
+ U.generate_value(g, A)
3955
4057
  );
3956
4058
  const C = JSON.stringify(g);
3957
- return JSON.parse(s.generate(C, A));
4059
+ return JSON.parse(U.generate(C, A));
3958
4060
  } catch (C) {
3959
4061
  return qA("generate", C);
3960
4062
  }
3961
4063
  }
3962
- function jA(g, A = "generic") {
3963
- return tA(g, A, {});
4064
+ function tA(g, A = "generic") {
4065
+ try {
4066
+ if (typeof U.generate_data_type_value == "function")
4067
+ return j(
4068
+ U.generate_data_type_value(g, A)
4069
+ );
4070
+ const C = JSON.stringify(g);
4071
+ return JSON.parse(
4072
+ U.generate_data_type(C, A)
4073
+ );
4074
+ } catch (C) {
4075
+ return vo("generateDataType", C);
4076
+ }
3964
4077
  }
3965
- function tA(g, A = "generic", C = {}) {
4078
+ function fA(g, A = "generic") {
4079
+ return dA(g, A, {});
4080
+ }
4081
+ function dA(g, A = "generic", C = {}) {
3966
4082
  try {
3967
- return typeof s.format_sql_with_options_value == "function" ? W(
3968
- s.format_sql_with_options_value(g, A, C)
3969
- ) : typeof s.format_sql_with_options == "function" ? JSON.parse(
3970
- s.format_sql_with_options(g, A, JSON.stringify(C))
3971
- ) : typeof s.format_sql_value == "function" ? W(
3972
- s.format_sql_value(g, A)
3973
- ) : JSON.parse(s.format_sql(g, A));
4083
+ return typeof U.format_sql_with_options_value == "function" ? j(
4084
+ U.format_sql_with_options_value(g, A, C)
4085
+ ) : typeof U.format_sql_with_options == "function" ? JSON.parse(
4086
+ U.format_sql_with_options(g, A, JSON.stringify(C))
4087
+ ) : typeof U.format_sql_value == "function" ? j(
4088
+ U.format_sql_value(g, A)
4089
+ ) : JSON.parse(U.format_sql(g, A));
3974
4090
  } catch (B) {
3975
4091
  return qA("format", B);
3976
4092
  }
3977
4093
  }
3978
- function fA() {
3979
- return typeof s.get_dialects_value == "function" ? W(s.get_dialects_value()) : JSON.parse(s.get_dialects());
4094
+ function zA() {
4095
+ return typeof U.get_dialects_value == "function" ? j(U.get_dialects_value()) : JSON.parse(U.get_dialects());
3980
4096
  }
3981
4097
  function ZA() {
3982
- return s.version();
4098
+ return U.version();
4099
+ }
4100
+ function eA(g, A = {}) {
4101
+ try {
4102
+ const C = SI(A);
4103
+ return typeof U.analyze_query_value == "function" ? j(
4104
+ U.analyze_query_value(g, C)
4105
+ ) : typeof U.analyze_query == "function" ? JSON.parse(
4106
+ U.analyze_query(g, JSON.stringify(C))
4107
+ ) : {
4108
+ success: !1,
4109
+ error: "analyze_query not available in this WASM build"
4110
+ };
4111
+ } catch (C) {
4112
+ return Xo("analyzeQuery", C);
4113
+ }
3983
4114
  }
3984
- function dA(g, A = "generic", C) {
4115
+ function xA(g, A = "generic", C) {
3985
4116
  try {
3986
4117
  const B = C ? JSON.stringify(C) : "";
3987
- return typeof s.annotate_types_value == "function" ? W(
3988
- s.annotate_types_value(g, A, B)
3989
- ) : typeof s.annotate_types == "function" ? JSON.parse(
3990
- s.annotate_types(g, A, B)
4118
+ return typeof U.annotate_types_value == "function" ? j(
4119
+ U.annotate_types_value(g, A, B)
4120
+ ) : typeof U.annotate_types == "function" ? JSON.parse(
4121
+ U.annotate_types(g, A, B)
3991
4122
  ) : {
3992
4123
  success: !1,
3993
4124
  error: "annotate_types not available in this WASM build"
@@ -3995,11 +4126,11 @@ function dA(g, A = "generic", C) {
3995
4126
  } catch (B) {
3996
4127
  return {
3997
4128
  success: !1,
3998
- error: `WASM annotate_types failed: ${HA(B)}`
4129
+ error: `WASM annotate_types failed: ${b(B)}`
3999
4130
  };
4000
4131
  }
4001
4132
  }
4002
- class u {
4133
+ class m {
4003
4134
  static instance = null;
4004
4135
  constructor() {
4005
4136
  }
@@ -4008,7 +4139,7 @@ class u {
4008
4139
  * The WASM module is automatically initialized on import.
4009
4140
  */
4010
4141
  static getInstance() {
4011
- return u.instance || (u.instance = new u()), u.instance;
4142
+ return m.instance || (m.instance = new m()), m.instance;
4012
4143
  }
4013
4144
  /**
4014
4145
  * Transpile SQL from one dialect to another.
@@ -4024,38 +4155,50 @@ class u {
4024
4155
  * Parse SQL into an AST.
4025
4156
  */
4026
4157
  parse(A, C = "generic") {
4027
- return OA(A, C);
4158
+ return PA(A, C);
4159
+ }
4160
+ /**
4161
+ * Parse a standalone SQL data type.
4162
+ */
4163
+ parseDataType(A, C = "generic") {
4164
+ return TA(A, C);
4028
4165
  }
4029
4166
  /**
4030
4167
  * Tokenize SQL into a token stream.
4031
4168
  */
4032
4169
  tokenize(A, C = "generic") {
4033
- return PA(A, C);
4170
+ return OA(A, C);
4034
4171
  }
4035
4172
  /**
4036
4173
  * Generate SQL from an AST.
4037
4174
  */
4038
4175
  generate(A, C = "generic") {
4039
- return TA(A, C);
4176
+ return jA(A, C);
4177
+ }
4178
+ /**
4179
+ * Generate SQL from a standalone DataType AST node.
4180
+ */
4181
+ generateDataType(A, C = "generic") {
4182
+ return tA(A, C);
4040
4183
  }
4041
4184
  /**
4042
4185
  * Format SQL.
4043
4186
  */
4044
4187
  format(A, C = "generic") {
4045
- return jA(A, C);
4188
+ return fA(A, C);
4046
4189
  }
4047
4190
  /**
4048
4191
  * Format SQL with explicit guard limits.
4049
4192
  */
4050
4193
  formatWithOptions(A, C = "generic", B = {}) {
4051
- return tA(A, C, B);
4194
+ return dA(A, C, B);
4052
4195
  }
4053
4196
  /**
4054
4197
  * Get supported dialects in this build.
4055
4198
  * Per-dialect builds return only `"generic"` and the selected dialect.
4056
4199
  */
4057
4200
  getDialects() {
4058
- return fA();
4201
+ return zA();
4059
4202
  }
4060
4203
  /**
4061
4204
  * Get library version.
@@ -4067,247 +4210,256 @@ class u {
4067
4210
  * Parse SQL and annotate the AST with inferred type information.
4068
4211
  */
4069
4212
  annotateTypes(A, C = "generic", B) {
4070
- return dA(A, C, B);
4213
+ return xA(A, C, B);
4214
+ }
4215
+ analyzeQuery(A, C = {}) {
4216
+ return eA(A, SI(C));
4071
4217
  }
4072
4218
  }
4073
- const Po = {
4074
- init: HI,
4075
- isInitialized: hI,
4219
+ const _o = {
4220
+ init: FI,
4221
+ isInitialized: JI,
4076
4222
  transpile: pA,
4077
- parse: OA,
4078
- tokenize: PA,
4079
- generate: TA,
4080
- format: jA,
4081
- annotateTypes: dA,
4082
- getDialects: fA,
4223
+ parse: PA,
4224
+ parseDataType: TA,
4225
+ tokenize: OA,
4226
+ generate: jA,
4227
+ generateDataType: tA,
4228
+ format: fA,
4229
+ annotateTypes: xA,
4230
+ analyzeQuery: eA,
4231
+ getDialects: zA,
4083
4232
  getVersion: ZA,
4084
- lineage: MI,
4085
- lineageWithSchema: NI,
4086
- getSourceTables: kI,
4087
- openLineageColumnLineage: yI,
4088
- openLineageJobEvent: KI,
4089
- openLineageRunEvent: GI,
4090
- diff: wI,
4091
- hasChanges: iI,
4092
- changesOnly: oI,
4093
- plan: YI,
4233
+ lineage: yI,
4234
+ lineageWithSchema: KI,
4235
+ getSourceTables: GI,
4236
+ openLineageColumnLineage: YI,
4237
+ openLineageJobEvent: HI,
4238
+ openLineageRunEvent: hI,
4239
+ diff: MI,
4240
+ hasChanges: NI,
4241
+ changesOnly: kI,
4242
+ plan: cI,
4094
4243
  Dialect: aA,
4095
- Polyglot: u
4096
- }, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4244
+ Polyglot: m
4245
+ }, $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4097
4246
  __proto__: null,
4098
- CaseBuilder: JA,
4099
- DeleteBuilder: QI,
4247
+ CaseBuilder: UA,
4248
+ DeleteBuilder: wI,
4100
4249
  Dialect: aA,
4101
4250
  Expr: S,
4102
- InsertBuilder: II,
4103
- MergeBuilder: DI,
4104
- Polyglot: u,
4105
- SelectBuilder: gI,
4106
- SetOpBuilder: _,
4107
- UpdateBuilder: BI,
4108
- ValidationSeverity: qo,
4109
- WindowDefBuilder: Hi,
4110
- abs: bi,
4111
- alias: Ji,
4112
- and: ai,
4113
- annotateTypes: dA,
4114
- ast: Yi,
4115
- avg: Ti,
4251
+ InsertBuilder: QI,
4252
+ MergeBuilder: oI,
4253
+ Polyglot: m,
4254
+ SelectBuilder: BI,
4255
+ SetOpBuilder: $,
4256
+ UpdateBuilder: DI,
4257
+ ValidationSeverity: ro,
4258
+ WindowDefBuilder: ji,
4259
+ abs: No,
4260
+ alias: Wi,
4261
+ analyzeQuery: eA,
4262
+ and: li,
4263
+ annotateTypes: xA,
4264
+ ast: Oi,
4265
+ avg: bi,
4116
4266
  boolean: RA,
4117
- caseOf: So,
4118
- caseWhen: ho,
4119
- cast: Ri,
4120
- ceil: $i,
4121
- changesOnly: oI,
4122
- coalesce: ui,
4123
- col: hi,
4124
- concatWs: ri,
4125
- condition: Ui,
4126
- count: pi,
4127
- countDistinct: Oi,
4128
- currentDate: Do,
4129
- currentTime: wo,
4130
- currentTimestamp: io,
4131
- default: Po,
4132
- del: Yo,
4133
- deleteFrom: EI,
4134
- denseRank: ko,
4135
- diff: wI,
4136
- except: Fo,
4137
- exp: Co,
4138
- extract: oo,
4139
- findAll: YA,
4140
- floor: _i,
4141
- format: jA,
4142
- formatWithOptions: tA,
4143
- func: J,
4144
- generate: TA,
4145
- getColumns: vg,
4146
- getDialects: fA,
4147
- getInferredType: Zg,
4148
- getSourceTables: kI,
4267
+ caseOf: fo,
4268
+ caseWhen: to,
4269
+ cast: xi,
4270
+ ceil: Ko,
4271
+ changesOnly: kI,
4272
+ coalesce: io,
4273
+ col: ti,
4274
+ concatWs: wo,
4275
+ condition: Zi,
4276
+ count: ri,
4277
+ countDistinct: mi,
4278
+ currentDate: Jo,
4279
+ currentTime: Lo,
4280
+ currentTimestamp: Ro,
4281
+ default: _o,
4282
+ del: Oo,
4283
+ deleteFrom: iI,
4284
+ denseRank: qo,
4285
+ diff: MI,
4286
+ except: xo,
4287
+ exp: ho,
4288
+ extract: Uo,
4289
+ findAll: HA,
4290
+ floor: yo,
4291
+ format: fA,
4292
+ formatWithOptions: dA,
4293
+ func: s,
4294
+ generate: jA,
4295
+ generateDataType: tA,
4296
+ getColumns: _g,
4297
+ getDialects: zA,
4298
+ getInferredType: eg,
4299
+ getSourceTables: GI,
4149
4300
  getVersion: ZA,
4150
- greatest: Qo,
4151
- hasChanges: iI,
4152
- ifNull: vi,
4153
- init: HI,
4154
- initcap: Wi,
4155
- insert: Ko,
4156
- insertInto: CI,
4157
- intersect: Uo,
4158
- isColumn: zg,
4159
- isFunction: xg,
4160
- isInitialized: hI,
4301
+ greatest: So,
4302
+ hasChanges: NI,
4303
+ ifNull: Mo,
4304
+ init: FI,
4305
+ initcap: Qo,
4306
+ insert: Po,
4307
+ insertInto: EI,
4308
+ intersect: eo,
4309
+ isColumn: Wg,
4310
+ isFunction: lg,
4311
+ isInitialized: JI,
4161
4312
  isLiteral: Vg,
4162
- isSelect: dg,
4163
- least: Eo,
4164
- length: di,
4165
- lineage: MI,
4166
- lineageWithSchema: NI,
4167
- lit: Si,
4168
- ln: Io,
4169
- lower: Zi,
4170
- ltrim: Vi,
4171
- max: ti,
4172
- mergeInto: Ho,
4173
- min: ji,
4174
- not: Fi,
4175
- nullIf: mi,
4176
- openLineageColumnLineage: yI,
4177
- openLineageJobEvent: KI,
4178
- openLineageRunEvent: GI,
4179
- or: qi,
4180
- parse: OA,
4181
- plan: YI,
4182
- power: Ao,
4183
- rank: No,
4184
- renameColumns: lg,
4185
- replace: ni,
4186
- reverse: ei,
4187
- round: Xi,
4188
- rowNumber: Mo,
4189
- rtrim: xi,
4190
- select: yo,
4191
- sign: Bo,
4192
- sqlExpr: AI,
4193
- sqlNull: ci,
4194
- sqrt: go,
4195
- star: $g,
4196
- subquery: si,
4197
- substring: li,
4198
- sum: Pi,
4199
- table: Li,
4200
- tokenize: PA,
4201
- transform: GA,
4313
+ isSelect: xg,
4314
+ least: Fo,
4315
+ length: Ao,
4316
+ lineage: yI,
4317
+ lineageWithSchema: KI,
4318
+ lit: fi,
4319
+ ln: Ho,
4320
+ lower: $i,
4321
+ ltrim: Io,
4322
+ max: Xi,
4323
+ mergeInto: jo,
4324
+ min: vi,
4325
+ not: ei,
4326
+ nullIf: oo,
4327
+ openLineageColumnLineage: YI,
4328
+ openLineageJobEvent: HI,
4329
+ openLineageRunEvent: hI,
4330
+ or: ni,
4331
+ parse: PA,
4332
+ parseDataType: TA,
4333
+ plan: cI,
4334
+ power: Go,
4335
+ rank: ao,
4336
+ renameColumns: mg,
4337
+ replace: Do,
4338
+ reverse: Bo,
4339
+ round: ko,
4340
+ rowNumber: so,
4341
+ rtrim: Co,
4342
+ select: po,
4343
+ sign: co,
4344
+ sqlExpr: CI,
4345
+ sqlNull: di,
4346
+ sqrt: Yo,
4347
+ star: II,
4348
+ subquery: Vi,
4349
+ substring: Eo,
4350
+ sum: ui,
4351
+ table: zi,
4352
+ tokenize: OA,
4353
+ transform: YA,
4202
4354
  transpile: pA,
4203
- trim: zi,
4204
- union: co,
4205
- unionAll: Lo,
4206
- update: Go,
4207
- upper: fi,
4208
- validate: po,
4209
- validateWithSchema: ao,
4210
- walk: f
4355
+ trim: go,
4356
+ union: zo,
4357
+ unionAll: Zo,
4358
+ update: To,
4359
+ upper: _i,
4360
+ validate: mo,
4361
+ validateWithSchema: no,
4362
+ walk: d
4211
4363
  }, Symbol.toStringTag, { value: "Module" }));
4212
4364
  export {
4213
- JA as CaseBuilder,
4214
- QI as DeleteBuilder,
4365
+ UA as CaseBuilder,
4366
+ wI as DeleteBuilder,
4215
4367
  aA as Dialect,
4216
4368
  S as Expr,
4217
- II as InsertBuilder,
4218
- DI as MergeBuilder,
4219
- u as Polyglot,
4220
- gI as SelectBuilder,
4221
- _ as SetOpBuilder,
4222
- BI as UpdateBuilder,
4223
- qo as ValidationSeverity,
4224
- bi as abs,
4225
- Ji as alias,
4226
- ai as and,
4227
- dA as annotateTypes,
4228
- Yi as ast,
4229
- Ti as avg,
4369
+ QI as InsertBuilder,
4370
+ oI as MergeBuilder,
4371
+ m as Polyglot,
4372
+ BI as SelectBuilder,
4373
+ $ as SetOpBuilder,
4374
+ DI as UpdateBuilder,
4375
+ ro as ValidationSeverity,
4376
+ No as abs,
4377
+ Wi as alias,
4378
+ li as and,
4379
+ xA as annotateTypes,
4380
+ Oi as ast,
4381
+ bi as avg,
4230
4382
  RA as boolean,
4231
- So as caseOf,
4232
- ho as caseWhen,
4233
- Ri as cast,
4234
- $i as ceil,
4235
- ui as coalesce,
4236
- hi as col,
4237
- ri as concatWs,
4238
- Ui as condition,
4239
- pi as count,
4240
- Oi as countDistinct,
4241
- Do as currentDate,
4242
- wo as currentTime,
4243
- io as currentTimestamp,
4244
- To as default,
4245
- Yo as del,
4246
- EI as deleteFrom,
4247
- ko as denseRank,
4248
- Fo as except,
4249
- Co as exp,
4250
- oo as extract,
4251
- YA as findAll,
4252
- _i as floor,
4253
- jA as format,
4254
- tA as formatWithOptions,
4255
- J as func,
4256
- TA as generate,
4257
- vg as getColumns,
4258
- fA as getDialects,
4259
- Zg as getInferredType,
4383
+ fo as caseOf,
4384
+ to as caseWhen,
4385
+ xi as cast,
4386
+ Ko as ceil,
4387
+ io as coalesce,
4388
+ ti as col,
4389
+ wo as concatWs,
4390
+ Zi as condition,
4391
+ ri as count,
4392
+ mi as countDistinct,
4393
+ Jo as currentDate,
4394
+ Lo as currentTime,
4395
+ Ro as currentTimestamp,
4396
+ $o as default,
4397
+ Oo as del,
4398
+ iI as deleteFrom,
4399
+ qo as denseRank,
4400
+ xo as except,
4401
+ ho as exp,
4402
+ Uo as extract,
4403
+ HA as findAll,
4404
+ yo as floor,
4405
+ fA as format,
4406
+ dA as formatWithOptions,
4407
+ s as func,
4408
+ jA as generate,
4409
+ _g as getColumns,
4410
+ zA as getDialects,
4411
+ eg as getInferredType,
4260
4412
  ZA as getVersion,
4261
- Qo as greatest,
4262
- vi as ifNull,
4263
- HI as init,
4264
- Wi as initcap,
4265
- Ko as insert,
4266
- CI as insertInto,
4267
- Uo as intersect,
4268
- zg as isColumn,
4269
- xg as isFunction,
4270
- hI as isInitialized,
4413
+ So as greatest,
4414
+ Mo as ifNull,
4415
+ FI as init,
4416
+ Qo as initcap,
4417
+ Po as insert,
4418
+ EI as insertInto,
4419
+ eo as intersect,
4420
+ Wg as isColumn,
4421
+ lg as isFunction,
4422
+ JI as isInitialized,
4271
4423
  Vg as isLiteral,
4272
- dg as isSelect,
4273
- Eo as least,
4274
- di as length,
4275
- Si as lit,
4276
- Io as ln,
4277
- Zi as lower,
4278
- Vi as ltrim,
4279
- ti as max,
4280
- Ho as mergeInto,
4281
- ji as min,
4282
- Fi as not,
4283
- mi as nullIf,
4284
- qi as or,
4285
- OA as parse,
4286
- Ao as power,
4287
- No as rank,
4288
- lg as renameColumns,
4289
- ni as replace,
4290
- ei as reverse,
4291
- Xi as round,
4292
- Mo as rowNumber,
4293
- xi as rtrim,
4294
- yo as select,
4295
- Bo as sign,
4296
- AI as sqlExpr,
4297
- ci as sqlNull,
4298
- go as sqrt,
4299
- $g as star,
4300
- li as substring,
4301
- Pi as sum,
4302
- Li as table,
4303
- GA as transform,
4424
+ xg as isSelect,
4425
+ Fo as least,
4426
+ Ao as length,
4427
+ fi as lit,
4428
+ Ho as ln,
4429
+ $i as lower,
4430
+ Io as ltrim,
4431
+ Xi as max,
4432
+ jo as mergeInto,
4433
+ vi as min,
4434
+ ei as not,
4435
+ oo as nullIf,
4436
+ ni as or,
4437
+ PA as parse,
4438
+ Go as power,
4439
+ ao as rank,
4440
+ mg as renameColumns,
4441
+ Do as replace,
4442
+ Bo as reverse,
4443
+ ko as round,
4444
+ so as rowNumber,
4445
+ Co as rtrim,
4446
+ po as select,
4447
+ co as sign,
4448
+ CI as sqlExpr,
4449
+ di as sqlNull,
4450
+ Yo as sqrt,
4451
+ II as star,
4452
+ Eo as substring,
4453
+ ui as sum,
4454
+ zi as table,
4455
+ YA as transform,
4304
4456
  pA as transpile,
4305
- zi as trim,
4306
- co as union,
4307
- Lo as unionAll,
4308
- Go as update,
4309
- fi as upper,
4310
- po as validate,
4311
- ao as validateWithSchema,
4312
- f as walk
4457
+ go as trim,
4458
+ zo as union,
4459
+ Zo as unionAll,
4460
+ To as update,
4461
+ _i as upper,
4462
+ mo as validate,
4463
+ no as validateWithSchema,
4464
+ d as walk
4313
4465
  };