@polyglot-sql/sdk 0.5.4 → 0.5.5

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.
@@ -605,7 +605,7 @@ class iA {
605
605
  query(A) {
606
606
  try {
607
607
  const Q = I.__wbindgen_add_to_stack_pointer(-16);
608
- H(A, d), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
608
+ H(A, Z), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
609
609
  var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
610
610
  if (B)
611
611
  throw U(C);
@@ -724,7 +724,7 @@ class NA {
724
724
  }
725
725
  }
726
726
  Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
727
- class d {
727
+ class Z {
728
728
  __destroy_into_raw() {
729
729
  const A = this.__wbg_ptr;
730
730
  return this.__wbg_ptr = 0, vA.unregister(this), A;
@@ -783,8 +783,8 @@ class d {
783
783
  ctas_sql(A, C) {
784
784
  let B, Q;
785
785
  try {
786
- const S = I.__wbindgen_add_to_stack_pointer(-16), L = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, T = o(C, I.__wbindgen_export, I.__wbindgen_export2), e = N;
787
- I.wasmselectbuilder_ctas_sql(S, this.__wbg_ptr, L, q, T, e);
786
+ const S = I.__wbindgen_add_to_stack_pointer(-16), L = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, j = o(C, I.__wbindgen_export, I.__wbindgen_export2), e = N;
787
+ I.wasmselectbuilder_ctas_sql(S, this.__wbg_ptr, L, q, j, e);
788
788
  var E = M().getInt32(S + 0, !0), D = M().getInt32(S + 4, !0), i = M().getInt32(S + 8, !0), k = M().getInt32(S + 12, !0), K = E, y = D;
789
789
  if (k)
790
790
  throw K = 0, y = 0, U(i);
@@ -807,7 +807,7 @@ class d {
807
807
  except_(A) {
808
808
  try {
809
809
  const E = I.__wbindgen_add_to_stack_pointer(-16);
810
- H(A, d), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
810
+ H(A, Z), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
811
811
  var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
812
812
  if (Q)
813
813
  throw U(B);
@@ -867,7 +867,7 @@ class d {
867
867
  intersect(A) {
868
868
  try {
869
869
  const E = I.__wbindgen_add_to_stack_pointer(-16);
870
- H(A, d), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
870
+ H(A, Z), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
871
871
  var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
872
872
  if (Q)
873
873
  throw U(B);
@@ -1010,7 +1010,7 @@ class d {
1010
1010
  union(A) {
1011
1011
  try {
1012
1012
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1013
- H(A, d), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1013
+ H(A, Z), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1014
1014
  var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1015
1015
  if (Q)
1016
1016
  throw U(B);
@@ -1027,7 +1027,7 @@ class d {
1027
1027
  union_all(A) {
1028
1028
  try {
1029
1029
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1030
- H(A, d), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1030
+ H(A, Z), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1031
1031
  var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1032
1032
  if (Q)
1033
1033
  throw U(B);
@@ -1068,7 +1068,7 @@ class d {
1068
1068
  }
1069
1069
  }
1070
1070
  }
1071
- Symbol.dispose && (d.prototype[Symbol.dispose] = d.prototype.free);
1071
+ Symbol.dispose && (Z.prototype[Symbol.dispose] = Z.prototype.free);
1072
1072
  class V {
1073
1073
  static __wrap(A) {
1074
1074
  A = A >>> 0;
@@ -1264,7 +1264,7 @@ function PI(g, A) {
1264
1264
  const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, Q = I.analyze_query_value(C, B, a(A));
1265
1265
  return U(Q);
1266
1266
  }
1267
- function TI(g, A, C) {
1267
+ function jI(g, A, C) {
1268
1268
  let B, Q;
1269
1269
  try {
1270
1270
  const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), S = N, L = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
@@ -1275,7 +1275,7 @@ function TI(g, A, C) {
1275
1275
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1276
1276
  }
1277
1277
  }
1278
- function jI(g, A, C) {
1278
+ function TI(g, A, C) {
1279
1279
  const B = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = o(C, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = I.annotate_types_value(B, Q, E, D, i, k);
1280
1280
  return U(K);
1281
1281
  }
@@ -1502,8 +1502,8 @@ function Sg(g, A) {
1502
1502
  function cg(g, A, C, B, Q, E) {
1503
1503
  let D, i;
1504
1504
  try {
1505
- const y = I.__wbindgen_add_to_stack_pointer(-16), S = o(g, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(A, I.__wbindgen_export, I.__wbindgen_export2), T = N, e = o(C, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1506
- I.diff_sql(y, S, L, q, T, e, n, B, Q, E);
1505
+ const y = I.__wbindgen_add_to_stack_pointer(-16), S = o(g, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(A, I.__wbindgen_export, I.__wbindgen_export2), j = N, e = o(C, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1506
+ I.diff_sql(y, S, L, q, j, e, n, B, Q, E);
1507
1507
  var k = M().getInt32(y + 0, !0), K = M().getInt32(y + 4, !0);
1508
1508
  return D = k, i = K, c(k, K);
1509
1509
  } finally {
@@ -1525,7 +1525,7 @@ function fI(g, A) {
1525
1525
  const C = o(g, I.__wbindgen_export, I.__wbindgen_export2), B = N, Q = o(A, I.__wbindgen_export, I.__wbindgen_export2), E = N, D = I.format_sql_value(C, B, Q, E);
1526
1526
  return U(D);
1527
1527
  }
1528
- function dI(g, A, C) {
1528
+ function ZI(g, A, C) {
1529
1529
  let B, Q;
1530
1530
  try {
1531
1531
  const i = I.__wbindgen_add_to_stack_pointer(-16), k = o(g, I.__wbindgen_export, I.__wbindgen_export2), K = N, y = o(A, I.__wbindgen_export, I.__wbindgen_export2), S = N, L = o(C, I.__wbindgen_export, I.__wbindgen_export2), q = N;
@@ -1540,7 +1540,7 @@ function zI(g, A, C) {
1540
1540
  const B = o(g, I.__wbindgen_export, I.__wbindgen_export2), Q = N, E = o(A, I.__wbindgen_export, I.__wbindgen_export2), D = N, i = I.format_sql_with_options_value(B, Q, E, D, a(C));
1541
1541
  return U(i);
1542
1542
  }
1543
- function ZI(g, A) {
1543
+ function dI(g, A) {
1544
1544
  let C, B;
1545
1545
  try {
1546
1546
  const D = I.__wbindgen_add_to_stack_pointer(-16), i = o(g, I.__wbindgen_export, I.__wbindgen_export2), k = N, K = o(A, I.__wbindgen_export, I.__wbindgen_export2), y = N;
@@ -1588,8 +1588,8 @@ function lI() {
1588
1588
  function hg(g, A, C, B) {
1589
1589
  let Q, E;
1590
1590
  try {
1591
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), T = N;
1592
- I.lineage_sql(k, K, y, S, L, q, T, B);
1591
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), j = N;
1592
+ I.lineage_sql(k, K, y, S, L, q, j, B);
1593
1593
  var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1594
1594
  return Q = D, E = i, c(D, i);
1595
1595
  } finally {
@@ -1599,8 +1599,8 @@ function hg(g, A, C, B) {
1599
1599
  function Ug(g, A, C, B, Q) {
1600
1600
  let E, D;
1601
1601
  try {
1602
- const K = I.__wbindgen_add_to_stack_pointer(-16), y = o(g, I.__wbindgen_export, I.__wbindgen_export2), S = N, L = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, T = o(C, I.__wbindgen_export, I.__wbindgen_export2), e = N, n = o(B, I.__wbindgen_export, I.__wbindgen_export2), aI = N;
1603
- I.lineage_sql_with_schema(K, y, S, L, q, T, e, n, aI, Q);
1602
+ const K = I.__wbindgen_add_to_stack_pointer(-16), y = o(g, I.__wbindgen_export, I.__wbindgen_export2), S = N, L = o(A, I.__wbindgen_export, I.__wbindgen_export2), q = N, j = o(C, I.__wbindgen_export, I.__wbindgen_export2), e = N, n = o(B, I.__wbindgen_export, I.__wbindgen_export2), aI = N;
1603
+ I.lineage_sql_with_schema(K, y, S, L, q, j, e, n, aI, Q);
1604
1604
  var i = M().getInt32(K + 0, !0), k = M().getInt32(K + 4, !0);
1605
1605
  return E = i, D = k, c(i, k);
1606
1606
  } finally {
@@ -1725,8 +1725,8 @@ function _I(g, A, C) {
1725
1725
  function $I(g, A, C, B) {
1726
1726
  let Q, E;
1727
1727
  try {
1728
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), T = N, e = o(B, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1729
- I.transpile_with_options(k, K, y, S, L, q, T, e, n);
1728
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), j = N, e = o(B, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1729
+ I.transpile_with_options(k, K, y, S, L, q, j, e, n);
1730
1730
  var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1731
1731
  return Q = D, E = i, c(D, i);
1732
1732
  } finally {
@@ -1762,8 +1762,8 @@ function IC(g, A, C) {
1762
1762
  function ag(g, A, C, B) {
1763
1763
  let Q, E;
1764
1764
  try {
1765
- const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), T = N, e = o(B, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1766
- I.validate_with_schema(k, K, y, S, L, q, T, e, n);
1765
+ const k = I.__wbindgen_add_to_stack_pointer(-16), K = o(g, I.__wbindgen_export, I.__wbindgen_export2), y = N, S = o(A, I.__wbindgen_export, I.__wbindgen_export2), L = N, q = o(C, I.__wbindgen_export, I.__wbindgen_export2), j = N, e = o(B, I.__wbindgen_export, I.__wbindgen_export2), n = N;
1766
+ I.validate_with_schema(k, K, y, S, L, q, j, e, n);
1767
1767
  var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1768
1768
  return Q = D, E = i, c(D, i);
1769
1769
  } finally {
@@ -1800,7 +1800,7 @@ function Pg(g) {
1800
1800
  const A = I.wasm_case_of(g.__wbg_ptr);
1801
1801
  return u.__wrap(A);
1802
1802
  }
1803
- function Tg(g, A) {
1803
+ function jg(g, A) {
1804
1804
  H(g, G);
1805
1805
  const C = o(A, I.__wbindgen_export, I.__wbindgen_export2), B = N, Q = I.wasm_cast(g.__wbg_ptr, C, B);
1806
1806
  return G.__wrap(Q);
@@ -1809,7 +1809,7 @@ function JA(g) {
1809
1809
  const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, B = I.wasm_col(A, C);
1810
1810
  return G.__wrap(B);
1811
1811
  }
1812
- function jg(g) {
1812
+ function Tg(g) {
1813
1813
  H(g, G);
1814
1814
  const A = I.wasm_count_distinct(g.__wbg_ptr);
1815
1815
  return G.__wrap(A);
@@ -1830,7 +1830,7 @@ function kA(g) {
1830
1830
  const A = I.wasm_lit(a(g));
1831
1831
  return G.__wrap(A);
1832
1832
  }
1833
- function dg(g) {
1833
+ function Zg(g) {
1834
1834
  H(g, G);
1835
1835
  const A = I.wasm_not(g.__wbg_ptr);
1836
1836
  return G.__wrap(A);
@@ -1844,7 +1844,7 @@ function zg(g, A) {
1844
1844
  const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
1845
1845
  return G.__wrap(C);
1846
1846
  }
1847
- function Zg(g) {
1847
+ function dg(g) {
1848
1848
  const A = o(g, I.__wbindgen_export, I.__wbindgen_export2), C = N, B = I.wasm_sql_expr(A, C);
1849
1849
  return G.__wrap(B);
1850
1850
  }
@@ -1855,7 +1855,7 @@ function xg() {
1855
1855
  function eg(g, A) {
1856
1856
  try {
1857
1857
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1858
- H(g, d);
1858
+ H(g, Z);
1859
1859
  const D = o(A, I.__wbindgen_export, I.__wbindgen_export2), i = N;
1860
1860
  I.wasm_subquery(E, g.__wbg_ptr, D, i);
1861
1861
  var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
@@ -2001,10 +2001,10 @@ function PC(g) {
2001
2001
  }
2002
2002
  return A;
2003
2003
  }
2004
- function TC(g) {
2004
+ function jC(g) {
2005
2005
  return Array.isArray(J(g));
2006
2006
  }
2007
- function jC(g) {
2007
+ function TC(g) {
2008
2008
  return Number.isSafeInteger(J(g));
2009
2009
  }
2010
2010
  function tC() {
@@ -2013,14 +2013,14 @@ function tC() {
2013
2013
  function fC(g) {
2014
2014
  return J(g).length;
2015
2015
  }
2016
- function dC(g) {
2016
+ function ZC(g) {
2017
2017
  return J(g).length;
2018
2018
  }
2019
2019
  function zC() {
2020
2020
  const g = new Object();
2021
2021
  return a(g);
2022
2022
  }
2023
- function ZC() {
2023
+ function dC() {
2024
2024
  const g = new Array();
2025
2025
  return a(g);
2026
2026
  }
@@ -2259,11 +2259,11 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2259
2259
  __wbg_new_dca287b076112a51: eC,
2260
2260
  __wbg_set_1eb0999cf5d27fc8: nC,
2261
2261
  __wbg_get_9b94d73e6221f75c: sC,
2262
- __wbg_new_3eb36ae241fe6f44: ZC,
2262
+ __wbg_new_3eb36ae241fe6f44: dC,
2263
2263
  __wbg_set_f43e577aea94465b: uC,
2264
- __wbg_length_35a7bace40f36eac: dC,
2265
- __wbg_isArray_d314bb98fcf08331: TC,
2266
- __wbg_isSafeInteger_bfbc7332a9768d2a: jC,
2264
+ __wbg_length_35a7bace40f36eac: ZC,
2265
+ __wbg_isArray_d314bb98fcf08331: jC,
2266
+ __wbg_isSafeInteger_bfbc7332a9768d2a: TC,
2267
2267
  __wbg_new_361308b2356cecd0: zC,
2268
2268
  __wbg_entries_58c7934c745daac7: FC,
2269
2269
  __wbg_iterator_6ff6560ca1568e55: tC,
@@ -2293,7 +2293,7 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2293
2293
  __wbindgen_cast_0000000000000002: _C,
2294
2294
  __wbindgen_cast_0000000000000003: $C,
2295
2295
  __wbindgen_cast_0000000000000004: AB
2296
- } }, qI), wB = w.memory, MB = w.__wbg_wasmassignmentarray_free, iB = w.__wbg_wasmcasebuilder_free, NB = w.__wbg_wasmdeletebuilder_free, oB = w.__wbg_wasmexpr_free, kB = w.__wbg_wasmexprarray_free, yB = w.__wbg_wasminsertbuilder_free, KB = w.__wbg_wasmmergebuilder_free, GB = w.__wbg_wasmselectbuilder_free, YB = w.__wbg_wasmsetopbuilder_free, HB = w.__wbg_wasmupdatebuilder_free, SB = w.__wbg_wasmwindowdefbuilder_free, cB = w.analyze_query, hB = w.analyze_query_value, UB = w.annotate_types, JB = w.annotate_types_value, FB = w.ast_add_where, LB = w.ast_get_aggregate_functions, RB = w.ast_get_column_names, sB = w.ast_get_functions, aB = w.ast_get_literals, qB = w.ast_get_subqueries, pB = w.ast_get_table_names, OB = w.ast_get_tables, PB = w.ast_get_window_functions, TB = w.ast_node_count, jB = w.ast_qualify_columns, tB = w.ast_qualify_tables, fB = w.ast_remove_where, dB = w.ast_rename_columns, zB = w.ast_rename_tables, ZB = w.ast_rename_tables_with_options, xB = w.ast_set_distinct, eB = w.ast_set_limit, WB = w.ast_set_offset, VB = w.ast_set_order_by, lB = w.diff_sql, rB = w.format_sql, nB = w.format_sql_value, mB = w.format_sql_with_options, uB = w.format_sql_with_options_value, vB = w.generate, bB = w.generate_data_type, XB = w.generate_data_type_value, _B = w.generate_value, $B = w.get_dialects, AQ = w.get_dialects_value, gQ = w.lineage_sql, IQ = w.lineage_sql_with_schema, CQ = w.openlineage_column_lineage, BQ = w.openlineage_job_event, QQ = w.openlineage_run_event, EQ = w.parse, DQ = w.parse_data_type, wQ = w.parse_data_type_value, MQ = w.parse_value, iQ = w.plan, NQ = w.source_tables, oQ = w.tokenize, kQ = w.tokenize_value, yQ = w.transpile, KQ = w.transpile_value, GQ = w.transpile_with_options, YQ = w.transpile_with_options_value, HQ = w.validate, SQ = w.validate_with_options, cQ = w.validate_with_schema, hQ = w.version, UQ = w.wasm_alias, JQ = w.wasm_and, FQ = w.wasm_boolean, LQ = w.wasm_case_of, RQ = w.wasm_cast, sQ = w.wasm_col, aQ = w.wasm_count_distinct, qQ = w.wasm_extract, pQ = w.wasm_func, OQ = w.wasm_lit, PQ = w.wasm_not, TQ = w.wasm_null, jQ = w.wasm_or, tQ = w.wasm_sql_expr, fQ = w.wasm_star, dQ = w.wasm_subquery, zQ = w.wasm_table, ZQ = w.wasmassignmentarray_len, xQ = w.wasmassignmentarray_new, eQ = w.wasmassignmentarray_push, WQ = w.wasmcasebuilder_build_expr, VQ = w.wasmcasebuilder_else_, lQ = w.wasmcasebuilder_new, rQ = w.wasmcasebuilder_to_sql, nQ = w.wasmcasebuilder_when, mQ = w.wasmdeletebuilder_build, uQ = w.wasmdeletebuilder_new, vQ = w.wasmdeletebuilder_to_sql, bQ = w.wasmdeletebuilder_where_expr, XQ = w.wasmexpr_add, _Q = w.wasmexpr_alias, $Q = w.wasmexpr_and, AE = w.wasmexpr_asc, gE = w.wasmexpr_between, IE = w.wasmexpr_cast, CE = w.wasmexpr_desc, BE = w.wasmexpr_div, QE = w.wasmexpr_eq, EE = w.wasmexpr_gt, DE = w.wasmexpr_gte, wE = w.wasmexpr_ilike, ME = w.wasmexpr_in_list, iE = w.wasmexpr_is_not_null, NE = w.wasmexpr_is_null, oE = w.wasmexpr_like, kE = w.wasmexpr_lt, yE = w.wasmexpr_lte, KE = w.wasmexpr_mul, GE = w.wasmexpr_neq, YE = w.wasmexpr_not, HE = w.wasmexpr_not_in, SE = w.wasmexpr_or, cE = w.wasmexpr_rlike, hE = w.wasmexpr_sub, UE = w.wasmexpr_to_json, JE = w.wasmexpr_to_sql, FE = w.wasmexpr_xor, LE = w.wasmexprarray_len, RE = w.wasmexprarray_push, sE = w.wasmexprarray_push_col, aE = w.wasmexprarray_push_float, qE = w.wasmexprarray_push_int, pE = w.wasmexprarray_push_star, OE = w.wasmexprarray_push_str, PE = w.wasminsertbuilder_build, TE = w.wasminsertbuilder_columns, jE = w.wasminsertbuilder_new, tE = w.wasminsertbuilder_query, fE = w.wasminsertbuilder_to_sql, dE = w.wasminsertbuilder_values, zE = w.wasmmergebuilder_build, ZE = w.wasmmergebuilder_new, xE = w.wasmmergebuilder_to_sql, eE = w.wasmmergebuilder_using, WE = w.wasmmergebuilder_when_matched_delete, VE = w.wasmmergebuilder_when_matched_update, lE = w.wasmmergebuilder_when_not_matched_insert, rE = w.wasmselectbuilder_build, nE = w.wasmselectbuilder_cross_join, mE = w.wasmselectbuilder_ctas, uE = w.wasmselectbuilder_ctas_sql, vE = w.wasmselectbuilder_distinct, bE = w.wasmselectbuilder_except_, XE = w.wasmselectbuilder_for_update, _E = w.wasmselectbuilder_from, $E = w.wasmselectbuilder_from_expr, AD = w.wasmselectbuilder_group_by_cols, gD = w.wasmselectbuilder_having, ID = w.wasmselectbuilder_hint, CD = w.wasmselectbuilder_intersect, BD = w.wasmselectbuilder_join, QD = w.wasmselectbuilder_lateral_view, ED = w.wasmselectbuilder_left_join, DD = w.wasmselectbuilder_limit, wD = w.wasmselectbuilder_new, MD = w.wasmselectbuilder_offset, iD = w.wasmselectbuilder_order_by_exprs, ND = w.wasmselectbuilder_qualify, oD = w.wasmselectbuilder_right_join, kD = w.wasmselectbuilder_select_col, yD = w.wasmselectbuilder_select_expr, KD = w.wasmselectbuilder_select_exprs, GD = w.wasmselectbuilder_select_star, YD = w.wasmselectbuilder_sort_by_exprs, HD = w.wasmselectbuilder_to_sql, SD = w.wasmselectbuilder_union, cD = w.wasmselectbuilder_union_all, hD = w.wasmselectbuilder_where_expr, UD = w.wasmselectbuilder_where_sql, JD = w.wasmselectbuilder_window, FD = w.wasmsetopbuilder_build, LD = w.wasmsetopbuilder_limit, RD = w.wasmsetopbuilder_offset, sD = w.wasmsetopbuilder_order_by_exprs, aD = w.wasmsetopbuilder_to_sql, qD = w.wasmupdatebuilder_build, pD = w.wasmupdatebuilder_from, OD = w.wasmupdatebuilder_new, PD = w.wasmupdatebuilder_set, TD = w.wasmupdatebuilder_to_sql, jD = w.wasmupdatebuilder_where_expr, tD = w.wasmwindowdefbuilder_new, fD = w.wasmwindowdefbuilder_order_by, dD = w.wasmwindowdefbuilder_partition_by, zD = w.wasmexprarray_new, ZD = w.__wbindgen_export, xD = w.__wbindgen_export2, eD = w.__wbindgen_export3, WD = w.__wbindgen_export4, VD = w.__wbindgen_add_to_stack_pointer, lD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2296
+ } }, qI), wB = w.memory, MB = w.__wbg_wasmassignmentarray_free, iB = w.__wbg_wasmcasebuilder_free, NB = w.__wbg_wasmdeletebuilder_free, oB = w.__wbg_wasmexpr_free, kB = w.__wbg_wasmexprarray_free, yB = w.__wbg_wasminsertbuilder_free, KB = w.__wbg_wasmmergebuilder_free, GB = w.__wbg_wasmselectbuilder_free, YB = w.__wbg_wasmsetopbuilder_free, HB = w.__wbg_wasmupdatebuilder_free, SB = w.__wbg_wasmwindowdefbuilder_free, cB = w.analyze_query, hB = w.analyze_query_value, UB = w.annotate_types, JB = w.annotate_types_value, FB = w.ast_add_where, LB = w.ast_get_aggregate_functions, RB = w.ast_get_column_names, sB = w.ast_get_functions, aB = w.ast_get_literals, qB = w.ast_get_subqueries, pB = w.ast_get_table_names, OB = w.ast_get_tables, PB = w.ast_get_window_functions, jB = w.ast_node_count, TB = w.ast_qualify_columns, tB = w.ast_qualify_tables, fB = w.ast_remove_where, ZB = w.ast_rename_columns, zB = w.ast_rename_tables, dB = w.ast_rename_tables_with_options, xB = w.ast_set_distinct, eB = w.ast_set_limit, WB = w.ast_set_offset, VB = w.ast_set_order_by, lB = w.diff_sql, rB = w.format_sql, nB = w.format_sql_value, mB = w.format_sql_with_options, uB = w.format_sql_with_options_value, vB = w.generate, bB = w.generate_data_type, XB = w.generate_data_type_value, _B = w.generate_value, $B = w.get_dialects, AQ = w.get_dialects_value, gQ = w.lineage_sql, IQ = w.lineage_sql_with_schema, CQ = w.openlineage_column_lineage, BQ = w.openlineage_job_event, QQ = w.openlineage_run_event, EQ = w.parse, DQ = w.parse_data_type, wQ = w.parse_data_type_value, MQ = w.parse_value, iQ = w.plan, NQ = w.source_tables, oQ = w.tokenize, kQ = w.tokenize_value, yQ = w.transpile, KQ = w.transpile_value, GQ = w.transpile_with_options, YQ = w.transpile_with_options_value, HQ = w.validate, SQ = w.validate_with_options, cQ = w.validate_with_schema, hQ = w.version, UQ = w.wasm_alias, JQ = w.wasm_and, FQ = w.wasm_boolean, LQ = w.wasm_case_of, RQ = w.wasm_cast, sQ = w.wasm_col, aQ = w.wasm_count_distinct, qQ = w.wasm_extract, pQ = w.wasm_func, OQ = w.wasm_lit, PQ = w.wasm_not, jQ = w.wasm_null, TQ = w.wasm_or, tQ = w.wasm_sql_expr, fQ = w.wasm_star, ZQ = w.wasm_subquery, zQ = w.wasm_table, dQ = w.wasmassignmentarray_len, xQ = w.wasmassignmentarray_new, eQ = w.wasmassignmentarray_push, WQ = w.wasmcasebuilder_build_expr, VQ = w.wasmcasebuilder_else_, lQ = w.wasmcasebuilder_new, rQ = w.wasmcasebuilder_to_sql, nQ = w.wasmcasebuilder_when, mQ = w.wasmdeletebuilder_build, uQ = w.wasmdeletebuilder_new, vQ = w.wasmdeletebuilder_to_sql, bQ = w.wasmdeletebuilder_where_expr, XQ = w.wasmexpr_add, _Q = w.wasmexpr_alias, $Q = w.wasmexpr_and, AE = w.wasmexpr_asc, gE = w.wasmexpr_between, IE = w.wasmexpr_cast, CE = w.wasmexpr_desc, BE = w.wasmexpr_div, QE = w.wasmexpr_eq, EE = w.wasmexpr_gt, DE = w.wasmexpr_gte, wE = w.wasmexpr_ilike, ME = w.wasmexpr_in_list, iE = w.wasmexpr_is_not_null, NE = w.wasmexpr_is_null, oE = w.wasmexpr_like, kE = w.wasmexpr_lt, yE = w.wasmexpr_lte, KE = w.wasmexpr_mul, GE = w.wasmexpr_neq, YE = w.wasmexpr_not, HE = w.wasmexpr_not_in, SE = w.wasmexpr_or, cE = w.wasmexpr_rlike, hE = w.wasmexpr_sub, UE = w.wasmexpr_to_json, JE = w.wasmexpr_to_sql, FE = w.wasmexpr_xor, LE = w.wasmexprarray_len, RE = w.wasmexprarray_push, sE = w.wasmexprarray_push_col, aE = w.wasmexprarray_push_float, qE = w.wasmexprarray_push_int, pE = w.wasmexprarray_push_star, OE = w.wasmexprarray_push_str, PE = w.wasminsertbuilder_build, jE = w.wasminsertbuilder_columns, TE = w.wasminsertbuilder_new, tE = w.wasminsertbuilder_query, fE = w.wasminsertbuilder_to_sql, ZE = w.wasminsertbuilder_values, zE = w.wasmmergebuilder_build, dE = w.wasmmergebuilder_new, xE = w.wasmmergebuilder_to_sql, eE = w.wasmmergebuilder_using, WE = w.wasmmergebuilder_when_matched_delete, VE = w.wasmmergebuilder_when_matched_update, lE = w.wasmmergebuilder_when_not_matched_insert, rE = w.wasmselectbuilder_build, nE = w.wasmselectbuilder_cross_join, mE = w.wasmselectbuilder_ctas, uE = w.wasmselectbuilder_ctas_sql, vE = w.wasmselectbuilder_distinct, bE = w.wasmselectbuilder_except_, XE = w.wasmselectbuilder_for_update, _E = w.wasmselectbuilder_from, $E = w.wasmselectbuilder_from_expr, AD = w.wasmselectbuilder_group_by_cols, gD = w.wasmselectbuilder_having, ID = w.wasmselectbuilder_hint, CD = w.wasmselectbuilder_intersect, BD = w.wasmselectbuilder_join, QD = w.wasmselectbuilder_lateral_view, ED = w.wasmselectbuilder_left_join, DD = w.wasmselectbuilder_limit, wD = w.wasmselectbuilder_new, MD = w.wasmselectbuilder_offset, iD = w.wasmselectbuilder_order_by_exprs, ND = w.wasmselectbuilder_qualify, oD = w.wasmselectbuilder_right_join, kD = w.wasmselectbuilder_select_col, yD = w.wasmselectbuilder_select_expr, KD = w.wasmselectbuilder_select_exprs, GD = w.wasmselectbuilder_select_star, YD = w.wasmselectbuilder_sort_by_exprs, HD = w.wasmselectbuilder_to_sql, SD = w.wasmselectbuilder_union, cD = w.wasmselectbuilder_union_all, hD = w.wasmselectbuilder_where_expr, UD = w.wasmselectbuilder_where_sql, JD = w.wasmselectbuilder_window, FD = w.wasmsetopbuilder_build, LD = w.wasmsetopbuilder_limit, RD = w.wasmsetopbuilder_offset, sD = w.wasmsetopbuilder_order_by_exprs, aD = w.wasmsetopbuilder_to_sql, qD = w.wasmupdatebuilder_build, pD = w.wasmupdatebuilder_from, OD = w.wasmupdatebuilder_new, PD = w.wasmupdatebuilder_set, jD = w.wasmupdatebuilder_to_sql, TD = w.wasmupdatebuilder_where_expr, tD = w.wasmwindowdefbuilder_new, fD = w.wasmwindowdefbuilder_order_by, ZD = w.wasmwindowdefbuilder_partition_by, zD = w.wasmexprarray_new, dD = w.__wbindgen_export, xD = w.__wbindgen_export2, eD = w.__wbindgen_export3, WD = w.__wbindgen_export4, VD = w.__wbindgen_add_to_stack_pointer, lD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2297
2297
  __proto__: null,
2298
2298
  __wbg_wasmassignmentarray_free: MB,
2299
2299
  __wbg_wasmcasebuilder_free: iB,
@@ -2307,7 +2307,7 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2307
2307
  __wbg_wasmupdatebuilder_free: HB,
2308
2308
  __wbg_wasmwindowdefbuilder_free: SB,
2309
2309
  __wbindgen_add_to_stack_pointer: VD,
2310
- __wbindgen_export: ZD,
2310
+ __wbindgen_export: dD,
2311
2311
  __wbindgen_export2: xD,
2312
2312
  __wbindgen_export3: eD,
2313
2313
  __wbindgen_export4: WD,
@@ -2324,13 +2324,13 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2324
2324
  ast_get_table_names: pB,
2325
2325
  ast_get_tables: OB,
2326
2326
  ast_get_window_functions: PB,
2327
- ast_node_count: TB,
2328
- ast_qualify_columns: jB,
2327
+ ast_node_count: jB,
2328
+ ast_qualify_columns: TB,
2329
2329
  ast_qualify_tables: tB,
2330
2330
  ast_remove_where: fB,
2331
- ast_rename_columns: dB,
2331
+ ast_rename_columns: ZB,
2332
2332
  ast_rename_tables: zB,
2333
- ast_rename_tables_with_options: ZB,
2333
+ ast_rename_tables_with_options: dB,
2334
2334
  ast_set_distinct: xB,
2335
2335
  ast_set_limit: eB,
2336
2336
  ast_set_offset: WB,
@@ -2379,13 +2379,13 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2379
2379
  wasm_func: pQ,
2380
2380
  wasm_lit: OQ,
2381
2381
  wasm_not: PQ,
2382
- wasm_null: TQ,
2383
- wasm_or: jQ,
2382
+ wasm_null: jQ,
2383
+ wasm_or: TQ,
2384
2384
  wasm_sql_expr: tQ,
2385
2385
  wasm_star: fQ,
2386
- wasm_subquery: dQ,
2386
+ wasm_subquery: ZQ,
2387
2387
  wasm_table: zQ,
2388
- wasmassignmentarray_len: ZQ,
2388
+ wasmassignmentarray_len: dQ,
2389
2389
  wasmassignmentarray_new: xQ,
2390
2390
  wasmassignmentarray_push: eQ,
2391
2391
  wasmcasebuilder_build_expr: WQ,
@@ -2434,13 +2434,13 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2434
2434
  wasmexprarray_push_star: pE,
2435
2435
  wasmexprarray_push_str: OE,
2436
2436
  wasminsertbuilder_build: PE,
2437
- wasminsertbuilder_columns: TE,
2438
- wasminsertbuilder_new: jE,
2437
+ wasminsertbuilder_columns: jE,
2438
+ wasminsertbuilder_new: TE,
2439
2439
  wasminsertbuilder_query: tE,
2440
2440
  wasminsertbuilder_to_sql: fE,
2441
- wasminsertbuilder_values: dE,
2441
+ wasminsertbuilder_values: ZE,
2442
2442
  wasmmergebuilder_build: zE,
2443
- wasmmergebuilder_new: ZE,
2443
+ wasmmergebuilder_new: dE,
2444
2444
  wasmmergebuilder_to_sql: xE,
2445
2445
  wasmmergebuilder_using: eE,
2446
2446
  wasmmergebuilder_when_matched_delete: WE,
@@ -2488,11 +2488,11 @@ const w = await pI({ "./polyglot_sql_wasm_bg.js": {
2488
2488
  wasmupdatebuilder_from: pD,
2489
2489
  wasmupdatebuilder_new: OD,
2490
2490
  wasmupdatebuilder_set: PD,
2491
- wasmupdatebuilder_to_sql: TD,
2492
- wasmupdatebuilder_where_expr: jD,
2491
+ wasmupdatebuilder_to_sql: jD,
2492
+ wasmupdatebuilder_where_expr: TD,
2493
2493
  wasmwindowdefbuilder_new: tD,
2494
2494
  wasmwindowdefbuilder_order_by: fD,
2495
- wasmwindowdefbuilder_partition_by: dD
2495
+ wasmwindowdefbuilder_partition_by: ZD
2496
2496
  }, Symbol.toStringTag, { value: "Module" }));
2497
2497
  DB(lD);
2498
2498
  const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -2504,14 +2504,14 @@ const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2504
2504
  WasmExprArray: O,
2505
2505
  WasmInsertBuilder: iA,
2506
2506
  WasmMergeBuilder: NA,
2507
- WasmSelectBuilder: d,
2507
+ WasmSelectBuilder: Z,
2508
2508
  WasmSetOpBuilder: V,
2509
2509
  WasmUpdateBuilder: oA,
2510
2510
  WasmWindowDefBuilder: QA,
2511
2511
  analyze_query: OI,
2512
2512
  analyze_query_value: PI,
2513
- annotate_types: TI,
2514
- annotate_types_value: jI,
2513
+ annotate_types: jI,
2514
+ annotate_types_value: TI,
2515
2515
  ast_add_where: Ag,
2516
2516
  ast_get_aggregate_functions: gg,
2517
2517
  ast_get_column_names: Ig,
@@ -2535,9 +2535,9 @@ const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2535
2535
  diff_sql: cg,
2536
2536
  format_sql: tI,
2537
2537
  format_sql_value: fI,
2538
- format_sql_with_options: dI,
2538
+ format_sql_with_options: ZI,
2539
2539
  format_sql_with_options_value: zI,
2540
- generate: ZI,
2540
+ generate: dI,
2541
2541
  generate_data_type: xI,
2542
2542
  generate_data_type_value: eI,
2543
2543
  generate_value: WI,
@@ -2568,16 +2568,16 @@ const Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2568
2568
  wasm_and: pg,
2569
2569
  wasm_boolean: Og,
2570
2570
  wasm_case_of: Pg,
2571
- wasm_cast: Tg,
2571
+ wasm_cast: jg,
2572
2572
  wasm_col: JA,
2573
- wasm_count_distinct: jg,
2573
+ wasm_count_distinct: Tg,
2574
2574
  wasm_extract: tg,
2575
2575
  wasm_func: fg,
2576
2576
  wasm_lit: kA,
2577
- wasm_not: dg,
2577
+ wasm_not: Zg,
2578
2578
  wasm_null: yA,
2579
2579
  wasm_or: zg,
2580
- wasm_sql_expr: Zg,
2580
+ wasm_sql_expr: dg,
2581
2581
  wasm_star: xg,
2582
2582
  wasm_subquery: eg,
2583
2583
  wasm_table: Wg
@@ -2597,7 +2597,7 @@ function l(g) {
2597
2597
  const C = g[A[0]];
2598
2598
  return C === null || typeof C == "object" && !Array.isArray(C);
2599
2599
  }
2600
- function j(g, A) {
2600
+ function T(g, A) {
2601
2601
  return { [g]: A };
2602
2602
  }
2603
2603
  function lg(g) {
@@ -2611,7 +2611,7 @@ function lg(g) {
2611
2611
  function Y(g) {
2612
2612
  return (A) => g in A;
2613
2613
  }
2614
- const rg = Y("select"), rD = Y("insert"), nD = Y("update"), mD = Y("delete"), uD = Y("union"), vD = Y("intersect"), bD = Y("except"), XD = Y("subquery"), _D = Y("identifier"), ng = Y("column"), $D = Y("table"), Aw = Y("star"), mg = Y("literal"), gw = Y("boolean"), Iw = Y("null"), Cw = Y("and"), Bw = Y("or"), Qw = Y("not"), Ew = Y("eq"), Dw = Y("neq"), ww = Y("lt"), Mw = Y("lte"), iw = Y("gt"), Nw = Y("gte"), ow = Y("like"), kw = Y("i_like"), yw = Y("add"), Kw = Y("sub"), Gw = Y("mul"), Yw = Y("div"), Hw = Y("mod"), Sw = Y("concat"), cw = Y("in"), hw = Y("between"), Uw = Y("is_null"), Jw = Y("exists"), ug = Y("function"), Fw = Y("aggregate_function"), Lw = Y("window_function"), Rw = Y("count"), sw = Y("sum"), aw = Y("avg"), qw = Y("min"), pw = Y("max"), Ow = Y("coalesce"), Pw = Y("null_if"), Tw = Y("cast"), jw = Y("try_cast"), tw = Y("safe_cast"), fw = Y("case"), dw = Y("from"), zw = Y("join"), Zw = Y("where"), xw = Y("group_by"), ew = Y("having"), Ww = Y("order_by"), Vw = Y("limit"), lw = Y("offset"), rw = Y("with"), nw = Y("cte"), mw = Y("alias"), uw = Y("paren"), vw = Y("ordered"), bw = Y("create_table"), Xw = Y("drop_table"), _w = Y("alter_table"), $w = Y("create_index"), AM = Y("drop_index"), gM = Y("create_view"), IM = Y("drop_view");
2614
+ const rg = Y("select"), rD = Y("insert"), nD = Y("update"), mD = Y("delete"), uD = Y("union"), vD = Y("intersect"), bD = Y("except"), XD = Y("subquery"), _D = Y("identifier"), ng = Y("column"), $D = Y("table"), Aw = Y("star"), mg = Y("literal"), gw = Y("boolean"), Iw = Y("null"), Cw = Y("and"), Bw = Y("or"), Qw = Y("not"), Ew = Y("eq"), Dw = Y("neq"), ww = Y("lt"), Mw = Y("lte"), iw = Y("gt"), Nw = Y("gte"), ow = Y("like"), kw = Y("i_like"), yw = Y("add"), Kw = Y("sub"), Gw = Y("mul"), Yw = Y("div"), Hw = Y("mod"), Sw = Y("concat"), cw = Y("in"), hw = Y("between"), Uw = Y("is_null"), Jw = Y("exists"), ug = Y("function"), Fw = Y("aggregate_function"), Lw = Y("window_function"), Rw = Y("count"), sw = Y("sum"), aw = Y("avg"), qw = Y("min"), pw = Y("max"), Ow = Y("coalesce"), Pw = Y("null_if"), jw = Y("cast"), Tw = Y("try_cast"), tw = Y("safe_cast"), fw = Y("case"), Zw = Y("from"), zw = Y("join"), dw = Y("where"), xw = Y("group_by"), ew = Y("having"), Ww = Y("order_by"), Vw = Y("limit"), lw = Y("offset"), rw = Y("with"), nw = Y("cte"), mw = Y("alias"), uw = Y("paren"), vw = Y("ordered"), bw = Y("create_table"), Xw = Y("drop_table"), _w = Y("alter_table"), $w = Y("create_index"), AM = Y("drop_index"), gM = Y("create_view"), IM = Y("drop_view");
2615
2615
  function CM(g) {
2616
2616
  const A = p(g);
2617
2617
  return A === "select" || A === "insert" || A === "update" || A === "delete";
@@ -2651,10 +2651,10 @@ function MM(g, A) {
2651
2651
  if (!LA(g))
2652
2652
  return g;
2653
2653
  const B = P(g);
2654
- return C === "select" ? j("select", {
2654
+ return C === "select" ? T("select", {
2655
2655
  ...B,
2656
2656
  limit: { this: A, percent: !1, comments: [] }
2657
- }) : j(C, {
2657
+ }) : T(C, {
2658
2658
  ...B,
2659
2659
  limit: A
2660
2660
  });
@@ -2664,10 +2664,10 @@ function iM(g, A) {
2664
2664
  if (!LA(g))
2665
2665
  return g;
2666
2666
  const B = P(g);
2667
- return C === "select" ? j("select", {
2667
+ return C === "select" ? T("select", {
2668
2668
  ...B,
2669
2669
  offset: { this: A, rows: null }
2670
- }) : j(C, {
2670
+ }) : T(C, {
2671
2671
  ...B,
2672
2672
  offset: A
2673
2673
  });
@@ -2683,7 +2683,7 @@ function NM(g, A) {
2683
2683
  explicit_asc: !1,
2684
2684
  with_fill: null
2685
2685
  });
2686
- return j(C, {
2686
+ return T(C, {
2687
2687
  ...P(g),
2688
2688
  order_by: {
2689
2689
  expressions: B,
@@ -2729,14 +2729,14 @@ function wA(g, A, C, B, Q) {
2729
2729
  const k = p(E), K = P(E);
2730
2730
  let y;
2731
2731
  if (K == null)
2732
- y = j(k, K);
2732
+ y = T(k, K);
2733
2733
  else {
2734
2734
  const S = { ...K };
2735
2735
  for (const [L, q] of Object.entries(S)) {
2736
- const T = vg(q, A, E);
2737
- T !== q && (S[L] = T);
2736
+ const j = vg(q, A, E);
2737
+ j !== q && (S[L] = j);
2738
2738
  }
2739
- y = j(k, S);
2739
+ y = T(k, S);
2740
2740
  }
2741
2741
  if (A.leave) {
2742
2742
  const S = A.leave(y, C, B, Q);
@@ -2799,7 +2799,7 @@ function HM(g, ...A) {
2799
2799
  if (p(g) !== "select")
2800
2800
  return g;
2801
2801
  const C = P(g);
2802
- return j("select", {
2802
+ return T("select", {
2803
2803
  ...C,
2804
2804
  expressions: [...C.expressions, ...A]
2805
2805
  });
@@ -2808,7 +2808,7 @@ function SM(g, A) {
2808
2808
  if (p(g) !== "select")
2809
2809
  return g;
2810
2810
  const C = P(g);
2811
- return j("select", {
2811
+ return T("select", {
2812
2812
  ...C,
2813
2813
  expressions: C.expressions.filter((B) => !A(B))
2814
2814
  });
@@ -2829,7 +2829,7 @@ function JM(g) {
2829
2829
  if (p(g) !== "select")
2830
2830
  return g;
2831
2831
  const A = P(g);
2832
- return j("select", {
2832
+ return T("select", {
2833
2833
  ...A,
2834
2834
  limit: null,
2835
2835
  offset: null
@@ -2864,7 +2864,7 @@ function UA(g, A) {
2864
2864
  const i = _g(D, A, g);
2865
2865
  i !== D && (Q[E] = i);
2866
2866
  }
2867
- return j(C, Q);
2867
+ return T(C, Q);
2868
2868
  }
2869
2869
  function r(g) {
2870
2870
  return JSON.stringify(g);
@@ -2896,20 +2896,20 @@ function AI(g) {
2896
2896
  $g(Q, B, A);
2897
2897
  return A;
2898
2898
  }
2899
- function Z(g, A, C = null, B = null, Q = null) {
2899
+ function d(g, A, C = null, B = null, Q = null) {
2900
2900
  A.enter && A.enter(g, C, B, Q);
2901
2901
  const E = p(g), D = A[E];
2902
2902
  D && D(g, C, B, Q);
2903
2903
  const i = AI(g);
2904
2904
  for (const k of i)
2905
2905
  Array.isArray(k.value) ? k.value.forEach((K, y) => {
2906
- Z(K, A, g, k.key, y);
2907
- }) : Z(k.value, A, g, k.key, null);
2906
+ d(K, A, g, k.key, y);
2907
+ }) : d(k.value, A, g, k.key, null);
2908
2908
  A.leave && A.leave(g, C, B, Q);
2909
2909
  }
2910
2910
  function YA(g, A) {
2911
2911
  const C = [];
2912
- return Z(g, {
2912
+ return d(g, {
2913
2913
  enter: (B, Q) => {
2914
2914
  A(B, Q) && C.push(B);
2915
2915
  }
@@ -2920,7 +2920,7 @@ function HA(g, A) {
2920
2920
  }
2921
2921
  function gI(g, A) {
2922
2922
  let C, B = !1;
2923
- return Z(g, {
2923
+ return d(g, {
2924
2924
  enter: (Q, E) => {
2925
2925
  !B && A(Q, E) && (C = Q, B = !0);
2926
2926
  }
@@ -2931,7 +2931,7 @@ function RM(g, A) {
2931
2931
  }
2932
2932
  function sM(g, A) {
2933
2933
  let C = !0;
2934
- return Z(g, {
2934
+ return d(g, {
2935
2935
  enter: (B, Q) => {
2936
2936
  A(B, Q) || (C = !1);
2937
2937
  }
@@ -2970,11 +2970,11 @@ function PM(g) {
2970
2970
  const A = JSON.parse(Bg(r(g)));
2971
2971
  return A.success ? JSON.parse(A.ast) : [];
2972
2972
  }
2973
- function TM(g) {
2973
+ function jM(g) {
2974
2974
  const A = JSON.parse(Ig(r(g)));
2975
2975
  return A.success ? A.result : [];
2976
2976
  }
2977
- function jM(g) {
2977
+ function TM(g) {
2978
2978
  const A = JSON.parse(Eg(r(g)));
2979
2979
  return A.success ? A.result : [];
2980
2980
  }
@@ -2987,9 +2987,9 @@ function tM(g) {
2987
2987
  function fM(g) {
2988
2988
  return BI(g).length > 0;
2989
2989
  }
2990
- function dM(g) {
2990
+ function ZM(g) {
2991
2991
  let A = 0, C = 0;
2992
- return Z(g, {
2992
+ return d(g, {
2993
2993
  enter: () => {
2994
2994
  C++, A = Math.max(A, C);
2995
2995
  },
@@ -3002,9 +3002,9 @@ function zM(g) {
3002
3002
  const A = JSON.parse(Mg(r(g)));
3003
3003
  return A.success ? A.result : 0;
3004
3004
  }
3005
- function ZM(g, A) {
3005
+ function dM(g, A) {
3006
3006
  let C = null;
3007
- return Z(g, {
3007
+ return d(g, {
3008
3008
  enter: (B, Q) => {
3009
3009
  B === A && (C = Q);
3010
3010
  }
@@ -3013,7 +3013,7 @@ function ZM(g, A) {
3013
3013
  function xM(g, A, C) {
3014
3014
  const B = [];
3015
3015
  let Q = null;
3016
- return Z(g, {
3016
+ return d(g, {
3017
3017
  enter: (E) => {
3018
3018
  if (Q === null) {
3019
3019
  if (E === A)
@@ -3034,7 +3034,7 @@ function xM(g, A, C) {
3034
3034
  }
3035
3035
  function eM(g, A) {
3036
3036
  let C = 0, B = 0;
3037
- return Z(g, {
3037
+ return d(g, {
3038
3038
  enter: (Q) => {
3039
3039
  B++, Q === A && (C = B);
3040
3040
  },
@@ -3056,9 +3056,9 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3056
3056
  findFirst: gI,
3057
3057
  getAggregateFunctions: CA,
3058
3058
  getChildren: AI,
3059
- getColumnNames: TM,
3059
+ getColumnNames: jM,
3060
3060
  getColumns: II,
3061
- getDepth: dM,
3061
+ getDepth: ZM,
3062
3062
  getExprData: P,
3063
3063
  getExprType: p,
3064
3064
  getFunctions: OM,
@@ -3066,9 +3066,9 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3066
3066
  getInferredType: lg,
3067
3067
  getLiterals: PM,
3068
3068
  getNodeDepth: eM,
3069
- getParent: ZM,
3069
+ getParent: dM,
3070
3070
  getSubqueries: BI,
3071
- getTableNames: jM,
3071
+ getTableNames: TM,
3072
3072
  getTables: qM,
3073
3073
  getWindowFunctions: CI,
3074
3074
  hasAggregates: QI,
@@ -3084,7 +3084,7 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3084
3084
  isBetween: hw,
3085
3085
  isBoolean: gw,
3086
3086
  isCase: fw,
3087
- isCast: Tw,
3087
+ isCast: jw,
3088
3088
  isCoalesce: Ow,
3089
3089
  isColumn: ng,
3090
3090
  isComparison: QM,
@@ -3104,7 +3104,7 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3104
3104
  isExcept: bD,
3105
3105
  isExists: Jw,
3106
3106
  isExpressionValue: l,
3107
- isFrom: dw,
3107
+ isFrom: Zw,
3108
3108
  isFunction: ug,
3109
3109
  isGroupBy: xw,
3110
3110
  isGt: iw,
@@ -3145,13 +3145,13 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3145
3145
  isSubquery: XD,
3146
3146
  isSum: sw,
3147
3147
  isTable: $D,
3148
- isTryCast: jw,
3148
+ isTryCast: Tw,
3149
3149
  isUnion: uD,
3150
3150
  isUpdate: nD,
3151
- isWhere: Zw,
3151
+ isWhere: dw,
3152
3152
  isWindowFunction: Lw,
3153
3153
  isWith: rw,
3154
- makeExpr: j,
3154
+ makeExpr: T,
3155
3155
  nodeCount: zM,
3156
3156
  qualifyColumns: yM,
3157
3157
  qualifyTables: KM,
@@ -3169,7 +3169,7 @@ const WM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3169
3169
  setOrderBy: UM,
3170
3170
  some: RM,
3171
3171
  transform: GA,
3172
- walk: Z
3172
+ walk: d
3173
3173
  }, Symbol.toStringTag, { value: "Module" }));
3174
3174
  function F(g) {
3175
3175
  return g instanceof h ? g._w : typeof g == "string" ? JA(g) : typeof g == "number" || typeof g == "boolean" || g === null ? kA(g) : yA();
@@ -3326,7 +3326,7 @@ function mM(g) {
3326
3326
  return new h(Wg(g));
3327
3327
  }
3328
3328
  function DI(g) {
3329
- return new h(Zg(g));
3329
+ return new h(dg(g));
3330
3330
  }
3331
3331
  function uM(g) {
3332
3332
  return DI(g);
@@ -3335,10 +3335,10 @@ function s(g, ...A) {
3335
3335
  return new h(fg(g, z(A)));
3336
3336
  }
3337
3337
  function vM(g) {
3338
- return new h(dg(F(g)));
3338
+ return new h(Zg(F(g)));
3339
3339
  }
3340
3340
  function bM(g, A) {
3341
- return new h(Tg(F(g), A));
3341
+ return new h(jg(F(g), A));
3342
3342
  }
3343
3343
  function XM(g, A) {
3344
3344
  return new h(qg(F(g), A));
@@ -3368,7 +3368,7 @@ function gi(g) {
3368
3368
  return g !== void 0 ? s("COUNT", g) : s("COUNT", EI());
3369
3369
  }
3370
3370
  function Ii(g) {
3371
- return new h(jg(F(g)));
3371
+ return new h(Tg(F(g)));
3372
3372
  }
3373
3373
  function Ci(g) {
3374
3374
  return s("SUM", g);
@@ -3460,10 +3460,10 @@ function Oi(...g) {
3460
3460
  function Pi() {
3461
3461
  return s("CURRENT_DATE");
3462
3462
  }
3463
- function Ti() {
3463
+ function ji() {
3464
3464
  return s("CURRENT_TIME");
3465
3465
  }
3466
- function ji() {
3466
+ function Ti() {
3467
3467
  return s("CURRENT_TIMESTAMP");
3468
3468
  }
3469
3469
  function ti(g, A) {
@@ -3472,7 +3472,7 @@ function ti(g, A) {
3472
3472
  function fi() {
3473
3473
  return s("ROW_NUMBER");
3474
3474
  }
3475
- function di() {
3475
+ function Zi() {
3476
3476
  return s("RANK");
3477
3477
  }
3478
3478
  function zi() {
@@ -3482,7 +3482,7 @@ class wI {
3482
3482
  /** @internal */
3483
3483
  _w;
3484
3484
  constructor() {
3485
- this._w = new d();
3485
+ this._w = new Z();
3486
3486
  }
3487
3487
  /** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
3488
3488
  select(...A) {
@@ -3605,7 +3605,7 @@ class wI {
3605
3605
  this._w.free();
3606
3606
  }
3607
3607
  }
3608
- function Zi(...g) {
3608
+ function di(...g) {
3609
3609
  const A = new wI();
3610
3610
  return g.length > 0 && A.select(...g), A;
3611
3611
  }
@@ -4095,7 +4095,7 @@ function PA(g, A = "generic") {
4095
4095
  return IN("parse", C);
4096
4096
  }
4097
4097
  }
4098
- function TA(g, A = "generic") {
4098
+ function jA(g, A = "generic") {
4099
4099
  try {
4100
4100
  if (typeof R.parse_data_type_value == "function")
4101
4101
  return f(
@@ -4109,7 +4109,7 @@ function TA(g, A = "generic") {
4109
4109
  return CN("parseDataType", C);
4110
4110
  }
4111
4111
  }
4112
- function jA(g, A = "generic") {
4112
+ function TA(g, A = "generic") {
4113
4113
  try {
4114
4114
  return typeof R.tokenize_value == "function" ? f(
4115
4115
  R.tokenize_value(g, A)
@@ -4148,7 +4148,7 @@ function fA(g, A = "generic") {
4148
4148
  return BN("generateDataType", C);
4149
4149
  }
4150
4150
  }
4151
- function dA(g, A = "generic") {
4151
+ function ZA(g, A = "generic") {
4152
4152
  return zA(g, A, {});
4153
4153
  }
4154
4154
  function zA(g, A = "generic", C = {}) {
@@ -4164,7 +4164,7 @@ function zA(g, A = "generic", C = {}) {
4164
4164
  return pA("format", B);
4165
4165
  }
4166
4166
  }
4167
- function ZA() {
4167
+ function dA() {
4168
4168
  return typeof R.get_dialects_value == "function" ? f(R.get_dialects_value()) : JSON.parse(R.get_dialects());
4169
4169
  }
4170
4170
  function xA() {
@@ -4234,13 +4234,13 @@ class m {
4234
4234
  * Parse a standalone SQL data type.
4235
4235
  */
4236
4236
  parseDataType(A, C = "generic") {
4237
- return TA(A, C);
4237
+ return jA(A, C);
4238
4238
  }
4239
4239
  /**
4240
4240
  * Tokenize SQL into a token stream.
4241
4241
  */
4242
4242
  tokenize(A, C = "generic") {
4243
- return jA(A, C);
4243
+ return TA(A, C);
4244
4244
  }
4245
4245
  /**
4246
4246
  * Generate SQL from an AST.
@@ -4258,7 +4258,7 @@ class m {
4258
4258
  * Format SQL.
4259
4259
  */
4260
4260
  format(A, C = "generic") {
4261
- return dA(A, C);
4261
+ return ZA(A, C);
4262
4262
  }
4263
4263
  /**
4264
4264
  * Format SQL with explicit guard limits.
@@ -4271,7 +4271,7 @@ class m {
4271
4271
  * Per-dialect builds return only `"generic"` and the selected dialect.
4272
4272
  */
4273
4273
  getDialects() {
4274
- return ZA();
4274
+ return dA();
4275
4275
  }
4276
4276
  /**
4277
4277
  * Get library version.
@@ -4294,14 +4294,14 @@ const EN = {
4294
4294
  isInitialized: sI,
4295
4295
  transpile: OA,
4296
4296
  parse: PA,
4297
- parseDataType: TA,
4298
- tokenize: jA,
4297
+ parseDataType: jA,
4298
+ tokenize: TA,
4299
4299
  generate: tA,
4300
4300
  generateDataType: fA,
4301
- format: dA,
4301
+ format: ZA,
4302
4302
  annotateTypes: WA,
4303
4303
  analyzeQuery: eA,
4304
- getDialects: ZA,
4304
+ getDialects: dA,
4305
4305
  getVersion: xA,
4306
4306
  lineage: HI,
4307
4307
  lineageWithSchema: SI,
@@ -4349,8 +4349,8 @@ const EN = {
4349
4349
  count: gi,
4350
4350
  countDistinct: Ii,
4351
4351
  currentDate: Pi,
4352
- currentTime: Ti,
4353
- currentTimestamp: ji,
4352
+ currentTime: ji,
4353
+ currentTimestamp: Ti,
4354
4354
  default: EN,
4355
4355
  del: Wi,
4356
4356
  deleteFrom: kI,
@@ -4361,13 +4361,13 @@ const EN = {
4361
4361
  extract: ti,
4362
4362
  findAll: YA,
4363
4363
  floor: Ji,
4364
- format: dA,
4364
+ format: ZA,
4365
4365
  formatWithOptions: zA,
4366
4366
  func: s,
4367
4367
  generate: tA,
4368
4368
  generateDataType: fA,
4369
4369
  getColumns: II,
4370
- getDialects: ZA,
4370
+ getDialects: dA,
4371
4371
  getInferredType: lg,
4372
4372
  getSourceTables: cI,
4373
4373
  getVersion: xA,
@@ -4402,17 +4402,17 @@ const EN = {
4402
4402
  openLineageRunEvent: JI,
4403
4403
  or: Ai,
4404
4404
  parse: PA,
4405
- parseDataType: TA,
4405
+ parseDataType: jA,
4406
4406
  plan: FI,
4407
4407
  power: Li,
4408
- rank: di,
4408
+ rank: Zi,
4409
4409
  renameColumns: Xg,
4410
4410
  replace: Gi,
4411
4411
  reverse: ki,
4412
4412
  round: Ui,
4413
4413
  rowNumber: fi,
4414
4414
  rtrim: oi,
4415
- select: Zi,
4415
+ select: di,
4416
4416
  sign: qi,
4417
4417
  sqlExpr: DI,
4418
4418
  sqlNull: nM,
@@ -4422,7 +4422,7 @@ const EN = {
4422
4422
  substring: Ki,
4423
4423
  sum: Ci,
4424
4424
  table: mM,
4425
- tokenize: jA,
4425
+ tokenize: TA,
4426
4426
  transform: GA,
4427
4427
  transpile: OA,
4428
4428
  trim: ii,
@@ -4432,7 +4432,7 @@ const EN = {
4432
4432
  upper: Di,
4433
4433
  validate: gN,
4434
4434
  validateWithSchema: $i,
4435
- walk: Z
4435
+ walk: d
4436
4436
  }, Symbol.toStringTag, { value: "Module" }));
4437
4437
  export {
4438
4438
  sA as CaseBuilder,
@@ -4464,8 +4464,8 @@ export {
4464
4464
  gi as count,
4465
4465
  Ii as countDistinct,
4466
4466
  Pi as currentDate,
4467
- Ti as currentTime,
4468
- ji as currentTimestamp,
4467
+ ji as currentTime,
4468
+ Ti as currentTimestamp,
4469
4469
  DN as default,
4470
4470
  Wi as del,
4471
4471
  kI as deleteFrom,
@@ -4475,12 +4475,12 @@ export {
4475
4475
  ti as extract,
4476
4476
  YA as findAll,
4477
4477
  Ji as floor,
4478
- dA as format,
4478
+ ZA as format,
4479
4479
  zA as formatWithOptions,
4480
4480
  s as func,
4481
4481
  tA as generate,
4482
4482
  II as getColumns,
4483
- ZA as getDialects,
4483
+ dA as getDialects,
4484
4484
  lg as getInferredType,
4485
4485
  xA as getVersion,
4486
4486
  pi as greatest,
@@ -4509,14 +4509,14 @@ export {
4509
4509
  Ai as or,
4510
4510
  PA as parse,
4511
4511
  Li as power,
4512
- di as rank,
4512
+ Zi as rank,
4513
4513
  Xg as renameColumns,
4514
4514
  Gi as replace,
4515
4515
  ki as reverse,
4516
4516
  Ui as round,
4517
4517
  fi as rowNumber,
4518
4518
  oi as rtrim,
4519
- Zi as select,
4519
+ di as select,
4520
4520
  qi as sign,
4521
4521
  DI as sqlExpr,
4522
4522
  nM as sqlNull,
@@ -4534,5 +4534,5 @@ export {
4534
4534
  Di as upper,
4535
4535
  gN as validate,
4536
4536
  $i as validateWithSchema,
4537
- Z as walk
4537
+ d as walk
4538
4538
  };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-sql/sdk",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "SQL dialect translator powered by WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",