@polyglot-sql/sdk 0.3.10 → 0.3.11

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,25 +1,25 @@
1
1
  (()=>{if(typeof globalThis.process<"u"&&globalThis.process.versions?.node){const _f=globalThis.fetch;globalThis.fetch=async function(u,...a){if(typeof u==="string"&&u.startsWith("file:")||u instanceof URL&&u.protocol==="file:"){const{readFileSync:r}=await import("node:fs");const{fileURLToPath:p}=await import("node:url");const b=r(p(typeof u==="string"?u:u.href));return new Response(b,{headers:{"Content-Type":"application/wasm"}})}return _f(u,...a)}}})();
2
- const yI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, KI = async (g = {}, A) => {
2
+ const yI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, GI = async (g = {}, A) => {
3
3
  let C;
4
4
  if (A.startsWith("data:")) {
5
- const Q = A.replace(/^data:.*?base64,/, "");
6
- let B;
5
+ const B = A.replace(/^data:.*?base64,/, "");
6
+ let Q;
7
7
  if (typeof Buffer == "function" && typeof Buffer.from == "function")
8
- B = Buffer.from(Q, "base64");
8
+ Q = Buffer.from(B, "base64");
9
9
  else if (typeof atob == "function") {
10
- const E = atob(Q);
11
- B = new Uint8Array(E.length);
10
+ const E = atob(B);
11
+ Q = new Uint8Array(E.length);
12
12
  for (let D = 0; D < E.length; D++)
13
- B[D] = E.charCodeAt(D);
13
+ Q[D] = E.charCodeAt(D);
14
14
  } else
15
15
  throw new Error("Cannot decode base64-encoded data URL");
16
- C = await WebAssembly.instantiate(B, g);
16
+ C = await WebAssembly.instantiate(Q, g);
17
17
  } else {
18
- const Q = await fetch(A), B = Q.headers.get("Content-Type") || "";
19
- if ("instantiateStreaming" in WebAssembly && B.startsWith("application/wasm"))
20
- C = await WebAssembly.instantiateStreaming(Q, g);
18
+ const B = await fetch(A), Q = B.headers.get("Content-Type") || "";
19
+ if ("instantiateStreaming" in WebAssembly && Q.startsWith("application/wasm"))
20
+ C = await WebAssembly.instantiateStreaming(B, g);
21
21
  else {
22
- const E = await Q.arrayBuffer();
22
+ const E = await B.arrayBuffer();
23
23
  C = await WebAssembly.instantiate(E, g);
24
24
  }
25
25
  }
@@ -28,7 +28,7 @@ const yI = new URL("../polyglot_sql_wasm_bg.wasm",import.meta.url).href, KI = as
28
28
  class CA {
29
29
  __destroy_into_raw() {
30
30
  const A = this.__wbg_ptr;
31
- return this.__wbg_ptr = 0, VA.unregister(this), A;
31
+ return this.__wbg_ptr = 0, ZA.unregister(this), A;
32
32
  }
33
33
  free() {
34
34
  const A = this.__destroy_into_raw();
@@ -46,7 +46,7 @@ class CA {
46
46
  */
47
47
  constructor() {
48
48
  const A = I.wasmassignmentarray_new();
49
- return this.__wbg_ptr = A >>> 0, VA.register(this, this.__wbg_ptr, this), this;
49
+ return this.__wbg_ptr = A >>> 0, ZA.register(this, this.__wbg_ptr, this), this;
50
50
  }
51
51
  /**
52
52
  * Add a column = value assignment.
@@ -54,15 +54,15 @@ class CA {
54
54
  * @param {WasmExpr} value
55
55
  */
56
56
  push(A, C) {
57
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
58
- S(C, G), I.wasmassignmentarray_push(this.__wbg_ptr, Q, B, C.__wbg_ptr);
57
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
58
+ S(C, K), I.wasmassignmentarray_push(this.__wbg_ptr, B, Q, C.__wbg_ptr);
59
59
  }
60
60
  }
61
61
  Symbol.dispose && (CA.prototype[Symbol.dispose] = CA.prototype.free);
62
- class n {
62
+ class l {
63
63
  static __wrap(A) {
64
64
  A = A >>> 0;
65
- const C = Object.create(n.prototype);
65
+ const C = Object.create(l.prototype);
66
66
  return C.__wbg_ptr = A, hA.register(C, C.__wbg_ptr, C), C;
67
67
  }
68
68
  __destroy_into_raw() {
@@ -79,12 +79,12 @@ class n {
79
79
  */
80
80
  build_expr() {
81
81
  try {
82
- const B = I.__wbindgen_add_to_stack_pointer(-16);
83
- I.wasmcasebuilder_build_expr(B, this.__wbg_ptr);
84
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
85
- if (Q)
82
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
83
+ I.wasmcasebuilder_build_expr(Q, this.__wbg_ptr);
84
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
85
+ if (B)
86
86
  throw F(C);
87
- return G.__wrap(A);
87
+ return K.__wrap(A);
88
88
  } finally {
89
89
  I.__wbindgen_add_to_stack_pointer(16);
90
90
  }
@@ -94,7 +94,7 @@ class n {
94
94
  * @param {WasmExpr} result
95
95
  */
96
96
  else_(A) {
97
- S(A, G), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
97
+ S(A, K), I.wasmcasebuilder_else_(this.__wbg_ptr, A.__wbg_ptr);
98
98
  }
99
99
  /**
100
100
  * Create a new searched CASE builder (CASE WHEN ... THEN ...).
@@ -104,20 +104,21 @@ class n {
104
104
  return this.__wbg_ptr = A >>> 0, hA.register(this, this.__wbg_ptr, this), this;
105
105
  }
106
106
  /**
107
- * Generate SQL string (generic dialect).
107
+ * Generate SQL string for the given dialect.
108
+ * @param {string} dialect
108
109
  * @returns {string}
109
110
  */
110
- to_sql() {
111
- let A, C;
111
+ to_sql(A) {
112
+ let C, B;
112
113
  try {
113
- const y = I.__wbindgen_add_to_stack_pointer(-16);
114
- I.wasmcasebuilder_to_sql(y, this.__wbg_ptr);
115
- var Q = M().getInt32(y + 0, !0), B = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = Q, k = B;
116
- if (D)
117
- throw i = 0, k = 0, F(E);
118
- return A = i, C = k, U(i, k);
114
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
115
+ I.wasmcasebuilder_to_sql(y, this.__wbg_ptr, h, J);
116
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
117
+ if (i)
118
+ throw k = 0, G = 0, F(D);
119
+ return C = k, B = G, U(k, G);
119
120
  } finally {
120
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
121
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
121
122
  }
122
123
  }
123
124
  /**
@@ -126,14 +127,14 @@ class n {
126
127
  * @param {WasmExpr} result
127
128
  */
128
129
  when(A, C) {
129
- S(A, G), S(C, G), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
130
+ S(A, K), S(C, K), I.wasmcasebuilder_when(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
130
131
  }
131
132
  }
132
- Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
133
+ Symbol.dispose && (l.prototype[Symbol.dispose] = l.prototype.free);
133
134
  class MA {
134
135
  __destroy_into_raw() {
135
136
  const A = this.__wbg_ptr;
136
- return this.__wbg_ptr = 0, zA.unregister(this), A;
137
+ return this.__wbg_ptr = 0, VA.unregister(this), A;
137
138
  }
138
139
  free() {
139
140
  const A = this.__destroy_into_raw();
@@ -145,10 +146,10 @@ class MA {
145
146
  */
146
147
  build() {
147
148
  try {
148
- const B = I.__wbindgen_add_to_stack_pointer(-16);
149
- I.wasmdeletebuilder_build(B, this.__wbg_ptr);
150
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
151
- if (Q)
149
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
150
+ I.wasmdeletebuilder_build(Q, this.__wbg_ptr);
151
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
152
+ if (B)
152
153
  throw F(C);
153
154
  return F(A);
154
155
  } finally {
@@ -160,8 +161,8 @@ class MA {
160
161
  * @param {string} table_name
161
162
  */
162
163
  constructor(A) {
163
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmdeletebuilder_new(C, Q);
164
- return this.__wbg_ptr = B >>> 0, zA.register(this, this.__wbg_ptr, this), this;
164
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmdeletebuilder_new(C, B);
165
+ return this.__wbg_ptr = Q >>> 0, VA.register(this, this.__wbg_ptr, this), this;
165
166
  }
166
167
  /**
167
168
  * Generate SQL string for the given dialect.
@@ -169,16 +170,16 @@ class MA {
169
170
  * @returns {string}
170
171
  */
171
172
  to_sql(A) {
172
- let C, Q;
173
+ let C, B;
173
174
  try {
174
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
175
- I.wasmdeletebuilder_to_sql(K, this.__wbg_ptr, h, R);
176
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
175
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
176
+ I.wasmdeletebuilder_to_sql(y, this.__wbg_ptr, h, J);
177
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
177
178
  if (i)
178
- throw k = 0, y = 0, F(D);
179
- return C = k, Q = y, U(k, y);
179
+ throw k = 0, G = 0, F(D);
180
+ return C = k, B = G, U(k, G);
180
181
  } finally {
181
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
182
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
182
183
  }
183
184
  }
184
185
  /**
@@ -186,19 +187,19 @@ class MA {
186
187
  * @param {WasmExpr} condition
187
188
  */
188
189
  where_expr(A) {
189
- S(A, G), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
190
+ S(A, K), I.wasmdeletebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
190
191
  }
191
192
  }
192
193
  Symbol.dispose && (MA.prototype[Symbol.dispose] = MA.prototype.free);
193
- class G {
194
+ class K {
194
195
  static __wrap(A) {
195
196
  A = A >>> 0;
196
- const C = Object.create(G.prototype);
197
- return C.__wbg_ptr = A, xA.register(C, C.__wbg_ptr, C), C;
197
+ const C = Object.create(K.prototype);
198
+ return C.__wbg_ptr = A, fA.register(C, C.__wbg_ptr, C), C;
198
199
  }
199
200
  __destroy_into_raw() {
200
201
  const A = this.__wbg_ptr;
201
- return this.__wbg_ptr = 0, xA.unregister(this), A;
202
+ return this.__wbg_ptr = 0, fA.unregister(this), A;
202
203
  }
203
204
  free() {
204
205
  const A = this.__destroy_into_raw();
@@ -210,9 +211,9 @@ class G {
210
211
  * @returns {WasmExpr}
211
212
  */
212
213
  add(A) {
213
- S(A, G);
214
+ S(A, K);
214
215
  const C = I.wasmexpr_add(this.__wbg_ptr, A.__wbg_ptr);
215
- return G.__wrap(C);
216
+ return K.__wrap(C);
216
217
  }
217
218
  /**
218
219
  * Produce `self AS name`.
@@ -220,8 +221,8 @@ class G {
220
221
  * @returns {WasmExpr}
221
222
  */
222
223
  alias(A) {
223
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmexpr_alias(this.__wbg_ptr, C, Q);
224
- return G.__wrap(B);
224
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_alias(this.__wbg_ptr, C, B);
225
+ return K.__wrap(Q);
225
226
  }
226
227
  /**
227
228
  * Produce `self AND other`.
@@ -229,9 +230,9 @@ class G {
229
230
  * @returns {WasmExpr}
230
231
  */
231
232
  and(A) {
232
- S(A, G);
233
+ S(A, K);
233
234
  const C = I.wasmexpr_and(this.__wbg_ptr, A.__wbg_ptr);
234
- return G.__wrap(C);
235
+ return K.__wrap(C);
235
236
  }
236
237
  /**
237
238
  * Wrap with ascending sort order.
@@ -239,7 +240,7 @@ class G {
239
240
  */
240
241
  asc() {
241
242
  const A = I.wasmexpr_asc(this.__wbg_ptr);
242
- return G.__wrap(A);
243
+ return K.__wrap(A);
243
244
  }
244
245
  /**
245
246
  * Produce `self BETWEEN low AND high`.
@@ -248,9 +249,9 @@ class G {
248
249
  * @returns {WasmExpr}
249
250
  */
250
251
  between(A, C) {
251
- S(A, G), S(C, G);
252
- const Q = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
253
- return G.__wrap(Q);
252
+ S(A, K), S(C, K);
253
+ const B = I.wasmexpr_between(this.__wbg_ptr, A.__wbg_ptr, C.__wbg_ptr);
254
+ return K.__wrap(B);
254
255
  }
255
256
  /**
256
257
  * Produce `CAST(self AS type)`.
@@ -258,8 +259,8 @@ class G {
258
259
  * @returns {WasmExpr}
259
260
  */
260
261
  cast(A) {
261
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmexpr_cast(this.__wbg_ptr, C, Q);
262
- return G.__wrap(B);
262
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmexpr_cast(this.__wbg_ptr, C, B);
263
+ return K.__wrap(Q);
263
264
  }
264
265
  /**
265
266
  * Wrap with descending sort order.
@@ -267,7 +268,7 @@ class G {
267
268
  */
268
269
  desc() {
269
270
  const A = I.wasmexpr_desc(this.__wbg_ptr);
270
- return G.__wrap(A);
271
+ return K.__wrap(A);
271
272
  }
272
273
  /**
273
274
  * Produce `self / other`.
@@ -275,9 +276,9 @@ class G {
275
276
  * @returns {WasmExpr}
276
277
  */
277
278
  div(A) {
278
- S(A, G);
279
+ S(A, K);
279
280
  const C = I.wasmexpr_div(this.__wbg_ptr, A.__wbg_ptr);
280
- return G.__wrap(C);
281
+ return K.__wrap(C);
281
282
  }
282
283
  /**
283
284
  * Produce `self = other`.
@@ -285,9 +286,9 @@ class G {
285
286
  * @returns {WasmExpr}
286
287
  */
287
288
  eq(A) {
288
- S(A, G);
289
+ S(A, K);
289
290
  const C = I.wasmexpr_eq(this.__wbg_ptr, A.__wbg_ptr);
290
- return G.__wrap(C);
291
+ return K.__wrap(C);
291
292
  }
292
293
  /**
293
294
  * Produce `self > other`.
@@ -295,9 +296,9 @@ class G {
295
296
  * @returns {WasmExpr}
296
297
  */
297
298
  gt(A) {
298
- S(A, G);
299
+ S(A, K);
299
300
  const C = I.wasmexpr_gt(this.__wbg_ptr, A.__wbg_ptr);
300
- return G.__wrap(C);
301
+ return K.__wrap(C);
301
302
  }
302
303
  /**
303
304
  * Produce `self >= other`.
@@ -305,9 +306,9 @@ class G {
305
306
  * @returns {WasmExpr}
306
307
  */
307
308
  gte(A) {
308
- S(A, G);
309
+ S(A, K);
309
310
  const C = I.wasmexpr_gte(this.__wbg_ptr, A.__wbg_ptr);
310
- return G.__wrap(C);
311
+ return K.__wrap(C);
311
312
  }
312
313
  /**
313
314
  * Produce `self ILIKE pattern`.
@@ -315,9 +316,9 @@ class G {
315
316
  * @returns {WasmExpr}
316
317
  */
317
318
  ilike(A) {
318
- S(A, G);
319
+ S(A, K);
319
320
  const C = I.wasmexpr_ilike(this.__wbg_ptr, A.__wbg_ptr);
320
- return G.__wrap(C);
321
+ return K.__wrap(C);
321
322
  }
322
323
  /**
323
324
  * Produce `self IN (values...)`.
@@ -327,7 +328,7 @@ class G {
327
328
  in_list(A) {
328
329
  S(A, T);
329
330
  const C = I.wasmexpr_in_list(this.__wbg_ptr, A.__wbg_ptr);
330
- return G.__wrap(C);
331
+ return K.__wrap(C);
331
332
  }
332
333
  /**
333
334
  * Produce `self IS NOT NULL`.
@@ -335,7 +336,7 @@ class G {
335
336
  */
336
337
  is_not_null() {
337
338
  const A = I.wasmexpr_is_not_null(this.__wbg_ptr);
338
- return G.__wrap(A);
339
+ return K.__wrap(A);
339
340
  }
340
341
  /**
341
342
  * Produce `self IS NULL`.
@@ -343,7 +344,7 @@ class G {
343
344
  */
344
345
  is_null() {
345
346
  const A = I.wasmexpr_is_null(this.__wbg_ptr);
346
- return G.__wrap(A);
347
+ return K.__wrap(A);
347
348
  }
348
349
  /**
349
350
  * Produce `self LIKE pattern`.
@@ -351,9 +352,9 @@ class G {
351
352
  * @returns {WasmExpr}
352
353
  */
353
354
  like(A) {
354
- S(A, G);
355
+ S(A, K);
355
356
  const C = I.wasmexpr_like(this.__wbg_ptr, A.__wbg_ptr);
356
- return G.__wrap(C);
357
+ return K.__wrap(C);
357
358
  }
358
359
  /**
359
360
  * Produce `self < other`.
@@ -361,9 +362,9 @@ class G {
361
362
  * @returns {WasmExpr}
362
363
  */
363
364
  lt(A) {
364
- S(A, G);
365
+ S(A, K);
365
366
  const C = I.wasmexpr_lt(this.__wbg_ptr, A.__wbg_ptr);
366
- return G.__wrap(C);
367
+ return K.__wrap(C);
367
368
  }
368
369
  /**
369
370
  * Produce `self <= other`.
@@ -371,9 +372,9 @@ class G {
371
372
  * @returns {WasmExpr}
372
373
  */
373
374
  lte(A) {
374
- S(A, G);
375
+ S(A, K);
375
376
  const C = I.wasmexpr_lte(this.__wbg_ptr, A.__wbg_ptr);
376
- return G.__wrap(C);
377
+ return K.__wrap(C);
377
378
  }
378
379
  /**
379
380
  * Produce `self * other`.
@@ -381,9 +382,9 @@ class G {
381
382
  * @returns {WasmExpr}
382
383
  */
383
384
  mul(A) {
384
- S(A, G);
385
+ S(A, K);
385
386
  const C = I.wasmexpr_mul(this.__wbg_ptr, A.__wbg_ptr);
386
- return G.__wrap(C);
387
+ return K.__wrap(C);
387
388
  }
388
389
  /**
389
390
  * Produce `self <> other`.
@@ -391,9 +392,9 @@ class G {
391
392
  * @returns {WasmExpr}
392
393
  */
393
394
  neq(A) {
394
- S(A, G);
395
+ S(A, K);
395
396
  const C = I.wasmexpr_neq(this.__wbg_ptr, A.__wbg_ptr);
396
- return G.__wrap(C);
397
+ return K.__wrap(C);
397
398
  }
398
399
  /**
399
400
  * Produce `NOT self`.
@@ -401,7 +402,7 @@ class G {
401
402
  */
402
403
  not() {
403
404
  const A = I.wasmexpr_not(this.__wbg_ptr);
404
- return G.__wrap(A);
405
+ return K.__wrap(A);
405
406
  }
406
407
  /**
407
408
  * Produce `self NOT IN (values...)`.
@@ -411,7 +412,7 @@ class G {
411
412
  not_in(A) {
412
413
  S(A, T);
413
414
  const C = I.wasmexpr_not_in(this.__wbg_ptr, A.__wbg_ptr);
414
- return G.__wrap(C);
415
+ return K.__wrap(C);
415
416
  }
416
417
  /**
417
418
  * Produce `self OR other`.
@@ -419,9 +420,9 @@ class G {
419
420
  * @returns {WasmExpr}
420
421
  */
421
422
  or(A) {
422
- S(A, G);
423
+ S(A, K);
423
424
  const C = I.wasmexpr_or(this.__wbg_ptr, A.__wbg_ptr);
424
- return G.__wrap(C);
425
+ return K.__wrap(C);
425
426
  }
426
427
  /**
427
428
  * Produce `REGEXP_LIKE(self, pattern)`.
@@ -429,9 +430,9 @@ class G {
429
430
  * @returns {WasmExpr}
430
431
  */
431
432
  rlike(A) {
432
- S(A, G);
433
+ S(A, K);
433
434
  const C = I.wasmexpr_rlike(this.__wbg_ptr, A.__wbg_ptr);
434
- return G.__wrap(C);
435
+ return K.__wrap(C);
435
436
  }
436
437
  /**
437
438
  * Produce `self - other`.
@@ -439,9 +440,9 @@ class G {
439
440
  * @returns {WasmExpr}
440
441
  */
441
442
  sub(A) {
442
- S(A, G);
443
+ S(A, K);
443
444
  const C = I.wasmexpr_sub(this.__wbg_ptr, A.__wbg_ptr);
444
- return G.__wrap(C);
445
+ return K.__wrap(C);
445
446
  }
446
447
  /**
447
448
  * Return the expression AST as a JSON value.
@@ -449,10 +450,10 @@ class G {
449
450
  */
450
451
  to_json() {
451
452
  try {
452
- const B = I.__wbindgen_add_to_stack_pointer(-16);
453
- I.wasmexpr_to_json(B, this.__wbg_ptr);
454
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
455
- if (Q)
453
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
454
+ I.wasmexpr_to_json(Q, this.__wbg_ptr);
455
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
456
+ if (B)
456
457
  throw F(C);
457
458
  return F(A);
458
459
  } finally {
@@ -460,20 +461,21 @@ class G {
460
461
  }
461
462
  }
462
463
  /**
463
- * Generate SQL string (generic dialect).
464
+ * Generate SQL string for the given dialect.
465
+ * @param {string} dialect
464
466
  * @returns {string}
465
467
  */
466
- to_sql() {
467
- let A, C;
468
+ to_sql(A) {
469
+ let C, B;
468
470
  try {
469
- const y = I.__wbindgen_add_to_stack_pointer(-16);
470
- I.wasmexpr_to_sql(y, this.__wbg_ptr);
471
- var Q = M().getInt32(y + 0, !0), B = M().getInt32(y + 4, !0), E = M().getInt32(y + 8, !0), D = M().getInt32(y + 12, !0), i = Q, k = B;
472
- if (D)
473
- throw i = 0, k = 0, F(E);
474
- return A = i, C = k, U(i, k);
471
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
472
+ I.wasmexpr_to_sql(y, this.__wbg_ptr, h, J);
473
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
474
+ if (i)
475
+ throw k = 0, G = 0, F(D);
476
+ return C = k, B = G, U(k, G);
475
477
  } finally {
476
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
478
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
477
479
  }
478
480
  }
479
481
  /**
@@ -482,16 +484,16 @@ class G {
482
484
  * @returns {WasmExpr}
483
485
  */
484
486
  xor(A) {
485
- S(A, G);
487
+ S(A, K);
486
488
  const C = I.wasmexpr_xor(this.__wbg_ptr, A.__wbg_ptr);
487
- return G.__wrap(C);
489
+ return K.__wrap(C);
488
490
  }
489
491
  }
490
- Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
492
+ Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
491
493
  class T {
492
494
  __destroy_into_raw() {
493
495
  const A = this.__wbg_ptr;
494
- return this.__wbg_ptr = 0, fA.unregister(this), A;
496
+ return this.__wbg_ptr = 0, xA.unregister(this), A;
495
497
  }
496
498
  free() {
497
499
  const A = this.__destroy_into_raw();
@@ -509,22 +511,22 @@ class T {
509
511
  */
510
512
  constructor() {
511
513
  const A = I.wasmassignmentarray_new();
512
- return this.__wbg_ptr = A >>> 0, fA.register(this, this.__wbg_ptr, this), this;
514
+ return this.__wbg_ptr = A >>> 0, xA.register(this, this.__wbg_ptr, this), this;
513
515
  }
514
516
  /**
515
517
  * Push an expression.
516
518
  * @param {WasmExpr} expr
517
519
  */
518
520
  push(A) {
519
- S(A, G), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
521
+ S(A, K), I.wasmexprarray_push(this.__wbg_ptr, A.__wbg_ptr);
520
522
  }
521
523
  /**
522
524
  * Push a column reference by name.
523
525
  * @param {string} name
524
526
  */
525
527
  push_col(A) {
526
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
527
- I.wasmexprarray_push_col(this.__wbg_ptr, C, Q);
528
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
529
+ I.wasmexprarray_push_col(this.__wbg_ptr, C, B);
528
530
  }
529
531
  /**
530
532
  * Push a float literal.
@@ -551,8 +553,8 @@ class T {
551
553
  * @param {string} value
552
554
  */
553
555
  push_str(A) {
554
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
555
- I.wasmexprarray_push_str(this.__wbg_ptr, C, Q);
556
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
557
+ I.wasmexprarray_push_str(this.__wbg_ptr, C, B);
556
558
  }
557
559
  }
558
560
  Symbol.dispose && (T.prototype[Symbol.dispose] = T.prototype.free);
@@ -571,10 +573,10 @@ class iA {
571
573
  */
572
574
  build() {
573
575
  try {
574
- const B = I.__wbindgen_add_to_stack_pointer(-16);
575
- I.wasminsertbuilder_build(B, this.__wbg_ptr);
576
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
577
- if (Q)
576
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
577
+ I.wasminsertbuilder_build(Q, this.__wbg_ptr);
578
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
579
+ if (B)
578
580
  throw F(C);
579
581
  return F(A);
580
582
  } finally {
@@ -586,16 +588,16 @@ class iA {
586
588
  * @param {string[]} cols
587
589
  */
588
590
  columns(A) {
589
- const C = FA(A, I.__wbindgen_export), Q = o;
590
- I.wasminsertbuilder_columns(this.__wbg_ptr, C, Q);
591
+ const C = FA(A, I.__wbindgen_export), B = o;
592
+ I.wasminsertbuilder_columns(this.__wbg_ptr, C, B);
591
593
  }
592
594
  /**
593
595
  * Create a new INSERT INTO builder for the given table.
594
596
  * @param {string} table_name
595
597
  */
596
598
  constructor(A) {
597
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasminsertbuilder_new(C, Q);
598
- return this.__wbg_ptr = B >>> 0, WA.register(this, this.__wbg_ptr, this), this;
599
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasminsertbuilder_new(C, B);
600
+ return this.__wbg_ptr = Q >>> 0, WA.register(this, this.__wbg_ptr, this), this;
599
601
  }
600
602
  /**
601
603
  * Set the source query for INSERT ... SELECT.
@@ -603,10 +605,10 @@ class iA {
603
605
  */
604
606
  query(A) {
605
607
  try {
606
- const B = I.__wbindgen_add_to_stack_pointer(-16);
607
- S(A, P), I.wasminsertbuilder_query(B, this.__wbg_ptr, A.__wbg_ptr);
608
- var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
609
- if (Q)
608
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
609
+ S(A, j), I.wasminsertbuilder_query(Q, this.__wbg_ptr, A.__wbg_ptr);
610
+ var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
611
+ if (B)
610
612
  throw F(C);
611
613
  } finally {
612
614
  I.__wbindgen_add_to_stack_pointer(16);
@@ -618,16 +620,16 @@ class iA {
618
620
  * @returns {string}
619
621
  */
620
622
  to_sql(A) {
621
- let C, Q;
623
+ let C, B;
622
624
  try {
623
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
624
- I.wasminsertbuilder_to_sql(K, this.__wbg_ptr, h, R);
625
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
625
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
626
+ I.wasminsertbuilder_to_sql(y, this.__wbg_ptr, h, J);
627
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
626
628
  if (i)
627
- throw k = 0, y = 0, F(D);
628
- return C = k, Q = y, U(k, y);
629
+ throw k = 0, G = 0, F(D);
630
+ return C = k, B = G, U(k, G);
629
631
  } finally {
630
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
632
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
631
633
  }
632
634
  }
633
635
  /**
@@ -654,10 +656,10 @@ class oA {
654
656
  */
655
657
  build() {
656
658
  try {
657
- const B = I.__wbindgen_add_to_stack_pointer(-16);
658
- I.wasmmergebuilder_build(B, this.__wbg_ptr);
659
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
660
- if (Q)
659
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
660
+ I.wasmmergebuilder_build(Q, this.__wbg_ptr);
661
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
662
+ if (B)
661
663
  throw F(C);
662
664
  return F(A);
663
665
  } finally {
@@ -669,8 +671,8 @@ class oA {
669
671
  * @param {string} target
670
672
  */
671
673
  constructor(A) {
672
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmmergebuilder_new(C, Q);
673
- return this.__wbg_ptr = B >>> 0, eA.register(this, this.__wbg_ptr, this), this;
674
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmmergebuilder_new(C, B);
675
+ return this.__wbg_ptr = Q >>> 0, eA.register(this, this.__wbg_ptr, this), this;
674
676
  }
675
677
  /**
676
678
  * Generate SQL string for the given dialect.
@@ -678,16 +680,16 @@ class oA {
678
680
  * @returns {string}
679
681
  */
680
682
  to_sql(A) {
681
- let C, Q;
683
+ let C, B;
682
684
  try {
683
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
684
- I.wasmmergebuilder_to_sql(K, this.__wbg_ptr, h, R);
685
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
685
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
686
+ I.wasmmergebuilder_to_sql(y, this.__wbg_ptr, h, J);
687
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
686
688
  if (i)
687
- throw k = 0, y = 0, F(D);
688
- return C = k, Q = y, U(k, y);
689
+ throw k = 0, G = 0, F(D);
690
+ return C = k, B = G, U(k, G);
689
691
  } finally {
690
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
692
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
691
693
  }
692
694
  }
693
695
  /**
@@ -696,8 +698,8 @@ class oA {
696
698
  * @param {WasmExpr} on
697
699
  */
698
700
  using(A, C) {
699
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
700
- S(C, G), I.wasmmergebuilder_using(this.__wbg_ptr, Q, B, C.__wbg_ptr);
701
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
702
+ S(C, K), I.wasmmergebuilder_using(this.__wbg_ptr, B, Q, C.__wbg_ptr);
701
703
  }
702
704
  /**
703
705
  * Add a WHEN MATCHED THEN DELETE clause.
@@ -718,12 +720,12 @@ class oA {
718
720
  * @param {WasmExprArray} values
719
721
  */
720
722
  when_not_matched_insert(A, C) {
721
- const Q = FA(A, I.__wbindgen_export), B = o;
722
- S(C, T), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, Q, B, C.__wbg_ptr);
723
+ const B = FA(A, I.__wbindgen_export), Q = o;
724
+ S(C, T), I.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, B, Q, C.__wbg_ptr);
723
725
  }
724
726
  }
725
727
  Symbol.dispose && (oA.prototype[Symbol.dispose] = oA.prototype.free);
726
- class P {
728
+ class j {
727
729
  __destroy_into_raw() {
728
730
  const A = this.__wbg_ptr;
729
731
  return this.__wbg_ptr = 0, uA.unregister(this), A;
@@ -738,10 +740,10 @@ class P {
738
740
  */
739
741
  build() {
740
742
  try {
741
- const B = I.__wbindgen_add_to_stack_pointer(-16);
742
- I.wasmselectbuilder_build(B, this.__wbg_ptr);
743
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
744
- if (Q)
743
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
744
+ I.wasmselectbuilder_build(Q, this.__wbg_ptr);
745
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
746
+ if (B)
745
747
  throw F(C);
746
748
  return F(A);
747
749
  } finally {
@@ -753,8 +755,8 @@ class P {
753
755
  * @param {string} table
754
756
  */
755
757
  cross_join(A) {
756
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
757
- I.wasmselectbuilder_cross_join(this.__wbg_ptr, C, Q);
758
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
759
+ I.wasmselectbuilder_cross_join(this.__wbg_ptr, C, B);
758
760
  }
759
761
  /**
760
762
  * Convert to CREATE TABLE AS SELECT. Returns the AST JSON.
@@ -765,9 +767,9 @@ class P {
765
767
  try {
766
768
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
767
769
  I.wasmselectbuilder_ctas(E, this.__wbg_ptr, D, i);
768
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
769
- if (B)
770
- throw F(Q);
770
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
771
+ if (Q)
772
+ throw F(B);
771
773
  return F(C);
772
774
  } finally {
773
775
  I.__wbindgen_add_to_stack_pointer(16);
@@ -780,16 +782,16 @@ class P {
780
782
  * @returns {string}
781
783
  */
782
784
  ctas_sql(A, C) {
783
- let Q, B;
785
+ let B, Q;
784
786
  try {
785
- const h = I.__wbindgen_add_to_stack_pointer(-16), R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = N(C, I.__wbindgen_export, I.__wbindgen_export2), l = o;
786
- I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, R, q, j, l);
787
- var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), k = M().getInt32(h + 12, !0), y = E, K = D;
787
+ const h = I.__wbindgen_add_to_stack_pointer(-16), J = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, P = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = o;
788
+ I.wasmselectbuilder_ctas_sql(h, this.__wbg_ptr, J, q, P, r);
789
+ var E = M().getInt32(h + 0, !0), D = M().getInt32(h + 4, !0), i = M().getInt32(h + 8, !0), k = M().getInt32(h + 12, !0), G = E, y = D;
788
790
  if (k)
789
- throw y = 0, K = 0, F(i);
790
- return Q = y, B = K, U(y, K);
791
+ throw G = 0, y = 0, F(i);
792
+ return B = G, Q = y, U(G, y);
791
793
  } finally {
792
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
794
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
793
795
  }
794
796
  }
795
797
  /**
@@ -806,11 +808,11 @@ class P {
806
808
  except_(A) {
807
809
  try {
808
810
  const E = I.__wbindgen_add_to_stack_pointer(-16);
809
- S(A, P), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
810
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
811
- if (B)
812
- throw F(Q);
813
- return x.__wrap(C);
811
+ S(A, j), I.wasmselectbuilder_except_(E, this.__wbg_ptr, A.__wbg_ptr);
812
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
813
+ if (Q)
814
+ throw F(B);
815
+ return f.__wrap(C);
814
816
  } finally {
815
817
  I.__wbindgen_add_to_stack_pointer(16);
816
818
  }
@@ -826,15 +828,15 @@ class P {
826
828
  * @param {string} table
827
829
  */
828
830
  from(A) {
829
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
830
- I.wasmselectbuilder_from(this.__wbg_ptr, C, Q);
831
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
832
+ I.wasmselectbuilder_from(this.__wbg_ptr, C, B);
831
833
  }
832
834
  /**
833
835
  * Set the FROM clause to an arbitrary expression.
834
836
  * @param {WasmExpr} expr
835
837
  */
836
838
  from_expr(A) {
837
- S(A, G), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
839
+ S(A, K), I.wasmselectbuilder_from_expr(this.__wbg_ptr, A.__wbg_ptr);
838
840
  }
839
841
  /**
840
842
  * Set the GROUP BY clause.
@@ -848,15 +850,15 @@ class P {
848
850
  * @param {WasmExpr} condition
849
851
  */
850
852
  having(A) {
851
- S(A, G), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
853
+ S(A, K), I.wasmselectbuilder_having(this.__wbg_ptr, A.__wbg_ptr);
852
854
  }
853
855
  /**
854
856
  * Add a query hint.
855
857
  * @param {string} hint_text
856
858
  */
857
859
  hint(A) {
858
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
859
- I.wasmselectbuilder_hint(this.__wbg_ptr, C, Q);
860
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
861
+ I.wasmselectbuilder_hint(this.__wbg_ptr, C, B);
860
862
  }
861
863
  /**
862
864
  * Combine with INTERSECT. Consumes both builders.
@@ -866,11 +868,11 @@ class P {
866
868
  intersect(A) {
867
869
  try {
868
870
  const E = I.__wbindgen_add_to_stack_pointer(-16);
869
- S(A, P), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
870
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
871
- if (B)
872
- throw F(Q);
873
- return x.__wrap(C);
871
+ S(A, j), I.wasmselectbuilder_intersect(E, this.__wbg_ptr, A.__wbg_ptr);
872
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
873
+ if (Q)
874
+ throw F(B);
875
+ return f.__wrap(C);
874
876
  } finally {
875
877
  I.__wbindgen_add_to_stack_pointer(16);
876
878
  }
@@ -881,8 +883,8 @@ class P {
881
883
  * @param {WasmExpr} on
882
884
  */
883
885
  join(A, C) {
884
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
885
- S(C, G), I.wasmselectbuilder_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
886
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
887
+ S(C, K), I.wasmselectbuilder_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
886
888
  }
887
889
  /**
888
890
  * Add a LATERAL VIEW clause (Hive/Spark).
@@ -890,10 +892,10 @@ class P {
890
892
  * @param {string} table_alias
891
893
  * @param {string[]} col_aliases
892
894
  */
893
- lateral_view(A, C, Q) {
894
- S(A, G);
895
- const B = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = FA(Q, I.__wbindgen_export), i = o;
896
- I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, B, E, D, i);
895
+ lateral_view(A, C, B) {
896
+ S(A, K);
897
+ const Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = FA(B, I.__wbindgen_export), i = o;
898
+ I.wasmselectbuilder_lateral_view(this.__wbg_ptr, A.__wbg_ptr, Q, E, D, i);
897
899
  }
898
900
  /**
899
901
  * Add a LEFT JOIN.
@@ -901,8 +903,8 @@ class P {
901
903
  * @param {WasmExpr} on
902
904
  */
903
905
  left_join(A, C) {
904
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
905
- S(C, G), I.wasmselectbuilder_left_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
906
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
907
+ S(C, K), I.wasmselectbuilder_left_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
906
908
  }
907
909
  /**
908
910
  * Set the LIMIT clause.
@@ -937,7 +939,7 @@ class P {
937
939
  * @param {WasmExpr} condition
938
940
  */
939
941
  qualify(A) {
940
- S(A, G), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
942
+ S(A, K), I.wasmselectbuilder_qualify(this.__wbg_ptr, A.__wbg_ptr);
941
943
  }
942
944
  /**
943
945
  * Add a RIGHT JOIN.
@@ -945,23 +947,23 @@ class P {
945
947
  * @param {WasmExpr} on
946
948
  */
947
949
  right_join(A, C) {
948
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
949
- S(C, G), I.wasmselectbuilder_right_join(this.__wbg_ptr, Q, B, C.__wbg_ptr);
950
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
951
+ S(C, K), I.wasmselectbuilder_right_join(this.__wbg_ptr, B, Q, C.__wbg_ptr);
950
952
  }
951
953
  /**
952
954
  * Add a column by name to the SELECT list.
953
955
  * @param {string} name
954
956
  */
955
957
  select_col(A) {
956
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
957
- I.wasmselectbuilder_select_col(this.__wbg_ptr, C, Q);
958
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
959
+ I.wasmselectbuilder_select_col(this.__wbg_ptr, C, B);
958
960
  }
959
961
  /**
960
962
  * Add a single expression to the SELECT list.
961
963
  * @param {WasmExpr} expr
962
964
  */
963
965
  select_expr(A) {
964
- S(A, G), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
966
+ S(A, K), I.wasmselectbuilder_select_expr(this.__wbg_ptr, A.__wbg_ptr);
965
967
  }
966
968
  /**
967
969
  * Add multiple expressions to the SELECT list.
@@ -989,16 +991,16 @@ class P {
989
991
  * @returns {string}
990
992
  */
991
993
  to_sql(A) {
992
- let C, Q;
994
+ let C, B;
993
995
  try {
994
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
995
- I.wasmselectbuilder_to_sql(K, this.__wbg_ptr, h, R);
996
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
996
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
997
+ I.wasmselectbuilder_to_sql(y, this.__wbg_ptr, h, J);
998
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
997
999
  if (i)
998
- throw k = 0, y = 0, F(D);
999
- return C = k, Q = y, U(k, y);
1000
+ throw k = 0, G = 0, F(D);
1001
+ return C = k, B = G, U(k, G);
1000
1002
  } finally {
1001
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1003
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1002
1004
  }
1003
1005
  }
1004
1006
  /**
@@ -1009,11 +1011,11 @@ class P {
1009
1011
  union(A) {
1010
1012
  try {
1011
1013
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1012
- S(A, P), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1013
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1014
- if (B)
1015
- throw F(Q);
1016
- return x.__wrap(C);
1014
+ S(A, j), I.wasmselectbuilder_union(E, this.__wbg_ptr, A.__wbg_ptr);
1015
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1016
+ if (Q)
1017
+ throw F(B);
1018
+ return f.__wrap(C);
1017
1019
  } finally {
1018
1020
  I.__wbindgen_add_to_stack_pointer(16);
1019
1021
  }
@@ -1026,11 +1028,11 @@ class P {
1026
1028
  union_all(A) {
1027
1029
  try {
1028
1030
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1029
- S(A, P), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1030
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1031
- if (B)
1032
- throw F(Q);
1033
- return x.__wrap(C);
1031
+ S(A, j), I.wasmselectbuilder_union_all(E, this.__wbg_ptr, A.__wbg_ptr);
1032
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1033
+ if (Q)
1034
+ throw F(B);
1035
+ return f.__wrap(C);
1034
1036
  } finally {
1035
1037
  I.__wbindgen_add_to_stack_pointer(16);
1036
1038
  }
@@ -1040,15 +1042,15 @@ class P {
1040
1042
  * @param {WasmExpr} condition
1041
1043
  */
1042
1044
  where_expr(A) {
1043
- S(A, G), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1045
+ S(A, K), I.wasmselectbuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1044
1046
  }
1045
1047
  /**
1046
1048
  * Set the WHERE clause by parsing a raw SQL condition string.
1047
1049
  * @param {string} sql
1048
1050
  */
1049
1051
  where_sql(A) {
1050
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1051
- I.wasmselectbuilder_where_sql(this.__wbg_ptr, C, Q);
1052
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1053
+ I.wasmselectbuilder_where_sql(this.__wbg_ptr, C, B);
1052
1054
  }
1053
1055
  /**
1054
1056
  * Add a named WINDOW clause definition.
@@ -1058,25 +1060,25 @@ class P {
1058
1060
  window(A, C) {
1059
1061
  try {
1060
1062
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1061
- S(C, QA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, i, C.__wbg_ptr);
1062
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1063
- if (B)
1064
- throw F(Q);
1063
+ S(C, BA), I.wasmselectbuilder_window(E, this.__wbg_ptr, D, i, C.__wbg_ptr);
1064
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1065
+ if (Q)
1066
+ throw F(B);
1065
1067
  } finally {
1066
1068
  I.__wbindgen_add_to_stack_pointer(16);
1067
1069
  }
1068
1070
  }
1069
1071
  }
1070
- Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
1071
- class x {
1072
+ Symbol.dispose && (j.prototype[Symbol.dispose] = j.prototype.free);
1073
+ class f {
1072
1074
  static __wrap(A) {
1073
1075
  A = A >>> 0;
1074
- const C = Object.create(x.prototype);
1075
- return C.__wbg_ptr = A, lA.register(C, C.__wbg_ptr, C), C;
1076
+ const C = Object.create(f.prototype);
1077
+ return C.__wbg_ptr = A, rA.register(C, C.__wbg_ptr, C), C;
1076
1078
  }
1077
1079
  __destroy_into_raw() {
1078
1080
  const A = this.__wbg_ptr;
1079
- return this.__wbg_ptr = 0, lA.unregister(this), A;
1081
+ return this.__wbg_ptr = 0, rA.unregister(this), A;
1080
1082
  }
1081
1083
  free() {
1082
1084
  const A = this.__destroy_into_raw();
@@ -1088,10 +1090,10 @@ class x {
1088
1090
  */
1089
1091
  build() {
1090
1092
  try {
1091
- const B = I.__wbindgen_add_to_stack_pointer(-16);
1092
- I.wasmsetopbuilder_build(B, this.__wbg_ptr);
1093
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
1094
- if (Q)
1093
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
1094
+ I.wasmsetopbuilder_build(Q, this.__wbg_ptr);
1095
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
1096
+ if (B)
1095
1097
  throw F(C);
1096
1098
  return F(A);
1097
1099
  } finally {
@@ -1125,24 +1127,24 @@ class x {
1125
1127
  * @returns {string}
1126
1128
  */
1127
1129
  to_sql(A) {
1128
- let C, Q;
1130
+ let C, B;
1129
1131
  try {
1130
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1131
- I.wasmsetopbuilder_to_sql(K, this.__wbg_ptr, h, R);
1132
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
1132
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
1133
+ I.wasmsetopbuilder_to_sql(y, this.__wbg_ptr, h, J);
1134
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
1133
1135
  if (i)
1134
- throw k = 0, y = 0, F(D);
1135
- return C = k, Q = y, U(k, y);
1136
+ throw k = 0, G = 0, F(D);
1137
+ return C = k, B = G, U(k, G);
1136
1138
  } finally {
1137
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1139
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1138
1140
  }
1139
1141
  }
1140
1142
  }
1141
- Symbol.dispose && (x.prototype[Symbol.dispose] = x.prototype.free);
1143
+ Symbol.dispose && (f.prototype[Symbol.dispose] = f.prototype.free);
1142
1144
  class NA {
1143
1145
  __destroy_into_raw() {
1144
1146
  const A = this.__wbg_ptr;
1145
- return this.__wbg_ptr = 0, rA.unregister(this), A;
1147
+ return this.__wbg_ptr = 0, nA.unregister(this), A;
1146
1148
  }
1147
1149
  free() {
1148
1150
  const A = this.__destroy_into_raw();
@@ -1154,10 +1156,10 @@ class NA {
1154
1156
  */
1155
1157
  build() {
1156
1158
  try {
1157
- const B = I.__wbindgen_add_to_stack_pointer(-16);
1158
- I.wasmupdatebuilder_build(B, this.__wbg_ptr);
1159
- var A = M().getInt32(B + 0, !0), C = M().getInt32(B + 4, !0), Q = M().getInt32(B + 8, !0);
1160
- if (Q)
1159
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
1160
+ I.wasmupdatebuilder_build(Q, this.__wbg_ptr);
1161
+ var A = M().getInt32(Q + 0, !0), C = M().getInt32(Q + 4, !0), B = M().getInt32(Q + 8, !0);
1162
+ if (B)
1161
1163
  throw F(C);
1162
1164
  return F(A);
1163
1165
  } finally {
@@ -1169,16 +1171,16 @@ class NA {
1169
1171
  * @param {string} table
1170
1172
  */
1171
1173
  from(A) {
1172
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1173
- I.wasmupdatebuilder_from(this.__wbg_ptr, C, Q);
1174
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1175
+ I.wasmupdatebuilder_from(this.__wbg_ptr, C, B);
1174
1176
  }
1175
1177
  /**
1176
1178
  * Create a new UPDATE builder for the given table.
1177
1179
  * @param {string} table_name
1178
1180
  */
1179
1181
  constructor(A) {
1180
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasmupdatebuilder_new(C, Q);
1181
- return this.__wbg_ptr = B >>> 0, rA.register(this, this.__wbg_ptr, this), this;
1182
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasmupdatebuilder_new(C, B);
1183
+ return this.__wbg_ptr = Q >>> 0, nA.register(this, this.__wbg_ptr, this), this;
1182
1184
  }
1183
1185
  /**
1184
1186
  * Add a SET column = value assignment.
@@ -1186,8 +1188,8 @@ class NA {
1186
1188
  * @param {WasmExpr} value
1187
1189
  */
1188
1190
  set(A, C) {
1189
- const Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1190
- S(C, G), I.wasmupdatebuilder_set(this.__wbg_ptr, Q, B, C.__wbg_ptr);
1191
+ const B = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1192
+ S(C, K), I.wasmupdatebuilder_set(this.__wbg_ptr, B, Q, C.__wbg_ptr);
1191
1193
  }
1192
1194
  /**
1193
1195
  * Generate SQL string for the given dialect.
@@ -1195,16 +1197,16 @@ class NA {
1195
1197
  * @returns {string}
1196
1198
  */
1197
1199
  to_sql(A) {
1198
- let C, Q;
1200
+ let C, B;
1199
1201
  try {
1200
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o;
1201
- I.wasmupdatebuilder_to_sql(K, this.__wbg_ptr, h, R);
1202
- var B = M().getInt32(K + 0, !0), E = M().getInt32(K + 4, !0), D = M().getInt32(K + 8, !0), i = M().getInt32(K + 12, !0), k = B, y = E;
1202
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o;
1203
+ I.wasmupdatebuilder_to_sql(y, this.__wbg_ptr, h, J);
1204
+ var Q = M().getInt32(y + 0, !0), E = M().getInt32(y + 4, !0), D = M().getInt32(y + 8, !0), i = M().getInt32(y + 12, !0), k = Q, G = E;
1203
1205
  if (i)
1204
- throw k = 0, y = 0, F(D);
1205
- return C = k, Q = y, U(k, y);
1206
+ throw k = 0, G = 0, F(D);
1207
+ return C = k, B = G, U(k, G);
1206
1208
  } finally {
1207
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1209
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1208
1210
  }
1209
1211
  }
1210
1212
  /**
@@ -1212,14 +1214,14 @@ class NA {
1212
1214
  * @param {WasmExpr} condition
1213
1215
  */
1214
1216
  where_expr(A) {
1215
- S(A, G), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1217
+ S(A, K), I.wasmupdatebuilder_where_expr(this.__wbg_ptr, A.__wbg_ptr);
1216
1218
  }
1217
1219
  }
1218
1220
  Symbol.dispose && (NA.prototype[Symbol.dispose] = NA.prototype.free);
1219
- class QA {
1221
+ class BA {
1220
1222
  __destroy_into_raw() {
1221
1223
  const A = this.__wbg_ptr;
1222
- return this.__wbg_ptr = 0, nA.unregister(this), A;
1224
+ return this.__wbg_ptr = 0, lA.unregister(this), A;
1223
1225
  }
1224
1226
  free() {
1225
1227
  const A = this.__destroy_into_raw();
@@ -1230,7 +1232,7 @@ class QA {
1230
1232
  */
1231
1233
  constructor() {
1232
1234
  const A = I.wasmwindowdefbuilder_new();
1233
- return this.__wbg_ptr = A >>> 0, nA.register(this, this.__wbg_ptr, this), this;
1235
+ return this.__wbg_ptr = A >>> 0, lA.register(this, this.__wbg_ptr, this), this;
1234
1236
  }
1235
1237
  /**
1236
1238
  * Set the ORDER BY expressions.
@@ -1247,31 +1249,31 @@ class QA {
1247
1249
  S(A, T), I.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, A.__wbg_ptr);
1248
1250
  }
1249
1251
  }
1250
- Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
1251
- function GI(g, A, C) {
1252
- let Q, B;
1252
+ Symbol.dispose && (BA.prototype[Symbol.dispose] = BA.prototype.free);
1253
+ function KI(g, A, C) {
1254
+ let B, Q;
1253
1255
  try {
1254
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1255
- I.annotate_types(i, k, y, K, h, R, q);
1256
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1257
+ I.annotate_types(i, k, G, y, h, J, q);
1256
1258
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1257
- return Q = E, B = D, U(E, D);
1259
+ return B = E, Q = D, U(E, D);
1258
1260
  } finally {
1259
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1261
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1260
1262
  }
1261
1263
  }
1262
1264
  function YI(g, A, C) {
1263
- const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = I.annotate_types_value(Q, B, E, D, i, k);
1264
- return F(y);
1265
+ const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = I.annotate_types_value(B, Q, E, D, i, k);
1266
+ return F(G);
1265
1267
  }
1266
- function mA(g, A, C) {
1267
- let Q, B;
1268
+ function bA(g, A, C) {
1269
+ let B, Q;
1268
1270
  try {
1269
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o;
1270
- I.ast_add_where(i, k, y, K, h, C);
1271
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o;
1272
+ I.ast_add_where(i, k, G, y, h, C);
1271
1273
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1272
- return Q = E, B = D, U(E, D);
1274
+ return B = E, Q = D, U(E, D);
1273
1275
  } finally {
1274
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1276
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1275
1277
  }
1276
1278
  }
1277
1279
  function vA(g) {
@@ -1279,8 +1281,8 @@ function vA(g) {
1279
1281
  try {
1280
1282
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1281
1283
  I.ast_get_aggregate_functions(E, D, i);
1282
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1283
- return A = Q, C = B, U(Q, B);
1284
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1285
+ return A = B, C = Q, U(B, Q);
1284
1286
  } finally {
1285
1287
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1286
1288
  }
@@ -1290,8 +1292,8 @@ function XA(g) {
1290
1292
  try {
1291
1293
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1292
1294
  I.ast_get_column_names(E, D, i);
1293
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1294
- return A = Q, C = B, U(Q, B);
1295
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1296
+ return A = B, C = Q, U(B, Q);
1295
1297
  } finally {
1296
1298
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1297
1299
  }
@@ -1301,8 +1303,8 @@ function _A(g) {
1301
1303
  try {
1302
1304
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1303
1305
  I.ast_get_functions(E, D, i);
1304
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1305
- return A = Q, C = B, U(Q, B);
1306
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1307
+ return A = B, C = Q, U(B, Q);
1306
1308
  } finally {
1307
1309
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1308
1310
  }
@@ -1312,8 +1314,8 @@ function $A(g) {
1312
1314
  try {
1313
1315
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1314
1316
  I.ast_get_literals(E, D, i);
1315
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1316
- return A = Q, C = B, U(Q, B);
1317
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1318
+ return A = B, C = Q, U(B, Q);
1317
1319
  } finally {
1318
1320
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1319
1321
  }
@@ -1323,8 +1325,8 @@ function Ag(g) {
1323
1325
  try {
1324
1326
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1325
1327
  I.ast_get_subqueries(E, D, i);
1326
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1327
- return A = Q, C = B, U(Q, B);
1328
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1329
+ return A = B, C = Q, U(B, Q);
1328
1330
  } finally {
1329
1331
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1330
1332
  }
@@ -1334,8 +1336,8 @@ function gg(g) {
1334
1336
  try {
1335
1337
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1336
1338
  I.ast_get_table_names(E, D, i);
1337
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1338
- return A = Q, C = B, U(Q, B);
1339
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1340
+ return A = B, C = Q, U(B, Q);
1339
1341
  } finally {
1340
1342
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1341
1343
  }
@@ -1345,8 +1347,8 @@ function Ig(g) {
1345
1347
  try {
1346
1348
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1347
1349
  I.ast_get_window_functions(E, D, i);
1348
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1349
- return A = Q, C = B, U(Q, B);
1350
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1351
+ return A = B, C = Q, U(B, Q);
1350
1352
  } finally {
1351
1353
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1352
1354
  }
@@ -1356,32 +1358,32 @@ function Cg(g) {
1356
1358
  try {
1357
1359
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1358
1360
  I.ast_node_count(E, D, i);
1359
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1360
- return A = Q, C = B, U(Q, B);
1361
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1362
+ return A = B, C = Q, U(B, Q);
1361
1363
  } finally {
1362
1364
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1363
1365
  }
1364
1366
  }
1365
- function Qg(g, A) {
1366
- let C, Q;
1367
+ function Bg(g, A) {
1368
+ let C, B;
1367
1369
  try {
1368
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1369
- I.ast_qualify_columns(D, i, k, y, K);
1370
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1371
- return C = B, Q = E, U(B, E);
1370
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1371
+ I.ast_qualify_columns(D, i, k, G, y);
1372
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1373
+ return C = Q, B = E, U(Q, E);
1372
1374
  } finally {
1373
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1375
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1374
1376
  }
1375
1377
  }
1376
- function Bg(g, A) {
1377
- let C, Q;
1378
+ function Qg(g, A) {
1379
+ let C, B;
1378
1380
  try {
1379
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1380
- I.ast_qualify_tables(D, i, k, y, K);
1381
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1382
- return C = B, Q = E, U(B, E);
1381
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1382
+ I.ast_qualify_tables(D, i, k, G, y);
1383
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1384
+ return C = Q, B = E, U(Q, E);
1383
1385
  } finally {
1384
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1386
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1385
1387
  }
1386
1388
  }
1387
1389
  function Eg(g) {
@@ -1389,359 +1391,359 @@ function Eg(g) {
1389
1391
  try {
1390
1392
  const E = I.__wbindgen_add_to_stack_pointer(-16), D = N(g, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1391
1393
  I.ast_remove_where(E, D, i);
1392
- var Q = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0);
1393
- return A = Q, C = B, U(Q, B);
1394
+ var B = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0);
1395
+ return A = B, C = Q, U(B, Q);
1394
1396
  } finally {
1395
1397
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(A, C, 1);
1396
1398
  }
1397
1399
  }
1398
1400
  function Dg(g, A) {
1399
- let C, Q;
1401
+ let C, B;
1400
1402
  try {
1401
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1402
- I.ast_rename_columns(D, i, k, y, K);
1403
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1404
- return C = B, Q = E, U(B, E);
1403
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1404
+ I.ast_rename_columns(D, i, k, G, y);
1405
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1406
+ return C = Q, B = E, U(Q, E);
1405
1407
  } finally {
1406
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1408
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1407
1409
  }
1408
1410
  }
1409
1411
  function wg(g, A) {
1410
- let C, Q;
1412
+ let C, B;
1411
1413
  try {
1412
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1413
- I.ast_rename_tables(D, i, k, y, K);
1414
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1415
- return C = B, Q = E, U(B, E);
1414
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1415
+ I.ast_rename_tables(D, i, k, G, y);
1416
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1417
+ return C = Q, B = E, U(Q, E);
1416
1418
  } finally {
1417
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1419
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1418
1420
  }
1419
1421
  }
1420
1422
  function Mg(g, A, C) {
1421
- let Q, B;
1423
+ let B, Q;
1422
1424
  try {
1423
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1424
- I.ast_rename_tables_with_options(i, k, y, K, h, R, q);
1425
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1426
+ I.ast_rename_tables_with_options(i, k, G, y, h, J, q);
1425
1427
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1426
- return Q = E, B = D, U(E, D);
1428
+ return B = E, Q = D, U(E, D);
1427
1429
  } finally {
1428
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1430
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1429
1431
  }
1430
1432
  }
1431
1433
  function ig(g, A) {
1432
- let C, Q;
1434
+ let C, B;
1433
1435
  try {
1434
1436
  const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
1435
1437
  I.ast_set_distinct(D, i, k, A);
1436
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1437
- return C = B, Q = E, U(B, E);
1438
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1439
+ return C = Q, B = E, U(Q, E);
1438
1440
  } finally {
1439
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1441
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1440
1442
  }
1441
1443
  }
1442
1444
  function og(g, A) {
1443
- let C, Q;
1445
+ let C, B;
1444
1446
  try {
1445
1447
  const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o;
1446
1448
  I.ast_set_limit(D, i, k, A);
1447
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1448
- return C = B, Q = E, U(B, E);
1449
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1450
+ return C = Q, B = E, U(Q, E);
1449
1451
  } finally {
1450
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1452
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1451
1453
  }
1452
1454
  }
1453
- function Ng(g, A, C, Q, B, E) {
1455
+ function Ng(g, A, C, B, Q, E) {
1454
1456
  let D, i;
1455
1457
  try {
1456
- const K = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), j = o, l = N(C, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1457
- I.diff_sql(K, h, R, q, j, l, v, Q, B, E);
1458
- var k = M().getInt32(K + 0, !0), y = M().getInt32(K + 4, !0);
1459
- return D = k, i = y, U(k, y);
1458
+ const y = I.__wbindgen_add_to_stack_pointer(-16), h = N(g, I.__wbindgen_export, I.__wbindgen_export2), J = o, q = N(A, I.__wbindgen_export, I.__wbindgen_export2), P = o, r = N(C, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1459
+ I.diff_sql(y, h, J, q, P, r, v, B, Q, E);
1460
+ var k = M().getInt32(y + 0, !0), G = M().getInt32(y + 4, !0);
1461
+ return D = k, i = G, U(k, G);
1460
1462
  } finally {
1461
1463
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(D, i, 1);
1462
1464
  }
1463
1465
  }
1464
1466
  function SI(g, A) {
1465
- let C, Q;
1467
+ let C, B;
1466
1468
  try {
1467
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1468
- I.format_sql(D, i, k, y, K);
1469
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1470
- return C = B, Q = E, U(B, E);
1469
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1470
+ I.format_sql(D, i, k, G, y);
1471
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1472
+ return C = Q, B = E, U(Q, E);
1471
1473
  } finally {
1472
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1474
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1473
1475
  }
1474
1476
  }
1475
1477
  function hI(g, A) {
1476
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.format_sql_value(C, Q, B, E);
1478
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.format_sql_value(C, B, Q, E);
1477
1479
  return F(D);
1478
1480
  }
1479
1481
  function HI(g, A, C) {
1480
- let Q, B;
1482
+ let B, Q;
1481
1483
  try {
1482
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1483
- I.format_sql_with_options(i, k, y, K, h, R, q);
1484
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1485
+ I.format_sql_with_options(i, k, G, y, h, J, q);
1484
1486
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1485
- return Q = E, B = D, U(E, D);
1487
+ return B = E, Q = D, U(E, D);
1486
1488
  } finally {
1487
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1489
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1488
1490
  }
1489
1491
  }
1490
1492
  function LI(g, A, C) {
1491
- const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = I.format_sql_with_options_value(Q, B, E, D, s(C));
1493
+ const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = I.format_sql_with_options_value(B, Q, E, D, s(C));
1492
1494
  return F(i);
1493
1495
  }
1494
1496
  function UI(g, A) {
1495
- let C, Q;
1497
+ let C, B;
1496
1498
  try {
1497
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1498
- I.generate(D, i, k, y, K);
1499
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1500
- return C = B, Q = E, U(B, E);
1499
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1500
+ I.generate(D, i, k, G, y);
1501
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1502
+ return C = Q, B = E, U(Q, E);
1501
1503
  } finally {
1502
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1504
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1503
1505
  }
1504
1506
  }
1505
1507
  function cI(g, A) {
1506
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.generate_value(s(g), C, Q);
1507
- return F(B);
1508
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.generate_value(s(g), C, B);
1509
+ return F(Q);
1508
1510
  }
1509
1511
  function FI() {
1510
1512
  let g, A;
1511
1513
  try {
1512
- const B = I.__wbindgen_add_to_stack_pointer(-16);
1513
- I.get_dialects(B);
1514
- var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
1515
- return g = C, A = Q, U(C, Q);
1514
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
1515
+ I.get_dialects(Q);
1516
+ var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
1517
+ return g = C, A = B, U(C, B);
1516
1518
  } finally {
1517
1519
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1518
1520
  }
1519
1521
  }
1520
- function JI() {
1522
+ function RI() {
1521
1523
  const g = I.get_dialects_value();
1522
1524
  return F(g);
1523
1525
  }
1524
- function kg(g, A, C, Q) {
1525
- let B, E;
1526
+ function kg(g, A, C, B) {
1527
+ let Q, E;
1526
1528
  try {
1527
- const k = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), j = o;
1528
- I.lineage_sql(k, y, K, h, R, q, j, Q);
1529
+ const k = I.__wbindgen_add_to_stack_pointer(-16), G = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), P = o;
1530
+ I.lineage_sql(k, G, y, h, J, q, P, B);
1529
1531
  var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1530
- return B = D, E = i, U(D, i);
1532
+ return Q = D, E = i, U(D, i);
1531
1533
  } finally {
1532
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1534
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1533
1535
  }
1534
1536
  }
1535
- function yg(g, A, C, Q, B) {
1537
+ function yg(g, A, C, B, Q) {
1536
1538
  let E, D;
1537
1539
  try {
1538
- const y = I.__wbindgen_add_to_stack_pointer(-16), K = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, j = N(C, I.__wbindgen_export, I.__wbindgen_export2), l = o, v = N(Q, I.__wbindgen_export, I.__wbindgen_export2), kI = o;
1539
- I.lineage_sql_with_schema(y, K, h, R, q, j, l, v, kI, B);
1540
- var i = M().getInt32(y + 0, !0), k = M().getInt32(y + 4, !0);
1540
+ const G = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(A, I.__wbindgen_export, I.__wbindgen_export2), q = o, P = N(C, I.__wbindgen_export, I.__wbindgen_export2), r = o, v = N(B, I.__wbindgen_export, I.__wbindgen_export2), kI = o;
1541
+ I.lineage_sql_with_schema(G, y, h, J, q, P, r, v, kI, Q);
1542
+ var i = M().getInt32(G + 0, !0), k = M().getInt32(G + 4, !0);
1541
1543
  return E = i, D = k, U(i, k);
1542
1544
  } finally {
1543
1545
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(E, D, 1);
1544
1546
  }
1545
1547
  }
1546
- function RI(g, A) {
1547
- let C, Q;
1548
+ function JI(g, A) {
1549
+ let C, B;
1548
1550
  try {
1549
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1550
- I.parse(D, i, k, y, K);
1551
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1552
- return C = B, Q = E, U(B, E);
1551
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1552
+ I.parse(D, i, k, G, y);
1553
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1554
+ return C = Q, B = E, U(Q, E);
1553
1555
  } finally {
1554
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1556
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1555
1557
  }
1556
1558
  }
1557
1559
  function sI(g, A) {
1558
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.parse_value(C, Q, B, E);
1560
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.parse_value(C, B, Q, E);
1559
1561
  return F(D);
1560
1562
  }
1561
- function Kg(g, A) {
1562
- let C, Q;
1563
+ function Gg(g, A) {
1564
+ let C, B;
1563
1565
  try {
1564
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1565
- I.plan(D, i, k, y, K);
1566
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1567
- return C = B, Q = E, U(B, E);
1566
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1567
+ I.plan(D, i, k, G, y);
1568
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1569
+ return C = Q, B = E, U(Q, E);
1568
1570
  } finally {
1569
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1571
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1570
1572
  }
1571
1573
  }
1572
- function Gg(g, A, C) {
1573
- let Q, B;
1574
+ function Kg(g, A, C) {
1575
+ let B, Q;
1574
1576
  try {
1575
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1576
- I.source_tables(i, k, y, K, h, R, q);
1577
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1578
+ I.source_tables(i, k, G, y, h, J, q);
1577
1579
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1578
- return Q = E, B = D, U(E, D);
1580
+ return B = E, Q = D, U(E, D);
1579
1581
  } finally {
1580
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1582
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1581
1583
  }
1582
1584
  }
1583
1585
  function aI(g, A) {
1584
- let C, Q;
1586
+ let C, B;
1585
1587
  try {
1586
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1587
- I.tokenize(D, i, k, y, K);
1588
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1589
- return C = B, Q = E, U(B, E);
1588
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1589
+ I.tokenize(D, i, k, G, y);
1590
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1591
+ return C = Q, B = E, U(Q, E);
1590
1592
  } finally {
1591
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1593
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1592
1594
  }
1593
1595
  }
1594
1596
  function qI(g, A) {
1595
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.tokenize_value(C, Q, B, E);
1597
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = N(A, I.__wbindgen_export, I.__wbindgen_export2), E = o, D = I.tokenize_value(C, B, Q, E);
1596
1598
  return F(D);
1597
1599
  }
1598
1600
  function pI(g, A, C) {
1599
- let Q, B;
1601
+ let B, Q;
1600
1602
  try {
1601
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1602
- I.transpile(i, k, y, K, h, R, q);
1603
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1604
+ I.transpile(i, k, G, y, h, J, q);
1603
1605
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1604
- return Q = E, B = D, U(E, D);
1606
+ return B = E, Q = D, U(E, D);
1605
1607
  } finally {
1606
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1608
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1607
1609
  }
1608
1610
  }
1609
1611
  function TI(g, A, C) {
1610
- const Q = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = I.transpile_value(Q, B, E, D, i, k);
1611
- return F(y);
1612
+ const B = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o, E = N(A, I.__wbindgen_export, I.__wbindgen_export2), D = o, i = N(C, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = I.transpile_value(B, Q, E, D, i, k);
1613
+ return F(G);
1612
1614
  }
1613
1615
  function OI(g, A) {
1614
- let C, Q;
1616
+ let C, B;
1615
1617
  try {
1616
- const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), K = o;
1617
- I.validate(D, i, k, y, K);
1618
- var B = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1619
- return C = B, Q = E, U(B, E);
1618
+ const D = I.__wbindgen_add_to_stack_pointer(-16), i = N(g, I.__wbindgen_export, I.__wbindgen_export2), k = o, G = N(A, I.__wbindgen_export, I.__wbindgen_export2), y = o;
1619
+ I.validate(D, i, k, G, y);
1620
+ var Q = M().getInt32(D + 0, !0), E = M().getInt32(D + 4, !0);
1621
+ return C = Q, B = E, U(Q, E);
1620
1622
  } finally {
1621
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, Q, 1);
1623
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(C, B, 1);
1622
1624
  }
1623
1625
  }
1624
- function jI(g, A, C) {
1625
- let Q, B;
1626
+ function PI(g, A, C) {
1627
+ let B, Q;
1626
1628
  try {
1627
- const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, K = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, R = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1628
- I.validate_with_options(i, k, y, K, h, R, q);
1629
+ const i = I.__wbindgen_add_to_stack_pointer(-16), k = N(g, I.__wbindgen_export, I.__wbindgen_export2), G = o, y = N(A, I.__wbindgen_export, I.__wbindgen_export2), h = o, J = N(C, I.__wbindgen_export, I.__wbindgen_export2), q = o;
1630
+ I.validate_with_options(i, k, G, y, h, J, q);
1629
1631
  var E = M().getInt32(i + 0, !0), D = M().getInt32(i + 4, !0);
1630
- return Q = E, B = D, U(E, D);
1632
+ return B = E, Q = D, U(E, D);
1631
1633
  } finally {
1632
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, B, 1);
1634
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, Q, 1);
1633
1635
  }
1634
1636
  }
1635
- function Yg(g, A, C, Q) {
1636
- let B, E;
1637
+ function Yg(g, A, C, B) {
1638
+ let Q, E;
1637
1639
  try {
1638
- const k = I.__wbindgen_add_to_stack_pointer(-16), y = N(g, I.__wbindgen_export, I.__wbindgen_export2), K = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), R = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), j = o, l = N(Q, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1639
- I.validate_with_schema(k, y, K, h, R, q, j, l, v);
1640
+ const k = I.__wbindgen_add_to_stack_pointer(-16), G = N(g, I.__wbindgen_export, I.__wbindgen_export2), y = o, h = N(A, I.__wbindgen_export, I.__wbindgen_export2), J = o, q = N(C, I.__wbindgen_export, I.__wbindgen_export2), P = o, r = N(B, I.__wbindgen_export, I.__wbindgen_export2), v = o;
1641
+ I.validate_with_schema(k, G, y, h, J, q, P, r, v);
1640
1642
  var D = M().getInt32(k + 0, !0), i = M().getInt32(k + 4, !0);
1641
- return B = D, E = i, U(D, i);
1643
+ return Q = D, E = i, U(D, i);
1642
1644
  } finally {
1643
- I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(B, E, 1);
1645
+ I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(Q, E, 1);
1644
1646
  }
1645
1647
  }
1646
- function PI() {
1648
+ function jI() {
1647
1649
  let g, A;
1648
1650
  try {
1649
- const B = I.__wbindgen_add_to_stack_pointer(-16);
1650
- I.version(B);
1651
- var C = M().getInt32(B + 0, !0), Q = M().getInt32(B + 4, !0);
1652
- return g = C, A = Q, U(C, Q);
1651
+ const Q = I.__wbindgen_add_to_stack_pointer(-16);
1652
+ I.version(Q);
1653
+ var C = M().getInt32(Q + 0, !0), B = M().getInt32(Q + 4, !0);
1654
+ return g = C, A = B, U(C, B);
1653
1655
  } finally {
1654
1656
  I.__wbindgen_add_to_stack_pointer(16), I.__wbindgen_export4(g, A, 1);
1655
1657
  }
1656
1658
  }
1657
1659
  function Sg(g, A) {
1658
- S(g, G);
1659
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasm_alias(g.__wbg_ptr, C, Q);
1660
- return G.__wrap(B);
1660
+ S(g, K);
1661
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_alias(g.__wbg_ptr, C, B);
1662
+ return K.__wrap(Q);
1661
1663
  }
1662
1664
  function hg(g, A) {
1663
- S(g, G), S(A, G);
1665
+ S(g, K), S(A, K);
1664
1666
  const C = I.wasm_and(g.__wbg_ptr, A.__wbg_ptr);
1665
- return G.__wrap(C);
1667
+ return K.__wrap(C);
1666
1668
  }
1667
1669
  function Hg(g) {
1668
1670
  const A = I.wasm_boolean(g);
1669
- return G.__wrap(A);
1671
+ return K.__wrap(A);
1670
1672
  }
1671
1673
  function Lg(g) {
1672
- S(g, G);
1674
+ S(g, K);
1673
1675
  const A = I.wasm_case_of(g.__wbg_ptr);
1674
- return n.__wrap(A);
1676
+ return l.__wrap(A);
1675
1677
  }
1676
1678
  function Ug(g, A) {
1677
- S(g, G);
1678
- const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), Q = o, B = I.wasm_cast(g.__wbg_ptr, C, Q);
1679
- return G.__wrap(B);
1679
+ S(g, K);
1680
+ const C = N(A, I.__wbindgen_export, I.__wbindgen_export2), B = o, Q = I.wasm_cast(g.__wbg_ptr, C, B);
1681
+ return K.__wrap(Q);
1680
1682
  }
1681
1683
  function cA(g) {
1682
- const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_col(A, C);
1683
- return G.__wrap(Q);
1684
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_col(A, C);
1685
+ return K.__wrap(B);
1684
1686
  }
1685
1687
  function cg(g) {
1686
- S(g, G);
1688
+ S(g, K);
1687
1689
  const A = I.wasm_count_distinct(g.__wbg_ptr);
1688
- return G.__wrap(A);
1690
+ return K.__wrap(A);
1689
1691
  }
1690
1692
  function Fg(g, A) {
1691
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1692
- S(A, G);
1693
- const B = I.wasm_extract(C, Q, A.__wbg_ptr);
1694
- return G.__wrap(B);
1693
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1694
+ S(A, K);
1695
+ const Q = I.wasm_extract(C, B, A.__wbg_ptr);
1696
+ return K.__wrap(Q);
1695
1697
  }
1696
- function Jg(g, A) {
1697
- const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1698
+ function Rg(g, A) {
1699
+ const C = N(g, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1698
1700
  S(A, T);
1699
- const B = I.wasm_func(C, Q, A.__wbg_ptr);
1700
- return G.__wrap(B);
1701
+ const Q = I.wasm_func(C, B, A.__wbg_ptr);
1702
+ return K.__wrap(Q);
1701
1703
  }
1702
1704
  function kA(g) {
1703
1705
  const A = I.wasm_lit(s(g));
1704
- return G.__wrap(A);
1706
+ return K.__wrap(A);
1705
1707
  }
1706
- function Rg(g) {
1707
- S(g, G);
1708
+ function Jg(g) {
1709
+ S(g, K);
1708
1710
  const A = I.wasm_not(g.__wbg_ptr);
1709
- return G.__wrap(A);
1711
+ return K.__wrap(A);
1710
1712
  }
1711
1713
  function yA() {
1712
1714
  const g = I.wasm_null();
1713
- return G.__wrap(g);
1715
+ return K.__wrap(g);
1714
1716
  }
1715
1717
  function sg(g, A) {
1716
- S(g, G), S(A, G);
1718
+ S(g, K), S(A, K);
1717
1719
  const C = I.wasm_or(g.__wbg_ptr, A.__wbg_ptr);
1718
- return G.__wrap(C);
1720
+ return K.__wrap(C);
1719
1721
  }
1720
1722
  function ag(g) {
1721
- const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_sql_expr(A, C);
1722
- return G.__wrap(Q);
1723
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_sql_expr(A, C);
1724
+ return K.__wrap(B);
1723
1725
  }
1724
1726
  function qg() {
1725
1727
  const g = I.wasm_star();
1726
- return G.__wrap(g);
1728
+ return K.__wrap(g);
1727
1729
  }
1728
1730
  function pg(g, A) {
1729
1731
  try {
1730
1732
  const E = I.__wbindgen_add_to_stack_pointer(-16);
1731
- S(g, P);
1733
+ S(g, j);
1732
1734
  const D = N(A, I.__wbindgen_export, I.__wbindgen_export2), i = o;
1733
1735
  I.wasm_subquery(E, g.__wbg_ptr, D, i);
1734
- var C = M().getInt32(E + 0, !0), Q = M().getInt32(E + 4, !0), B = M().getInt32(E + 8, !0);
1735
- if (B)
1736
- throw F(Q);
1737
- return G.__wrap(C);
1736
+ var C = M().getInt32(E + 0, !0), B = M().getInt32(E + 4, !0), Q = M().getInt32(E + 8, !0);
1737
+ if (Q)
1738
+ throw F(B);
1739
+ return K.__wrap(C);
1738
1740
  } finally {
1739
1741
  I.__wbindgen_add_to_stack_pointer(16);
1740
1742
  }
1741
1743
  }
1742
1744
  function Tg(g) {
1743
- const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, Q = I.wasm_table(A, C);
1744
- return G.__wrap(Q);
1745
+ const A = N(g, I.__wbindgen_export, I.__wbindgen_export2), C = o, B = I.wasm_table(A, C);
1746
+ return K.__wrap(B);
1745
1747
  }
1746
1748
  function dI(g, A) {
1747
1749
  const C = Error(U(g, A));
@@ -1750,23 +1752,23 @@ function dI(g, A) {
1750
1752
  function tI(g) {
1751
1753
  return Number(L(g));
1752
1754
  }
1753
- function ZI(g, A) {
1754
- const C = String(L(A)), Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1755
- M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1755
+ function zI(g, A) {
1756
+ const C = String(L(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1757
+ M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1756
1758
  }
1757
- function VI(g, A) {
1758
- const C = L(A), Q = typeof C == "bigint" ? C : void 0;
1759
- M().setBigInt64(g + 8, m(Q) ? BigInt(0) : Q, !0), M().setInt32(g + 0, !m(Q), !0);
1759
+ function ZI(g, A) {
1760
+ const C = L(A), B = typeof C == "bigint" ? C : void 0;
1761
+ M().setBigInt64(g + 8, b(B) ? BigInt(0) : B, !0), M().setInt32(g + 0, !b(B), !0);
1760
1762
  }
1761
- function zI(g) {
1763
+ function VI(g) {
1762
1764
  const A = L(g), C = typeof A == "boolean" ? A : void 0;
1763
- return m(C) ? 16777215 : C ? 1 : 0;
1764
- }
1765
- function xI(g, A) {
1766
- const C = LA(L(A)), Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1767
- M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1765
+ return b(C) ? 16777215 : C ? 1 : 0;
1768
1766
  }
1769
1767
  function fI(g, A) {
1768
+ const C = LA(L(A)), B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1769
+ M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1770
+ }
1771
+ function xI(g, A) {
1770
1772
  return L(g) in L(A);
1771
1773
  }
1772
1774
  function WI(g) {
@@ -1778,36 +1780,36 @@ function eI(g) {
1778
1780
  function uI(g) {
1779
1781
  return L(g) === null;
1780
1782
  }
1781
- function lI(g) {
1783
+ function rI(g) {
1782
1784
  const A = L(g);
1783
1785
  return typeof A == "object" && A !== null;
1784
1786
  }
1785
- function rI(g) {
1787
+ function nI(g) {
1786
1788
  return typeof L(g) == "string";
1787
1789
  }
1788
- function nI(g) {
1790
+ function lI(g) {
1789
1791
  return L(g) === void 0;
1790
1792
  }
1791
- function bI(g, A) {
1793
+ function mI(g, A) {
1792
1794
  return L(g) === L(A);
1793
1795
  }
1794
- function mI(g, A) {
1796
+ function bI(g, A) {
1795
1797
  return L(g) == L(A);
1796
1798
  }
1797
1799
  function vI(g, A) {
1798
- const C = L(A), Q = typeof C == "number" ? C : void 0;
1799
- M().setFloat64(g + 8, m(Q) ? 0 : Q, !0), M().setInt32(g + 0, !m(Q), !0);
1800
+ const C = L(A), B = typeof C == "number" ? C : void 0;
1801
+ M().setFloat64(g + 8, b(B) ? 0 : B, !0), M().setInt32(g + 0, !b(B), !0);
1800
1802
  }
1801
1803
  function XI(g, A) {
1802
- const C = L(A), Q = typeof C == "string" ? C : void 0;
1803
- var B = m(Q) ? 0 : N(Q, I.__wbindgen_export, I.__wbindgen_export2), E = o;
1804
- M().setInt32(g + 4, E, !0), M().setInt32(g + 0, B, !0);
1804
+ const C = L(A), B = typeof C == "string" ? C : void 0;
1805
+ var Q = b(B) ? 0 : N(B, I.__wbindgen_export, I.__wbindgen_export2), E = o;
1806
+ M().setInt32(g + 4, E, !0), M().setInt32(g + 0, Q, !0);
1805
1807
  }
1806
1808
  function _I(g, A) {
1807
1809
  throw new Error(U(g, A));
1808
1810
  }
1809
1811
  function $I() {
1810
- return KA(function(g, A) {
1812
+ return GA(function(g, A) {
1811
1813
  const C = L(g).call(L(A));
1812
1814
  return s(C);
1813
1815
  }, arguments);
@@ -1824,25 +1826,25 @@ function IC(g) {
1824
1826
  return s(A);
1825
1827
  }
1826
1828
  function CC(g, A) {
1827
- let C, Q;
1829
+ let C, B;
1828
1830
  try {
1829
- C = g, Q = A, console.error(U(g, A));
1831
+ C = g, B = A, console.error(U(g, A));
1830
1832
  } finally {
1831
- I.__wbindgen_export4(C, Q, 1);
1833
+ I.__wbindgen_export4(C, B, 1);
1832
1834
  }
1833
1835
  }
1834
- function QC() {
1835
- return KA(function(g) {
1836
+ function BC() {
1837
+ return GA(function(g) {
1836
1838
  const A = String.fromCodePoint(g >>> 0);
1837
1839
  return s(A);
1838
1840
  }, arguments);
1839
1841
  }
1840
- function BC(g, A) {
1842
+ function QC(g, A) {
1841
1843
  const C = L(g)[A >>> 0];
1842
1844
  return s(C);
1843
1845
  }
1844
1846
  function EC() {
1845
- return KA(function(g, A) {
1847
+ return GA(function(g, A) {
1846
1848
  const C = Reflect.get(L(g), L(A));
1847
1849
  return s(C);
1848
1850
  }, arguments);
@@ -1890,10 +1892,10 @@ function kC() {
1890
1892
  function yC(g) {
1891
1893
  return L(g).length;
1892
1894
  }
1893
- function KC(g) {
1895
+ function GC(g) {
1894
1896
  return L(g).length;
1895
1897
  }
1896
- function GC(g) {
1898
+ function KC(g) {
1897
1899
  return L(g).length;
1898
1900
  }
1899
1901
  function YC() {
@@ -1916,7 +1918,7 @@ function LC(g) {
1916
1918
  return s(A);
1917
1919
  }
1918
1920
  function UC() {
1919
- return KA(function(g) {
1921
+ return GA(function(g) {
1920
1922
  const A = L(g).next();
1921
1923
  return s(A);
1922
1924
  }, arguments);
@@ -1926,21 +1928,21 @@ function cC(g) {
1926
1928
  return s(A);
1927
1929
  }
1928
1930
  function FC(g, A, C) {
1929
- Uint8Array.prototype.set.call(ZC(g, A), L(C));
1930
- }
1931
- function JC(g, A, C) {
1932
- const Q = L(g).set(L(A), L(C));
1933
- return s(Q);
1931
+ Uint8Array.prototype.set.call(zC(g, A), L(C));
1934
1932
  }
1935
1933
  function RC(g, A, C) {
1934
+ const B = L(g).set(L(A), L(C));
1935
+ return s(B);
1936
+ }
1937
+ function JC(g, A, C) {
1936
1938
  L(g)[F(A)] = F(C);
1937
1939
  }
1938
1940
  function sC(g, A, C) {
1939
1941
  L(g)[A >>> 0] = F(C);
1940
1942
  }
1941
1943
  function aC(g, A) {
1942
- const C = L(A).stack, Q = N(C, I.__wbindgen_export, I.__wbindgen_export2), B = o;
1943
- M().setInt32(g + 4, B, !0), M().setInt32(g + 0, Q, !0);
1944
+ const C = L(A).stack, B = N(C, I.__wbindgen_export, I.__wbindgen_export2), Q = o;
1945
+ M().setInt32(g + 4, Q, !0), M().setInt32(g + 0, B, !0);
1944
1946
  }
1945
1947
  function qC(g) {
1946
1948
  const A = L(g).value;
@@ -1956,26 +1958,26 @@ function OC(g, A) {
1956
1958
  const C = U(g, A);
1957
1959
  return s(C);
1958
1960
  }
1959
- function jC(g) {
1961
+ function PC(g) {
1960
1962
  const A = BigInt.asUintN(64, g);
1961
1963
  return s(A);
1962
1964
  }
1963
- function PC(g) {
1965
+ function jC(g) {
1964
1966
  const A = L(g);
1965
1967
  return s(A);
1966
1968
  }
1967
1969
  function dC(g) {
1968
1970
  F(g);
1969
1971
  }
1970
- const VA = typeof FinalizationRegistry > "u" ? { register: () => {
1972
+ const ZA = typeof FinalizationRegistry > "u" ? { register: () => {
1971
1973
  }, unregister: () => {
1972
1974
  } } : new FinalizationRegistry((g) => I.__wbg_wasmassignmentarray_free(g >>> 0, 1)), hA = typeof FinalizationRegistry > "u" ? { register: () => {
1973
1975
  }, unregister: () => {
1974
- } } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), zA = typeof FinalizationRegistry > "u" ? { register: () => {
1976
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmcasebuilder_free(g >>> 0, 1)), VA = typeof FinalizationRegistry > "u" ? { register: () => {
1975
1977
  }, unregister: () => {
1976
- } } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), xA = typeof FinalizationRegistry > "u" ? { register: () => {
1978
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmdeletebuilder_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
1977
1979
  }, unregister: () => {
1978
- } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), fA = typeof FinalizationRegistry > "u" ? { register: () => {
1980
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmexpr_free(g >>> 0, 1)), xA = typeof FinalizationRegistry > "u" ? { register: () => {
1979
1981
  }, unregister: () => {
1980
1982
  } } : new FinalizationRegistry((g) => I.__wbg_wasmexprarray_free(g >>> 0, 1)), WA = typeof FinalizationRegistry > "u" ? { register: () => {
1981
1983
  }, unregister: () => {
@@ -1983,17 +1985,17 @@ const VA = typeof FinalizationRegistry > "u" ? { register: () => {
1983
1985
  }, unregister: () => {
1984
1986
  } } : new FinalizationRegistry((g) => I.__wbg_wasmmergebuilder_free(g >>> 0, 1)), uA = typeof FinalizationRegistry > "u" ? { register: () => {
1985
1987
  }, unregister: () => {
1986
- } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
1988
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmselectbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
1987
1989
  }, unregister: () => {
1988
- } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), rA = typeof FinalizationRegistry > "u" ? { register: () => {
1990
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmsetopbuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
1989
1991
  }, unregister: () => {
1990
- } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), nA = typeof FinalizationRegistry > "u" ? { register: () => {
1992
+ } } : new FinalizationRegistry((g) => I.__wbg_wasmupdatebuilder_free(g >>> 0, 1)), lA = typeof FinalizationRegistry > "u" ? { register: () => {
1991
1993
  }, unregister: () => {
1992
1994
  } } : new FinalizationRegistry((g) => I.__wbg_wasmwindowdefbuilder_free(g >>> 0, 1));
1993
1995
  function s(g) {
1994
- AA === z.length && z.push(z.length + 1);
1996
+ AA === V.length && V.push(V.length + 1);
1995
1997
  const A = AA;
1996
- return AA = z[A], z[A] = g, A;
1998
+ return AA = V[A], V[A] = g, A;
1997
1999
  }
1998
2000
  function S(g, A) {
1999
2001
  if (!(g instanceof A))
@@ -2006,73 +2008,73 @@ function LA(g) {
2006
2008
  if (A == "string")
2007
2009
  return `"${g}"`;
2008
2010
  if (A == "symbol") {
2009
- const B = g.description;
2010
- return B == null ? "Symbol" : `Symbol(${B})`;
2011
+ const Q = g.description;
2012
+ return Q == null ? "Symbol" : `Symbol(${Q})`;
2011
2013
  }
2012
2014
  if (A == "function") {
2013
- const B = g.name;
2014
- return typeof B == "string" && B.length > 0 ? `Function(${B})` : "Function";
2015
+ const Q = g.name;
2016
+ return typeof Q == "string" && Q.length > 0 ? `Function(${Q})` : "Function";
2015
2017
  }
2016
2018
  if (Array.isArray(g)) {
2017
- const B = g.length;
2019
+ const Q = g.length;
2018
2020
  let E = "[";
2019
- B > 0 && (E += LA(g[0]));
2020
- for (let D = 1; D < B; D++)
2021
+ Q > 0 && (E += LA(g[0]));
2022
+ for (let D = 1; D < Q; D++)
2021
2023
  E += ", " + LA(g[D]);
2022
2024
  return E += "]", E;
2023
2025
  }
2024
2026
  const C = /\[object ([^\]]+)\]/.exec(toString.call(g));
2025
- let Q;
2027
+ let B;
2026
2028
  if (C && C.length > 1)
2027
- Q = C[1];
2029
+ B = C[1];
2028
2030
  else
2029
2031
  return toString.call(g);
2030
- if (Q == "Object")
2032
+ if (B == "Object")
2031
2033
  try {
2032
2034
  return "Object(" + JSON.stringify(g) + ")";
2033
2035
  } catch {
2034
2036
  return "Object";
2035
2037
  }
2036
2038
  return g instanceof Error ? `${g.name}: ${g.message}
2037
- ${g.stack}` : Q;
2039
+ ${g.stack}` : B;
2038
2040
  }
2039
2041
  function tC(g) {
2040
- g < 132 || (z[g] = AA, AA = g);
2042
+ g < 132 || (V[g] = AA, AA = g);
2041
2043
  }
2042
- function ZC(g, A) {
2044
+ function zC(g, A) {
2043
2045
  return g = g >>> 0, $().subarray(g / 1, g / 1 + A);
2044
2046
  }
2045
- let b = null;
2047
+ let m = null;
2046
2048
  function M() {
2047
- return (b === null || b.buffer.detached === !0 || b.buffer.detached === void 0 && b.buffer !== I.memory.buffer) && (b = new DataView(I.memory.buffer)), b;
2049
+ return (m === null || m.buffer.detached === !0 || m.buffer.detached === void 0 && m.buffer !== I.memory.buffer) && (m = new DataView(I.memory.buffer)), m;
2048
2050
  }
2049
2051
  function U(g, A) {
2050
- return g = g >>> 0, zC(g, A);
2052
+ return g = g >>> 0, VC(g, A);
2051
2053
  }
2052
2054
  let EA = null;
2053
2055
  function $() {
2054
2056
  return (EA === null || EA.byteLength === 0) && (EA = new Uint8Array(I.memory.buffer)), EA;
2055
2057
  }
2056
2058
  function L(g) {
2057
- return z[g];
2059
+ return V[g];
2058
2060
  }
2059
- function KA(g, A) {
2061
+ function GA(g, A) {
2060
2062
  try {
2061
2063
  return g.apply(this, A);
2062
2064
  } catch (C) {
2063
2065
  I.__wbindgen_export3(s(C));
2064
2066
  }
2065
2067
  }
2066
- let z = new Array(128).fill(void 0);
2067
- z.push(void 0, null, !0, !1);
2068
- let AA = z.length;
2069
- function m(g) {
2068
+ let V = new Array(128).fill(void 0);
2069
+ V.push(void 0, null, !0, !1);
2070
+ let AA = V.length;
2071
+ function b(g) {
2070
2072
  return g == null;
2071
2073
  }
2072
2074
  function FA(g, A) {
2073
- const C = A(g.length * 4, 4) >>> 0, Q = M();
2074
- for (let B = 0; B < g.length; B++)
2075
- Q.setUint32(C + 4 * B, s(g[B]), !0);
2075
+ const C = A(g.length * 4, 4) >>> 0, B = M();
2076
+ for (let Q = 0; Q < g.length; Q++)
2077
+ B.setUint32(C + 4 * Q, s(g[Q]), !0);
2076
2078
  return o = g.length, C;
2077
2079
  }
2078
2080
  function N(g, A, C) {
@@ -2080,20 +2082,20 @@ function N(g, A, C) {
2080
2082
  const i = gA.encode(g), k = A(i.length, 1) >>> 0;
2081
2083
  return $().subarray(k, k + i.length).set(i), o = i.length, k;
2082
2084
  }
2083
- let Q = g.length, B = A(Q, 1) >>> 0;
2085
+ let B = g.length, Q = A(B, 1) >>> 0;
2084
2086
  const E = $();
2085
2087
  let D = 0;
2086
- for (; D < Q; D++) {
2088
+ for (; D < B; D++) {
2087
2089
  const i = g.charCodeAt(D);
2088
2090
  if (i > 127) break;
2089
- E[B + D] = i;
2091
+ E[Q + D] = i;
2090
2092
  }
2091
- if (D !== Q) {
2092
- D !== 0 && (g = g.slice(D)), B = C(B, Q, Q = D + g.length * 3, 1) >>> 0;
2093
- const i = $().subarray(B + D, B + Q), k = gA.encodeInto(g, i);
2094
- D += k.written, B = C(B, Q, D, 1) >>> 0;
2093
+ if (D !== B) {
2094
+ D !== 0 && (g = g.slice(D)), Q = C(Q, B, B = D + g.length * 3, 1) >>> 0;
2095
+ const i = $().subarray(Q + D, Q + B), k = gA.encodeInto(g, i);
2096
+ D += k.written, Q = C(Q, B, D, 1) >>> 0;
2095
2097
  }
2096
- return o = D, B;
2098
+ return o = D, Q;
2097
2099
  }
2098
2100
  function F(g) {
2099
2101
  const A = L(g);
@@ -2101,10 +2103,10 @@ function F(g) {
2101
2103
  }
2102
2104
  let DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2103
2105
  DA.decode();
2104
- const VC = 2146435072;
2106
+ const ZC = 2146435072;
2105
2107
  let HA = 0;
2106
- function zC(g, A) {
2107
- return HA += A, HA >= VC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), HA = A), DA.decode($().subarray(g, g + A));
2108
+ function VC(g, A) {
2109
+ return HA += A, HA >= ZC && (DA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), DA.decode(), HA = A), DA.decode($().subarray(g, g + A));
2108
2110
  }
2109
2111
  const gA = new TextEncoder();
2110
2112
  "encodeInto" in gA || (gA.encodeInto = function(g, A) {
@@ -2115,19 +2117,19 @@ const gA = new TextEncoder();
2115
2117
  };
2116
2118
  });
2117
2119
  let o = 0, I;
2118
- function xC(g) {
2120
+ function fC(g) {
2119
2121
  I = g;
2120
2122
  }
2121
2123
  URL = globalThis.URL;
2122
- const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2124
+ const w = await GI({ "./polyglot_sql_wasm_bg.js": {
2123
2125
  __wbindgen_object_drop_ref: dC,
2124
- __wbindgen_object_clone_ref: PC,
2126
+ __wbindgen_object_clone_ref: jC,
2125
2127
  __wbg_new_8a6f238a6ece86ea: hC,
2126
2128
  __wbg_stack_0ed75d68575b0f3c: aC,
2127
2129
  __wbg_error_7534b8e9a36f1ab4: CC,
2128
2130
  __wbg_get_with_ref_key_1dc361bd10053bfe: DC,
2129
- __wbg_set_3f1d0b984ed272ed: RC,
2130
- __wbg_String_8f0eb39a4a4c2f66: ZI,
2131
+ __wbg_set_3f1d0b984ed272ed: JC,
2132
+ __wbg_String_8f0eb39a4a4c2f66: zI,
2131
2133
  __wbg_new_dd2b680c8bf6ae29: LC,
2132
2134
  __wbg_length_32ed9a279acd054c: yC,
2133
2135
  __wbg_prototypesetcall_bdcdcc5842e4d77d: FC,
@@ -2137,11 +2139,11 @@ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2137
2139
  __wbg_instanceof_Uint8Array_9b9075935c74707c: iC,
2138
2140
  __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: wC,
2139
2141
  __wbg_new_dca287b076112a51: HC,
2140
- __wbg_set_1eb0999cf5d27fc8: JC,
2141
- __wbg_get_9b94d73e6221f75c: BC,
2142
+ __wbg_set_1eb0999cf5d27fc8: RC,
2143
+ __wbg_get_9b94d73e6221f75c: QC,
2142
2144
  __wbg_new_3eb36ae241fe6f44: SC,
2143
2145
  __wbg_set_f43e577aea94465b: sC,
2144
- __wbg_length_35a7bace40f36eac: KC,
2146
+ __wbg_length_35a7bace40f36eac: GC,
2145
2147
  __wbg_isArray_d314bb98fcf08331: oC,
2146
2148
  __wbg_isSafeInteger_bfbc7332a9768d2a: NC,
2147
2149
  __wbg_new_361308b2356cecd0: YC,
@@ -2152,164 +2154,164 @@ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2152
2154
  __wbg_next_418f80d8f5303233: cC,
2153
2155
  __wbg_next_3482f54c49e8af19: UC,
2154
2156
  __wbg_codePointAt_bf59dbf74d8db275: AC,
2155
- __wbg_fromCodePoint_22365db7b7d6ac39: QC,
2156
- __wbg_length_68dc7c5cf1b6d349: GC,
2157
- __wbg___wbindgen_in_47fa6863be6f2f25: fI,
2157
+ __wbg_fromCodePoint_22365db7b7d6ac39: BC,
2158
+ __wbg_length_68dc7c5cf1b6d349: KC,
2159
+ __wbg___wbindgen_in_47fa6863be6f2f25: xI,
2158
2160
  __wbg___wbindgen_throw_be289d5034ed271b: _I,
2159
2161
  __wbg___wbindgen_is_null_ac34f5003991759a: uI,
2160
- __wbg___wbindgen_jsval_eq_11888390b0186270: bI,
2162
+ __wbg___wbindgen_jsval_eq_11888390b0186270: mI,
2161
2163
  __wbg_Number_04624de7d0e8332d: tI,
2162
2164
  __wbg_Error_8c4e43fe74559d73: dI,
2163
2165
  __wbg___wbindgen_is_bigint_31b12575b56f32fc: WI,
2164
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: lI,
2165
- __wbg___wbindgen_is_string_cd444516edc5b180: rI,
2166
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: rI,
2167
+ __wbg___wbindgen_is_string_cd444516edc5b180: nI,
2166
2168
  __wbg___wbindgen_number_get_8ff4255516ccad3e: vI,
2167
2169
  __wbg___wbindgen_string_get_72fb696202c56729: XI,
2168
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: zI,
2170
+ __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: VI,
2169
2171
  __wbg___wbindgen_is_function_0095a73b8b156f76: eI,
2170
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: nI,
2171
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: mI,
2172
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: VI,
2173
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: xI,
2172
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: lI,
2173
+ __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: bI,
2174
+ __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: ZI,
2175
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: fI,
2174
2176
  __wbindgen_cast_0000000000000001: pC,
2175
2177
  __wbindgen_cast_0000000000000002: TC,
2176
2178
  __wbindgen_cast_0000000000000003: OC,
2177
- __wbindgen_cast_0000000000000004: jC
2178
- } }, yI), fC = w.memory, WC = w.__wbg_wasmassignmentarray_free, eC = w.__wbg_wasmcasebuilder_free, uC = w.__wbg_wasmdeletebuilder_free, lC = w.__wbg_wasmexpr_free, rC = w.__wbg_wasmexprarray_free, nC = w.__wbg_wasminsertbuilder_free, bC = w.__wbg_wasmmergebuilder_free, mC = w.__wbg_wasmselectbuilder_free, vC = w.__wbg_wasmsetopbuilder_free, XC = w.__wbg_wasmupdatebuilder_free, _C = w.__wbg_wasmwindowdefbuilder_free, $C = w.annotate_types, AQ = w.annotate_types_value, gQ = w.ast_add_where, IQ = w.ast_get_aggregate_functions, CQ = w.ast_get_column_names, QQ = w.ast_get_functions, BQ = w.ast_get_literals, EQ = w.ast_get_subqueries, DQ = w.ast_get_table_names, wQ = w.ast_get_window_functions, MQ = w.ast_node_count, iQ = w.ast_qualify_columns, oQ = w.ast_qualify_tables, NQ = w.ast_remove_where, kQ = w.ast_rename_columns, yQ = w.ast_rename_tables, KQ = w.ast_rename_tables_with_options, GQ = w.ast_set_distinct, YQ = w.ast_set_limit, SQ = w.diff_sql, hQ = w.format_sql, HQ = w.format_sql_value, LQ = w.format_sql_with_options, UQ = w.format_sql_with_options_value, cQ = w.generate, FQ = w.generate_value, JQ = w.get_dialects, RQ = w.get_dialects_value, sQ = w.lineage_sql, aQ = w.lineage_sql_with_schema, qQ = w.parse, pQ = w.parse_value, TQ = w.plan, OQ = w.source_tables, jQ = w.tokenize, PQ = w.tokenize_value, dQ = w.transpile, tQ = w.transpile_value, ZQ = w.validate, VQ = w.validate_with_options, zQ = w.validate_with_schema, xQ = w.version, fQ = w.wasm_alias, WQ = w.wasm_and, eQ = w.wasm_boolean, uQ = w.wasm_case_of, lQ = w.wasm_cast, rQ = w.wasm_col, nQ = w.wasm_count_distinct, bQ = w.wasm_extract, mQ = w.wasm_func, vQ = w.wasm_lit, XQ = w.wasm_not, _Q = w.wasm_null, $Q = w.wasm_or, AB = w.wasm_sql_expr, gB = w.wasm_star, IB = w.wasm_subquery, CB = w.wasm_table, QB = w.wasmassignmentarray_len, BB = w.wasmassignmentarray_new, EB = w.wasmassignmentarray_push, DB = w.wasmcasebuilder_build_expr, wB = w.wasmcasebuilder_else_, MB = w.wasmcasebuilder_new, iB = w.wasmcasebuilder_to_sql, oB = w.wasmcasebuilder_when, NB = w.wasmdeletebuilder_build, kB = w.wasmdeletebuilder_new, yB = w.wasmdeletebuilder_to_sql, KB = w.wasmdeletebuilder_where_expr, GB = w.wasmexpr_add, YB = w.wasmexpr_alias, SB = w.wasmexpr_and, hB = w.wasmexpr_asc, HB = w.wasmexpr_between, LB = w.wasmexpr_cast, UB = w.wasmexpr_desc, cB = w.wasmexpr_div, FB = w.wasmexpr_eq, JB = w.wasmexpr_gt, RB = w.wasmexpr_gte, sB = w.wasmexpr_ilike, aB = w.wasmexpr_in_list, qB = w.wasmexpr_is_not_null, pB = w.wasmexpr_is_null, TB = w.wasmexpr_like, OB = w.wasmexpr_lt, jB = w.wasmexpr_lte, PB = w.wasmexpr_mul, dB = w.wasmexpr_neq, tB = w.wasmexpr_not, ZB = w.wasmexpr_not_in, VB = w.wasmexpr_or, zB = w.wasmexpr_rlike, xB = w.wasmexpr_sub, fB = w.wasmexpr_to_json, WB = w.wasmexpr_to_sql, eB = w.wasmexpr_xor, uB = w.wasmexprarray_len, lB = w.wasmexprarray_push, rB = w.wasmexprarray_push_col, nB = w.wasmexprarray_push_float, bB = w.wasmexprarray_push_int, mB = w.wasmexprarray_push_star, vB = w.wasmexprarray_push_str, XB = w.wasminsertbuilder_build, _B = w.wasminsertbuilder_columns, $B = w.wasminsertbuilder_new, AE = w.wasminsertbuilder_query, gE = w.wasminsertbuilder_to_sql, IE = w.wasminsertbuilder_values, CE = w.wasmmergebuilder_build, QE = w.wasmmergebuilder_new, BE = w.wasmmergebuilder_to_sql, EE = w.wasmmergebuilder_using, DE = w.wasmmergebuilder_when_matched_delete, wE = w.wasmmergebuilder_when_matched_update, ME = w.wasmmergebuilder_when_not_matched_insert, iE = w.wasmselectbuilder_build, oE = w.wasmselectbuilder_cross_join, NE = w.wasmselectbuilder_ctas, kE = w.wasmselectbuilder_ctas_sql, yE = w.wasmselectbuilder_distinct, KE = w.wasmselectbuilder_except_, GE = w.wasmselectbuilder_for_update, YE = w.wasmselectbuilder_from, SE = w.wasmselectbuilder_from_expr, hE = w.wasmselectbuilder_group_by_cols, HE = w.wasmselectbuilder_having, LE = w.wasmselectbuilder_hint, UE = w.wasmselectbuilder_intersect, cE = w.wasmselectbuilder_join, FE = w.wasmselectbuilder_lateral_view, JE = w.wasmselectbuilder_left_join, RE = w.wasmselectbuilder_limit, sE = w.wasmselectbuilder_new, aE = w.wasmselectbuilder_offset, qE = w.wasmselectbuilder_order_by_exprs, pE = w.wasmselectbuilder_qualify, TE = w.wasmselectbuilder_right_join, OE = w.wasmselectbuilder_select_col, jE = w.wasmselectbuilder_select_expr, PE = w.wasmselectbuilder_select_exprs, dE = w.wasmselectbuilder_select_star, tE = w.wasmselectbuilder_sort_by_exprs, ZE = w.wasmselectbuilder_to_sql, VE = w.wasmselectbuilder_union, zE = w.wasmselectbuilder_union_all, xE = w.wasmselectbuilder_where_expr, fE = w.wasmselectbuilder_where_sql, WE = w.wasmselectbuilder_window, eE = w.wasmsetopbuilder_build, uE = w.wasmsetopbuilder_limit, lE = w.wasmsetopbuilder_offset, rE = w.wasmsetopbuilder_order_by_exprs, nE = w.wasmsetopbuilder_to_sql, bE = w.wasmupdatebuilder_build, mE = w.wasmupdatebuilder_from, vE = w.wasmupdatebuilder_new, XE = w.wasmupdatebuilder_set, _E = w.wasmupdatebuilder_to_sql, $E = w.wasmupdatebuilder_where_expr, AD = w.wasmwindowdefbuilder_new, gD = w.wasmwindowdefbuilder_order_by, ID = w.wasmwindowdefbuilder_partition_by, CD = w.wasmexprarray_new, QD = w.__wbindgen_export, BD = w.__wbindgen_export2, ED = w.__wbindgen_export3, DD = w.__wbindgen_export4, wD = w.__wbindgen_add_to_stack_pointer, MD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2179
+ __wbindgen_cast_0000000000000004: PC
2180
+ } }, yI), xC = w.memory, WC = w.__wbg_wasmassignmentarray_free, eC = w.__wbg_wasmcasebuilder_free, uC = w.__wbg_wasmdeletebuilder_free, rC = w.__wbg_wasmexpr_free, nC = w.__wbg_wasmexprarray_free, lC = w.__wbg_wasminsertbuilder_free, mC = w.__wbg_wasmmergebuilder_free, bC = w.__wbg_wasmselectbuilder_free, vC = w.__wbg_wasmsetopbuilder_free, XC = w.__wbg_wasmupdatebuilder_free, _C = w.__wbg_wasmwindowdefbuilder_free, $C = w.annotate_types, AB = w.annotate_types_value, gB = w.ast_add_where, IB = w.ast_get_aggregate_functions, CB = w.ast_get_column_names, BB = w.ast_get_functions, QB = w.ast_get_literals, EB = w.ast_get_subqueries, DB = w.ast_get_table_names, wB = w.ast_get_window_functions, MB = w.ast_node_count, iB = w.ast_qualify_columns, oB = w.ast_qualify_tables, NB = w.ast_remove_where, kB = w.ast_rename_columns, yB = w.ast_rename_tables, GB = w.ast_rename_tables_with_options, KB = w.ast_set_distinct, YB = w.ast_set_limit, SB = w.diff_sql, hB = w.format_sql, HB = w.format_sql_value, LB = w.format_sql_with_options, UB = w.format_sql_with_options_value, cB = w.generate, FB = w.generate_value, RB = w.get_dialects, JB = w.get_dialects_value, sB = w.lineage_sql, aB = w.lineage_sql_with_schema, qB = w.parse, pB = w.parse_value, TB = w.plan, OB = w.source_tables, PB = w.tokenize, jB = w.tokenize_value, dB = w.transpile, tB = w.transpile_value, zB = w.validate, ZB = w.validate_with_options, VB = w.validate_with_schema, fB = w.version, xB = w.wasm_alias, WB = w.wasm_and, eB = w.wasm_boolean, uB = w.wasm_case_of, rB = w.wasm_cast, nB = w.wasm_col, lB = w.wasm_count_distinct, mB = w.wasm_extract, bB = w.wasm_func, vB = w.wasm_lit, XB = w.wasm_not, _B = w.wasm_null, $B = w.wasm_or, AQ = w.wasm_sql_expr, gQ = w.wasm_star, IQ = w.wasm_subquery, CQ = w.wasm_table, BQ = w.wasmassignmentarray_len, QQ = w.wasmassignmentarray_new, EQ = w.wasmassignmentarray_push, DQ = w.wasmcasebuilder_build_expr, wQ = w.wasmcasebuilder_else_, MQ = w.wasmcasebuilder_new, iQ = w.wasmcasebuilder_to_sql, oQ = w.wasmcasebuilder_when, NQ = w.wasmdeletebuilder_build, kQ = w.wasmdeletebuilder_new, yQ = w.wasmdeletebuilder_to_sql, GQ = w.wasmdeletebuilder_where_expr, KQ = w.wasmexpr_add, YQ = w.wasmexpr_alias, SQ = w.wasmexpr_and, hQ = w.wasmexpr_asc, HQ = w.wasmexpr_between, LQ = w.wasmexpr_cast, UQ = w.wasmexpr_desc, cQ = w.wasmexpr_div, FQ = w.wasmexpr_eq, RQ = w.wasmexpr_gt, JQ = w.wasmexpr_gte, sQ = w.wasmexpr_ilike, aQ = w.wasmexpr_in_list, qQ = w.wasmexpr_is_not_null, pQ = w.wasmexpr_is_null, TQ = w.wasmexpr_like, OQ = w.wasmexpr_lt, PQ = w.wasmexpr_lte, jQ = w.wasmexpr_mul, dQ = w.wasmexpr_neq, tQ = w.wasmexpr_not, zQ = w.wasmexpr_not_in, ZQ = w.wasmexpr_or, VQ = w.wasmexpr_rlike, fQ = w.wasmexpr_sub, xQ = w.wasmexpr_to_json, WQ = w.wasmexpr_to_sql, eQ = w.wasmexpr_xor, uQ = w.wasmexprarray_len, rQ = w.wasmexprarray_push, nQ = w.wasmexprarray_push_col, lQ = w.wasmexprarray_push_float, mQ = w.wasmexprarray_push_int, bQ = w.wasmexprarray_push_star, vQ = w.wasmexprarray_push_str, XQ = w.wasminsertbuilder_build, _Q = w.wasminsertbuilder_columns, $Q = w.wasminsertbuilder_new, AE = w.wasminsertbuilder_query, gE = w.wasminsertbuilder_to_sql, IE = w.wasminsertbuilder_values, CE = w.wasmmergebuilder_build, BE = w.wasmmergebuilder_new, QE = w.wasmmergebuilder_to_sql, EE = w.wasmmergebuilder_using, DE = w.wasmmergebuilder_when_matched_delete, wE = w.wasmmergebuilder_when_matched_update, ME = w.wasmmergebuilder_when_not_matched_insert, iE = w.wasmselectbuilder_build, oE = w.wasmselectbuilder_cross_join, NE = w.wasmselectbuilder_ctas, kE = w.wasmselectbuilder_ctas_sql, yE = w.wasmselectbuilder_distinct, GE = w.wasmselectbuilder_except_, KE = w.wasmselectbuilder_for_update, YE = w.wasmselectbuilder_from, SE = w.wasmselectbuilder_from_expr, hE = w.wasmselectbuilder_group_by_cols, HE = w.wasmselectbuilder_having, LE = w.wasmselectbuilder_hint, UE = w.wasmselectbuilder_intersect, cE = w.wasmselectbuilder_join, FE = w.wasmselectbuilder_lateral_view, RE = w.wasmselectbuilder_left_join, JE = w.wasmselectbuilder_limit, sE = w.wasmselectbuilder_new, aE = w.wasmselectbuilder_offset, qE = w.wasmselectbuilder_order_by_exprs, pE = w.wasmselectbuilder_qualify, TE = w.wasmselectbuilder_right_join, OE = w.wasmselectbuilder_select_col, PE = w.wasmselectbuilder_select_expr, jE = w.wasmselectbuilder_select_exprs, dE = w.wasmselectbuilder_select_star, tE = w.wasmselectbuilder_sort_by_exprs, zE = w.wasmselectbuilder_to_sql, ZE = w.wasmselectbuilder_union, VE = w.wasmselectbuilder_union_all, fE = w.wasmselectbuilder_where_expr, xE = w.wasmselectbuilder_where_sql, WE = w.wasmselectbuilder_window, eE = w.wasmsetopbuilder_build, uE = w.wasmsetopbuilder_limit, rE = w.wasmsetopbuilder_offset, nE = w.wasmsetopbuilder_order_by_exprs, lE = w.wasmsetopbuilder_to_sql, mE = w.wasmupdatebuilder_build, bE = w.wasmupdatebuilder_from, vE = w.wasmupdatebuilder_new, XE = w.wasmupdatebuilder_set, _E = w.wasmupdatebuilder_to_sql, $E = w.wasmupdatebuilder_where_expr, AD = w.wasmwindowdefbuilder_new, gD = w.wasmwindowdefbuilder_order_by, ID = w.wasmwindowdefbuilder_partition_by, CD = w.wasmexprarray_new, BD = w.__wbindgen_export, QD = w.__wbindgen_export2, ED = w.__wbindgen_export3, DD = w.__wbindgen_export4, wD = w.__wbindgen_add_to_stack_pointer, MD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2179
2181
  __proto__: null,
2180
2182
  __wbg_wasmassignmentarray_free: WC,
2181
2183
  __wbg_wasmcasebuilder_free: eC,
2182
2184
  __wbg_wasmdeletebuilder_free: uC,
2183
- __wbg_wasmexpr_free: lC,
2184
- __wbg_wasmexprarray_free: rC,
2185
- __wbg_wasminsertbuilder_free: nC,
2186
- __wbg_wasmmergebuilder_free: bC,
2187
- __wbg_wasmselectbuilder_free: mC,
2185
+ __wbg_wasmexpr_free: rC,
2186
+ __wbg_wasmexprarray_free: nC,
2187
+ __wbg_wasminsertbuilder_free: lC,
2188
+ __wbg_wasmmergebuilder_free: mC,
2189
+ __wbg_wasmselectbuilder_free: bC,
2188
2190
  __wbg_wasmsetopbuilder_free: vC,
2189
2191
  __wbg_wasmupdatebuilder_free: XC,
2190
2192
  __wbg_wasmwindowdefbuilder_free: _C,
2191
2193
  __wbindgen_add_to_stack_pointer: wD,
2192
- __wbindgen_export: QD,
2193
- __wbindgen_export2: BD,
2194
+ __wbindgen_export: BD,
2195
+ __wbindgen_export2: QD,
2194
2196
  __wbindgen_export3: ED,
2195
2197
  __wbindgen_export4: DD,
2196
2198
  annotate_types: $C,
2197
- annotate_types_value: AQ,
2198
- ast_add_where: gQ,
2199
- ast_get_aggregate_functions: IQ,
2200
- ast_get_column_names: CQ,
2201
- ast_get_functions: QQ,
2202
- ast_get_literals: BQ,
2203
- ast_get_subqueries: EQ,
2204
- ast_get_table_names: DQ,
2205
- ast_get_window_functions: wQ,
2206
- ast_node_count: MQ,
2207
- ast_qualify_columns: iQ,
2208
- ast_qualify_tables: oQ,
2209
- ast_remove_where: NQ,
2210
- ast_rename_columns: kQ,
2211
- ast_rename_tables: yQ,
2212
- ast_rename_tables_with_options: KQ,
2213
- ast_set_distinct: GQ,
2214
- ast_set_limit: YQ,
2215
- diff_sql: SQ,
2216
- format_sql: hQ,
2217
- format_sql_value: HQ,
2218
- format_sql_with_options: LQ,
2219
- format_sql_with_options_value: UQ,
2220
- generate: cQ,
2221
- generate_value: FQ,
2222
- get_dialects: JQ,
2223
- get_dialects_value: RQ,
2224
- lineage_sql: sQ,
2225
- lineage_sql_with_schema: aQ,
2226
- memory: fC,
2227
- parse: qQ,
2228
- parse_value: pQ,
2229
- plan: TQ,
2230
- source_tables: OQ,
2231
- tokenize: jQ,
2232
- tokenize_value: PQ,
2233
- transpile: dQ,
2234
- transpile_value: tQ,
2235
- validate: ZQ,
2236
- validate_with_options: VQ,
2237
- validate_with_schema: zQ,
2238
- version: xQ,
2239
- wasm_alias: fQ,
2240
- wasm_and: WQ,
2241
- wasm_boolean: eQ,
2242
- wasm_case_of: uQ,
2243
- wasm_cast: lQ,
2244
- wasm_col: rQ,
2245
- wasm_count_distinct: nQ,
2246
- wasm_extract: bQ,
2247
- wasm_func: mQ,
2248
- wasm_lit: vQ,
2249
- wasm_not: XQ,
2250
- wasm_null: _Q,
2251
- wasm_or: $Q,
2252
- wasm_sql_expr: AB,
2253
- wasm_star: gB,
2254
- wasm_subquery: IB,
2255
- wasm_table: CB,
2256
- wasmassignmentarray_len: QB,
2257
- wasmassignmentarray_new: BB,
2258
- wasmassignmentarray_push: EB,
2259
- wasmcasebuilder_build_expr: DB,
2260
- wasmcasebuilder_else_: wB,
2261
- wasmcasebuilder_new: MB,
2262
- wasmcasebuilder_to_sql: iB,
2263
- wasmcasebuilder_when: oB,
2264
- wasmdeletebuilder_build: NB,
2265
- wasmdeletebuilder_new: kB,
2266
- wasmdeletebuilder_to_sql: yB,
2267
- wasmdeletebuilder_where_expr: KB,
2268
- wasmexpr_add: GB,
2269
- wasmexpr_alias: YB,
2270
- wasmexpr_and: SB,
2271
- wasmexpr_asc: hB,
2272
- wasmexpr_between: HB,
2273
- wasmexpr_cast: LB,
2274
- wasmexpr_desc: UB,
2275
- wasmexpr_div: cB,
2276
- wasmexpr_eq: FB,
2277
- wasmexpr_gt: JB,
2278
- wasmexpr_gte: RB,
2279
- wasmexpr_ilike: sB,
2280
- wasmexpr_in_list: aB,
2281
- wasmexpr_is_not_null: qB,
2282
- wasmexpr_is_null: pB,
2283
- wasmexpr_like: TB,
2284
- wasmexpr_lt: OB,
2285
- wasmexpr_lte: jB,
2286
- wasmexpr_mul: PB,
2287
- wasmexpr_neq: dB,
2288
- wasmexpr_not: tB,
2289
- wasmexpr_not_in: ZB,
2290
- wasmexpr_or: VB,
2291
- wasmexpr_rlike: zB,
2292
- wasmexpr_sub: xB,
2293
- wasmexpr_to_json: fB,
2294
- wasmexpr_to_sql: WB,
2295
- wasmexpr_xor: eB,
2296
- wasmexprarray_len: uB,
2199
+ annotate_types_value: AB,
2200
+ ast_add_where: gB,
2201
+ ast_get_aggregate_functions: IB,
2202
+ ast_get_column_names: CB,
2203
+ ast_get_functions: BB,
2204
+ ast_get_literals: QB,
2205
+ ast_get_subqueries: EB,
2206
+ ast_get_table_names: DB,
2207
+ ast_get_window_functions: wB,
2208
+ ast_node_count: MB,
2209
+ ast_qualify_columns: iB,
2210
+ ast_qualify_tables: oB,
2211
+ ast_remove_where: NB,
2212
+ ast_rename_columns: kB,
2213
+ ast_rename_tables: yB,
2214
+ ast_rename_tables_with_options: GB,
2215
+ ast_set_distinct: KB,
2216
+ ast_set_limit: YB,
2217
+ diff_sql: SB,
2218
+ format_sql: hB,
2219
+ format_sql_value: HB,
2220
+ format_sql_with_options: LB,
2221
+ format_sql_with_options_value: UB,
2222
+ generate: cB,
2223
+ generate_value: FB,
2224
+ get_dialects: RB,
2225
+ get_dialects_value: JB,
2226
+ lineage_sql: sB,
2227
+ lineage_sql_with_schema: aB,
2228
+ memory: xC,
2229
+ parse: qB,
2230
+ parse_value: pB,
2231
+ plan: TB,
2232
+ source_tables: OB,
2233
+ tokenize: PB,
2234
+ tokenize_value: jB,
2235
+ transpile: dB,
2236
+ transpile_value: tB,
2237
+ validate: zB,
2238
+ validate_with_options: ZB,
2239
+ validate_with_schema: VB,
2240
+ version: fB,
2241
+ wasm_alias: xB,
2242
+ wasm_and: WB,
2243
+ wasm_boolean: eB,
2244
+ wasm_case_of: uB,
2245
+ wasm_cast: rB,
2246
+ wasm_col: nB,
2247
+ wasm_count_distinct: lB,
2248
+ wasm_extract: mB,
2249
+ wasm_func: bB,
2250
+ wasm_lit: vB,
2251
+ wasm_not: XB,
2252
+ wasm_null: _B,
2253
+ wasm_or: $B,
2254
+ wasm_sql_expr: AQ,
2255
+ wasm_star: gQ,
2256
+ wasm_subquery: IQ,
2257
+ wasm_table: CQ,
2258
+ wasmassignmentarray_len: BQ,
2259
+ wasmassignmentarray_new: QQ,
2260
+ wasmassignmentarray_push: EQ,
2261
+ wasmcasebuilder_build_expr: DQ,
2262
+ wasmcasebuilder_else_: wQ,
2263
+ wasmcasebuilder_new: MQ,
2264
+ wasmcasebuilder_to_sql: iQ,
2265
+ wasmcasebuilder_when: oQ,
2266
+ wasmdeletebuilder_build: NQ,
2267
+ wasmdeletebuilder_new: kQ,
2268
+ wasmdeletebuilder_to_sql: yQ,
2269
+ wasmdeletebuilder_where_expr: GQ,
2270
+ wasmexpr_add: KQ,
2271
+ wasmexpr_alias: YQ,
2272
+ wasmexpr_and: SQ,
2273
+ wasmexpr_asc: hQ,
2274
+ wasmexpr_between: HQ,
2275
+ wasmexpr_cast: LQ,
2276
+ wasmexpr_desc: UQ,
2277
+ wasmexpr_div: cQ,
2278
+ wasmexpr_eq: FQ,
2279
+ wasmexpr_gt: RQ,
2280
+ wasmexpr_gte: JQ,
2281
+ wasmexpr_ilike: sQ,
2282
+ wasmexpr_in_list: aQ,
2283
+ wasmexpr_is_not_null: qQ,
2284
+ wasmexpr_is_null: pQ,
2285
+ wasmexpr_like: TQ,
2286
+ wasmexpr_lt: OQ,
2287
+ wasmexpr_lte: PQ,
2288
+ wasmexpr_mul: jQ,
2289
+ wasmexpr_neq: dQ,
2290
+ wasmexpr_not: tQ,
2291
+ wasmexpr_not_in: zQ,
2292
+ wasmexpr_or: ZQ,
2293
+ wasmexpr_rlike: VQ,
2294
+ wasmexpr_sub: fQ,
2295
+ wasmexpr_to_json: xQ,
2296
+ wasmexpr_to_sql: WQ,
2297
+ wasmexpr_xor: eQ,
2298
+ wasmexprarray_len: uQ,
2297
2299
  wasmexprarray_new: CD,
2298
- wasmexprarray_push: lB,
2299
- wasmexprarray_push_col: rB,
2300
- wasmexprarray_push_float: nB,
2301
- wasmexprarray_push_int: bB,
2302
- wasmexprarray_push_star: mB,
2303
- wasmexprarray_push_str: vB,
2304
- wasminsertbuilder_build: XB,
2305
- wasminsertbuilder_columns: _B,
2306
- wasminsertbuilder_new: $B,
2300
+ wasmexprarray_push: rQ,
2301
+ wasmexprarray_push_col: nQ,
2302
+ wasmexprarray_push_float: lQ,
2303
+ wasmexprarray_push_int: mQ,
2304
+ wasmexprarray_push_star: bQ,
2305
+ wasmexprarray_push_str: vQ,
2306
+ wasminsertbuilder_build: XQ,
2307
+ wasminsertbuilder_columns: _Q,
2308
+ wasminsertbuilder_new: $Q,
2307
2309
  wasminsertbuilder_query: AE,
2308
2310
  wasminsertbuilder_to_sql: gE,
2309
2311
  wasminsertbuilder_values: IE,
2310
2312
  wasmmergebuilder_build: CE,
2311
- wasmmergebuilder_new: QE,
2312
- wasmmergebuilder_to_sql: BE,
2313
+ wasmmergebuilder_new: BE,
2314
+ wasmmergebuilder_to_sql: QE,
2313
2315
  wasmmergebuilder_using: EE,
2314
2316
  wasmmergebuilder_when_matched_delete: DE,
2315
2317
  wasmmergebuilder_when_matched_update: wE,
@@ -2319,8 +2321,8 @@ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2319
2321
  wasmselectbuilder_ctas: NE,
2320
2322
  wasmselectbuilder_ctas_sql: kE,
2321
2323
  wasmselectbuilder_distinct: yE,
2322
- wasmselectbuilder_except_: KE,
2323
- wasmselectbuilder_for_update: GE,
2324
+ wasmselectbuilder_except_: GE,
2325
+ wasmselectbuilder_for_update: KE,
2324
2326
  wasmselectbuilder_from: YE,
2325
2327
  wasmselectbuilder_from_expr: SE,
2326
2328
  wasmselectbuilder_group_by_cols: hE,
@@ -2329,31 +2331,31 @@ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2329
2331
  wasmselectbuilder_intersect: UE,
2330
2332
  wasmselectbuilder_join: cE,
2331
2333
  wasmselectbuilder_lateral_view: FE,
2332
- wasmselectbuilder_left_join: JE,
2333
- wasmselectbuilder_limit: RE,
2334
+ wasmselectbuilder_left_join: RE,
2335
+ wasmselectbuilder_limit: JE,
2334
2336
  wasmselectbuilder_new: sE,
2335
2337
  wasmselectbuilder_offset: aE,
2336
2338
  wasmselectbuilder_order_by_exprs: qE,
2337
2339
  wasmselectbuilder_qualify: pE,
2338
2340
  wasmselectbuilder_right_join: TE,
2339
2341
  wasmselectbuilder_select_col: OE,
2340
- wasmselectbuilder_select_expr: jE,
2341
- wasmselectbuilder_select_exprs: PE,
2342
+ wasmselectbuilder_select_expr: PE,
2343
+ wasmselectbuilder_select_exprs: jE,
2342
2344
  wasmselectbuilder_select_star: dE,
2343
2345
  wasmselectbuilder_sort_by_exprs: tE,
2344
- wasmselectbuilder_to_sql: ZE,
2345
- wasmselectbuilder_union: VE,
2346
- wasmselectbuilder_union_all: zE,
2347
- wasmselectbuilder_where_expr: xE,
2348
- wasmselectbuilder_where_sql: fE,
2346
+ wasmselectbuilder_to_sql: zE,
2347
+ wasmselectbuilder_union: ZE,
2348
+ wasmselectbuilder_union_all: VE,
2349
+ wasmselectbuilder_where_expr: fE,
2350
+ wasmselectbuilder_where_sql: xE,
2349
2351
  wasmselectbuilder_window: WE,
2350
2352
  wasmsetopbuilder_build: eE,
2351
2353
  wasmsetopbuilder_limit: uE,
2352
- wasmsetopbuilder_offset: lE,
2353
- wasmsetopbuilder_order_by_exprs: rE,
2354
- wasmsetopbuilder_to_sql: nE,
2355
- wasmupdatebuilder_build: bE,
2356
- wasmupdatebuilder_from: mE,
2354
+ wasmsetopbuilder_offset: rE,
2355
+ wasmsetopbuilder_order_by_exprs: nE,
2356
+ wasmsetopbuilder_to_sql: lE,
2357
+ wasmupdatebuilder_build: mE,
2358
+ wasmupdatebuilder_from: bE,
2357
2359
  wasmupdatebuilder_new: vE,
2358
2360
  wasmupdatebuilder_set: XE,
2359
2361
  wasmupdatebuilder_to_sql: _E,
@@ -2362,23 +2364,23 @@ const w = await KI({ "./polyglot_sql_wasm_bg.js": {
2362
2364
  wasmwindowdefbuilder_order_by: gD,
2363
2365
  wasmwindowdefbuilder_partition_by: ID
2364
2366
  }, Symbol.toStringTag, { value: "Module" }));
2365
- xC(MD);
2367
+ fC(MD);
2366
2368
  const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2367
2369
  __proto__: null,
2368
2370
  WasmAssignmentArray: CA,
2369
- WasmCaseBuilder: n,
2371
+ WasmCaseBuilder: l,
2370
2372
  WasmDeleteBuilder: MA,
2371
- WasmExpr: G,
2373
+ WasmExpr: K,
2372
2374
  WasmExprArray: T,
2373
2375
  WasmInsertBuilder: iA,
2374
2376
  WasmMergeBuilder: oA,
2375
- WasmSelectBuilder: P,
2376
- WasmSetOpBuilder: x,
2377
+ WasmSelectBuilder: j,
2378
+ WasmSetOpBuilder: f,
2377
2379
  WasmUpdateBuilder: NA,
2378
- WasmWindowDefBuilder: QA,
2379
- annotate_types: GI,
2380
+ WasmWindowDefBuilder: BA,
2381
+ annotate_types: KI,
2380
2382
  annotate_types_value: YI,
2381
- ast_add_where: mA,
2383
+ ast_add_where: bA,
2382
2384
  ast_get_aggregate_functions: vA,
2383
2385
  ast_get_column_names: XA,
2384
2386
  ast_get_functions: _A,
@@ -2387,8 +2389,8 @@ const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2387
2389
  ast_get_table_names: gg,
2388
2390
  ast_get_window_functions: Ig,
2389
2391
  ast_node_count: Cg,
2390
- ast_qualify_columns: Qg,
2391
- ast_qualify_tables: Bg,
2392
+ ast_qualify_columns: Bg,
2393
+ ast_qualify_tables: Qg,
2392
2394
  ast_remove_where: Eg,
2393
2395
  ast_rename_columns: Dg,
2394
2396
  ast_rename_tables: wg,
@@ -2403,21 +2405,21 @@ const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2403
2405
  generate: UI,
2404
2406
  generate_value: cI,
2405
2407
  get_dialects: FI,
2406
- get_dialects_value: JI,
2408
+ get_dialects_value: RI,
2407
2409
  lineage_sql: kg,
2408
2410
  lineage_sql_with_schema: yg,
2409
- parse: RI,
2411
+ parse: JI,
2410
2412
  parse_value: sI,
2411
- plan: Kg,
2412
- source_tables: Gg,
2413
+ plan: Gg,
2414
+ source_tables: Kg,
2413
2415
  tokenize: aI,
2414
2416
  tokenize_value: qI,
2415
2417
  transpile: pI,
2416
2418
  transpile_value: TI,
2417
2419
  validate: OI,
2418
- validate_with_options: jI,
2420
+ validate_with_options: PI,
2419
2421
  validate_with_schema: Yg,
2420
- version: PI,
2422
+ version: jI,
2421
2423
  wasm_alias: Sg,
2422
2424
  wasm_and: hg,
2423
2425
  wasm_boolean: Hg,
@@ -2426,9 +2428,9 @@ const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2426
2428
  wasm_col: cA,
2427
2429
  wasm_count_distinct: cg,
2428
2430
  wasm_extract: Fg,
2429
- wasm_func: Jg,
2431
+ wasm_func: Rg,
2430
2432
  wasm_lit: kA,
2431
- wasm_not: Rg,
2433
+ wasm_not: Jg,
2432
2434
  wasm_null: yA,
2433
2435
  wasm_or: sg,
2434
2436
  wasm_sql_expr: ag,
@@ -2443,7 +2445,7 @@ function O(g) {
2443
2445
  const A = Object.keys(g)[0];
2444
2446
  return g[A];
2445
2447
  }
2446
- function f(g) {
2448
+ function x(g) {
2447
2449
  if (typeof g != "object" || g === null || Array.isArray(g))
2448
2450
  return !1;
2449
2451
  const A = Object.keys(g);
@@ -2451,10 +2453,10 @@ function f(g) {
2451
2453
  const C = g[A[0]];
2452
2454
  return C === null || typeof C == "object" && !Array.isArray(C);
2453
2455
  }
2454
- function Z(g, A) {
2456
+ function z(g, A) {
2455
2457
  return { [g]: A };
2456
2458
  }
2457
- function jg(g) {
2459
+ function Pg(g) {
2458
2460
  const A = O(g);
2459
2461
  if (A && typeof A == "object" && "inferred_type" in A) {
2460
2462
  const C = A.inferred_type;
@@ -2465,7 +2467,7 @@ function jg(g) {
2465
2467
  function Y(g) {
2466
2468
  return (A) => g in A;
2467
2469
  }
2468
- const Pg = Y("select"), iD = Y("insert"), oD = Y("update"), ND = Y("delete"), kD = Y("union"), yD = Y("intersect"), KD = Y("except"), GD = Y("subquery"), YD = Y("identifier"), dg = Y("column"), SD = Y("table"), hD = Y("star"), tg = Y("literal"), HD = Y("boolean"), LD = Y("null"), UD = Y("and"), cD = Y("or"), FD = Y("not"), JD = Y("eq"), RD = Y("neq"), sD = Y("lt"), aD = Y("lte"), qD = Y("gt"), pD = Y("gte"), TD = Y("like"), OD = Y("i_like"), jD = Y("add"), PD = Y("sub"), dD = Y("mul"), tD = Y("div"), ZD = Y("mod"), VD = Y("concat"), zD = Y("in"), xD = Y("between"), fD = Y("is_null"), WD = Y("exists"), Zg = Y("function"), eD = Y("aggregate_function"), uD = Y("window_function"), lD = Y("count"), rD = Y("sum"), nD = Y("avg"), bD = Y("min"), mD = Y("max"), vD = Y("coalesce"), XD = Y("null_if"), _D = Y("cast"), $D = Y("try_cast"), Aw = Y("safe_cast"), gw = Y("case"), Iw = Y("from"), Cw = Y("join"), Qw = Y("where"), Bw = Y("group_by"), Ew = Y("having"), Dw = Y("order_by"), ww = Y("limit"), Mw = Y("offset"), iw = Y("with"), ow = Y("cte"), Nw = Y("alias"), kw = Y("paren"), yw = Y("ordered"), Kw = Y("create_table"), Gw = Y("drop_table"), Yw = Y("alter_table"), Sw = Y("create_index"), hw = Y("drop_index"), Hw = Y("create_view"), Lw = Y("drop_view");
2470
+ const jg = Y("select"), iD = Y("insert"), oD = Y("update"), ND = Y("delete"), kD = Y("union"), yD = Y("intersect"), GD = Y("except"), KD = Y("subquery"), YD = Y("identifier"), dg = Y("column"), SD = Y("table"), hD = Y("star"), tg = Y("literal"), HD = Y("boolean"), LD = Y("null"), UD = Y("and"), cD = Y("or"), FD = Y("not"), RD = Y("eq"), JD = Y("neq"), sD = Y("lt"), aD = Y("lte"), qD = Y("gt"), pD = Y("gte"), TD = Y("like"), OD = Y("i_like"), PD = Y("add"), jD = Y("sub"), dD = Y("mul"), tD = Y("div"), zD = Y("mod"), ZD = Y("concat"), VD = Y("in"), fD = Y("between"), xD = Y("is_null"), WD = Y("exists"), zg = Y("function"), eD = Y("aggregate_function"), uD = Y("window_function"), rD = Y("count"), nD = Y("sum"), lD = Y("avg"), mD = Y("min"), bD = Y("max"), vD = Y("coalesce"), XD = Y("null_if"), _D = Y("cast"), $D = Y("try_cast"), Aw = Y("safe_cast"), gw = Y("case"), Iw = Y("from"), Cw = Y("join"), Bw = Y("where"), Qw = Y("group_by"), Ew = Y("having"), Dw = Y("order_by"), ww = Y("limit"), Mw = Y("offset"), iw = Y("with"), ow = Y("cte"), Nw = Y("alias"), kw = Y("paren"), yw = Y("ordered"), Gw = Y("create_table"), Kw = Y("drop_table"), Yw = Y("alter_table"), Sw = Y("create_index"), hw = Y("drop_index"), Hw = Y("create_view"), Lw = Y("drop_view");
2469
2471
  function Uw(g) {
2470
2472
  const A = p(g);
2471
2473
  return A === "select" || A === "insert" || A === "update" || A === "delete";
@@ -2478,11 +2480,11 @@ function Fw(g) {
2478
2480
  const A = p(g);
2479
2481
  return A === "eq" || A === "neq" || A === "lt" || A === "lte" || A === "gt" || A === "gte" || A === "like" || A === "i_like";
2480
2482
  }
2481
- function Jw(g) {
2483
+ function Rw(g) {
2482
2484
  const A = p(g);
2483
2485
  return A === "add" || A === "sub" || A === "mul" || A === "div" || A === "mod";
2484
2486
  }
2485
- function Rw(g) {
2487
+ function Jw(g) {
2486
2488
  const A = p(g);
2487
2489
  return A === "and" || A === "or" || A === "not";
2488
2490
  }
@@ -2490,121 +2492,121 @@ function sw(g) {
2490
2492
  const A = p(g);
2491
2493
  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";
2492
2494
  }
2493
- function V(g) {
2495
+ function Z(g) {
2494
2496
  return JSON.stringify(g);
2495
2497
  }
2496
2498
  function e(g) {
2497
2499
  const A = JSON.parse(g);
2498
2500
  return A.success ? JSON.parse(A.ast) : null;
2499
2501
  }
2500
- function Vg(g, A, C) {
2502
+ function Zg(g, A, C) {
2501
2503
  if (g == null) return g;
2502
2504
  if (Array.isArray(g))
2503
- return g.length > 0 && f(g[0]) ? g.map(
2504
- (Q, B) => wA(Q, A, C, null, B)
2505
- ) : g.length > 0 && Array.isArray(g[0]) ? g.map((Q) => Array.isArray(Q) ? Q.map((B, E) => f(B) ? wA(B, A, C, null, E) : B) : Q) : g;
2506
- if (f(g))
2505
+ return g.length > 0 && x(g[0]) ? g.map(
2506
+ (B, Q) => wA(B, A, C, null, Q)
2507
+ ) : g.length > 0 && Array.isArray(g[0]) ? g.map((B) => Array.isArray(B) ? B.map((Q, E) => x(Q) ? wA(Q, A, C, null, E) : Q) : B) : g;
2508
+ if (x(g))
2507
2509
  return wA(g, A, C, null, null);
2508
2510
  if (typeof g == "object") {
2509
- const B = { ...g };
2511
+ const Q = { ...g };
2510
2512
  let E = !1;
2511
- for (const [D, i] of Object.entries(B)) {
2512
- const k = Vg(i, A, C);
2513
- k !== i && (B[D] = k, E = !0);
2513
+ for (const [D, i] of Object.entries(Q)) {
2514
+ const k = Zg(i, A, C);
2515
+ k !== i && (Q[D] = k, E = !0);
2514
2516
  }
2515
- return E ? B : g;
2517
+ return E ? Q : g;
2516
2518
  }
2517
2519
  return g;
2518
2520
  }
2519
- function wA(g, A, C, Q, B) {
2521
+ function wA(g, A, C, B, Q) {
2520
2522
  let E = g;
2521
2523
  if (A.enter) {
2522
- const h = A.enter(E, C, Q, B);
2524
+ const h = A.enter(E, C, B, Q);
2523
2525
  if (h === null)
2524
2526
  return E;
2525
2527
  h !== void 0 && (E = h);
2526
2528
  }
2527
2529
  const D = p(E), i = A[D];
2528
2530
  if (i) {
2529
- const h = i(E, C, Q, B);
2531
+ const h = i(E, C, B, Q);
2530
2532
  if (h === null)
2531
2533
  return E;
2532
2534
  h !== void 0 && (E = h);
2533
2535
  }
2534
- const k = p(E), y = O(E);
2535
- let K;
2536
- if (y == null)
2537
- K = Z(k, y);
2536
+ const k = p(E), G = O(E);
2537
+ let y;
2538
+ if (G == null)
2539
+ y = z(k, G);
2538
2540
  else {
2539
- const h = { ...y };
2540
- for (const [R, q] of Object.entries(h)) {
2541
- const j = Vg(q, A, E);
2542
- j !== q && (h[R] = j);
2541
+ const h = { ...G };
2542
+ for (const [J, q] of Object.entries(h)) {
2543
+ const P = Zg(q, A, E);
2544
+ P !== q && (h[J] = P);
2543
2545
  }
2544
- K = Z(k, h);
2546
+ y = z(k, h);
2545
2547
  }
2546
2548
  if (A.leave) {
2547
- const h = A.leave(K, C, Q, B);
2549
+ const h = A.leave(y, C, B, Q);
2548
2550
  if (h != null)
2549
2551
  return h;
2550
2552
  }
2551
- return K;
2553
+ return y;
2552
2554
  }
2553
- function GA(g, A) {
2555
+ function KA(g, A) {
2554
2556
  return wA(g, A, null, null, null);
2555
2557
  }
2556
- function zg(g, A, C) {
2557
- return GA(g, {
2558
- enter: (Q, B) => {
2559
- if (A(Q, B))
2560
- return typeof C == "function" ? C(Q) : C;
2558
+ function Vg(g, A, C) {
2559
+ return KA(g, {
2560
+ enter: (B, Q) => {
2561
+ if (A(B, Q))
2562
+ return typeof C == "function" ? C(B) : C;
2561
2563
  }
2562
2564
  });
2563
2565
  }
2564
2566
  function aw(g, A, C) {
2565
- return zg(
2567
+ return Vg(
2566
2568
  g,
2567
- (Q) => p(Q) === A,
2568
- typeof C == "function" ? (Q) => C(Q) : C
2569
+ (B) => p(B) === A,
2570
+ typeof C == "function" ? (B) => C(B) : C
2569
2571
  );
2570
2572
  }
2571
- function xg(g, A) {
2573
+ function fg(g, A) {
2572
2574
  return e(
2573
- Dg(V(g), JSON.stringify(A))
2575
+ Dg(Z(g), JSON.stringify(A))
2574
2576
  ) ?? g;
2575
2577
  }
2576
2578
  function qw(g, A, C) {
2577
2579
  return e(
2578
2580
  C ? Mg(
2579
- V(g),
2581
+ Z(g),
2580
2582
  JSON.stringify(A),
2581
2583
  JSON.stringify(C)
2582
- ) : wg(V(g), JSON.stringify(A))
2584
+ ) : wg(Z(g), JSON.stringify(A))
2583
2585
  ) ?? g;
2584
2586
  }
2585
2587
  function pw(g, A) {
2586
2588
  return e(
2587
- Qg(V(g), A)
2589
+ Bg(Z(g), A)
2588
2590
  ) ?? g;
2589
2591
  }
2590
2592
  function Tw(g, A = {}) {
2591
2593
  return e(
2592
- Bg(V(g), JSON.stringify(A))
2594
+ Qg(Z(g), JSON.stringify(A))
2593
2595
  ) ?? g;
2594
2596
  }
2595
2597
  function Ow(g, A, C = "and") {
2596
2598
  return e(
2597
- mA(V(g), V(A), C === "or")
2599
+ bA(Z(g), Z(A), C === "or")
2598
2600
  ) ?? g;
2599
2601
  }
2600
- function jw(g) {
2601
- return e(Eg(V(g))) ?? g;
2602
+ function Pw(g) {
2603
+ return e(Eg(Z(g))) ?? g;
2602
2604
  }
2603
- function Pw(g, ...A) {
2605
+ function jw(g, ...A) {
2604
2606
  if (p(g) !== "select")
2605
2607
  return g;
2606
2608
  const C = O(g);
2607
- return Z("select", {
2609
+ return z("select", {
2608
2610
  ...C,
2609
2611
  expressions: [...C.expressions, ...A]
2610
2612
  });
@@ -2613,71 +2615,71 @@ function dw(g, A) {
2613
2615
  if (p(g) !== "select")
2614
2616
  return g;
2615
2617
  const C = O(g);
2616
- return Z("select", {
2618
+ return z("select", {
2617
2619
  ...C,
2618
- expressions: C.expressions.filter((Q) => !A(Q))
2620
+ expressions: C.expressions.filter((B) => !A(B))
2619
2621
  });
2620
2622
  }
2621
2623
  function tw(g, A) {
2622
2624
  if (typeof A == "number")
2623
- return e(og(V(g), A)) ?? g;
2625
+ return e(og(Z(g), A)) ?? g;
2624
2626
  if (p(g) !== "select")
2625
2627
  return g;
2626
2628
  const C = O(g);
2627
- return Z("select", {
2629
+ return z("select", {
2628
2630
  ...C,
2629
2631
  limit: { this: A }
2630
2632
  });
2631
2633
  }
2632
- function Zw(g, A) {
2634
+ function zw(g, A) {
2633
2635
  if (p(g) !== "select")
2634
2636
  return g;
2635
- const C = O(g), Q = typeof A == "number" ? Z("literal", { literal_type: "number", value: String(A) }) : A;
2636
- return Z("select", {
2637
+ const C = O(g), B = typeof A == "number" ? z("literal", { literal_type: "number", value: String(A) }) : A;
2638
+ return z("select", {
2637
2639
  ...C,
2638
- offset: { this: Q }
2640
+ offset: { this: B }
2639
2641
  });
2640
2642
  }
2641
- function Vw(g) {
2643
+ function Zw(g) {
2642
2644
  if (p(g) !== "select")
2643
2645
  return g;
2644
2646
  const A = O(g);
2645
- return Z("select", {
2647
+ return z("select", {
2646
2648
  ...A,
2647
2649
  limit: null,
2648
2650
  offset: null
2649
2651
  });
2650
2652
  }
2651
- function zw(g, A = !0) {
2652
- return e(ig(V(g), A)) ?? g;
2653
+ function Vw(g, A = !0) {
2654
+ return e(ig(Z(g), A)) ?? g;
2653
2655
  }
2654
- function xw(g) {
2655
- return GA(g, {});
2656
+ function fw(g) {
2657
+ return KA(g, {});
2656
2658
  }
2657
- function fg(g, A, C) {
2659
+ function xg(g, A, C) {
2658
2660
  if (g == null) return g;
2659
2661
  if (Array.isArray(g))
2660
- return g.length > 0 && f(g[0]) ? g.filter((Q) => !A(Q, C)).map((Q) => UA(Q, A)) : g;
2661
- if (f(g))
2662
+ return g.length > 0 && x(g[0]) ? g.filter((B) => !A(B, C)).map((B) => UA(B, A)) : g;
2663
+ if (x(g))
2662
2664
  return UA(g, A);
2663
2665
  if (typeof g == "object") {
2664
- const B = { ...g };
2666
+ const Q = { ...g };
2665
2667
  let E = !1;
2666
- for (const [D, i] of Object.entries(B)) {
2667
- const k = fg(i, A, C);
2668
- k !== i && (B[D] = k, E = !0);
2668
+ for (const [D, i] of Object.entries(Q)) {
2669
+ const k = xg(i, A, C);
2670
+ k !== i && (Q[D] = k, E = !0);
2669
2671
  }
2670
- return E ? B : g;
2672
+ return E ? Q : g;
2671
2673
  }
2672
2674
  return g;
2673
2675
  }
2674
2676
  function UA(g, A) {
2675
- const C = p(g), B = { ...O(g) };
2676
- for (const [E, D] of Object.entries(B)) {
2677
- const i = fg(D, A, g);
2678
- i !== D && (B[E] = i);
2677
+ const C = p(g), Q = { ...O(g) };
2678
+ for (const [E, D] of Object.entries(Q)) {
2679
+ const i = xg(D, A, g);
2680
+ i !== D && (Q[E] = i);
2679
2681
  }
2680
- return Z(C, B);
2682
+ return z(C, Q);
2681
2683
  }
2682
2684
  function u(g) {
2683
2685
  return JSON.stringify(g);
@@ -2685,84 +2687,84 @@ function u(g) {
2685
2687
  function Wg(g, A, C) {
2686
2688
  if (g != null) {
2687
2689
  if (Array.isArray(g)) {
2688
- if (g.length > 0 && f(g[0]))
2690
+ if (g.length > 0 && x(g[0]))
2689
2691
  C.push({ key: A, value: g });
2690
2692
  else if (g.length > 0 && Array.isArray(g[0])) {
2691
- for (const Q of g)
2692
- if (Array.isArray(Q))
2693
- for (const B of Q)
2694
- f(B) && C.push({ key: A, value: B });
2693
+ for (const B of g)
2694
+ if (Array.isArray(B))
2695
+ for (const Q of B)
2696
+ x(Q) && C.push({ key: A, value: Q });
2695
2697
  }
2696
- } else if (f(g))
2698
+ } else if (x(g))
2697
2699
  C.push({ key: A, value: g });
2698
2700
  else if (typeof g == "object")
2699
- for (const [, Q] of Object.entries(
2701
+ for (const [, B] of Object.entries(
2700
2702
  g
2701
2703
  ))
2702
- Wg(Q, A, C);
2704
+ Wg(B, A, C);
2703
2705
  }
2704
2706
  }
2705
2707
  function eg(g) {
2706
2708
  const A = [], C = O(g);
2707
2709
  if (!C || typeof C != "object") return A;
2708
- for (const [Q, B] of Object.entries(C))
2709
- Wg(B, Q, A);
2710
+ for (const [B, Q] of Object.entries(C))
2711
+ Wg(Q, B, A);
2710
2712
  return A;
2711
2713
  }
2712
- function t(g, A, C = null, Q = null, B = null) {
2713
- A.enter && A.enter(g, C, Q, B);
2714
+ function t(g, A, C = null, B = null, Q = null) {
2715
+ A.enter && A.enter(g, C, B, Q);
2714
2716
  const E = p(g), D = A[E];
2715
- D && D(g, C, Q, B);
2717
+ D && D(g, C, B, Q);
2716
2718
  const i = eg(g);
2717
2719
  for (const k of i)
2718
- Array.isArray(k.value) ? k.value.forEach((y, K) => {
2719
- t(y, A, g, k.key, K);
2720
+ Array.isArray(k.value) ? k.value.forEach((G, y) => {
2721
+ t(G, A, g, k.key, y);
2720
2722
  }) : t(k.value, A, g, k.key, null);
2721
- A.leave && A.leave(g, C, Q, B);
2723
+ A.leave && A.leave(g, C, B, Q);
2722
2724
  }
2723
2725
  function YA(g, A) {
2724
2726
  const C = [];
2725
2727
  return t(g, {
2726
- enter: (Q, B) => {
2727
- A(Q, B) && C.push(Q);
2728
+ enter: (B, Q) => {
2729
+ A(B, Q) && C.push(B);
2728
2730
  }
2729
2731
  }), C;
2730
2732
  }
2731
- function BA(g, A) {
2733
+ function QA(g, A) {
2732
2734
  return YA(g, (C) => p(C) === A);
2733
2735
  }
2734
2736
  function ug(g, A) {
2735
- let C, Q = !1;
2737
+ let C, B = !1;
2736
2738
  return t(g, {
2737
- enter: (B, E) => {
2738
- !Q && A(B, E) && (C = B, Q = !0);
2739
+ enter: (Q, E) => {
2740
+ !B && A(Q, E) && (C = Q, B = !0);
2739
2741
  }
2740
2742
  }), C;
2741
2743
  }
2742
- function fw(g, A) {
2744
+ function xw(g, A) {
2743
2745
  return ug(g, A) !== void 0;
2744
2746
  }
2745
2747
  function Ww(g, A) {
2746
2748
  let C = !0;
2747
2749
  return t(g, {
2748
- enter: (Q, B) => {
2749
- A(Q, B) || (C = !1);
2750
+ enter: (B, Q) => {
2751
+ A(B, Q) || (C = !1);
2750
2752
  }
2751
2753
  }), C;
2752
2754
  }
2753
2755
  function ew(g, A) {
2754
2756
  return YA(g, A).length;
2755
2757
  }
2756
- function lg(g) {
2757
- return BA(g, "column");
2758
+ function rg(g) {
2759
+ return QA(g, "column");
2758
2760
  }
2759
2761
  function uw(g) {
2760
- return BA(g, "table");
2761
- }
2762
- function lw(g) {
2763
- return BA(g, "identifier");
2762
+ return QA(g, "table");
2764
2763
  }
2765
2764
  function rw(g) {
2765
+ return QA(g, "identifier");
2766
+ }
2767
+ function nw(g) {
2766
2768
  const A = JSON.parse(_A(u(g)));
2767
2769
  return A.success ? JSON.parse(A.ast) : [];
2768
2770
  }
@@ -2770,34 +2772,34 @@ function IA(g) {
2770
2772
  const A = JSON.parse(vA(u(g)));
2771
2773
  return A.success ? JSON.parse(A.ast) : [];
2772
2774
  }
2773
- function rg(g) {
2775
+ function ng(g) {
2774
2776
  const A = JSON.parse(Ig(u(g)));
2775
2777
  return A.success ? JSON.parse(A.ast) : [];
2776
2778
  }
2777
- function ng(g) {
2779
+ function lg(g) {
2778
2780
  const A = JSON.parse(Ag(u(g)));
2779
2781
  return A.success ? JSON.parse(A.ast) : [];
2780
2782
  }
2781
- function nw(g) {
2783
+ function lw(g) {
2782
2784
  const A = JSON.parse($A(u(g)));
2783
2785
  return A.success ? JSON.parse(A.ast) : [];
2784
2786
  }
2785
- function bw(g) {
2787
+ function mw(g) {
2786
2788
  const A = JSON.parse(XA(u(g)));
2787
2789
  return A.success ? A.result : [];
2788
2790
  }
2789
- function mw(g) {
2791
+ function bw(g) {
2790
2792
  const A = JSON.parse(gg(u(g)));
2791
2793
  return A.success ? A.result : [];
2792
2794
  }
2793
- function bg(g) {
2795
+ function mg(g) {
2794
2796
  return IA(g).length > 0;
2795
2797
  }
2796
2798
  function vw(g) {
2797
- return rg(g).length > 0;
2799
+ return ng(g).length > 0;
2798
2800
  }
2799
2801
  function Xw(g) {
2800
- return ng(g).length > 0;
2802
+ return lg(g).length > 0;
2801
2803
  }
2802
2804
  function _w(g) {
2803
2805
  let A = 0, C = 0;
@@ -2817,129 +2819,129 @@ function $w(g) {
2817
2819
  function AM(g, A) {
2818
2820
  let C = null;
2819
2821
  return t(g, {
2820
- enter: (Q, B) => {
2821
- Q === A && (C = B);
2822
+ enter: (B, Q) => {
2823
+ B === A && (C = Q);
2822
2824
  }
2823
2825
  }), C;
2824
2826
  }
2825
2827
  function gM(g, A, C) {
2826
- const Q = [];
2827
- let B = null;
2828
+ const B = [];
2829
+ let Q = null;
2828
2830
  return t(g, {
2829
2831
  enter: (E) => {
2830
- if (B === null) {
2832
+ if (Q === null) {
2831
2833
  if (E === A)
2832
- for (let D = Q.length - 1; D >= 0; D--) {
2833
- const i = D > 0 ? Q[D - 1] : null;
2834
- if (C(Q[D], i)) {
2835
- B = Q[D];
2834
+ for (let D = B.length - 1; D >= 0; D--) {
2835
+ const i = D > 0 ? B[D - 1] : null;
2836
+ if (C(B[D], i)) {
2837
+ Q = B[D];
2836
2838
  break;
2837
2839
  }
2838
2840
  }
2839
- Q.push(E);
2841
+ B.push(E);
2840
2842
  }
2841
2843
  },
2842
2844
  leave: () => {
2843
- Q.pop();
2845
+ B.pop();
2844
2846
  }
2845
- }), B;
2847
+ }), Q;
2846
2848
  }
2847
2849
  function IM(g, A) {
2848
- let C = 0, Q = 0;
2850
+ let C = 0, B = 0;
2849
2851
  return t(g, {
2850
- enter: (B) => {
2851
- Q++, B === A && (C = Q);
2852
+ enter: (Q) => {
2853
+ B++, Q === A && (C = B);
2852
2854
  },
2853
2855
  leave: () => {
2854
- Q--;
2856
+ B--;
2855
2857
  }
2856
2858
  }), C;
2857
2859
  }
2858
2860
  const CM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2859
2861
  __proto__: null,
2860
- addSelectColumns: Pw,
2862
+ addSelectColumns: jw,
2861
2863
  addWhere: Ow,
2862
- clone: xw,
2864
+ clone: fw,
2863
2865
  countNodes: ew,
2864
2866
  every: Ww,
2865
2867
  findAll: YA,
2866
2868
  findAncestor: gM,
2867
- findByType: BA,
2869
+ findByType: QA,
2868
2870
  findFirst: ug,
2869
2871
  getAggregateFunctions: IA,
2870
2872
  getChildren: eg,
2871
- getColumnNames: bw,
2872
- getColumns: lg,
2873
+ getColumnNames: mw,
2874
+ getColumns: rg,
2873
2875
  getDepth: _w,
2874
2876
  getExprData: O,
2875
2877
  getExprType: p,
2876
- getFunctions: rw,
2877
- getIdentifiers: lw,
2878
- getInferredType: jg,
2879
- getLiterals: nw,
2878
+ getFunctions: nw,
2879
+ getIdentifiers: rw,
2880
+ getInferredType: Pg,
2881
+ getLiterals: lw,
2880
2882
  getNodeDepth: IM,
2881
2883
  getParent: AM,
2882
- getSubqueries: ng,
2883
- getTableNames: mw,
2884
+ getSubqueries: lg,
2885
+ getTableNames: bw,
2884
2886
  getTables: uw,
2885
- getWindowFunctions: rg,
2886
- hasAggregates: bg,
2887
+ getWindowFunctions: ng,
2888
+ hasAggregates: mg,
2887
2889
  hasSubqueries: Xw,
2888
2890
  hasWindowFunctions: vw,
2889
- isAdd: jD,
2891
+ isAdd: PD,
2890
2892
  isAggregateFunction: eD,
2891
2893
  isAlias: Nw,
2892
2894
  isAlterTable: Yw,
2893
2895
  isAnd: UD,
2894
- isArithmetic: Jw,
2895
- isAvg: nD,
2896
- isBetween: xD,
2896
+ isArithmetic: Rw,
2897
+ isAvg: lD,
2898
+ isBetween: fD,
2897
2899
  isBoolean: HD,
2898
2900
  isCase: gw,
2899
2901
  isCast: _D,
2900
2902
  isCoalesce: vD,
2901
2903
  isColumn: dg,
2902
2904
  isComparison: Fw,
2903
- isConcat: VD,
2904
- isCount: lD,
2905
+ isConcat: ZD,
2906
+ isCount: rD,
2905
2907
  isCreateIndex: Sw,
2906
- isCreateTable: Kw,
2908
+ isCreateTable: Gw,
2907
2909
  isCreateView: Hw,
2908
2910
  isCte: ow,
2909
2911
  isDDL: sw,
2910
2912
  isDelete: ND,
2911
2913
  isDiv: tD,
2912
2914
  isDropIndex: hw,
2913
- isDropTable: Gw,
2915
+ isDropTable: Kw,
2914
2916
  isDropView: Lw,
2915
- isEq: JD,
2916
- isExcept: KD,
2917
+ isEq: RD,
2918
+ isExcept: GD,
2917
2919
  isExists: WD,
2918
- isExpressionValue: f,
2920
+ isExpressionValue: x,
2919
2921
  isFrom: Iw,
2920
- isFunction: Zg,
2921
- isGroupBy: Bw,
2922
+ isFunction: zg,
2923
+ isGroupBy: Qw,
2922
2924
  isGt: qD,
2923
2925
  isGte: pD,
2924
2926
  isHaving: Ew,
2925
2927
  isILike: OD,
2926
2928
  isIdentifier: YD,
2927
- isIn: zD,
2929
+ isIn: VD,
2928
2930
  isInsert: iD,
2929
2931
  isIntersect: yD,
2930
- isIsNull: fD,
2932
+ isIsNull: xD,
2931
2933
  isJoin: Cw,
2932
2934
  isLike: TD,
2933
2935
  isLimit: ww,
2934
2936
  isLiteral: tg,
2935
- isLogical: Rw,
2937
+ isLogical: Jw,
2936
2938
  isLt: sD,
2937
2939
  isLte: aD,
2938
- isMax: mD,
2939
- isMin: bD,
2940
- isMod: ZD,
2940
+ isMax: bD,
2941
+ isMin: mD,
2942
+ isMod: zD,
2941
2943
  isMul: dD,
2942
- isNeq: RD,
2944
+ isNeq: JD,
2943
2945
  isNot: FD,
2944
2946
  isNullIf: XD,
2945
2947
  isNullLiteral: LD,
@@ -2950,36 +2952,36 @@ const CM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2950
2952
  isParen: kw,
2951
2953
  isQuery: Uw,
2952
2954
  isSafeCast: Aw,
2953
- isSelect: Pg,
2955
+ isSelect: jg,
2954
2956
  isSetOperation: cw,
2955
2957
  isStar: hD,
2956
- isSub: PD,
2957
- isSubquery: GD,
2958
- isSum: rD,
2958
+ isSub: jD,
2959
+ isSubquery: KD,
2960
+ isSum: nD,
2959
2961
  isTable: SD,
2960
2962
  isTryCast: $D,
2961
2963
  isUnion: kD,
2962
2964
  isUpdate: oD,
2963
- isWhere: Qw,
2965
+ isWhere: Bw,
2964
2966
  isWindowFunction: uD,
2965
2967
  isWith: iw,
2966
- makeExpr: Z,
2968
+ makeExpr: z,
2967
2969
  nodeCount: $w,
2968
2970
  qualifyColumns: pw,
2969
2971
  qualifyTables: Tw,
2970
2972
  remove: UA,
2971
- removeLimitOffset: Vw,
2973
+ removeLimitOffset: Zw,
2972
2974
  removeSelectColumns: dw,
2973
- removeWhere: jw,
2974
- renameColumns: xg,
2975
+ removeWhere: Pw,
2976
+ renameColumns: fg,
2975
2977
  renameTables: qw,
2976
2978
  replaceByType: aw,
2977
- replaceNodes: zg,
2978
- setDistinct: zw,
2979
+ replaceNodes: Vg,
2980
+ setDistinct: Vw,
2979
2981
  setLimit: tw,
2980
- setOffset: Zw,
2981
- some: fw,
2982
- transform: GA,
2982
+ setOffset: zw,
2983
+ some: xw,
2984
+ transform: KA,
2983
2985
  walk: t
2984
2986
  }, Symbol.toStringTag, { value: "Module" }));
2985
2987
  function c(g) {
@@ -3086,9 +3088,9 @@ class H {
3086
3088
  return new H(this._w.desc());
3087
3089
  }
3088
3090
  // -- Output --
3089
- /** Generate SQL string (generic dialect). */
3090
- toSql() {
3091
- return this._w.to_sql();
3091
+ /** Generate SQL string. Defaults to generic dialect. */
3092
+ toSql(A = "generic") {
3093
+ return this._w.to_sql(A);
3092
3094
  }
3093
3095
  /** Return the expression AST as a plain JS object. */
3094
3096
  toJSON() {
@@ -3099,11 +3101,11 @@ class H {
3099
3101
  this._w.free();
3100
3102
  }
3101
3103
  }
3102
- class QM {
3104
+ class BM {
3103
3105
  /** @internal WASM handle */
3104
3106
  _w;
3105
3107
  constructor() {
3106
- this._w = new QA();
3108
+ this._w = new BA();
3107
3109
  }
3108
3110
  /** Set the PARTITION BY expressions. */
3109
3111
  partitionBy(...A) {
@@ -3118,19 +3120,19 @@ class QM {
3118
3120
  this._w.free();
3119
3121
  }
3120
3122
  }
3121
- function BM(g) {
3123
+ function QM(g) {
3122
3124
  return new H(cA(g));
3123
3125
  }
3124
3126
  function EM(g) {
3125
3127
  return new H(kA(g));
3126
3128
  }
3127
- function mg() {
3129
+ function bg() {
3128
3130
  return new H(qg());
3129
3131
  }
3130
3132
  function DM() {
3131
3133
  return new H(yA());
3132
3134
  }
3133
- function JA(g) {
3135
+ function RA(g) {
3134
3136
  return new H(Hg(g));
3135
3137
  }
3136
3138
  function wM(g) {
@@ -3142,11 +3144,11 @@ function vg(g) {
3142
3144
  function MM(g) {
3143
3145
  return vg(g);
3144
3146
  }
3145
- function J(g, ...A) {
3146
- return new H(Jg(g, d(A)));
3147
+ function R(g, ...A) {
3148
+ return new H(Rg(g, d(A)));
3147
3149
  }
3148
3150
  function iM(g) {
3149
- return new H(Rg(c(g)));
3151
+ return new H(Jg(c(g)));
3150
3152
  }
3151
3153
  function oM(g, A) {
3152
3154
  return new H(Ug(c(g), A));
@@ -3158,7 +3160,7 @@ function kM(g, A) {
3158
3160
  return new H(pg(g._w, A));
3159
3161
  }
3160
3162
  function yM(...g) {
3161
- if (g.length === 0) return JA(!0);
3163
+ if (g.length === 0) return RA(!0);
3162
3164
  if (g.length === 1)
3163
3165
  return g[0] instanceof H ? g[0] : new H(c(g[0]));
3164
3166
  let A = c(g[0]);
@@ -3166,8 +3168,8 @@ function yM(...g) {
3166
3168
  A = hg(A, c(g[C]));
3167
3169
  return new H(A);
3168
3170
  }
3169
- function KM(...g) {
3170
- if (g.length === 0) return JA(!1);
3171
+ function GM(...g) {
3172
+ if (g.length === 0) return RA(!1);
3171
3173
  if (g.length === 1)
3172
3174
  return g[0] instanceof H ? g[0] : new H(c(g[0]));
3173
3175
  let A = c(g[0]);
@@ -3175,125 +3177,125 @@ function KM(...g) {
3175
3177
  A = sg(A, c(g[C]));
3176
3178
  return new H(A);
3177
3179
  }
3178
- function GM(g) {
3179
- return g !== void 0 ? J("COUNT", g) : J("COUNT", mg());
3180
+ function KM(g) {
3181
+ return g !== void 0 ? R("COUNT", g) : R("COUNT", bg());
3180
3182
  }
3181
3183
  function YM(g) {
3182
3184
  return new H(cg(c(g)));
3183
3185
  }
3184
3186
  function SM(g) {
3185
- return J("SUM", g);
3187
+ return R("SUM", g);
3186
3188
  }
3187
3189
  function hM(g) {
3188
- return J("AVG", g);
3190
+ return R("AVG", g);
3189
3191
  }
3190
3192
  function HM(g) {
3191
- return J("MIN", g);
3193
+ return R("MIN", g);
3192
3194
  }
3193
3195
  function LM(g) {
3194
- return J("MAX", g);
3196
+ return R("MAX", g);
3195
3197
  }
3196
3198
  function UM(g) {
3197
- return J("UPPER", g);
3199
+ return R("UPPER", g);
3198
3200
  }
3199
3201
  function cM(g) {
3200
- return J("LOWER", g);
3202
+ return R("LOWER", g);
3201
3203
  }
3202
3204
  function FM(g) {
3203
- return J("LENGTH", g);
3204
- }
3205
- function JM(g) {
3206
- return J("TRIM", g);
3205
+ return R("LENGTH", g);
3207
3206
  }
3208
3207
  function RM(g) {
3209
- return J("LTRIM", g);
3208
+ return R("TRIM", g);
3209
+ }
3210
+ function JM(g) {
3211
+ return R("LTRIM", g);
3210
3212
  }
3211
3213
  function sM(g) {
3212
- return J("RTRIM", g);
3214
+ return R("RTRIM", g);
3213
3215
  }
3214
3216
  function aM(g) {
3215
- return J("REVERSE", g);
3217
+ return R("REVERSE", g);
3216
3218
  }
3217
3219
  function qM(g) {
3218
- return J("INITCAP", g);
3220
+ return R("INITCAP", g);
3219
3221
  }
3220
3222
  function pM(g, A, C) {
3221
- return C !== void 0 ? J("SUBSTRING", g, A, C) : J("SUBSTRING", g, A);
3223
+ return C !== void 0 ? R("SUBSTRING", g, A, C) : R("SUBSTRING", g, A);
3222
3224
  }
3223
3225
  function TM(g, A, C) {
3224
- return J("REPLACE", g, A, C);
3226
+ return R("REPLACE", g, A, C);
3225
3227
  }
3226
3228
  function OM(g, ...A) {
3227
- return J("CONCAT_WS", g, ...A);
3229
+ return R("CONCAT_WS", g, ...A);
3228
3230
  }
3229
- function jM(...g) {
3230
- return J("COALESCE", ...g);
3231
+ function PM(...g) {
3232
+ return R("COALESCE", ...g);
3231
3233
  }
3232
- function PM(g, A) {
3233
- return J("NULLIF", g, A);
3234
+ function jM(g, A) {
3235
+ return R("NULLIF", g, A);
3234
3236
  }
3235
3237
  function dM(g, A) {
3236
- return J("IFNULL", g, A);
3238
+ return R("IFNULL", g, A);
3237
3239
  }
3238
3240
  function tM(g) {
3239
- return J("ABS", g);
3241
+ return R("ABS", g);
3240
3242
  }
3241
- function ZM(g, A) {
3242
- return A !== void 0 ? J("ROUND", g, A) : J("ROUND", g);
3243
+ function zM(g, A) {
3244
+ return A !== void 0 ? R("ROUND", g, A) : R("ROUND", g);
3243
3245
  }
3244
- function VM(g) {
3245
- return J("FLOOR", g);
3246
+ function ZM(g) {
3247
+ return R("FLOOR", g);
3246
3248
  }
3247
- function zM(g) {
3248
- return J("CEIL", g);
3249
+ function VM(g) {
3250
+ return R("CEIL", g);
3249
3251
  }
3250
- function xM(g, A) {
3251
- return J("POWER", g, A);
3252
+ function fM(g, A) {
3253
+ return R("POWER", g, A);
3252
3254
  }
3253
- function fM(g) {
3254
- return J("SQRT", g);
3255
+ function xM(g) {
3256
+ return R("SQRT", g);
3255
3257
  }
3256
3258
  function WM(g) {
3257
- return J("LN", g);
3259
+ return R("LN", g);
3258
3260
  }
3259
3261
  function eM(g) {
3260
- return J("EXP", g);
3262
+ return R("EXP", g);
3261
3263
  }
3262
3264
  function uM(g) {
3263
- return J("SIGN", g);
3264
- }
3265
- function lM(...g) {
3266
- return J("GREATEST", ...g);
3265
+ return R("SIGN", g);
3267
3266
  }
3268
3267
  function rM(...g) {
3269
- return J("LEAST", ...g);
3268
+ return R("GREATEST", ...g);
3270
3269
  }
3271
- function nM() {
3272
- return J("CURRENT_DATE");
3270
+ function nM(...g) {
3271
+ return R("LEAST", ...g);
3273
3272
  }
3274
- function bM() {
3275
- return J("CURRENT_TIME");
3273
+ function lM() {
3274
+ return R("CURRENT_DATE");
3276
3275
  }
3277
3276
  function mM() {
3278
- return J("CURRENT_TIMESTAMP");
3277
+ return R("CURRENT_TIME");
3278
+ }
3279
+ function bM() {
3280
+ return R("CURRENT_TIMESTAMP");
3279
3281
  }
3280
3282
  function vM(g, A) {
3281
3283
  return new H(Fg(g, c(A)));
3282
3284
  }
3283
3285
  function XM() {
3284
- return J("ROW_NUMBER");
3286
+ return R("ROW_NUMBER");
3285
3287
  }
3286
3288
  function _M() {
3287
- return J("RANK");
3289
+ return R("RANK");
3288
3290
  }
3289
3291
  function $M() {
3290
- return J("DENSE_RANK");
3292
+ return R("DENSE_RANK");
3291
3293
  }
3292
3294
  class Xg {
3293
3295
  /** @internal */
3294
3296
  _w;
3295
3297
  constructor() {
3296
- this._w = new P();
3298
+ this._w = new j();
3297
3299
  }
3298
3300
  /** Add columns to the SELECT list. Accepts Expr, strings (→ col), or '*'. */
3299
3301
  select(...A) {
@@ -3362,8 +3364,8 @@ class Xg {
3362
3364
  return this._w.window(A, C._w), this;
3363
3365
  }
3364
3366
  /** Add a LATERAL VIEW clause (Hive/Spark UDTF expansion). */
3365
- lateral(A, C, Q) {
3366
- return this._w.lateral_view(A._w, C, Q), this;
3367
+ lateral(A, C, B) {
3368
+ return this._w.lateral_view(A._w, C, B), this;
3367
3369
  }
3368
3370
  /** Add a query hint (e.g. Oracle hint expressions). */
3369
3371
  hint(A) {
@@ -3533,8 +3535,8 @@ class CI {
3533
3535
  /** Add a WHEN MATCHED THEN UPDATE SET clause. */
3534
3536
  whenMatchedUpdate(A) {
3535
3537
  const C = new CA();
3536
- for (const [Q, B] of Object.entries(A))
3537
- C.push(Q, c(B));
3538
+ for (const [B, Q] of Object.entries(A))
3539
+ C.push(B, c(Q));
3538
3540
  return this._w.when_matched_update(C), this;
3539
3541
  }
3540
3542
  /** Add a WHEN MATCHED THEN DELETE clause. */
@@ -3558,10 +3560,10 @@ class CI {
3558
3560
  this._w.free();
3559
3561
  }
3560
3562
  }
3561
- function Qi(g) {
3563
+ function Bi(g) {
3562
3564
  return new CI(g);
3563
3565
  }
3564
- class RA {
3566
+ class JA {
3565
3567
  /** @internal */
3566
3568
  _w;
3567
3569
  /** @internal */
@@ -3580,16 +3582,16 @@ class RA {
3580
3582
  build() {
3581
3583
  return new H(this._w.build_expr());
3582
3584
  }
3583
- /** Generate SQL string (generic dialect). */
3584
- toSql() {
3585
- return this._w.to_sql();
3585
+ /** Generate SQL string. Defaults to generic dialect. */
3586
+ toSql(A = "generic") {
3587
+ return this._w.to_sql(A);
3586
3588
  }
3587
3589
  }
3588
- function Bi() {
3589
- return new RA(new n());
3590
+ function Qi() {
3591
+ return new JA(new l());
3590
3592
  }
3591
3593
  function Ei(g) {
3592
- return new RA(Lg(c(g)));
3594
+ return new JA(Lg(c(g)));
3593
3595
  }
3594
3596
  class _ {
3595
3597
  /** @internal */
@@ -3640,9 +3642,9 @@ function oi(g, A) {
3640
3642
  return p(g) === "select" && C.push(...Ni(g)), C;
3641
3643
  }
3642
3644
  function Ni(g, A) {
3643
- const C = [], Q = BA(g, "star");
3644
- if (Q.length > 0) {
3645
- const D = O(Q[0])?.span;
3645
+ const C = [], B = QA(g, "star");
3646
+ if (B.length > 0) {
3647
+ const D = O(B[0])?.span;
3646
3648
  C.push({
3647
3649
  message: "SELECT * is discouraged; specify columns explicitly for better performance and maintainability",
3648
3650
  severity: "warning",
@@ -3653,34 +3655,34 @@ function Ni(g, A) {
3653
3655
  end: D?.end
3654
3656
  });
3655
3657
  }
3656
- const B = O(g);
3657
- if (bg(g) && !B.group_by) {
3658
- const E = IA(g), D = B.expressions || [];
3658
+ const Q = O(g);
3659
+ if (mg(g) && !Q.group_by) {
3660
+ const E = IA(g), D = Q.expressions || [];
3659
3661
  if (D.some((k) => {
3660
- const y = p(k);
3661
- return y === "column" || y === "identifier" ? IA(k).length === 0 : !1;
3662
+ const G = p(k);
3663
+ return G === "column" || G === "identifier" ? IA(k).length === 0 : !1;
3662
3664
  }) && E.length > 0) {
3663
- const k = D.find((K) => {
3664
- const h = p(K);
3665
- return h === "column" || h === "identifier" ? IA(K).length === 0 : !1;
3666
- }), y = k ? O(k)?.span : void 0;
3665
+ const k = D.find((y) => {
3666
+ const h = p(y);
3667
+ return h === "column" || h === "identifier" ? IA(y).length === 0 : !1;
3668
+ }), G = k ? O(k)?.span : void 0;
3667
3669
  C.push({
3668
3670
  message: "Mixing aggregate functions with non-aggregated columns without GROUP BY may cause errors in strict SQL mode",
3669
3671
  severity: "warning",
3670
3672
  code: "W002",
3671
- line: y?.line,
3672
- column: y?.column,
3673
- start: y?.start,
3674
- end: y?.end
3673
+ line: G?.line,
3674
+ column: G?.column,
3675
+ start: G?.start,
3676
+ end: G?.end
3675
3677
  });
3676
3678
  }
3677
3679
  }
3678
- if (B.distinct && B.order_by && C.push({
3680
+ if (Q.distinct && Q.order_by && C.push({
3679
3681
  message: "DISTINCT with ORDER BY: ensure ORDER BY columns are in SELECT list",
3680
3682
  severity: "warning",
3681
3683
  code: "W003"
3682
- }), B.limit && !B.order_by) {
3683
- const E = B.limit, D = E ? O(E)?.span : void 0;
3684
+ }), Q.limit && !Q.order_by) {
3685
+ const E = Q.limit, D = E ? O(E)?.span : void 0;
3684
3686
  C.push({
3685
3687
  message: "LIMIT without ORDER BY produces non-deterministic results",
3686
3688
  severity: "warning",
@@ -3709,13 +3711,13 @@ function ki(g) {
3709
3711
  };
3710
3712
  }
3711
3713
  }
3712
- function yi(g, A, C = "generic", Q = {}) {
3713
- const B = Q.strict ?? A.strict ?? !0, E = {
3714
- check_types: Q.checkTypes ?? !1,
3715
- check_references: Q.checkReferences ?? !1,
3716
- strict: B,
3717
- semantic: Q.semantic ?? !1,
3718
- strict_syntax: Q.strictSyntax ?? !1
3714
+ function yi(g, A, C = "generic", B = {}) {
3715
+ const Q = B.strict ?? A.strict ?? !0, E = {
3716
+ check_types: B.checkTypes ?? !1,
3717
+ check_references: B.checkReferences ?? !1,
3718
+ strict: Q,
3719
+ semantic: B.semantic ?? !1,
3720
+ strict_syntax: B.strictSyntax ?? !1
3719
3721
  }, D = Yg(
3720
3722
  g,
3721
3723
  JSON.stringify(A),
@@ -3724,58 +3726,58 @@ function yi(g, A, C = "generic", Q = {}) {
3724
3726
  );
3725
3727
  return ki(D);
3726
3728
  }
3727
- const Ki = {
3729
+ const Gi = {
3728
3730
  Error: "error",
3729
3731
  Warning: "warning"
3730
3732
  }, X = Og;
3731
- function bA(g) {
3733
+ function mA(g) {
3732
3734
  return typeof g == "string" ? JSON.parse(g) : g;
3733
3735
  }
3734
- function Gi(g, A = "generic", C = {}) {
3735
- const Q = C.strictSyntax ? X.validate_with_options(
3736
+ function Ki(g, A = "generic", C = {}) {
3737
+ const B = C.strictSyntax ? X.validate_with_options(
3736
3738
  g,
3737
3739
  A,
3738
3740
  JSON.stringify({ strictSyntax: !0 })
3739
- ) : X.validate(g, A), B = JSON.parse(Q);
3740
- if (!B.valid || !C.semantic)
3741
- return B;
3742
- const E = typeof X.parse_value == "function" ? bA(
3741
+ ) : X.validate(g, A), Q = JSON.parse(B);
3742
+ if (!Q.valid || !C.semantic)
3743
+ return Q;
3744
+ const E = typeof X.parse_value == "function" ? mA(
3743
3745
  X.parse_value(g, A)
3744
- ) : bA(
3746
+ ) : mA(
3745
3747
  X.parse(g, A)
3746
3748
  );
3747
3749
  if (!E.success || !E.ast)
3748
- return B;
3749
- const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, i = [...B.errors];
3750
- for (const y of D) {
3751
- const K = oi(y);
3752
- i.push(...K);
3750
+ return Q;
3751
+ const D = typeof E.ast == "string" ? JSON.parse(E.ast) : E.ast, i = [...Q.errors];
3752
+ for (const G of D) {
3753
+ const y = oi(G);
3754
+ i.push(...y);
3753
3755
  }
3754
3756
  return {
3755
- valid: !i.some((y) => y.severity === "error"),
3757
+ valid: !i.some((G) => G.severity === "error"),
3756
3758
  errors: i
3757
3759
  };
3758
3760
  }
3759
- function QI(g, A, C = "generic", Q = !1) {
3760
- const B = kg(A, g, C, Q);
3761
- return JSON.parse(B);
3761
+ function BI(g, A, C = "generic", B = !1) {
3762
+ const Q = kg(A, g, C, B);
3763
+ return JSON.parse(Q);
3762
3764
  }
3763
- function BI(g, A, C, Q = "generic", B = !1) {
3765
+ function QI(g, A, C, B = "generic", Q = !1) {
3764
3766
  const E = yg(
3765
3767
  A,
3766
3768
  g,
3767
3769
  JSON.stringify(C),
3768
- Q,
3769
- B
3770
+ B,
3771
+ Q
3770
3772
  );
3771
3773
  return JSON.parse(E);
3772
3774
  }
3773
3775
  function EI(g, A, C = "generic") {
3774
- const Q = Gg(A, g, C);
3775
- return JSON.parse(Q);
3776
+ const B = Kg(A, g, C);
3777
+ return JSON.parse(B);
3776
3778
  }
3777
- function DI(g, A, C = "generic", Q = {}) {
3778
- const { deltaOnly: B = !1, f: E = 0.6, t: D = 0.6 } = Q, i = Ng(g, A, C, B, E, D);
3779
+ function DI(g, A, C = "generic", B = {}) {
3780
+ const { deltaOnly: Q = !1, f: E = 0.6, t: D = 0.6 } = B, i = Ng(g, A, C, Q, E, D);
3779
3781
  return JSON.parse(i);
3780
3782
  }
3781
3783
  function wI(g) {
@@ -3785,7 +3787,7 @@ function MI(g) {
3785
3787
  return g.filter((A) => A.type !== "keep");
3786
3788
  }
3787
3789
  function iI(g, A = "generic") {
3788
- const C = Kg(g, A);
3790
+ const C = Gg(g, A);
3789
3791
  return JSON.parse(C);
3790
3792
  }
3791
3793
  var sA = /* @__PURE__ */ ((g) => (g.Generic = "generic", g.PostgreSQL = "postgresql", g.MySQL = "mysql", g.BigQuery = "bigquery", g.Snowflake = "snowflake", g.DuckDB = "duckdb", g.SQLite = "sqlite", g.Hive = "hive", g.Spark = "spark", g.Trino = "trino", g.Presto = "presto", g.Redshift = "redshift", g.TSQL = "tsql", g.Oracle = "oracle", g.ClickHouse = "clickhouse", g.Databricks = "databricks", g.Athena = "athena", g.Teradata = "teradata", g.Doris = "doris", g.StarRocks = "starrocks", g.Materialize = "materialize", g.RisingWave = "risingwave", g.SingleStore = "singlestore", g.CockroachDB = "cockroachdb", g.TiDB = "tidb", g.Druid = "druid", g.Solr = "solr", g.Tableau = "tableau", g.Dune = "dune", g.Fabric = "fabric", g.Drill = "drill", g.Dremio = "dremio", g.Exasol = "exasol", g.DataFusion = "datafusion", g))(sA || {});
@@ -3825,8 +3827,8 @@ function qA(g, A, C) {
3825
3827
  return typeof a.transpile_value == "function" ? W(
3826
3828
  a.transpile_value(g, A, C)
3827
3829
  ) : JSON.parse(a.transpile(g, A, C));
3828
- } catch (Q) {
3829
- return aA("transpile", Q);
3830
+ } catch (B) {
3831
+ return aA("transpile", B);
3830
3832
  }
3831
3833
  }
3832
3834
  function pA(g, A = "generic") {
@@ -3864,10 +3866,10 @@ function OA(g, A = "generic") {
3864
3866
  return aA("generate", C);
3865
3867
  }
3866
3868
  }
3867
- function jA(g, A = "generic") {
3868
- return PA(g, A, {});
3869
+ function PA(g, A = "generic") {
3870
+ return jA(g, A, {});
3869
3871
  }
3870
- function PA(g, A = "generic", C = {}) {
3872
+ function jA(g, A = "generic", C = {}) {
3871
3873
  try {
3872
3874
  return typeof a.format_sql_with_options_value == "function" ? W(
3873
3875
  a.format_sql_with_options_value(g, A, C)
@@ -3876,8 +3878,8 @@ function PA(g, A = "generic", C = {}) {
3876
3878
  ) : typeof a.format_sql_value == "function" ? W(
3877
3879
  a.format_sql_value(g, A)
3878
3880
  ) : JSON.parse(a.format_sql(g, A));
3879
- } catch (Q) {
3880
- return aA("format", Q);
3881
+ } catch (B) {
3882
+ return aA("format", B);
3881
3883
  }
3882
3884
  }
3883
3885
  function dA() {
@@ -3886,25 +3888,25 @@ function dA() {
3886
3888
  function tA() {
3887
3889
  return a.version();
3888
3890
  }
3889
- function ZA(g, A = "generic", C) {
3891
+ function zA(g, A = "generic", C) {
3890
3892
  try {
3891
- const Q = C ? JSON.stringify(C) : "";
3893
+ const B = C ? JSON.stringify(C) : "";
3892
3894
  return typeof a.annotate_types_value == "function" ? W(
3893
- a.annotate_types_value(g, A, Q)
3895
+ a.annotate_types_value(g, A, B)
3894
3896
  ) : typeof a.annotate_types == "function" ? JSON.parse(
3895
- a.annotate_types(g, A, Q)
3897
+ a.annotate_types(g, A, B)
3896
3898
  ) : {
3897
3899
  success: !1,
3898
3900
  error: "annotate_types not available in this WASM build"
3899
3901
  };
3900
- } catch (Q) {
3902
+ } catch (B) {
3901
3903
  return {
3902
3904
  success: !1,
3903
- error: `WASM annotate_types failed: ${SA(Q)}`
3905
+ error: `WASM annotate_types failed: ${SA(B)}`
3904
3906
  };
3905
3907
  }
3906
3908
  }
3907
- class r {
3909
+ class n {
3908
3910
  static instance = null;
3909
3911
  constructor() {
3910
3912
  }
@@ -3913,7 +3915,7 @@ class r {
3913
3915
  * The WASM module is automatically initialized on import.
3914
3916
  */
3915
3917
  static getInstance() {
3916
- return r.instance || (r.instance = new r()), r.instance;
3918
+ return n.instance || (n.instance = new n()), n.instance;
3917
3919
  }
3918
3920
  /**
3919
3921
  * Transpile SQL from one dialect to another.
@@ -3922,8 +3924,8 @@ class r {
3922
3924
  * Per-dialect builds only support same-dialect and to/from Generic transpilation.
3923
3925
  * Use {@link Polyglot.getDialects} to check available dialects.
3924
3926
  */
3925
- transpile(A, C, Q) {
3926
- return qA(A, C, Q);
3927
+ transpile(A, C, B) {
3928
+ return qA(A, C, B);
3927
3929
  }
3928
3930
  /**
3929
3931
  * Parse SQL into an AST.
@@ -3947,13 +3949,13 @@ class r {
3947
3949
  * Format SQL.
3948
3950
  */
3949
3951
  format(A, C = "generic") {
3950
- return jA(A, C);
3952
+ return PA(A, C);
3951
3953
  }
3952
3954
  /**
3953
3955
  * Format SQL with explicit guard limits.
3954
3956
  */
3955
- formatWithOptions(A, C = "generic", Q = {}) {
3956
- return PA(A, C, Q);
3957
+ formatWithOptions(A, C = "generic", B = {}) {
3958
+ return jA(A, C, B);
3957
3959
  }
3958
3960
  /**
3959
3961
  * Get supported dialects in this build.
@@ -3971,8 +3973,8 @@ class r {
3971
3973
  /**
3972
3974
  * Parse SQL and annotate the AST with inferred type information.
3973
3975
  */
3974
- annotateTypes(A, C = "generic", Q) {
3975
- return ZA(A, C, Q);
3976
+ annotateTypes(A, C = "generic", B) {
3977
+ return zA(A, C, B);
3976
3978
  }
3977
3979
  }
3978
3980
  const Si = {
@@ -3982,54 +3984,54 @@ const Si = {
3982
3984
  parse: pA,
3983
3985
  tokenize: TA,
3984
3986
  generate: OA,
3985
- format: jA,
3986
- annotateTypes: ZA,
3987
+ format: PA,
3988
+ annotateTypes: zA,
3987
3989
  getDialects: dA,
3988
3990
  getVersion: tA,
3989
- lineage: QI,
3990
- lineageWithSchema: BI,
3991
+ lineage: BI,
3992
+ lineageWithSchema: QI,
3991
3993
  getSourceTables: EI,
3992
3994
  diff: DI,
3993
3995
  hasChanges: wI,
3994
3996
  changesOnly: MI,
3995
3997
  plan: iI,
3996
3998
  Dialect: sA,
3997
- Polyglot: r
3999
+ Polyglot: n
3998
4000
  }, hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3999
4001
  __proto__: null,
4000
- CaseBuilder: RA,
4002
+ CaseBuilder: JA,
4001
4003
  DeleteBuilder: gI,
4002
4004
  Dialect: sA,
4003
4005
  Expr: H,
4004
4006
  InsertBuilder: _g,
4005
4007
  MergeBuilder: CI,
4006
- Polyglot: r,
4008
+ Polyglot: n,
4007
4009
  SelectBuilder: Xg,
4008
4010
  SetOpBuilder: _,
4009
4011
  UpdateBuilder: AI,
4010
- ValidationSeverity: Ki,
4011
- WindowDefBuilder: QM,
4012
+ ValidationSeverity: Gi,
4013
+ WindowDefBuilder: BM,
4012
4014
  abs: tM,
4013
4015
  alias: NM,
4014
4016
  and: yM,
4015
- annotateTypes: ZA,
4017
+ annotateTypes: zA,
4016
4018
  ast: CM,
4017
4019
  avg: hM,
4018
- boolean: JA,
4020
+ boolean: RA,
4019
4021
  caseOf: Ei,
4020
- caseWhen: Bi,
4022
+ caseWhen: Qi,
4021
4023
  cast: oM,
4022
- ceil: zM,
4024
+ ceil: VM,
4023
4025
  changesOnly: MI,
4024
- coalesce: jM,
4025
- col: BM,
4026
+ coalesce: PM,
4027
+ col: QM,
4026
4028
  concatWs: OM,
4027
4029
  condition: MM,
4028
- count: GM,
4030
+ count: KM,
4029
4031
  countDistinct: YM,
4030
- currentDate: nM,
4031
- currentTime: bM,
4032
- currentTimestamp: mM,
4032
+ currentDate: lM,
4033
+ currentTime: mM,
4034
+ currentTimestamp: bM,
4033
4035
  default: Si,
4034
4036
  del: Ci,
4035
4037
  deleteFrom: II,
@@ -4039,17 +4041,17 @@ const Si = {
4039
4041
  exp: eM,
4040
4042
  extract: vM,
4041
4043
  findAll: YA,
4042
- floor: VM,
4043
- format: jA,
4044
- formatWithOptions: PA,
4045
- func: J,
4044
+ floor: ZM,
4045
+ format: PA,
4046
+ formatWithOptions: jA,
4047
+ func: R,
4046
4048
  generate: OA,
4047
- getColumns: lg,
4049
+ getColumns: rg,
4048
4050
  getDialects: dA,
4049
- getInferredType: jg,
4051
+ getInferredType: Pg,
4050
4052
  getSourceTables: EI,
4051
4053
  getVersion: tA,
4052
- greatest: lM,
4054
+ greatest: rM,
4053
4055
  hasChanges: wI,
4054
4056
  ifNull: dM,
4055
4057
  init: oI,
@@ -4058,88 +4060,88 @@ const Si = {
4058
4060
  insertInto: $g,
4059
4061
  intersect: Mi,
4060
4062
  isColumn: dg,
4061
- isFunction: Zg,
4063
+ isFunction: zg,
4062
4064
  isInitialized: NI,
4063
4065
  isLiteral: tg,
4064
- isSelect: Pg,
4065
- least: rM,
4066
+ isSelect: jg,
4067
+ least: nM,
4066
4068
  length: FM,
4067
- lineage: QI,
4068
- lineageWithSchema: BI,
4069
+ lineage: BI,
4070
+ lineageWithSchema: QI,
4069
4071
  lit: EM,
4070
4072
  ln: WM,
4071
4073
  lower: cM,
4072
- ltrim: RM,
4074
+ ltrim: JM,
4073
4075
  max: LM,
4074
- mergeInto: Qi,
4076
+ mergeInto: Bi,
4075
4077
  min: HM,
4076
4078
  not: iM,
4077
- nullIf: PM,
4078
- or: KM,
4079
+ nullIf: jM,
4080
+ or: GM,
4079
4081
  parse: pA,
4080
4082
  plan: iI,
4081
- power: xM,
4083
+ power: fM,
4082
4084
  rank: _M,
4083
- renameColumns: xg,
4085
+ renameColumns: fg,
4084
4086
  replace: TM,
4085
4087
  reverse: aM,
4086
- round: ZM,
4088
+ round: zM,
4087
4089
  rowNumber: XM,
4088
4090
  rtrim: sM,
4089
4091
  select: Ai,
4090
4092
  sign: uM,
4091
4093
  sqlExpr: vg,
4092
4094
  sqlNull: DM,
4093
- sqrt: fM,
4094
- star: mg,
4095
+ sqrt: xM,
4096
+ star: bg,
4095
4097
  subquery: kM,
4096
4098
  substring: pM,
4097
4099
  sum: SM,
4098
4100
  table: wM,
4099
4101
  tokenize: TA,
4100
- transform: GA,
4102
+ transform: KA,
4101
4103
  transpile: qA,
4102
- trim: JM,
4104
+ trim: RM,
4103
4105
  union: Di,
4104
4106
  unionAll: wi,
4105
4107
  update: Ii,
4106
4108
  upper: UM,
4107
- validate: Gi,
4109
+ validate: Ki,
4108
4110
  validateWithSchema: yi,
4109
4111
  walk: t
4110
4112
  }, Symbol.toStringTag, { value: "Module" }));
4111
4113
  export {
4112
- RA as CaseBuilder,
4114
+ JA as CaseBuilder,
4113
4115
  gI as DeleteBuilder,
4114
4116
  sA as Dialect,
4115
4117
  H as Expr,
4116
4118
  _g as InsertBuilder,
4117
4119
  CI as MergeBuilder,
4118
- r as Polyglot,
4120
+ n as Polyglot,
4119
4121
  Xg as SelectBuilder,
4120
4122
  _ as SetOpBuilder,
4121
4123
  AI as UpdateBuilder,
4122
- Ki as ValidationSeverity,
4124
+ Gi as ValidationSeverity,
4123
4125
  tM as abs,
4124
4126
  NM as alias,
4125
4127
  yM as and,
4126
- ZA as annotateTypes,
4128
+ zA as annotateTypes,
4127
4129
  CM as ast,
4128
4130
  hM as avg,
4129
- JA as boolean,
4131
+ RA as boolean,
4130
4132
  Ei as caseOf,
4131
- Bi as caseWhen,
4133
+ Qi as caseWhen,
4132
4134
  oM as cast,
4133
- zM as ceil,
4134
- jM as coalesce,
4135
- BM as col,
4135
+ VM as ceil,
4136
+ PM as coalesce,
4137
+ QM as col,
4136
4138
  OM as concatWs,
4137
4139
  MM as condition,
4138
- GM as count,
4140
+ KM as count,
4139
4141
  YM as countDistinct,
4140
- nM as currentDate,
4141
- bM as currentTime,
4142
- mM as currentTimestamp,
4142
+ lM as currentDate,
4143
+ mM as currentTime,
4144
+ bM as currentTimestamp,
4143
4145
  hi as default,
4144
4146
  Ci as del,
4145
4147
  II as deleteFrom,
@@ -4148,16 +4150,16 @@ export {
4148
4150
  eM as exp,
4149
4151
  vM as extract,
4150
4152
  YA as findAll,
4151
- VM as floor,
4152
- jA as format,
4153
- PA as formatWithOptions,
4154
- J as func,
4153
+ ZM as floor,
4154
+ PA as format,
4155
+ jA as formatWithOptions,
4156
+ R as func,
4155
4157
  OA as generate,
4156
- lg as getColumns,
4158
+ rg as getColumns,
4157
4159
  dA as getDialects,
4158
- jg as getInferredType,
4160
+ Pg as getInferredType,
4159
4161
  tA as getVersion,
4160
- lM as greatest,
4162
+ rM as greatest,
4161
4163
  dM as ifNull,
4162
4164
  oI as init,
4163
4165
  qM as initcap,
@@ -4165,48 +4167,48 @@ export {
4165
4167
  $g as insertInto,
4166
4168
  Mi as intersect,
4167
4169
  dg as isColumn,
4168
- Zg as isFunction,
4170
+ zg as isFunction,
4169
4171
  NI as isInitialized,
4170
4172
  tg as isLiteral,
4171
- Pg as isSelect,
4172
- rM as least,
4173
+ jg as isSelect,
4174
+ nM as least,
4173
4175
  FM as length,
4174
4176
  EM as lit,
4175
4177
  WM as ln,
4176
4178
  cM as lower,
4177
- RM as ltrim,
4179
+ JM as ltrim,
4178
4180
  LM as max,
4179
- Qi as mergeInto,
4181
+ Bi as mergeInto,
4180
4182
  HM as min,
4181
4183
  iM as not,
4182
- PM as nullIf,
4183
- KM as or,
4184
+ jM as nullIf,
4185
+ GM as or,
4184
4186
  pA as parse,
4185
- xM as power,
4187
+ fM as power,
4186
4188
  _M as rank,
4187
- xg as renameColumns,
4189
+ fg as renameColumns,
4188
4190
  TM as replace,
4189
4191
  aM as reverse,
4190
- ZM as round,
4192
+ zM as round,
4191
4193
  XM as rowNumber,
4192
4194
  sM as rtrim,
4193
4195
  Ai as select,
4194
4196
  uM as sign,
4195
4197
  vg as sqlExpr,
4196
4198
  DM as sqlNull,
4197
- fM as sqrt,
4198
- mg as star,
4199
+ xM as sqrt,
4200
+ bg as star,
4199
4201
  pM as substring,
4200
4202
  SM as sum,
4201
4203
  wM as table,
4202
- GA as transform,
4204
+ KA as transform,
4203
4205
  qA as transpile,
4204
- JM as trim,
4206
+ RM as trim,
4205
4207
  Di as union,
4206
4208
  wi as unionAll,
4207
4209
  Ii as update,
4208
4210
  UM as upper,
4209
- Gi as validate,
4211
+ Ki as validate,
4210
4212
  yi as validateWithSchema,
4211
4213
  t as walk
4212
4214
  };