@polyglot-sql/sdk 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/polyglot.esm.js +2093 -1744
- package/dist/index.d.ts +13 -0
- package/dist/index.js +937 -437
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53,21 +53,21 @@ class WasmAssignmentArray {
|
|
|
53
53
|
}
|
|
54
54
|
free() {
|
|
55
55
|
const ptr = this.__destroy_into_raw();
|
|
56
|
-
wasm$
|
|
56
|
+
wasm$3.__wbg_wasmassignmentarray_free(ptr, 0);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Get the number of assignments.
|
|
60
60
|
* @returns {number}
|
|
61
61
|
*/
|
|
62
62
|
len() {
|
|
63
|
-
const ret = wasm$
|
|
63
|
+
const ret = wasm$3.wasmassignmentarray_len(this.__wbg_ptr);
|
|
64
64
|
return ret >>> 0;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Create an empty assignment array.
|
|
68
68
|
*/
|
|
69
69
|
constructor() {
|
|
70
|
-
const ret = wasm$
|
|
70
|
+
const ret = wasm$3.wasmassignmentarray_new();
|
|
71
71
|
this.__wbg_ptr = ret >>> 0;
|
|
72
72
|
WasmAssignmentArrayFinalization.register(this, this.__wbg_ptr, this);
|
|
73
73
|
return this;
|
|
@@ -78,10 +78,10 @@ class WasmAssignmentArray {
|
|
|
78
78
|
* @param {WasmExpr} value
|
|
79
79
|
*/
|
|
80
80
|
push(column, value) {
|
|
81
|
-
const ptr0 = passStringToWasm0(column, wasm$
|
|
81
|
+
const ptr0 = passStringToWasm0(column, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
82
82
|
const len0 = WASM_VECTOR_LEN;
|
|
83
83
|
_assertClass(value, WasmExpr);
|
|
84
|
-
wasm$
|
|
84
|
+
wasm$3.wasmassignmentarray_push(this.__wbg_ptr, ptr0, len0, value.__wbg_ptr);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
if (Symbol.dispose) WasmAssignmentArray.prototype[Symbol.dispose] = WasmAssignmentArray.prototype.free;
|
|
@@ -105,7 +105,7 @@ class WasmCaseBuilder {
|
|
|
105
105
|
}
|
|
106
106
|
free() {
|
|
107
107
|
const ptr = this.__destroy_into_raw();
|
|
108
|
-
wasm$
|
|
108
|
+
wasm$3.__wbg_wasmcasebuilder_free(ptr, 0);
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* Build the CASE expression and return a WasmExpr.
|
|
@@ -113,8 +113,8 @@ class WasmCaseBuilder {
|
|
|
113
113
|
*/
|
|
114
114
|
build_expr() {
|
|
115
115
|
try {
|
|
116
|
-
const retptr = wasm$
|
|
117
|
-
wasm$
|
|
116
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
117
|
+
wasm$3.wasmcasebuilder_build_expr(retptr, this.__wbg_ptr);
|
|
118
118
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
119
119
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
120
120
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -123,7 +123,7 @@ class WasmCaseBuilder {
|
|
|
123
123
|
}
|
|
124
124
|
return WasmExpr.__wrap(r0);
|
|
125
125
|
} finally {
|
|
126
|
-
wasm$
|
|
126
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
@@ -132,13 +132,13 @@ class WasmCaseBuilder {
|
|
|
132
132
|
*/
|
|
133
133
|
else_(result) {
|
|
134
134
|
_assertClass(result, WasmExpr);
|
|
135
|
-
wasm$
|
|
135
|
+
wasm$3.wasmcasebuilder_else_(this.__wbg_ptr, result.__wbg_ptr);
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* Create a new searched CASE builder (CASE WHEN ... THEN ...).
|
|
139
139
|
*/
|
|
140
140
|
constructor() {
|
|
141
|
-
const ret = wasm$
|
|
141
|
+
const ret = wasm$3.wasmcasebuilder_new();
|
|
142
142
|
this.__wbg_ptr = ret >>> 0;
|
|
143
143
|
WasmCaseBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
144
144
|
return this;
|
|
@@ -151,8 +151,8 @@ class WasmCaseBuilder {
|
|
|
151
151
|
let deferred2_0;
|
|
152
152
|
let deferred2_1;
|
|
153
153
|
try {
|
|
154
|
-
const retptr = wasm$
|
|
155
|
-
wasm$
|
|
154
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
155
|
+
wasm$3.wasmcasebuilder_to_sql(retptr, this.__wbg_ptr);
|
|
156
156
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
157
157
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
158
158
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -167,8 +167,8 @@ class WasmCaseBuilder {
|
|
|
167
167
|
deferred2_1 = len1;
|
|
168
168
|
return getStringFromWasm0(ptr1, len1);
|
|
169
169
|
} finally {
|
|
170
|
-
wasm$
|
|
171
|
-
wasm$
|
|
170
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
171
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
@@ -179,7 +179,7 @@ class WasmCaseBuilder {
|
|
|
179
179
|
when(condition, result) {
|
|
180
180
|
_assertClass(condition, WasmExpr);
|
|
181
181
|
_assertClass(result, WasmExpr);
|
|
182
|
-
wasm$
|
|
182
|
+
wasm$3.wasmcasebuilder_when(this.__wbg_ptr, condition.__wbg_ptr, result.__wbg_ptr);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
if (Symbol.dispose) WasmCaseBuilder.prototype[Symbol.dispose] = WasmCaseBuilder.prototype.free;
|
|
@@ -196,7 +196,7 @@ class WasmDeleteBuilder {
|
|
|
196
196
|
}
|
|
197
197
|
free() {
|
|
198
198
|
const ptr = this.__destroy_into_raw();
|
|
199
|
-
wasm$
|
|
199
|
+
wasm$3.__wbg_wasmdeletebuilder_free(ptr, 0);
|
|
200
200
|
}
|
|
201
201
|
/**
|
|
202
202
|
* Return the Expression AST as a JSON value.
|
|
@@ -204,8 +204,8 @@ class WasmDeleteBuilder {
|
|
|
204
204
|
*/
|
|
205
205
|
build() {
|
|
206
206
|
try {
|
|
207
|
-
const retptr = wasm$
|
|
208
|
-
wasm$
|
|
207
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
208
|
+
wasm$3.wasmdeletebuilder_build(retptr, this.__wbg_ptr);
|
|
209
209
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
210
210
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
211
211
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -214,7 +214,7 @@ class WasmDeleteBuilder {
|
|
|
214
214
|
}
|
|
215
215
|
return takeObject(r0);
|
|
216
216
|
} finally {
|
|
217
|
-
wasm$
|
|
217
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
@@ -222,9 +222,9 @@ class WasmDeleteBuilder {
|
|
|
222
222
|
* @param {string} table_name
|
|
223
223
|
*/
|
|
224
224
|
constructor(table_name) {
|
|
225
|
-
const ptr0 = passStringToWasm0(table_name, wasm$
|
|
225
|
+
const ptr0 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
226
226
|
const len0 = WASM_VECTOR_LEN;
|
|
227
|
-
const ret = wasm$
|
|
227
|
+
const ret = wasm$3.wasmdeletebuilder_new(ptr0, len0);
|
|
228
228
|
this.__wbg_ptr = ret >>> 0;
|
|
229
229
|
WasmDeleteBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
230
230
|
return this;
|
|
@@ -238,10 +238,10 @@ class WasmDeleteBuilder {
|
|
|
238
238
|
let deferred3_0;
|
|
239
239
|
let deferred3_1;
|
|
240
240
|
try {
|
|
241
|
-
const retptr = wasm$
|
|
242
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
241
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
242
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
243
243
|
const len0 = WASM_VECTOR_LEN;
|
|
244
|
-
wasm$
|
|
244
|
+
wasm$3.wasmdeletebuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
245
245
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
246
246
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
247
247
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -256,8 +256,8 @@ class WasmDeleteBuilder {
|
|
|
256
256
|
deferred3_1 = len2;
|
|
257
257
|
return getStringFromWasm0(ptr2, len2);
|
|
258
258
|
} finally {
|
|
259
|
-
wasm$
|
|
260
|
-
wasm$
|
|
259
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
260
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
/**
|
|
@@ -266,7 +266,7 @@ class WasmDeleteBuilder {
|
|
|
266
266
|
*/
|
|
267
267
|
where_expr(condition) {
|
|
268
268
|
_assertClass(condition, WasmExpr);
|
|
269
|
-
wasm$
|
|
269
|
+
wasm$3.wasmdeletebuilder_where_expr(this.__wbg_ptr, condition.__wbg_ptr);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
if (Symbol.dispose) WasmDeleteBuilder.prototype[Symbol.dispose] = WasmDeleteBuilder.prototype.free;
|
|
@@ -291,7 +291,7 @@ class WasmExpr {
|
|
|
291
291
|
}
|
|
292
292
|
free() {
|
|
293
293
|
const ptr = this.__destroy_into_raw();
|
|
294
|
-
wasm$
|
|
294
|
+
wasm$3.__wbg_wasmexpr_free(ptr, 0);
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
297
297
|
* Produce `self + other`.
|
|
@@ -300,7 +300,7 @@ class WasmExpr {
|
|
|
300
300
|
*/
|
|
301
301
|
add(other) {
|
|
302
302
|
_assertClass(other, WasmExpr);
|
|
303
|
-
const ret = wasm$
|
|
303
|
+
const ret = wasm$3.wasmexpr_add(this.__wbg_ptr, other.__wbg_ptr);
|
|
304
304
|
return WasmExpr.__wrap(ret);
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
@@ -309,9 +309,9 @@ class WasmExpr {
|
|
|
309
309
|
* @returns {WasmExpr}
|
|
310
310
|
*/
|
|
311
311
|
alias(name) {
|
|
312
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
312
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
313
313
|
const len0 = WASM_VECTOR_LEN;
|
|
314
|
-
const ret = wasm$
|
|
314
|
+
const ret = wasm$3.wasmexpr_alias(this.__wbg_ptr, ptr0, len0);
|
|
315
315
|
return WasmExpr.__wrap(ret);
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
@@ -321,7 +321,7 @@ class WasmExpr {
|
|
|
321
321
|
*/
|
|
322
322
|
and(other) {
|
|
323
323
|
_assertClass(other, WasmExpr);
|
|
324
|
-
const ret = wasm$
|
|
324
|
+
const ret = wasm$3.wasmexpr_and(this.__wbg_ptr, other.__wbg_ptr);
|
|
325
325
|
return WasmExpr.__wrap(ret);
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
@@ -329,7 +329,7 @@ class WasmExpr {
|
|
|
329
329
|
* @returns {WasmExpr}
|
|
330
330
|
*/
|
|
331
331
|
asc() {
|
|
332
|
-
const ret = wasm$
|
|
332
|
+
const ret = wasm$3.wasmexpr_asc(this.__wbg_ptr);
|
|
333
333
|
return WasmExpr.__wrap(ret);
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
@@ -341,7 +341,7 @@ class WasmExpr {
|
|
|
341
341
|
between(low, high) {
|
|
342
342
|
_assertClass(low, WasmExpr);
|
|
343
343
|
_assertClass(high, WasmExpr);
|
|
344
|
-
const ret = wasm$
|
|
344
|
+
const ret = wasm$3.wasmexpr_between(this.__wbg_ptr, low.__wbg_ptr, high.__wbg_ptr);
|
|
345
345
|
return WasmExpr.__wrap(ret);
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
@@ -350,9 +350,9 @@ class WasmExpr {
|
|
|
350
350
|
* @returns {WasmExpr}
|
|
351
351
|
*/
|
|
352
352
|
cast(to) {
|
|
353
|
-
const ptr0 = passStringToWasm0(to, wasm$
|
|
353
|
+
const ptr0 = passStringToWasm0(to, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
354
354
|
const len0 = WASM_VECTOR_LEN;
|
|
355
|
-
const ret = wasm$
|
|
355
|
+
const ret = wasm$3.wasmexpr_cast(this.__wbg_ptr, ptr0, len0);
|
|
356
356
|
return WasmExpr.__wrap(ret);
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
@@ -360,7 +360,7 @@ class WasmExpr {
|
|
|
360
360
|
* @returns {WasmExpr}
|
|
361
361
|
*/
|
|
362
362
|
desc() {
|
|
363
|
-
const ret = wasm$
|
|
363
|
+
const ret = wasm$3.wasmexpr_desc(this.__wbg_ptr);
|
|
364
364
|
return WasmExpr.__wrap(ret);
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
@@ -370,7 +370,7 @@ class WasmExpr {
|
|
|
370
370
|
*/
|
|
371
371
|
div(other) {
|
|
372
372
|
_assertClass(other, WasmExpr);
|
|
373
|
-
const ret = wasm$
|
|
373
|
+
const ret = wasm$3.wasmexpr_div(this.__wbg_ptr, other.__wbg_ptr);
|
|
374
374
|
return WasmExpr.__wrap(ret);
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
@@ -380,7 +380,7 @@ class WasmExpr {
|
|
|
380
380
|
*/
|
|
381
381
|
eq(other) {
|
|
382
382
|
_assertClass(other, WasmExpr);
|
|
383
|
-
const ret = wasm$
|
|
383
|
+
const ret = wasm$3.wasmexpr_eq(this.__wbg_ptr, other.__wbg_ptr);
|
|
384
384
|
return WasmExpr.__wrap(ret);
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
@@ -390,7 +390,7 @@ class WasmExpr {
|
|
|
390
390
|
*/
|
|
391
391
|
gt(other) {
|
|
392
392
|
_assertClass(other, WasmExpr);
|
|
393
|
-
const ret = wasm$
|
|
393
|
+
const ret = wasm$3.wasmexpr_gt(this.__wbg_ptr, other.__wbg_ptr);
|
|
394
394
|
return WasmExpr.__wrap(ret);
|
|
395
395
|
}
|
|
396
396
|
/**
|
|
@@ -400,7 +400,7 @@ class WasmExpr {
|
|
|
400
400
|
*/
|
|
401
401
|
gte(other) {
|
|
402
402
|
_assertClass(other, WasmExpr);
|
|
403
|
-
const ret = wasm$
|
|
403
|
+
const ret = wasm$3.wasmexpr_gte(this.__wbg_ptr, other.__wbg_ptr);
|
|
404
404
|
return WasmExpr.__wrap(ret);
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
@@ -410,7 +410,7 @@ class WasmExpr {
|
|
|
410
410
|
*/
|
|
411
411
|
ilike(pattern) {
|
|
412
412
|
_assertClass(pattern, WasmExpr);
|
|
413
|
-
const ret = wasm$
|
|
413
|
+
const ret = wasm$3.wasmexpr_ilike(this.__wbg_ptr, pattern.__wbg_ptr);
|
|
414
414
|
return WasmExpr.__wrap(ret);
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
@@ -420,7 +420,7 @@ class WasmExpr {
|
|
|
420
420
|
*/
|
|
421
421
|
in_list(values) {
|
|
422
422
|
_assertClass(values, WasmExprArray);
|
|
423
|
-
const ret = wasm$
|
|
423
|
+
const ret = wasm$3.wasmexpr_in_list(this.__wbg_ptr, values.__wbg_ptr);
|
|
424
424
|
return WasmExpr.__wrap(ret);
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
@@ -428,7 +428,7 @@ class WasmExpr {
|
|
|
428
428
|
* @returns {WasmExpr}
|
|
429
429
|
*/
|
|
430
430
|
is_not_null() {
|
|
431
|
-
const ret = wasm$
|
|
431
|
+
const ret = wasm$3.wasmexpr_is_not_null(this.__wbg_ptr);
|
|
432
432
|
return WasmExpr.__wrap(ret);
|
|
433
433
|
}
|
|
434
434
|
/**
|
|
@@ -436,7 +436,7 @@ class WasmExpr {
|
|
|
436
436
|
* @returns {WasmExpr}
|
|
437
437
|
*/
|
|
438
438
|
is_null() {
|
|
439
|
-
const ret = wasm$
|
|
439
|
+
const ret = wasm$3.wasmexpr_is_null(this.__wbg_ptr);
|
|
440
440
|
return WasmExpr.__wrap(ret);
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
@@ -446,7 +446,7 @@ class WasmExpr {
|
|
|
446
446
|
*/
|
|
447
447
|
like(pattern) {
|
|
448
448
|
_assertClass(pattern, WasmExpr);
|
|
449
|
-
const ret = wasm$
|
|
449
|
+
const ret = wasm$3.wasmexpr_like(this.__wbg_ptr, pattern.__wbg_ptr);
|
|
450
450
|
return WasmExpr.__wrap(ret);
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
@@ -456,7 +456,7 @@ class WasmExpr {
|
|
|
456
456
|
*/
|
|
457
457
|
lt(other) {
|
|
458
458
|
_assertClass(other, WasmExpr);
|
|
459
|
-
const ret = wasm$
|
|
459
|
+
const ret = wasm$3.wasmexpr_lt(this.__wbg_ptr, other.__wbg_ptr);
|
|
460
460
|
return WasmExpr.__wrap(ret);
|
|
461
461
|
}
|
|
462
462
|
/**
|
|
@@ -466,7 +466,7 @@ class WasmExpr {
|
|
|
466
466
|
*/
|
|
467
467
|
lte(other) {
|
|
468
468
|
_assertClass(other, WasmExpr);
|
|
469
|
-
const ret = wasm$
|
|
469
|
+
const ret = wasm$3.wasmexpr_lte(this.__wbg_ptr, other.__wbg_ptr);
|
|
470
470
|
return WasmExpr.__wrap(ret);
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
@@ -476,7 +476,7 @@ class WasmExpr {
|
|
|
476
476
|
*/
|
|
477
477
|
mul(other) {
|
|
478
478
|
_assertClass(other, WasmExpr);
|
|
479
|
-
const ret = wasm$
|
|
479
|
+
const ret = wasm$3.wasmexpr_mul(this.__wbg_ptr, other.__wbg_ptr);
|
|
480
480
|
return WasmExpr.__wrap(ret);
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
@@ -486,7 +486,7 @@ class WasmExpr {
|
|
|
486
486
|
*/
|
|
487
487
|
neq(other) {
|
|
488
488
|
_assertClass(other, WasmExpr);
|
|
489
|
-
const ret = wasm$
|
|
489
|
+
const ret = wasm$3.wasmexpr_neq(this.__wbg_ptr, other.__wbg_ptr);
|
|
490
490
|
return WasmExpr.__wrap(ret);
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
@@ -494,7 +494,7 @@ class WasmExpr {
|
|
|
494
494
|
* @returns {WasmExpr}
|
|
495
495
|
*/
|
|
496
496
|
not() {
|
|
497
|
-
const ret = wasm$
|
|
497
|
+
const ret = wasm$3.wasmexpr_not(this.__wbg_ptr);
|
|
498
498
|
return WasmExpr.__wrap(ret);
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
@@ -504,7 +504,7 @@ class WasmExpr {
|
|
|
504
504
|
*/
|
|
505
505
|
not_in(values) {
|
|
506
506
|
_assertClass(values, WasmExprArray);
|
|
507
|
-
const ret = wasm$
|
|
507
|
+
const ret = wasm$3.wasmexpr_not_in(this.__wbg_ptr, values.__wbg_ptr);
|
|
508
508
|
return WasmExpr.__wrap(ret);
|
|
509
509
|
}
|
|
510
510
|
/**
|
|
@@ -514,7 +514,7 @@ class WasmExpr {
|
|
|
514
514
|
*/
|
|
515
515
|
or(other) {
|
|
516
516
|
_assertClass(other, WasmExpr);
|
|
517
|
-
const ret = wasm$
|
|
517
|
+
const ret = wasm$3.wasmexpr_or(this.__wbg_ptr, other.__wbg_ptr);
|
|
518
518
|
return WasmExpr.__wrap(ret);
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
@@ -524,7 +524,7 @@ class WasmExpr {
|
|
|
524
524
|
*/
|
|
525
525
|
rlike(pattern) {
|
|
526
526
|
_assertClass(pattern, WasmExpr);
|
|
527
|
-
const ret = wasm$
|
|
527
|
+
const ret = wasm$3.wasmexpr_rlike(this.__wbg_ptr, pattern.__wbg_ptr);
|
|
528
528
|
return WasmExpr.__wrap(ret);
|
|
529
529
|
}
|
|
530
530
|
/**
|
|
@@ -534,7 +534,7 @@ class WasmExpr {
|
|
|
534
534
|
*/
|
|
535
535
|
sub(other) {
|
|
536
536
|
_assertClass(other, WasmExpr);
|
|
537
|
-
const ret = wasm$
|
|
537
|
+
const ret = wasm$3.wasmexpr_sub(this.__wbg_ptr, other.__wbg_ptr);
|
|
538
538
|
return WasmExpr.__wrap(ret);
|
|
539
539
|
}
|
|
540
540
|
/**
|
|
@@ -543,8 +543,8 @@ class WasmExpr {
|
|
|
543
543
|
*/
|
|
544
544
|
to_json() {
|
|
545
545
|
try {
|
|
546
|
-
const retptr = wasm$
|
|
547
|
-
wasm$
|
|
546
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
547
|
+
wasm$3.wasmexpr_to_json(retptr, this.__wbg_ptr);
|
|
548
548
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
549
549
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
550
550
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -553,7 +553,7 @@ class WasmExpr {
|
|
|
553
553
|
}
|
|
554
554
|
return takeObject(r0);
|
|
555
555
|
} finally {
|
|
556
|
-
wasm$
|
|
556
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
@@ -564,8 +564,8 @@ class WasmExpr {
|
|
|
564
564
|
let deferred2_0;
|
|
565
565
|
let deferred2_1;
|
|
566
566
|
try {
|
|
567
|
-
const retptr = wasm$
|
|
568
|
-
wasm$
|
|
567
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
568
|
+
wasm$3.wasmexpr_to_sql(retptr, this.__wbg_ptr);
|
|
569
569
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
570
570
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
571
571
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -580,8 +580,8 @@ class WasmExpr {
|
|
|
580
580
|
deferred2_1 = len1;
|
|
581
581
|
return getStringFromWasm0(ptr1, len1);
|
|
582
582
|
} finally {
|
|
583
|
-
wasm$
|
|
584
|
-
wasm$
|
|
583
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
584
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
@@ -591,7 +591,7 @@ class WasmExpr {
|
|
|
591
591
|
*/
|
|
592
592
|
xor(other) {
|
|
593
593
|
_assertClass(other, WasmExpr);
|
|
594
|
-
const ret = wasm$
|
|
594
|
+
const ret = wasm$3.wasmexpr_xor(this.__wbg_ptr, other.__wbg_ptr);
|
|
595
595
|
return WasmExpr.__wrap(ret);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
@@ -609,21 +609,21 @@ class WasmExprArray {
|
|
|
609
609
|
}
|
|
610
610
|
free() {
|
|
611
611
|
const ptr = this.__destroy_into_raw();
|
|
612
|
-
wasm$
|
|
612
|
+
wasm$3.__wbg_wasmexprarray_free(ptr, 0);
|
|
613
613
|
}
|
|
614
614
|
/**
|
|
615
615
|
* Get the number of expressions.
|
|
616
616
|
* @returns {number}
|
|
617
617
|
*/
|
|
618
618
|
len() {
|
|
619
|
-
const ret = wasm$
|
|
619
|
+
const ret = wasm$3.wasmexprarray_len(this.__wbg_ptr);
|
|
620
620
|
return ret >>> 0;
|
|
621
621
|
}
|
|
622
622
|
/**
|
|
623
623
|
* Create an empty expression array.
|
|
624
624
|
*/
|
|
625
625
|
constructor() {
|
|
626
|
-
const ret = wasm$
|
|
626
|
+
const ret = wasm$3.wasmassignmentarray_new();
|
|
627
627
|
this.__wbg_ptr = ret >>> 0;
|
|
628
628
|
WasmExprArrayFinalization.register(this, this.__wbg_ptr, this);
|
|
629
629
|
return this;
|
|
@@ -634,45 +634,45 @@ class WasmExprArray {
|
|
|
634
634
|
*/
|
|
635
635
|
push(expr) {
|
|
636
636
|
_assertClass(expr, WasmExpr);
|
|
637
|
-
wasm$
|
|
637
|
+
wasm$3.wasmexprarray_push(this.__wbg_ptr, expr.__wbg_ptr);
|
|
638
638
|
}
|
|
639
639
|
/**
|
|
640
640
|
* Push a column reference by name.
|
|
641
641
|
* @param {string} name
|
|
642
642
|
*/
|
|
643
643
|
push_col(name) {
|
|
644
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
644
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
645
645
|
const len0 = WASM_VECTOR_LEN;
|
|
646
|
-
wasm$
|
|
646
|
+
wasm$3.wasmexprarray_push_col(this.__wbg_ptr, ptr0, len0);
|
|
647
647
|
}
|
|
648
648
|
/**
|
|
649
649
|
* Push a float literal.
|
|
650
650
|
* @param {number} value
|
|
651
651
|
*/
|
|
652
652
|
push_float(value) {
|
|
653
|
-
wasm$
|
|
653
|
+
wasm$3.wasmexprarray_push_float(this.__wbg_ptr, value);
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* Push an integer literal.
|
|
657
657
|
* @param {number} value
|
|
658
658
|
*/
|
|
659
659
|
push_int(value) {
|
|
660
|
-
wasm$
|
|
660
|
+
wasm$3.wasmexprarray_push_int(this.__wbg_ptr, value);
|
|
661
661
|
}
|
|
662
662
|
/**
|
|
663
663
|
* Push a star (*) expression.
|
|
664
664
|
*/
|
|
665
665
|
push_star() {
|
|
666
|
-
wasm$
|
|
666
|
+
wasm$3.wasmexprarray_push_star(this.__wbg_ptr);
|
|
667
667
|
}
|
|
668
668
|
/**
|
|
669
669
|
* Push a string literal.
|
|
670
670
|
* @param {string} value
|
|
671
671
|
*/
|
|
672
672
|
push_str(value) {
|
|
673
|
-
const ptr0 = passStringToWasm0(value, wasm$
|
|
673
|
+
const ptr0 = passStringToWasm0(value, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
674
674
|
const len0 = WASM_VECTOR_LEN;
|
|
675
|
-
wasm$
|
|
675
|
+
wasm$3.wasmexprarray_push_str(this.__wbg_ptr, ptr0, len0);
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
if (Symbol.dispose) WasmExprArray.prototype[Symbol.dispose] = WasmExprArray.prototype.free;
|
|
@@ -689,7 +689,7 @@ class WasmInsertBuilder {
|
|
|
689
689
|
}
|
|
690
690
|
free() {
|
|
691
691
|
const ptr = this.__destroy_into_raw();
|
|
692
|
-
wasm$
|
|
692
|
+
wasm$3.__wbg_wasminsertbuilder_free(ptr, 0);
|
|
693
693
|
}
|
|
694
694
|
/**
|
|
695
695
|
* Return the Expression AST as a JSON value.
|
|
@@ -697,8 +697,8 @@ class WasmInsertBuilder {
|
|
|
697
697
|
*/
|
|
698
698
|
build() {
|
|
699
699
|
try {
|
|
700
|
-
const retptr = wasm$
|
|
701
|
-
wasm$
|
|
700
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
701
|
+
wasm$3.wasminsertbuilder_build(retptr, this.__wbg_ptr);
|
|
702
702
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
703
703
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
704
704
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -707,7 +707,7 @@ class WasmInsertBuilder {
|
|
|
707
707
|
}
|
|
708
708
|
return takeObject(r0);
|
|
709
709
|
} finally {
|
|
710
|
-
wasm$
|
|
710
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
@@ -715,18 +715,18 @@ class WasmInsertBuilder {
|
|
|
715
715
|
* @param {string[]} cols
|
|
716
716
|
*/
|
|
717
717
|
columns(cols) {
|
|
718
|
-
const ptr0 = passArrayJsValueToWasm0(cols, wasm$
|
|
718
|
+
const ptr0 = passArrayJsValueToWasm0(cols, wasm$3.__wbindgen_export);
|
|
719
719
|
const len0 = WASM_VECTOR_LEN;
|
|
720
|
-
wasm$
|
|
720
|
+
wasm$3.wasminsertbuilder_columns(this.__wbg_ptr, ptr0, len0);
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
723
723
|
* Create a new INSERT INTO builder for the given table.
|
|
724
724
|
* @param {string} table_name
|
|
725
725
|
*/
|
|
726
726
|
constructor(table_name) {
|
|
727
|
-
const ptr0 = passStringToWasm0(table_name, wasm$
|
|
727
|
+
const ptr0 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
728
728
|
const len0 = WASM_VECTOR_LEN;
|
|
729
|
-
const ret = wasm$
|
|
729
|
+
const ret = wasm$3.wasminsertbuilder_new(ptr0, len0);
|
|
730
730
|
this.__wbg_ptr = ret >>> 0;
|
|
731
731
|
WasmInsertBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
732
732
|
return this;
|
|
@@ -737,16 +737,16 @@ class WasmInsertBuilder {
|
|
|
737
737
|
*/
|
|
738
738
|
query(query) {
|
|
739
739
|
try {
|
|
740
|
-
const retptr = wasm$
|
|
740
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
741
741
|
_assertClass(query, WasmSelectBuilder);
|
|
742
|
-
wasm$
|
|
742
|
+
wasm$3.wasminsertbuilder_query(retptr, this.__wbg_ptr, query.__wbg_ptr);
|
|
743
743
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
744
744
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
745
745
|
if (r1) {
|
|
746
746
|
throw takeObject(r0);
|
|
747
747
|
}
|
|
748
748
|
} finally {
|
|
749
|
-
wasm$
|
|
749
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
@@ -758,10 +758,10 @@ class WasmInsertBuilder {
|
|
|
758
758
|
let deferred3_0;
|
|
759
759
|
let deferred3_1;
|
|
760
760
|
try {
|
|
761
|
-
const retptr = wasm$
|
|
762
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
761
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
762
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
763
763
|
const len0 = WASM_VECTOR_LEN;
|
|
764
|
-
wasm$
|
|
764
|
+
wasm$3.wasminsertbuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
765
765
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
766
766
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
767
767
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -776,8 +776,8 @@ class WasmInsertBuilder {
|
|
|
776
776
|
deferred3_1 = len2;
|
|
777
777
|
return getStringFromWasm0(ptr2, len2);
|
|
778
778
|
} finally {
|
|
779
|
-
wasm$
|
|
780
|
-
wasm$
|
|
779
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
780
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
/**
|
|
@@ -786,7 +786,7 @@ class WasmInsertBuilder {
|
|
|
786
786
|
*/
|
|
787
787
|
values(vals) {
|
|
788
788
|
_assertClass(vals, WasmExprArray);
|
|
789
|
-
wasm$
|
|
789
|
+
wasm$3.wasminsertbuilder_values(this.__wbg_ptr, vals.__wbg_ptr);
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
if (Symbol.dispose) WasmInsertBuilder.prototype[Symbol.dispose] = WasmInsertBuilder.prototype.free;
|
|
@@ -803,7 +803,7 @@ class WasmMergeBuilder {
|
|
|
803
803
|
}
|
|
804
804
|
free() {
|
|
805
805
|
const ptr = this.__destroy_into_raw();
|
|
806
|
-
wasm$
|
|
806
|
+
wasm$3.__wbg_wasmmergebuilder_free(ptr, 0);
|
|
807
807
|
}
|
|
808
808
|
/**
|
|
809
809
|
* Return the Expression AST as a JSON value.
|
|
@@ -811,8 +811,8 @@ class WasmMergeBuilder {
|
|
|
811
811
|
*/
|
|
812
812
|
build() {
|
|
813
813
|
try {
|
|
814
|
-
const retptr = wasm$
|
|
815
|
-
wasm$
|
|
814
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
815
|
+
wasm$3.wasmmergebuilder_build(retptr, this.__wbg_ptr);
|
|
816
816
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
817
817
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
818
818
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -821,7 +821,7 @@ class WasmMergeBuilder {
|
|
|
821
821
|
}
|
|
822
822
|
return takeObject(r0);
|
|
823
823
|
} finally {
|
|
824
|
-
wasm$
|
|
824
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
@@ -829,9 +829,9 @@ class WasmMergeBuilder {
|
|
|
829
829
|
* @param {string} target
|
|
830
830
|
*/
|
|
831
831
|
constructor(target) {
|
|
832
|
-
const ptr0 = passStringToWasm0(target, wasm$
|
|
832
|
+
const ptr0 = passStringToWasm0(target, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
833
833
|
const len0 = WASM_VECTOR_LEN;
|
|
834
|
-
const ret = wasm$
|
|
834
|
+
const ret = wasm$3.wasmmergebuilder_new(ptr0, len0);
|
|
835
835
|
this.__wbg_ptr = ret >>> 0;
|
|
836
836
|
WasmMergeBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
837
837
|
return this;
|
|
@@ -845,10 +845,10 @@ class WasmMergeBuilder {
|
|
|
845
845
|
let deferred3_0;
|
|
846
846
|
let deferred3_1;
|
|
847
847
|
try {
|
|
848
|
-
const retptr = wasm$
|
|
849
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
848
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
849
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
850
850
|
const len0 = WASM_VECTOR_LEN;
|
|
851
|
-
wasm$
|
|
851
|
+
wasm$3.wasmmergebuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
852
852
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
853
853
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
854
854
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -863,8 +863,8 @@ class WasmMergeBuilder {
|
|
|
863
863
|
deferred3_1 = len2;
|
|
864
864
|
return getStringFromWasm0(ptr2, len2);
|
|
865
865
|
} finally {
|
|
866
|
-
wasm$
|
|
867
|
-
wasm$
|
|
866
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
867
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
/**
|
|
@@ -873,16 +873,16 @@ class WasmMergeBuilder {
|
|
|
873
873
|
* @param {WasmExpr} on
|
|
874
874
|
*/
|
|
875
875
|
using(source, on) {
|
|
876
|
-
const ptr0 = passStringToWasm0(source, wasm$
|
|
876
|
+
const ptr0 = passStringToWasm0(source, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
877
877
|
const len0 = WASM_VECTOR_LEN;
|
|
878
878
|
_assertClass(on, WasmExpr);
|
|
879
|
-
wasm$
|
|
879
|
+
wasm$3.wasmmergebuilder_using(this.__wbg_ptr, ptr0, len0, on.__wbg_ptr);
|
|
880
880
|
}
|
|
881
881
|
/**
|
|
882
882
|
* Add a WHEN MATCHED THEN DELETE clause.
|
|
883
883
|
*/
|
|
884
884
|
when_matched_delete() {
|
|
885
|
-
wasm$
|
|
885
|
+
wasm$3.wasmmergebuilder_when_matched_delete(this.__wbg_ptr);
|
|
886
886
|
}
|
|
887
887
|
/**
|
|
888
888
|
* Add a WHEN MATCHED THEN UPDATE SET clause.
|
|
@@ -890,7 +890,7 @@ class WasmMergeBuilder {
|
|
|
890
890
|
*/
|
|
891
891
|
when_matched_update(assignments) {
|
|
892
892
|
_assertClass(assignments, WasmAssignmentArray);
|
|
893
|
-
wasm$
|
|
893
|
+
wasm$3.wasmmergebuilder_when_matched_update(this.__wbg_ptr, assignments.__wbg_ptr);
|
|
894
894
|
}
|
|
895
895
|
/**
|
|
896
896
|
* Add a WHEN NOT MATCHED THEN INSERT clause.
|
|
@@ -898,10 +898,10 @@ class WasmMergeBuilder {
|
|
|
898
898
|
* @param {WasmExprArray} values
|
|
899
899
|
*/
|
|
900
900
|
when_not_matched_insert(columns, values) {
|
|
901
|
-
const ptr0 = passArrayJsValueToWasm0(columns, wasm$
|
|
901
|
+
const ptr0 = passArrayJsValueToWasm0(columns, wasm$3.__wbindgen_export);
|
|
902
902
|
const len0 = WASM_VECTOR_LEN;
|
|
903
903
|
_assertClass(values, WasmExprArray);
|
|
904
|
-
wasm$
|
|
904
|
+
wasm$3.wasmmergebuilder_when_not_matched_insert(this.__wbg_ptr, ptr0, len0, values.__wbg_ptr);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
if (Symbol.dispose) WasmMergeBuilder.prototype[Symbol.dispose] = WasmMergeBuilder.prototype.free;
|
|
@@ -921,7 +921,7 @@ class WasmSelectBuilder {
|
|
|
921
921
|
}
|
|
922
922
|
free() {
|
|
923
923
|
const ptr = this.__destroy_into_raw();
|
|
924
|
-
wasm$
|
|
924
|
+
wasm$3.__wbg_wasmselectbuilder_free(ptr, 0);
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Return the Expression AST as a JSON value.
|
|
@@ -929,8 +929,8 @@ class WasmSelectBuilder {
|
|
|
929
929
|
*/
|
|
930
930
|
build() {
|
|
931
931
|
try {
|
|
932
|
-
const retptr = wasm$
|
|
933
|
-
wasm$
|
|
932
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
933
|
+
wasm$3.wasmselectbuilder_build(retptr, this.__wbg_ptr);
|
|
934
934
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
935
935
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
936
936
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -939,7 +939,7 @@ class WasmSelectBuilder {
|
|
|
939
939
|
}
|
|
940
940
|
return takeObject(r0);
|
|
941
941
|
} finally {
|
|
942
|
-
wasm$
|
|
942
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
/**
|
|
@@ -947,9 +947,9 @@ class WasmSelectBuilder {
|
|
|
947
947
|
* @param {string} table
|
|
948
948
|
*/
|
|
949
949
|
cross_join(table) {
|
|
950
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
950
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
951
951
|
const len0 = WASM_VECTOR_LEN;
|
|
952
|
-
wasm$
|
|
952
|
+
wasm$3.wasmselectbuilder_cross_join(this.__wbg_ptr, ptr0, len0);
|
|
953
953
|
}
|
|
954
954
|
/**
|
|
955
955
|
* Convert to CREATE TABLE AS SELECT. Returns the AST JSON.
|
|
@@ -958,10 +958,10 @@ class WasmSelectBuilder {
|
|
|
958
958
|
*/
|
|
959
959
|
ctas(table_name) {
|
|
960
960
|
try {
|
|
961
|
-
const retptr = wasm$
|
|
962
|
-
const ptr0 = passStringToWasm0(table_name, wasm$
|
|
961
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
962
|
+
const ptr0 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
963
963
|
const len0 = WASM_VECTOR_LEN;
|
|
964
|
-
wasm$
|
|
964
|
+
wasm$3.wasmselectbuilder_ctas(retptr, this.__wbg_ptr, ptr0, len0);
|
|
965
965
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
966
966
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
967
967
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -970,7 +970,7 @@ class WasmSelectBuilder {
|
|
|
970
970
|
}
|
|
971
971
|
return takeObject(r0);
|
|
972
972
|
} finally {
|
|
973
|
-
wasm$
|
|
973
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
/**
|
|
@@ -983,12 +983,12 @@ class WasmSelectBuilder {
|
|
|
983
983
|
let deferred4_0;
|
|
984
984
|
let deferred4_1;
|
|
985
985
|
try {
|
|
986
|
-
const retptr = wasm$
|
|
987
|
-
const ptr0 = passStringToWasm0(table_name, wasm$
|
|
986
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
987
|
+
const ptr0 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
988
988
|
const len0 = WASM_VECTOR_LEN;
|
|
989
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
989
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
990
990
|
const len1 = WASM_VECTOR_LEN;
|
|
991
|
-
wasm$
|
|
991
|
+
wasm$3.wasmselectbuilder_ctas_sql(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
992
992
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
993
993
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
994
994
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1003,15 +1003,15 @@ class WasmSelectBuilder {
|
|
|
1003
1003
|
deferred4_1 = len3;
|
|
1004
1004
|
return getStringFromWasm0(ptr3, len3);
|
|
1005
1005
|
} finally {
|
|
1006
|
-
wasm$
|
|
1007
|
-
wasm$
|
|
1006
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1007
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Enable DISTINCT.
|
|
1012
1012
|
*/
|
|
1013
1013
|
distinct() {
|
|
1014
|
-
wasm$
|
|
1014
|
+
wasm$3.wasmselectbuilder_distinct(this.__wbg_ptr);
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Combine with EXCEPT. Consumes both builders.
|
|
@@ -1020,9 +1020,9 @@ class WasmSelectBuilder {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
except_(other) {
|
|
1022
1022
|
try {
|
|
1023
|
-
const retptr = wasm$
|
|
1023
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1024
1024
|
_assertClass(other, WasmSelectBuilder);
|
|
1025
|
-
wasm$
|
|
1025
|
+
wasm$3.wasmselectbuilder_except_(retptr, this.__wbg_ptr, other.__wbg_ptr);
|
|
1026
1026
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1027
1027
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1028
1028
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1031,23 +1031,23 @@ class WasmSelectBuilder {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return WasmSetOpBuilder.__wrap(r0);
|
|
1033
1033
|
} finally {
|
|
1034
|
-
wasm$
|
|
1034
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Add a FOR UPDATE locking clause.
|
|
1039
1039
|
*/
|
|
1040
1040
|
for_update() {
|
|
1041
|
-
wasm$
|
|
1041
|
+
wasm$3.wasmselectbuilder_for_update(this.__wbg_ptr);
|
|
1042
1042
|
}
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Set the FROM clause to a table by name.
|
|
1045
1045
|
* @param {string} table
|
|
1046
1046
|
*/
|
|
1047
1047
|
from(table) {
|
|
1048
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
1048
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1049
1049
|
const len0 = WASM_VECTOR_LEN;
|
|
1050
|
-
wasm$
|
|
1050
|
+
wasm$3.wasmselectbuilder_from(this.__wbg_ptr, ptr0, len0);
|
|
1051
1051
|
}
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Set the FROM clause to an arbitrary expression.
|
|
@@ -1055,7 +1055,7 @@ class WasmSelectBuilder {
|
|
|
1055
1055
|
*/
|
|
1056
1056
|
from_expr(expr) {
|
|
1057
1057
|
_assertClass(expr, WasmExpr);
|
|
1058
|
-
wasm$
|
|
1058
|
+
wasm$3.wasmselectbuilder_from_expr(this.__wbg_ptr, expr.__wbg_ptr);
|
|
1059
1059
|
}
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Set the GROUP BY clause.
|
|
@@ -1063,7 +1063,7 @@ class WasmSelectBuilder {
|
|
|
1063
1063
|
*/
|
|
1064
1064
|
group_by_cols(cols) {
|
|
1065
1065
|
_assertClass(cols, WasmExprArray);
|
|
1066
|
-
wasm$
|
|
1066
|
+
wasm$3.wasmselectbuilder_group_by_cols(this.__wbg_ptr, cols.__wbg_ptr);
|
|
1067
1067
|
}
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Set the HAVING clause.
|
|
@@ -1071,16 +1071,16 @@ class WasmSelectBuilder {
|
|
|
1071
1071
|
*/
|
|
1072
1072
|
having(condition) {
|
|
1073
1073
|
_assertClass(condition, WasmExpr);
|
|
1074
|
-
wasm$
|
|
1074
|
+
wasm$3.wasmselectbuilder_having(this.__wbg_ptr, condition.__wbg_ptr);
|
|
1075
1075
|
}
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Add a query hint.
|
|
1078
1078
|
* @param {string} hint_text
|
|
1079
1079
|
*/
|
|
1080
1080
|
hint(hint_text) {
|
|
1081
|
-
const ptr0 = passStringToWasm0(hint_text, wasm$
|
|
1081
|
+
const ptr0 = passStringToWasm0(hint_text, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1082
1082
|
const len0 = WASM_VECTOR_LEN;
|
|
1083
|
-
wasm$
|
|
1083
|
+
wasm$3.wasmselectbuilder_hint(this.__wbg_ptr, ptr0, len0);
|
|
1084
1084
|
}
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Combine with INTERSECT. Consumes both builders.
|
|
@@ -1089,9 +1089,9 @@ class WasmSelectBuilder {
|
|
|
1089
1089
|
*/
|
|
1090
1090
|
intersect(other) {
|
|
1091
1091
|
try {
|
|
1092
|
-
const retptr = wasm$
|
|
1092
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1093
1093
|
_assertClass(other, WasmSelectBuilder);
|
|
1094
|
-
wasm$
|
|
1094
|
+
wasm$3.wasmselectbuilder_intersect(retptr, this.__wbg_ptr, other.__wbg_ptr);
|
|
1095
1095
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1096
1096
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1097
1097
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1100,7 +1100,7 @@ class WasmSelectBuilder {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return WasmSetOpBuilder.__wrap(r0);
|
|
1102
1102
|
} finally {
|
|
1103
|
-
wasm$
|
|
1103
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
@@ -1109,10 +1109,10 @@ class WasmSelectBuilder {
|
|
|
1109
1109
|
* @param {WasmExpr} on
|
|
1110
1110
|
*/
|
|
1111
1111
|
join(table, on) {
|
|
1112
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
1112
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1113
1113
|
const len0 = WASM_VECTOR_LEN;
|
|
1114
1114
|
_assertClass(on, WasmExpr);
|
|
1115
|
-
wasm$
|
|
1115
|
+
wasm$3.wasmselectbuilder_join(this.__wbg_ptr, ptr0, len0, on.__wbg_ptr);
|
|
1116
1116
|
}
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Add a LATERAL VIEW clause (Hive/Spark).
|
|
@@ -1122,11 +1122,11 @@ class WasmSelectBuilder {
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
lateral_view(func_expr, table_alias, col_aliases) {
|
|
1124
1124
|
_assertClass(func_expr, WasmExpr);
|
|
1125
|
-
const ptr0 = passStringToWasm0(table_alias, wasm$
|
|
1125
|
+
const ptr0 = passStringToWasm0(table_alias, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1126
1126
|
const len0 = WASM_VECTOR_LEN;
|
|
1127
|
-
const ptr1 = passArrayJsValueToWasm0(col_aliases, wasm$
|
|
1127
|
+
const ptr1 = passArrayJsValueToWasm0(col_aliases, wasm$3.__wbindgen_export);
|
|
1128
1128
|
const len1 = WASM_VECTOR_LEN;
|
|
1129
|
-
wasm$
|
|
1129
|
+
wasm$3.wasmselectbuilder_lateral_view(this.__wbg_ptr, func_expr.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1130
1130
|
}
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Add a LEFT JOIN.
|
|
@@ -1134,23 +1134,23 @@ class WasmSelectBuilder {
|
|
|
1134
1134
|
* @param {WasmExpr} on
|
|
1135
1135
|
*/
|
|
1136
1136
|
left_join(table, on) {
|
|
1137
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
1137
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1138
1138
|
const len0 = WASM_VECTOR_LEN;
|
|
1139
1139
|
_assertClass(on, WasmExpr);
|
|
1140
|
-
wasm$
|
|
1140
|
+
wasm$3.wasmselectbuilder_left_join(this.__wbg_ptr, ptr0, len0, on.__wbg_ptr);
|
|
1141
1141
|
}
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Set the LIMIT clause.
|
|
1144
1144
|
* @param {number} count
|
|
1145
1145
|
*/
|
|
1146
1146
|
limit(count) {
|
|
1147
|
-
wasm$
|
|
1147
|
+
wasm$3.wasmselectbuilder_limit(this.__wbg_ptr, count);
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Create a new, empty SELECT builder.
|
|
1151
1151
|
*/
|
|
1152
1152
|
constructor() {
|
|
1153
|
-
const ret = wasm$
|
|
1153
|
+
const ret = wasm$3.wasmselectbuilder_new();
|
|
1154
1154
|
this.__wbg_ptr = ret >>> 0;
|
|
1155
1155
|
WasmSelectBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
1156
1156
|
return this;
|
|
@@ -1160,7 +1160,7 @@ class WasmSelectBuilder {
|
|
|
1160
1160
|
* @param {number} count
|
|
1161
1161
|
*/
|
|
1162
1162
|
offset(count) {
|
|
1163
|
-
wasm$
|
|
1163
|
+
wasm$3.wasmselectbuilder_offset(this.__wbg_ptr, count);
|
|
1164
1164
|
}
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Set the ORDER BY clause.
|
|
@@ -1168,7 +1168,7 @@ class WasmSelectBuilder {
|
|
|
1168
1168
|
*/
|
|
1169
1169
|
order_by_exprs(exprs) {
|
|
1170
1170
|
_assertClass(exprs, WasmExprArray);
|
|
1171
|
-
wasm$
|
|
1171
|
+
wasm$3.wasmselectbuilder_order_by_exprs(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1172
1172
|
}
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Set the QUALIFY clause.
|
|
@@ -1176,7 +1176,7 @@ class WasmSelectBuilder {
|
|
|
1176
1176
|
*/
|
|
1177
1177
|
qualify(condition) {
|
|
1178
1178
|
_assertClass(condition, WasmExpr);
|
|
1179
|
-
wasm$
|
|
1179
|
+
wasm$3.wasmselectbuilder_qualify(this.__wbg_ptr, condition.__wbg_ptr);
|
|
1180
1180
|
}
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Add a RIGHT JOIN.
|
|
@@ -1184,19 +1184,19 @@ class WasmSelectBuilder {
|
|
|
1184
1184
|
* @param {WasmExpr} on
|
|
1185
1185
|
*/
|
|
1186
1186
|
right_join(table, on) {
|
|
1187
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
1187
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1188
1188
|
const len0 = WASM_VECTOR_LEN;
|
|
1189
1189
|
_assertClass(on, WasmExpr);
|
|
1190
|
-
wasm$
|
|
1190
|
+
wasm$3.wasmselectbuilder_right_join(this.__wbg_ptr, ptr0, len0, on.__wbg_ptr);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Add a column by name to the SELECT list.
|
|
1194
1194
|
* @param {string} name
|
|
1195
1195
|
*/
|
|
1196
1196
|
select_col(name) {
|
|
1197
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
1197
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1198
1198
|
const len0 = WASM_VECTOR_LEN;
|
|
1199
|
-
wasm$
|
|
1199
|
+
wasm$3.wasmselectbuilder_select_col(this.__wbg_ptr, ptr0, len0);
|
|
1200
1200
|
}
|
|
1201
1201
|
/**
|
|
1202
1202
|
* Add a single expression to the SELECT list.
|
|
@@ -1204,7 +1204,7 @@ class WasmSelectBuilder {
|
|
|
1204
1204
|
*/
|
|
1205
1205
|
select_expr(expr) {
|
|
1206
1206
|
_assertClass(expr, WasmExpr);
|
|
1207
|
-
wasm$
|
|
1207
|
+
wasm$3.wasmselectbuilder_select_expr(this.__wbg_ptr, expr.__wbg_ptr);
|
|
1208
1208
|
}
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Add multiple expressions to the SELECT list.
|
|
@@ -1212,13 +1212,13 @@ class WasmSelectBuilder {
|
|
|
1212
1212
|
*/
|
|
1213
1213
|
select_exprs(exprs) {
|
|
1214
1214
|
_assertClass(exprs, WasmExprArray);
|
|
1215
|
-
wasm$
|
|
1215
|
+
wasm$3.wasmselectbuilder_select_exprs(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1216
1216
|
}
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Add a star (*) to the SELECT list.
|
|
1219
1219
|
*/
|
|
1220
1220
|
select_star() {
|
|
1221
|
-
wasm$
|
|
1221
|
+
wasm$3.wasmselectbuilder_select_star(this.__wbg_ptr);
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Set the SORT BY clause (Hive/Spark).
|
|
@@ -1226,7 +1226,7 @@ class WasmSelectBuilder {
|
|
|
1226
1226
|
*/
|
|
1227
1227
|
sort_by_exprs(exprs) {
|
|
1228
1228
|
_assertClass(exprs, WasmExprArray);
|
|
1229
|
-
wasm$
|
|
1229
|
+
wasm$3.wasmselectbuilder_sort_by_exprs(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1230
1230
|
}
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Generate SQL string for the given dialect.
|
|
@@ -1237,10 +1237,10 @@ class WasmSelectBuilder {
|
|
|
1237
1237
|
let deferred3_0;
|
|
1238
1238
|
let deferred3_1;
|
|
1239
1239
|
try {
|
|
1240
|
-
const retptr = wasm$
|
|
1241
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
1240
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1241
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1242
1242
|
const len0 = WASM_VECTOR_LEN;
|
|
1243
|
-
wasm$
|
|
1243
|
+
wasm$3.wasmselectbuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1244
1244
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1245
1245
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1246
1246
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1255,8 +1255,8 @@ class WasmSelectBuilder {
|
|
|
1255
1255
|
deferred3_1 = len2;
|
|
1256
1256
|
return getStringFromWasm0(ptr2, len2);
|
|
1257
1257
|
} finally {
|
|
1258
|
-
wasm$
|
|
1259
|
-
wasm$
|
|
1258
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1259
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
@@ -1266,9 +1266,9 @@ class WasmSelectBuilder {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
union(other) {
|
|
1268
1268
|
try {
|
|
1269
|
-
const retptr = wasm$
|
|
1269
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1270
1270
|
_assertClass(other, WasmSelectBuilder);
|
|
1271
|
-
wasm$
|
|
1271
|
+
wasm$3.wasmselectbuilder_union(retptr, this.__wbg_ptr, other.__wbg_ptr);
|
|
1272
1272
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1273
1273
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1274
1274
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1277,7 +1277,7 @@ class WasmSelectBuilder {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
return WasmSetOpBuilder.__wrap(r0);
|
|
1279
1279
|
} finally {
|
|
1280
|
-
wasm$
|
|
1280
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
/**
|
|
@@ -1287,9 +1287,9 @@ class WasmSelectBuilder {
|
|
|
1287
1287
|
*/
|
|
1288
1288
|
union_all(other) {
|
|
1289
1289
|
try {
|
|
1290
|
-
const retptr = wasm$
|
|
1290
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1291
1291
|
_assertClass(other, WasmSelectBuilder);
|
|
1292
|
-
wasm$
|
|
1292
|
+
wasm$3.wasmselectbuilder_union_all(retptr, this.__wbg_ptr, other.__wbg_ptr);
|
|
1293
1293
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1294
1294
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1295
1295
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1298,7 +1298,7 @@ class WasmSelectBuilder {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return WasmSetOpBuilder.__wrap(r0);
|
|
1300
1300
|
} finally {
|
|
1301
|
-
wasm$
|
|
1301
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
/**
|
|
@@ -1307,16 +1307,16 @@ class WasmSelectBuilder {
|
|
|
1307
1307
|
*/
|
|
1308
1308
|
where_expr(condition) {
|
|
1309
1309
|
_assertClass(condition, WasmExpr);
|
|
1310
|
-
wasm$
|
|
1310
|
+
wasm$3.wasmselectbuilder_where_expr(this.__wbg_ptr, condition.__wbg_ptr);
|
|
1311
1311
|
}
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Set the WHERE clause by parsing a raw SQL condition string.
|
|
1314
1314
|
* @param {string} sql
|
|
1315
1315
|
*/
|
|
1316
1316
|
where_sql(sql) {
|
|
1317
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
1317
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1318
1318
|
const len0 = WASM_VECTOR_LEN;
|
|
1319
|
-
wasm$
|
|
1319
|
+
wasm$3.wasmselectbuilder_where_sql(this.__wbg_ptr, ptr0, len0);
|
|
1320
1320
|
}
|
|
1321
1321
|
/**
|
|
1322
1322
|
* Add a named WINDOW clause definition.
|
|
@@ -1325,18 +1325,18 @@ class WasmSelectBuilder {
|
|
|
1325
1325
|
*/
|
|
1326
1326
|
window(name, def) {
|
|
1327
1327
|
try {
|
|
1328
|
-
const retptr = wasm$
|
|
1329
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
1328
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1329
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1330
1330
|
const len0 = WASM_VECTOR_LEN;
|
|
1331
1331
|
_assertClass(def, WasmWindowDefBuilder);
|
|
1332
|
-
wasm$
|
|
1332
|
+
wasm$3.wasmselectbuilder_window(retptr, this.__wbg_ptr, ptr0, len0, def.__wbg_ptr);
|
|
1333
1333
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1334
1334
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1335
1335
|
if (r1) {
|
|
1336
1336
|
throw takeObject(r0);
|
|
1337
1337
|
}
|
|
1338
1338
|
} finally {
|
|
1339
|
-
wasm$
|
|
1339
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
@@ -1361,7 +1361,7 @@ class WasmSetOpBuilder {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
free() {
|
|
1363
1363
|
const ptr = this.__destroy_into_raw();
|
|
1364
|
-
wasm$
|
|
1364
|
+
wasm$3.__wbg_wasmsetopbuilder_free(ptr, 0);
|
|
1365
1365
|
}
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Return the Expression AST as a JSON value.
|
|
@@ -1369,8 +1369,8 @@ class WasmSetOpBuilder {
|
|
|
1369
1369
|
*/
|
|
1370
1370
|
build() {
|
|
1371
1371
|
try {
|
|
1372
|
-
const retptr = wasm$
|
|
1373
|
-
wasm$
|
|
1372
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1373
|
+
wasm$3.wasmsetopbuilder_build(retptr, this.__wbg_ptr);
|
|
1374
1374
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1375
1375
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1376
1376
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1379,7 +1379,7 @@ class WasmSetOpBuilder {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
return takeObject(r0);
|
|
1381
1381
|
} finally {
|
|
1382
|
-
wasm$
|
|
1382
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
1385
|
/**
|
|
@@ -1387,14 +1387,14 @@ class WasmSetOpBuilder {
|
|
|
1387
1387
|
* @param {number} count
|
|
1388
1388
|
*/
|
|
1389
1389
|
limit(count) {
|
|
1390
|
-
wasm$
|
|
1390
|
+
wasm$3.wasmsetopbuilder_limit(this.__wbg_ptr, count);
|
|
1391
1391
|
}
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Set the OFFSET clause.
|
|
1394
1394
|
* @param {number} count
|
|
1395
1395
|
*/
|
|
1396
1396
|
offset(count) {
|
|
1397
|
-
wasm$
|
|
1397
|
+
wasm$3.wasmsetopbuilder_offset(this.__wbg_ptr, count);
|
|
1398
1398
|
}
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Set the ORDER BY clause.
|
|
@@ -1402,7 +1402,7 @@ class WasmSetOpBuilder {
|
|
|
1402
1402
|
*/
|
|
1403
1403
|
order_by_exprs(exprs) {
|
|
1404
1404
|
_assertClass(exprs, WasmExprArray);
|
|
1405
|
-
wasm$
|
|
1405
|
+
wasm$3.wasmsetopbuilder_order_by_exprs(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1406
1406
|
}
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Generate SQL string for the given dialect.
|
|
@@ -1413,10 +1413,10 @@ class WasmSetOpBuilder {
|
|
|
1413
1413
|
let deferred3_0;
|
|
1414
1414
|
let deferred3_1;
|
|
1415
1415
|
try {
|
|
1416
|
-
const retptr = wasm$
|
|
1417
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
1416
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1417
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1418
1418
|
const len0 = WASM_VECTOR_LEN;
|
|
1419
|
-
wasm$
|
|
1419
|
+
wasm$3.wasmsetopbuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1420
1420
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1421
1421
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1422
1422
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1431,8 +1431,8 @@ class WasmSetOpBuilder {
|
|
|
1431
1431
|
deferred3_1 = len2;
|
|
1432
1432
|
return getStringFromWasm0(ptr2, len2);
|
|
1433
1433
|
} finally {
|
|
1434
|
-
wasm$
|
|
1435
|
-
wasm$
|
|
1434
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1435
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
@@ -1450,7 +1450,7 @@ class WasmUpdateBuilder {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
free() {
|
|
1452
1452
|
const ptr = this.__destroy_into_raw();
|
|
1453
|
-
wasm$
|
|
1453
|
+
wasm$3.__wbg_wasmupdatebuilder_free(ptr, 0);
|
|
1454
1454
|
}
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Return the Expression AST as a JSON value.
|
|
@@ -1458,8 +1458,8 @@ class WasmUpdateBuilder {
|
|
|
1458
1458
|
*/
|
|
1459
1459
|
build() {
|
|
1460
1460
|
try {
|
|
1461
|
-
const retptr = wasm$
|
|
1462
|
-
wasm$
|
|
1461
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1462
|
+
wasm$3.wasmupdatebuilder_build(retptr, this.__wbg_ptr);
|
|
1463
1463
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1464
1464
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1465
1465
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1468,7 +1468,7 @@ class WasmUpdateBuilder {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
return takeObject(r0);
|
|
1470
1470
|
} finally {
|
|
1471
|
-
wasm$
|
|
1471
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
@@ -1476,18 +1476,18 @@ class WasmUpdateBuilder {
|
|
|
1476
1476
|
* @param {string} table
|
|
1477
1477
|
*/
|
|
1478
1478
|
from(table) {
|
|
1479
|
-
const ptr0 = passStringToWasm0(table, wasm$
|
|
1479
|
+
const ptr0 = passStringToWasm0(table, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1480
1480
|
const len0 = WASM_VECTOR_LEN;
|
|
1481
|
-
wasm$
|
|
1481
|
+
wasm$3.wasmupdatebuilder_from(this.__wbg_ptr, ptr0, len0);
|
|
1482
1482
|
}
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Create a new UPDATE builder for the given table.
|
|
1485
1485
|
* @param {string} table_name
|
|
1486
1486
|
*/
|
|
1487
1487
|
constructor(table_name) {
|
|
1488
|
-
const ptr0 = passStringToWasm0(table_name, wasm$
|
|
1488
|
+
const ptr0 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1489
1489
|
const len0 = WASM_VECTOR_LEN;
|
|
1490
|
-
const ret = wasm$
|
|
1490
|
+
const ret = wasm$3.wasmupdatebuilder_new(ptr0, len0);
|
|
1491
1491
|
this.__wbg_ptr = ret >>> 0;
|
|
1492
1492
|
WasmUpdateBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
1493
1493
|
return this;
|
|
@@ -1498,10 +1498,10 @@ class WasmUpdateBuilder {
|
|
|
1498
1498
|
* @param {WasmExpr} value
|
|
1499
1499
|
*/
|
|
1500
1500
|
set(column, value) {
|
|
1501
|
-
const ptr0 = passStringToWasm0(column, wasm$
|
|
1501
|
+
const ptr0 = passStringToWasm0(column, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1502
1502
|
const len0 = WASM_VECTOR_LEN;
|
|
1503
1503
|
_assertClass(value, WasmExpr);
|
|
1504
|
-
wasm$
|
|
1504
|
+
wasm$3.wasmupdatebuilder_set(this.__wbg_ptr, ptr0, len0, value.__wbg_ptr);
|
|
1505
1505
|
}
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Generate SQL string for the given dialect.
|
|
@@ -1512,10 +1512,10 @@ class WasmUpdateBuilder {
|
|
|
1512
1512
|
let deferred3_0;
|
|
1513
1513
|
let deferred3_1;
|
|
1514
1514
|
try {
|
|
1515
|
-
const retptr = wasm$
|
|
1516
|
-
const ptr0 = passStringToWasm0(dialect, wasm$
|
|
1515
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1516
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1517
1517
|
const len0 = WASM_VECTOR_LEN;
|
|
1518
|
-
wasm$
|
|
1518
|
+
wasm$3.wasmupdatebuilder_to_sql(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1519
1519
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1520
1520
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1521
1521
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1530,8 +1530,8 @@ class WasmUpdateBuilder {
|
|
|
1530
1530
|
deferred3_1 = len2;
|
|
1531
1531
|
return getStringFromWasm0(ptr2, len2);
|
|
1532
1532
|
} finally {
|
|
1533
|
-
wasm$
|
|
1534
|
-
wasm$
|
|
1533
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1534
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
1537
|
/**
|
|
@@ -1540,7 +1540,7 @@ class WasmUpdateBuilder {
|
|
|
1540
1540
|
*/
|
|
1541
1541
|
where_expr(condition) {
|
|
1542
1542
|
_assertClass(condition, WasmExpr);
|
|
1543
|
-
wasm$
|
|
1543
|
+
wasm$3.wasmupdatebuilder_where_expr(this.__wbg_ptr, condition.__wbg_ptr);
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
if (Symbol.dispose) WasmUpdateBuilder.prototype[Symbol.dispose] = WasmUpdateBuilder.prototype.free;
|
|
@@ -1557,13 +1557,13 @@ class WasmWindowDefBuilder {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
free() {
|
|
1559
1559
|
const ptr = this.__destroy_into_raw();
|
|
1560
|
-
wasm$
|
|
1560
|
+
wasm$3.__wbg_wasmwindowdefbuilder_free(ptr, 0);
|
|
1561
1561
|
}
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Create a new, empty window definition builder.
|
|
1564
1564
|
*/
|
|
1565
1565
|
constructor() {
|
|
1566
|
-
const ret = wasm$
|
|
1566
|
+
const ret = wasm$3.wasmwindowdefbuilder_new();
|
|
1567
1567
|
this.__wbg_ptr = ret >>> 0;
|
|
1568
1568
|
WasmWindowDefBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
1569
1569
|
return this;
|
|
@@ -1574,7 +1574,7 @@ class WasmWindowDefBuilder {
|
|
|
1574
1574
|
*/
|
|
1575
1575
|
order_by(exprs) {
|
|
1576
1576
|
_assertClass(exprs, WasmExprArray);
|
|
1577
|
-
wasm$
|
|
1577
|
+
wasm$3.wasmwindowdefbuilder_order_by(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1578
1578
|
}
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Set the PARTITION BY expressions.
|
|
@@ -1582,7 +1582,7 @@ class WasmWindowDefBuilder {
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
partition_by(exprs) {
|
|
1584
1584
|
_assertClass(exprs, WasmExprArray);
|
|
1585
|
-
wasm$
|
|
1585
|
+
wasm$3.wasmwindowdefbuilder_partition_by(this.__wbg_ptr, exprs.__wbg_ptr);
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
if (Symbol.dispose) WasmWindowDefBuilder.prototype[Symbol.dispose] = WasmWindowDefBuilder.prototype.free;
|
|
@@ -1598,20 +1598,20 @@ function ast_add_where$1(ast_json, condition_json, use_or) {
|
|
|
1598
1598
|
let deferred3_0;
|
|
1599
1599
|
let deferred3_1;
|
|
1600
1600
|
try {
|
|
1601
|
-
const retptr = wasm$
|
|
1602
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1601
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1602
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1603
1603
|
const len0 = WASM_VECTOR_LEN;
|
|
1604
|
-
const ptr1 = passStringToWasm0(condition_json, wasm$
|
|
1604
|
+
const ptr1 = passStringToWasm0(condition_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1605
1605
|
const len1 = WASM_VECTOR_LEN;
|
|
1606
|
-
wasm$
|
|
1606
|
+
wasm$3.ast_add_where(retptr, ptr0, len0, ptr1, len1, use_or);
|
|
1607
1607
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1608
1608
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1609
1609
|
deferred3_0 = r0;
|
|
1610
1610
|
deferred3_1 = r1;
|
|
1611
1611
|
return getStringFromWasm0(r0, r1);
|
|
1612
1612
|
} finally {
|
|
1613
|
-
wasm$
|
|
1614
|
-
wasm$
|
|
1613
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1614
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
@@ -1624,18 +1624,18 @@ function ast_get_aggregate_functions$1(ast_json) {
|
|
|
1624
1624
|
let deferred2_0;
|
|
1625
1625
|
let deferred2_1;
|
|
1626
1626
|
try {
|
|
1627
|
-
const retptr = wasm$
|
|
1628
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1627
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1628
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1629
1629
|
const len0 = WASM_VECTOR_LEN;
|
|
1630
|
-
wasm$
|
|
1630
|
+
wasm$3.ast_get_aggregate_functions(retptr, ptr0, len0);
|
|
1631
1631
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1632
1632
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1633
1633
|
deferred2_0 = r0;
|
|
1634
1634
|
deferred2_1 = r1;
|
|
1635
1635
|
return getStringFromWasm0(r0, r1);
|
|
1636
1636
|
} finally {
|
|
1637
|
-
wasm$
|
|
1638
|
-
wasm$
|
|
1637
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1638
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
@@ -1648,18 +1648,18 @@ function ast_get_column_names$1(ast_json) {
|
|
|
1648
1648
|
let deferred2_0;
|
|
1649
1649
|
let deferred2_1;
|
|
1650
1650
|
try {
|
|
1651
|
-
const retptr = wasm$
|
|
1652
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1651
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1652
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1653
1653
|
const len0 = WASM_VECTOR_LEN;
|
|
1654
|
-
wasm$
|
|
1654
|
+
wasm$3.ast_get_column_names(retptr, ptr0, len0);
|
|
1655
1655
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1656
1656
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1657
1657
|
deferred2_0 = r0;
|
|
1658
1658
|
deferred2_1 = r1;
|
|
1659
1659
|
return getStringFromWasm0(r0, r1);
|
|
1660
1660
|
} finally {
|
|
1661
|
-
wasm$
|
|
1662
|
-
wasm$
|
|
1661
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1662
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
|
|
@@ -1672,18 +1672,18 @@ function ast_get_functions$1(ast_json) {
|
|
|
1672
1672
|
let deferred2_0;
|
|
1673
1673
|
let deferred2_1;
|
|
1674
1674
|
try {
|
|
1675
|
-
const retptr = wasm$
|
|
1676
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1675
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1676
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1677
1677
|
const len0 = WASM_VECTOR_LEN;
|
|
1678
|
-
wasm$
|
|
1678
|
+
wasm$3.ast_get_functions(retptr, ptr0, len0);
|
|
1679
1679
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1680
1680
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1681
1681
|
deferred2_0 = r0;
|
|
1682
1682
|
deferred2_1 = r1;
|
|
1683
1683
|
return getStringFromWasm0(r0, r1);
|
|
1684
1684
|
} finally {
|
|
1685
|
-
wasm$
|
|
1686
|
-
wasm$
|
|
1685
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1686
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
@@ -1696,18 +1696,18 @@ function ast_get_literals$1(ast_json) {
|
|
|
1696
1696
|
let deferred2_0;
|
|
1697
1697
|
let deferred2_1;
|
|
1698
1698
|
try {
|
|
1699
|
-
const retptr = wasm$
|
|
1700
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1699
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1700
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1701
1701
|
const len0 = WASM_VECTOR_LEN;
|
|
1702
|
-
wasm$
|
|
1702
|
+
wasm$3.ast_get_literals(retptr, ptr0, len0);
|
|
1703
1703
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1704
1704
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1705
1705
|
deferred2_0 = r0;
|
|
1706
1706
|
deferred2_1 = r1;
|
|
1707
1707
|
return getStringFromWasm0(r0, r1);
|
|
1708
1708
|
} finally {
|
|
1709
|
-
wasm$
|
|
1710
|
-
wasm$
|
|
1709
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1710
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
@@ -1720,18 +1720,18 @@ function ast_get_subqueries$1(ast_json) {
|
|
|
1720
1720
|
let deferred2_0;
|
|
1721
1721
|
let deferred2_1;
|
|
1722
1722
|
try {
|
|
1723
|
-
const retptr = wasm$
|
|
1724
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1723
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1724
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1725
1725
|
const len0 = WASM_VECTOR_LEN;
|
|
1726
|
-
wasm$
|
|
1726
|
+
wasm$3.ast_get_subqueries(retptr, ptr0, len0);
|
|
1727
1727
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1728
1728
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1729
1729
|
deferred2_0 = r0;
|
|
1730
1730
|
deferred2_1 = r1;
|
|
1731
1731
|
return getStringFromWasm0(r0, r1);
|
|
1732
1732
|
} finally {
|
|
1733
|
-
wasm$
|
|
1734
|
-
wasm$
|
|
1733
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1734
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
@@ -1744,18 +1744,18 @@ function ast_get_table_names$1(ast_json) {
|
|
|
1744
1744
|
let deferred2_0;
|
|
1745
1745
|
let deferred2_1;
|
|
1746
1746
|
try {
|
|
1747
|
-
const retptr = wasm$
|
|
1748
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1747
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1748
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1749
1749
|
const len0 = WASM_VECTOR_LEN;
|
|
1750
|
-
wasm$
|
|
1750
|
+
wasm$3.ast_get_table_names(retptr, ptr0, len0);
|
|
1751
1751
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1752
1752
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1753
1753
|
deferred2_0 = r0;
|
|
1754
1754
|
deferred2_1 = r1;
|
|
1755
1755
|
return getStringFromWasm0(r0, r1);
|
|
1756
1756
|
} finally {
|
|
1757
|
-
wasm$
|
|
1758
|
-
wasm$
|
|
1757
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1758
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
|
|
@@ -1768,18 +1768,18 @@ function ast_get_window_functions$1(ast_json) {
|
|
|
1768
1768
|
let deferred2_0;
|
|
1769
1769
|
let deferred2_1;
|
|
1770
1770
|
try {
|
|
1771
|
-
const retptr = wasm$
|
|
1772
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1771
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1772
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1773
1773
|
const len0 = WASM_VECTOR_LEN;
|
|
1774
|
-
wasm$
|
|
1774
|
+
wasm$3.ast_get_window_functions(retptr, ptr0, len0);
|
|
1775
1775
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1776
1776
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1777
1777
|
deferred2_0 = r0;
|
|
1778
1778
|
deferred2_1 = r1;
|
|
1779
1779
|
return getStringFromWasm0(r0, r1);
|
|
1780
1780
|
} finally {
|
|
1781
|
-
wasm$
|
|
1782
|
-
wasm$
|
|
1781
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1782
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
@@ -1792,18 +1792,18 @@ function ast_node_count$1(ast_json) {
|
|
|
1792
1792
|
let deferred2_0;
|
|
1793
1793
|
let deferred2_1;
|
|
1794
1794
|
try {
|
|
1795
|
-
const retptr = wasm$
|
|
1796
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1795
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1796
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1797
1797
|
const len0 = WASM_VECTOR_LEN;
|
|
1798
|
-
wasm$
|
|
1798
|
+
wasm$3.ast_node_count(retptr, ptr0, len0);
|
|
1799
1799
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1800
1800
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1801
1801
|
deferred2_0 = r0;
|
|
1802
1802
|
deferred2_1 = r1;
|
|
1803
1803
|
return getStringFromWasm0(r0, r1);
|
|
1804
1804
|
} finally {
|
|
1805
|
-
wasm$
|
|
1806
|
-
wasm$
|
|
1805
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1806
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
@@ -1817,20 +1817,20 @@ function ast_qualify_columns$1(ast_json, table_name) {
|
|
|
1817
1817
|
let deferred3_0;
|
|
1818
1818
|
let deferred3_1;
|
|
1819
1819
|
try {
|
|
1820
|
-
const retptr = wasm$
|
|
1821
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1820
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1821
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1822
1822
|
const len0 = WASM_VECTOR_LEN;
|
|
1823
|
-
const ptr1 = passStringToWasm0(table_name, wasm$
|
|
1823
|
+
const ptr1 = passStringToWasm0(table_name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1824
1824
|
const len1 = WASM_VECTOR_LEN;
|
|
1825
|
-
wasm$
|
|
1825
|
+
wasm$3.ast_qualify_columns(retptr, ptr0, len0, ptr1, len1);
|
|
1826
1826
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1827
1827
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1828
1828
|
deferred3_0 = r0;
|
|
1829
1829
|
deferred3_1 = r1;
|
|
1830
1830
|
return getStringFromWasm0(r0, r1);
|
|
1831
1831
|
} finally {
|
|
1832
|
-
wasm$
|
|
1833
|
-
wasm$
|
|
1832
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1833
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
1836
|
|
|
@@ -1843,18 +1843,18 @@ function ast_remove_where$1(ast_json) {
|
|
|
1843
1843
|
let deferred2_0;
|
|
1844
1844
|
let deferred2_1;
|
|
1845
1845
|
try {
|
|
1846
|
-
const retptr = wasm$
|
|
1847
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1846
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1847
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1848
1848
|
const len0 = WASM_VECTOR_LEN;
|
|
1849
|
-
wasm$
|
|
1849
|
+
wasm$3.ast_remove_where(retptr, ptr0, len0);
|
|
1850
1850
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1851
1851
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1852
1852
|
deferred2_0 = r0;
|
|
1853
1853
|
deferred2_1 = r1;
|
|
1854
1854
|
return getStringFromWasm0(r0, r1);
|
|
1855
1855
|
} finally {
|
|
1856
|
-
wasm$
|
|
1857
|
-
wasm$
|
|
1856
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1857
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
|
|
@@ -1868,20 +1868,20 @@ function ast_rename_columns$1(ast_json, mapping_json) {
|
|
|
1868
1868
|
let deferred3_0;
|
|
1869
1869
|
let deferred3_1;
|
|
1870
1870
|
try {
|
|
1871
|
-
const retptr = wasm$
|
|
1872
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1871
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1872
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1873
1873
|
const len0 = WASM_VECTOR_LEN;
|
|
1874
|
-
const ptr1 = passStringToWasm0(mapping_json, wasm$
|
|
1874
|
+
const ptr1 = passStringToWasm0(mapping_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1875
1875
|
const len1 = WASM_VECTOR_LEN;
|
|
1876
|
-
wasm$
|
|
1876
|
+
wasm$3.ast_rename_columns(retptr, ptr0, len0, ptr1, len1);
|
|
1877
1877
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1878
1878
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1879
1879
|
deferred3_0 = r0;
|
|
1880
1880
|
deferred3_1 = r1;
|
|
1881
1881
|
return getStringFromWasm0(r0, r1);
|
|
1882
1882
|
} finally {
|
|
1883
|
-
wasm$
|
|
1884
|
-
wasm$
|
|
1883
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1884
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
@@ -1895,20 +1895,20 @@ function ast_rename_tables$1(ast_json, mapping_json) {
|
|
|
1895
1895
|
let deferred3_0;
|
|
1896
1896
|
let deferred3_1;
|
|
1897
1897
|
try {
|
|
1898
|
-
const retptr = wasm$
|
|
1899
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1898
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1899
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1900
1900
|
const len0 = WASM_VECTOR_LEN;
|
|
1901
|
-
const ptr1 = passStringToWasm0(mapping_json, wasm$
|
|
1901
|
+
const ptr1 = passStringToWasm0(mapping_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1902
1902
|
const len1 = WASM_VECTOR_LEN;
|
|
1903
|
-
wasm$
|
|
1903
|
+
wasm$3.ast_rename_tables(retptr, ptr0, len0, ptr1, len1);
|
|
1904
1904
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1905
1905
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1906
1906
|
deferred3_0 = r0;
|
|
1907
1907
|
deferred3_1 = r1;
|
|
1908
1908
|
return getStringFromWasm0(r0, r1);
|
|
1909
1909
|
} finally {
|
|
1910
|
-
wasm$
|
|
1911
|
-
wasm$
|
|
1910
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1911
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
@@ -1922,18 +1922,18 @@ function ast_set_distinct$1(ast_json, distinct) {
|
|
|
1922
1922
|
let deferred2_0;
|
|
1923
1923
|
let deferred2_1;
|
|
1924
1924
|
try {
|
|
1925
|
-
const retptr = wasm$
|
|
1926
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1925
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1926
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1927
1927
|
const len0 = WASM_VECTOR_LEN;
|
|
1928
|
-
wasm$
|
|
1928
|
+
wasm$3.ast_set_distinct(retptr, ptr0, len0, distinct);
|
|
1929
1929
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1930
1930
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1931
1931
|
deferred2_0 = r0;
|
|
1932
1932
|
deferred2_1 = r1;
|
|
1933
1933
|
return getStringFromWasm0(r0, r1);
|
|
1934
1934
|
} finally {
|
|
1935
|
-
wasm$
|
|
1936
|
-
wasm$
|
|
1935
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1936
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
@@ -1947,18 +1947,18 @@ function ast_set_limit$1(ast_json, limit) {
|
|
|
1947
1947
|
let deferred2_0;
|
|
1948
1948
|
let deferred2_1;
|
|
1949
1949
|
try {
|
|
1950
|
-
const retptr = wasm$
|
|
1951
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
1950
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1951
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1952
1952
|
const len0 = WASM_VECTOR_LEN;
|
|
1953
|
-
wasm$
|
|
1953
|
+
wasm$3.ast_set_limit(retptr, ptr0, len0, limit);
|
|
1954
1954
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1955
1955
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1956
1956
|
deferred2_0 = r0;
|
|
1957
1957
|
deferred2_1 = r1;
|
|
1958
1958
|
return getStringFromWasm0(r0, r1);
|
|
1959
1959
|
} finally {
|
|
1960
|
-
wasm$
|
|
1961
|
-
wasm$
|
|
1960
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
1961
|
+
wasm$3.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
1964
|
|
|
@@ -1987,22 +1987,22 @@ function diff_sql$1(source_sql, target_sql, dialect, delta_only, f, t) {
|
|
|
1987
1987
|
let deferred4_0;
|
|
1988
1988
|
let deferred4_1;
|
|
1989
1989
|
try {
|
|
1990
|
-
const retptr = wasm$
|
|
1991
|
-
const ptr0 = passStringToWasm0(source_sql, wasm$
|
|
1990
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
1991
|
+
const ptr0 = passStringToWasm0(source_sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1992
1992
|
const len0 = WASM_VECTOR_LEN;
|
|
1993
|
-
const ptr1 = passStringToWasm0(target_sql, wasm$
|
|
1993
|
+
const ptr1 = passStringToWasm0(target_sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1994
1994
|
const len1 = WASM_VECTOR_LEN;
|
|
1995
|
-
const ptr2 = passStringToWasm0(dialect, wasm$
|
|
1995
|
+
const ptr2 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
1996
1996
|
const len2 = WASM_VECTOR_LEN;
|
|
1997
|
-
wasm$
|
|
1997
|
+
wasm$3.diff_sql(retptr, ptr0, len0, ptr1, len1, ptr2, len2, delta_only, f, t);
|
|
1998
1998
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1999
1999
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2000
2000
|
deferred4_0 = r0;
|
|
2001
2001
|
deferred4_1 = r1;
|
|
2002
2002
|
return getStringFromWasm0(r0, r1);
|
|
2003
2003
|
} finally {
|
|
2004
|
-
wasm$
|
|
2005
|
-
wasm$
|
|
2004
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2005
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
@@ -2023,23 +2023,38 @@ function format_sql$1(sql, dialect) {
|
|
|
2023
2023
|
let deferred3_0;
|
|
2024
2024
|
let deferred3_1;
|
|
2025
2025
|
try {
|
|
2026
|
-
const retptr = wasm$
|
|
2027
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2026
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2027
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2028
2028
|
const len0 = WASM_VECTOR_LEN;
|
|
2029
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
2029
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2030
2030
|
const len1 = WASM_VECTOR_LEN;
|
|
2031
|
-
wasm$
|
|
2031
|
+
wasm$3.format_sql(retptr, ptr0, len0, ptr1, len1);
|
|
2032
2032
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2033
2033
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2034
2034
|
deferred3_0 = r0;
|
|
2035
2035
|
deferred3_1 = r1;
|
|
2036
2036
|
return getStringFromWasm0(r0, r1);
|
|
2037
2037
|
} finally {
|
|
2038
|
-
wasm$
|
|
2039
|
-
wasm$
|
|
2038
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2039
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
2043
|
+
/**
|
|
2044
|
+
* Format SQL and return a structured JS object instead of JSON text.
|
|
2045
|
+
* @param {string} sql
|
|
2046
|
+
* @param {string} dialect
|
|
2047
|
+
* @returns {any}
|
|
2048
|
+
*/
|
|
2049
|
+
function format_sql_value$1(sql, dialect) {
|
|
2050
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2051
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2052
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2053
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2054
|
+
const ret = wasm$3.format_sql_value(ptr0, len0, ptr1, len1);
|
|
2055
|
+
return takeObject(ret);
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2043
2058
|
/**
|
|
2044
2059
|
* Generate SQL from an AST (provided as JSON).
|
|
2045
2060
|
*
|
|
@@ -2057,23 +2072,36 @@ function generate$2(ast_json, dialect) {
|
|
|
2057
2072
|
let deferred3_0;
|
|
2058
2073
|
let deferred3_1;
|
|
2059
2074
|
try {
|
|
2060
|
-
const retptr = wasm$
|
|
2061
|
-
const ptr0 = passStringToWasm0(ast_json, wasm$
|
|
2075
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2076
|
+
const ptr0 = passStringToWasm0(ast_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2062
2077
|
const len0 = WASM_VECTOR_LEN;
|
|
2063
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
2078
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2064
2079
|
const len1 = WASM_VECTOR_LEN;
|
|
2065
|
-
wasm$
|
|
2080
|
+
wasm$3.generate(retptr, ptr0, len0, ptr1, len1);
|
|
2066
2081
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2067
2082
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2068
2083
|
deferred3_0 = r0;
|
|
2069
2084
|
deferred3_1 = r1;
|
|
2070
2085
|
return getStringFromWasm0(r0, r1);
|
|
2071
2086
|
} finally {
|
|
2072
|
-
wasm$
|
|
2073
|
-
wasm$
|
|
2087
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2088
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2074
2089
|
}
|
|
2075
2090
|
}
|
|
2076
2091
|
|
|
2092
|
+
/**
|
|
2093
|
+
* Generate SQL from an AST represented as a structured JS value.
|
|
2094
|
+
* @param {any} ast
|
|
2095
|
+
* @param {string} dialect
|
|
2096
|
+
* @returns {any}
|
|
2097
|
+
*/
|
|
2098
|
+
function generate_value$1(ast, dialect) {
|
|
2099
|
+
const ptr0 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2100
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2101
|
+
const ret = wasm$3.generate_value(addHeapObject(ast), ptr0, len0);
|
|
2102
|
+
return takeObject(ret);
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2077
2105
|
/**
|
|
2078
2106
|
* Get a list of supported dialects.
|
|
2079
2107
|
*
|
|
@@ -2085,19 +2113,28 @@ function get_dialects$1() {
|
|
|
2085
2113
|
let deferred1_0;
|
|
2086
2114
|
let deferred1_1;
|
|
2087
2115
|
try {
|
|
2088
|
-
const retptr = wasm$
|
|
2089
|
-
wasm$
|
|
2116
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2117
|
+
wasm$3.get_dialects(retptr);
|
|
2090
2118
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2091
2119
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2092
2120
|
deferred1_0 = r0;
|
|
2093
2121
|
deferred1_1 = r1;
|
|
2094
2122
|
return getStringFromWasm0(r0, r1);
|
|
2095
2123
|
} finally {
|
|
2096
|
-
wasm$
|
|
2097
|
-
wasm$
|
|
2124
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2125
|
+
wasm$3.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
2098
2126
|
}
|
|
2099
2127
|
}
|
|
2100
2128
|
|
|
2129
|
+
/**
|
|
2130
|
+
* Get a list of supported dialects as a structured JS array.
|
|
2131
|
+
* @returns {any}
|
|
2132
|
+
*/
|
|
2133
|
+
function get_dialects_value$1() {
|
|
2134
|
+
const ret = wasm$3.get_dialects_value();
|
|
2135
|
+
return takeObject(ret);
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2101
2138
|
/**
|
|
2102
2139
|
* Trace column lineage through a SQL query.
|
|
2103
2140
|
*
|
|
@@ -2119,22 +2156,22 @@ function lineage_sql$1(sql, column, dialect, trim_selects) {
|
|
|
2119
2156
|
let deferred4_0;
|
|
2120
2157
|
let deferred4_1;
|
|
2121
2158
|
try {
|
|
2122
|
-
const retptr = wasm$
|
|
2123
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2159
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2160
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2124
2161
|
const len0 = WASM_VECTOR_LEN;
|
|
2125
|
-
const ptr1 = passStringToWasm0(column, wasm$
|
|
2162
|
+
const ptr1 = passStringToWasm0(column, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2126
2163
|
const len1 = WASM_VECTOR_LEN;
|
|
2127
|
-
const ptr2 = passStringToWasm0(dialect, wasm$
|
|
2164
|
+
const ptr2 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2128
2165
|
const len2 = WASM_VECTOR_LEN;
|
|
2129
|
-
wasm$
|
|
2166
|
+
wasm$3.lineage_sql(retptr, ptr0, len0, ptr1, len1, ptr2, len2, trim_selects);
|
|
2130
2167
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2131
2168
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2132
2169
|
deferred4_0 = r0;
|
|
2133
2170
|
deferred4_1 = r1;
|
|
2134
2171
|
return getStringFromWasm0(r0, r1);
|
|
2135
2172
|
} finally {
|
|
2136
|
-
wasm$
|
|
2137
|
-
wasm$
|
|
2173
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2174
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2138
2175
|
}
|
|
2139
2176
|
}
|
|
2140
2177
|
|
|
@@ -2155,23 +2192,38 @@ function parse$2(sql, dialect) {
|
|
|
2155
2192
|
let deferred3_0;
|
|
2156
2193
|
let deferred3_1;
|
|
2157
2194
|
try {
|
|
2158
|
-
const retptr = wasm$
|
|
2159
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2195
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2196
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2160
2197
|
const len0 = WASM_VECTOR_LEN;
|
|
2161
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
2198
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2162
2199
|
const len1 = WASM_VECTOR_LEN;
|
|
2163
|
-
wasm$
|
|
2200
|
+
wasm$3.parse(retptr, ptr0, len0, ptr1, len1);
|
|
2164
2201
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2165
2202
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2166
2203
|
deferred3_0 = r0;
|
|
2167
2204
|
deferred3_1 = r1;
|
|
2168
2205
|
return getStringFromWasm0(r0, r1);
|
|
2169
2206
|
} finally {
|
|
2170
|
-
wasm$
|
|
2171
|
-
wasm$
|
|
2207
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2208
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2172
2209
|
}
|
|
2173
2210
|
}
|
|
2174
2211
|
|
|
2212
|
+
/**
|
|
2213
|
+
* Parse SQL and return a structured JS object with AST values.
|
|
2214
|
+
* @param {string} sql
|
|
2215
|
+
* @param {string} dialect
|
|
2216
|
+
* @returns {any}
|
|
2217
|
+
*/
|
|
2218
|
+
function parse_value$1(sql, dialect) {
|
|
2219
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2220
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2221
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2222
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2223
|
+
const ret = wasm$3.parse_value(ptr0, len0, ptr1, len1);
|
|
2224
|
+
return takeObject(ret);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2175
2227
|
/**
|
|
2176
2228
|
* Build an execution plan from a SQL query.
|
|
2177
2229
|
*
|
|
@@ -2189,20 +2241,20 @@ function plan$2(sql, dialect) {
|
|
|
2189
2241
|
let deferred3_0;
|
|
2190
2242
|
let deferred3_1;
|
|
2191
2243
|
try {
|
|
2192
|
-
const retptr = wasm$
|
|
2193
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2244
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2245
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2194
2246
|
const len0 = WASM_VECTOR_LEN;
|
|
2195
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
2247
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2196
2248
|
const len1 = WASM_VECTOR_LEN;
|
|
2197
|
-
wasm$
|
|
2249
|
+
wasm$3.plan(retptr, ptr0, len0, ptr1, len1);
|
|
2198
2250
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2199
2251
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2200
2252
|
deferred3_0 = r0;
|
|
2201
2253
|
deferred3_1 = r1;
|
|
2202
2254
|
return getStringFromWasm0(r0, r1);
|
|
2203
2255
|
} finally {
|
|
2204
|
-
wasm$
|
|
2205
|
-
wasm$
|
|
2256
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2257
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2206
2258
|
}
|
|
2207
2259
|
}
|
|
2208
2260
|
|
|
@@ -2225,22 +2277,22 @@ function source_tables$1(sql, column, dialect) {
|
|
|
2225
2277
|
let deferred4_0;
|
|
2226
2278
|
let deferred4_1;
|
|
2227
2279
|
try {
|
|
2228
|
-
const retptr = wasm$
|
|
2229
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2280
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2281
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2230
2282
|
const len0 = WASM_VECTOR_LEN;
|
|
2231
|
-
const ptr1 = passStringToWasm0(column, wasm$
|
|
2283
|
+
const ptr1 = passStringToWasm0(column, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2232
2284
|
const len1 = WASM_VECTOR_LEN;
|
|
2233
|
-
const ptr2 = passStringToWasm0(dialect, wasm$
|
|
2285
|
+
const ptr2 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2234
2286
|
const len2 = WASM_VECTOR_LEN;
|
|
2235
|
-
wasm$
|
|
2287
|
+
wasm$3.source_tables(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2236
2288
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2237
2289
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2238
2290
|
deferred4_0 = r0;
|
|
2239
2291
|
deferred4_1 = r1;
|
|
2240
2292
|
return getStringFromWasm0(r0, r1);
|
|
2241
2293
|
} finally {
|
|
2242
|
-
wasm$
|
|
2243
|
-
wasm$
|
|
2294
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2295
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2244
2296
|
}
|
|
2245
2297
|
}
|
|
2246
2298
|
|
|
@@ -2263,25 +2315,43 @@ function transpile$2(sql, read_dialect, write_dialect) {
|
|
|
2263
2315
|
let deferred4_0;
|
|
2264
2316
|
let deferred4_1;
|
|
2265
2317
|
try {
|
|
2266
|
-
const retptr = wasm$
|
|
2267
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2318
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2319
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2268
2320
|
const len0 = WASM_VECTOR_LEN;
|
|
2269
|
-
const ptr1 = passStringToWasm0(read_dialect, wasm$
|
|
2321
|
+
const ptr1 = passStringToWasm0(read_dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2270
2322
|
const len1 = WASM_VECTOR_LEN;
|
|
2271
|
-
const ptr2 = passStringToWasm0(write_dialect, wasm$
|
|
2323
|
+
const ptr2 = passStringToWasm0(write_dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2272
2324
|
const len2 = WASM_VECTOR_LEN;
|
|
2273
|
-
wasm$
|
|
2325
|
+
wasm$3.transpile(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2274
2326
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2275
2327
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2276
2328
|
deferred4_0 = r0;
|
|
2277
2329
|
deferred4_1 = r1;
|
|
2278
2330
|
return getStringFromWasm0(r0, r1);
|
|
2279
2331
|
} finally {
|
|
2280
|
-
wasm$
|
|
2281
|
-
wasm$
|
|
2332
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2333
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2282
2334
|
}
|
|
2283
2335
|
}
|
|
2284
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* Transpile SQL and return a structured JS object instead of a JSON string.
|
|
2339
|
+
* @param {string} sql
|
|
2340
|
+
* @param {string} read_dialect
|
|
2341
|
+
* @param {string} write_dialect
|
|
2342
|
+
* @returns {any}
|
|
2343
|
+
*/
|
|
2344
|
+
function transpile_value$1(sql, read_dialect, write_dialect) {
|
|
2345
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2346
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2347
|
+
const ptr1 = passStringToWasm0(read_dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2348
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2349
|
+
const ptr2 = passStringToWasm0(write_dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2350
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2351
|
+
const ret = wasm$3.transpile_value(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2352
|
+
return takeObject(ret);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2285
2355
|
/**
|
|
2286
2356
|
* Validate SQL syntax.
|
|
2287
2357
|
*
|
|
@@ -2299,20 +2369,58 @@ function validate$2(sql, dialect) {
|
|
|
2299
2369
|
let deferred3_0;
|
|
2300
2370
|
let deferred3_1;
|
|
2301
2371
|
try {
|
|
2302
|
-
const retptr = wasm$
|
|
2303
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2372
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2373
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2304
2374
|
const len0 = WASM_VECTOR_LEN;
|
|
2305
|
-
const ptr1 = passStringToWasm0(dialect, wasm$
|
|
2375
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2306
2376
|
const len1 = WASM_VECTOR_LEN;
|
|
2307
|
-
wasm$
|
|
2377
|
+
wasm$3.validate(retptr, ptr0, len0, ptr1, len1);
|
|
2308
2378
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2309
2379
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2310
2380
|
deferred3_0 = r0;
|
|
2311
2381
|
deferred3_1 = r1;
|
|
2312
2382
|
return getStringFromWasm0(r0, r1);
|
|
2313
2383
|
} finally {
|
|
2314
|
-
wasm$
|
|
2315
|
-
wasm$
|
|
2384
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2385
|
+
wasm$3.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* Validate SQL syntax with additional options.
|
|
2391
|
+
*
|
|
2392
|
+
* # Arguments
|
|
2393
|
+
* * `sql` - The SQL string to validate
|
|
2394
|
+
* * `dialect` - The dialect to use for validation
|
|
2395
|
+
* * `options_json` - Options JSON matching ValidationOptions
|
|
2396
|
+
*
|
|
2397
|
+
* # Returns
|
|
2398
|
+
* A JSON string containing the ValidationResult
|
|
2399
|
+
* @param {string} sql
|
|
2400
|
+
* @param {string} dialect
|
|
2401
|
+
* @param {string} options_json
|
|
2402
|
+
* @returns {string}
|
|
2403
|
+
*/
|
|
2404
|
+
function validate_with_options$1(sql, dialect, options_json) {
|
|
2405
|
+
let deferred4_0;
|
|
2406
|
+
let deferred4_1;
|
|
2407
|
+
try {
|
|
2408
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2409
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2410
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2411
|
+
const ptr1 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2412
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2413
|
+
const ptr2 = passStringToWasm0(options_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2414
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2415
|
+
wasm$3.validate_with_options(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2416
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2417
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2418
|
+
deferred4_0 = r0;
|
|
2419
|
+
deferred4_1 = r1;
|
|
2420
|
+
return getStringFromWasm0(r0, r1);
|
|
2421
|
+
} finally {
|
|
2422
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2423
|
+
wasm$3.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2316
2424
|
}
|
|
2317
2425
|
}
|
|
2318
2426
|
|
|
@@ -2337,24 +2445,24 @@ function validate_with_schema$1(sql, schema_json, dialect, options_json) {
|
|
|
2337
2445
|
let deferred5_0;
|
|
2338
2446
|
let deferred5_1;
|
|
2339
2447
|
try {
|
|
2340
|
-
const retptr = wasm$
|
|
2341
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2448
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2449
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2342
2450
|
const len0 = WASM_VECTOR_LEN;
|
|
2343
|
-
const ptr1 = passStringToWasm0(schema_json, wasm$
|
|
2451
|
+
const ptr1 = passStringToWasm0(schema_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2344
2452
|
const len1 = WASM_VECTOR_LEN;
|
|
2345
|
-
const ptr2 = passStringToWasm0(dialect, wasm$
|
|
2453
|
+
const ptr2 = passStringToWasm0(dialect, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2346
2454
|
const len2 = WASM_VECTOR_LEN;
|
|
2347
|
-
const ptr3 = passStringToWasm0(options_json, wasm$
|
|
2455
|
+
const ptr3 = passStringToWasm0(options_json, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2348
2456
|
const len3 = WASM_VECTOR_LEN;
|
|
2349
|
-
wasm$
|
|
2457
|
+
wasm$3.validate_with_schema(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2350
2458
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2351
2459
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2352
2460
|
deferred5_0 = r0;
|
|
2353
2461
|
deferred5_1 = r1;
|
|
2354
2462
|
return getStringFromWasm0(r0, r1);
|
|
2355
2463
|
} finally {
|
|
2356
|
-
wasm$
|
|
2357
|
-
wasm$
|
|
2464
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2465
|
+
wasm$3.__wbindgen_export4(deferred5_0, deferred5_1, 1);
|
|
2358
2466
|
}
|
|
2359
2467
|
}
|
|
2360
2468
|
|
|
@@ -2366,16 +2474,16 @@ function version$1() {
|
|
|
2366
2474
|
let deferred1_0;
|
|
2367
2475
|
let deferred1_1;
|
|
2368
2476
|
try {
|
|
2369
|
-
const retptr = wasm$
|
|
2370
|
-
wasm$
|
|
2477
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2478
|
+
wasm$3.version(retptr);
|
|
2371
2479
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2372
2480
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2373
2481
|
deferred1_0 = r0;
|
|
2374
2482
|
deferred1_1 = r1;
|
|
2375
2483
|
return getStringFromWasm0(r0, r1);
|
|
2376
2484
|
} finally {
|
|
2377
|
-
wasm$
|
|
2378
|
-
wasm$
|
|
2485
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2486
|
+
wasm$3.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
2379
2487
|
}
|
|
2380
2488
|
}
|
|
2381
2489
|
|
|
@@ -2387,9 +2495,9 @@ function version$1() {
|
|
|
2387
2495
|
*/
|
|
2388
2496
|
function wasm_alias$1(expr, name) {
|
|
2389
2497
|
_assertClass(expr, WasmExpr);
|
|
2390
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
2498
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2391
2499
|
const len0 = WASM_VECTOR_LEN;
|
|
2392
|
-
const ret = wasm$
|
|
2500
|
+
const ret = wasm$3.wasm_alias(expr.__wbg_ptr, ptr0, len0);
|
|
2393
2501
|
return WasmExpr.__wrap(ret);
|
|
2394
2502
|
}
|
|
2395
2503
|
|
|
@@ -2402,7 +2510,7 @@ function wasm_alias$1(expr, name) {
|
|
|
2402
2510
|
function wasm_and$1(left, right) {
|
|
2403
2511
|
_assertClass(left, WasmExpr);
|
|
2404
2512
|
_assertClass(right, WasmExpr);
|
|
2405
|
-
const ret = wasm$
|
|
2513
|
+
const ret = wasm$3.wasm_and(left.__wbg_ptr, right.__wbg_ptr);
|
|
2406
2514
|
return WasmExpr.__wrap(ret);
|
|
2407
2515
|
}
|
|
2408
2516
|
|
|
@@ -2412,7 +2520,7 @@ function wasm_and$1(left, right) {
|
|
|
2412
2520
|
* @returns {WasmExpr}
|
|
2413
2521
|
*/
|
|
2414
2522
|
function wasm_boolean$1(value) {
|
|
2415
|
-
const ret = wasm$
|
|
2523
|
+
const ret = wasm$3.wasm_boolean(value);
|
|
2416
2524
|
return WasmExpr.__wrap(ret);
|
|
2417
2525
|
}
|
|
2418
2526
|
|
|
@@ -2423,7 +2531,7 @@ function wasm_boolean$1(value) {
|
|
|
2423
2531
|
*/
|
|
2424
2532
|
function wasm_case_of$1(operand) {
|
|
2425
2533
|
_assertClass(operand, WasmExpr);
|
|
2426
|
-
const ret = wasm$
|
|
2534
|
+
const ret = wasm$3.wasm_case_of(operand.__wbg_ptr);
|
|
2427
2535
|
return WasmCaseBuilder.__wrap(ret);
|
|
2428
2536
|
}
|
|
2429
2537
|
|
|
@@ -2435,9 +2543,9 @@ function wasm_case_of$1(operand) {
|
|
|
2435
2543
|
*/
|
|
2436
2544
|
function wasm_cast$1(expr, to) {
|
|
2437
2545
|
_assertClass(expr, WasmExpr);
|
|
2438
|
-
const ptr0 = passStringToWasm0(to, wasm$
|
|
2546
|
+
const ptr0 = passStringToWasm0(to, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2439
2547
|
const len0 = WASM_VECTOR_LEN;
|
|
2440
|
-
const ret = wasm$
|
|
2548
|
+
const ret = wasm$3.wasm_cast(expr.__wbg_ptr, ptr0, len0);
|
|
2441
2549
|
return WasmExpr.__wrap(ret);
|
|
2442
2550
|
}
|
|
2443
2551
|
|
|
@@ -2447,9 +2555,9 @@ function wasm_cast$1(expr, to) {
|
|
|
2447
2555
|
* @returns {WasmExpr}
|
|
2448
2556
|
*/
|
|
2449
2557
|
function wasm_col$1(name) {
|
|
2450
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
2558
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2451
2559
|
const len0 = WASM_VECTOR_LEN;
|
|
2452
|
-
const ret = wasm$
|
|
2560
|
+
const ret = wasm$3.wasm_col(ptr0, len0);
|
|
2453
2561
|
return WasmExpr.__wrap(ret);
|
|
2454
2562
|
}
|
|
2455
2563
|
|
|
@@ -2460,7 +2568,7 @@ function wasm_col$1(name) {
|
|
|
2460
2568
|
*/
|
|
2461
2569
|
function wasm_count_distinct$1(expr) {
|
|
2462
2570
|
_assertClass(expr, WasmExpr);
|
|
2463
|
-
const ret = wasm$
|
|
2571
|
+
const ret = wasm$3.wasm_count_distinct(expr.__wbg_ptr);
|
|
2464
2572
|
return WasmExpr.__wrap(ret);
|
|
2465
2573
|
}
|
|
2466
2574
|
|
|
@@ -2471,10 +2579,10 @@ function wasm_count_distinct$1(expr) {
|
|
|
2471
2579
|
* @returns {WasmExpr}
|
|
2472
2580
|
*/
|
|
2473
2581
|
function wasm_extract$1(field, expr) {
|
|
2474
|
-
const ptr0 = passStringToWasm0(field, wasm$
|
|
2582
|
+
const ptr0 = passStringToWasm0(field, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2475
2583
|
const len0 = WASM_VECTOR_LEN;
|
|
2476
2584
|
_assertClass(expr, WasmExpr);
|
|
2477
|
-
const ret = wasm$
|
|
2585
|
+
const ret = wasm$3.wasm_extract(ptr0, len0, expr.__wbg_ptr);
|
|
2478
2586
|
return WasmExpr.__wrap(ret);
|
|
2479
2587
|
}
|
|
2480
2588
|
|
|
@@ -2485,10 +2593,10 @@ function wasm_extract$1(field, expr) {
|
|
|
2485
2593
|
* @returns {WasmExpr}
|
|
2486
2594
|
*/
|
|
2487
2595
|
function wasm_func$1(name, args) {
|
|
2488
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
2596
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2489
2597
|
const len0 = WASM_VECTOR_LEN;
|
|
2490
2598
|
_assertClass(args, WasmExprArray);
|
|
2491
|
-
const ret = wasm$
|
|
2599
|
+
const ret = wasm$3.wasm_func(ptr0, len0, args.__wbg_ptr);
|
|
2492
2600
|
return WasmExpr.__wrap(ret);
|
|
2493
2601
|
}
|
|
2494
2602
|
|
|
@@ -2498,7 +2606,7 @@ function wasm_func$1(name, args) {
|
|
|
2498
2606
|
* @returns {WasmExpr}
|
|
2499
2607
|
*/
|
|
2500
2608
|
function wasm_lit$1(value) {
|
|
2501
|
-
const ret = wasm$
|
|
2609
|
+
const ret = wasm$3.wasm_lit(addHeapObject(value));
|
|
2502
2610
|
return WasmExpr.__wrap(ret);
|
|
2503
2611
|
}
|
|
2504
2612
|
|
|
@@ -2509,7 +2617,7 @@ function wasm_lit$1(value) {
|
|
|
2509
2617
|
*/
|
|
2510
2618
|
function wasm_not$1(expr) {
|
|
2511
2619
|
_assertClass(expr, WasmExpr);
|
|
2512
|
-
const ret = wasm$
|
|
2620
|
+
const ret = wasm$3.wasm_not(expr.__wbg_ptr);
|
|
2513
2621
|
return WasmExpr.__wrap(ret);
|
|
2514
2622
|
}
|
|
2515
2623
|
|
|
@@ -2518,7 +2626,7 @@ function wasm_not$1(expr) {
|
|
|
2518
2626
|
* @returns {WasmExpr}
|
|
2519
2627
|
*/
|
|
2520
2628
|
function wasm_null$1() {
|
|
2521
|
-
const ret = wasm$
|
|
2629
|
+
const ret = wasm$3.wasm_null();
|
|
2522
2630
|
return WasmExpr.__wrap(ret);
|
|
2523
2631
|
}
|
|
2524
2632
|
|
|
@@ -2531,7 +2639,7 @@ function wasm_null$1() {
|
|
|
2531
2639
|
function wasm_or$1(left, right) {
|
|
2532
2640
|
_assertClass(left, WasmExpr);
|
|
2533
2641
|
_assertClass(right, WasmExpr);
|
|
2534
|
-
const ret = wasm$
|
|
2642
|
+
const ret = wasm$3.wasm_or(left.__wbg_ptr, right.__wbg_ptr);
|
|
2535
2643
|
return WasmExpr.__wrap(ret);
|
|
2536
2644
|
}
|
|
2537
2645
|
|
|
@@ -2541,9 +2649,9 @@ function wasm_or$1(left, right) {
|
|
|
2541
2649
|
* @returns {WasmExpr}
|
|
2542
2650
|
*/
|
|
2543
2651
|
function wasm_sql_expr$1(sql) {
|
|
2544
|
-
const ptr0 = passStringToWasm0(sql, wasm$
|
|
2652
|
+
const ptr0 = passStringToWasm0(sql, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2545
2653
|
const len0 = WASM_VECTOR_LEN;
|
|
2546
|
-
const ret = wasm$
|
|
2654
|
+
const ret = wasm$3.wasm_sql_expr(ptr0, len0);
|
|
2547
2655
|
return WasmExpr.__wrap(ret);
|
|
2548
2656
|
}
|
|
2549
2657
|
|
|
@@ -2552,7 +2660,7 @@ function wasm_sql_expr$1(sql) {
|
|
|
2552
2660
|
* @returns {WasmExpr}
|
|
2553
2661
|
*/
|
|
2554
2662
|
function wasm_star$1() {
|
|
2555
|
-
const ret = wasm$
|
|
2663
|
+
const ret = wasm$3.wasm_star();
|
|
2556
2664
|
return WasmExpr.__wrap(ret);
|
|
2557
2665
|
}
|
|
2558
2666
|
|
|
@@ -2564,11 +2672,11 @@ function wasm_star$1() {
|
|
|
2564
2672
|
*/
|
|
2565
2673
|
function wasm_subquery$1(query, alias) {
|
|
2566
2674
|
try {
|
|
2567
|
-
const retptr = wasm$
|
|
2675
|
+
const retptr = wasm$3.__wbindgen_add_to_stack_pointer(-16);
|
|
2568
2676
|
_assertClass(query, WasmSelectBuilder);
|
|
2569
|
-
const ptr0 = passStringToWasm0(alias, wasm$
|
|
2677
|
+
const ptr0 = passStringToWasm0(alias, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2570
2678
|
const len0 = WASM_VECTOR_LEN;
|
|
2571
|
-
wasm$
|
|
2679
|
+
wasm$3.wasm_subquery(retptr, query.__wbg_ptr, ptr0, len0);
|
|
2572
2680
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2573
2681
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2574
2682
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -2577,7 +2685,7 @@ function wasm_subquery$1(query, alias) {
|
|
|
2577
2685
|
}
|
|
2578
2686
|
return WasmExpr.__wrap(r0);
|
|
2579
2687
|
} finally {
|
|
2580
|
-
wasm$
|
|
2688
|
+
wasm$3.__wbindgen_add_to_stack_pointer(16);
|
|
2581
2689
|
}
|
|
2582
2690
|
}
|
|
2583
2691
|
|
|
@@ -2587,9 +2695,9 @@ function wasm_subquery$1(query, alias) {
|
|
|
2587
2695
|
* @returns {WasmExpr}
|
|
2588
2696
|
*/
|
|
2589
2697
|
function wasm_table$1(name) {
|
|
2590
|
-
const ptr0 = passStringToWasm0(name, wasm$
|
|
2698
|
+
const ptr0 = passStringToWasm0(name, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2591
2699
|
const len0 = WASM_VECTOR_LEN;
|
|
2592
|
-
const ret = wasm$
|
|
2700
|
+
const ret = wasm$3.wasm_table(ptr0, len0);
|
|
2593
2701
|
return WasmExpr.__wrap(ret);
|
|
2594
2702
|
}
|
|
2595
2703
|
function __wbg_Error_8c4e43fe74559d73(arg0, arg1) {
|
|
@@ -2602,20 +2710,50 @@ function __wbg_Number_04624de7d0e8332d(arg0) {
|
|
|
2602
2710
|
}
|
|
2603
2711
|
function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
2604
2712
|
const ret = String(getObject(arg1));
|
|
2605
|
-
const ptr1 = passStringToWasm0(ret, wasm$
|
|
2713
|
+
const ptr1 = passStringToWasm0(ret, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2606
2714
|
const len1 = WASM_VECTOR_LEN;
|
|
2607
2715
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2608
2716
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2609
2717
|
}
|
|
2718
|
+
function __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2(arg0, arg1) {
|
|
2719
|
+
const v = getObject(arg1);
|
|
2720
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2721
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2722
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2723
|
+
}
|
|
2610
2724
|
function __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25(arg0) {
|
|
2611
2725
|
const v = getObject(arg0);
|
|
2612
2726
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
2613
2727
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2614
2728
|
}
|
|
2729
|
+
function __wbg___wbindgen_debug_string_0bc8482c6e3508ae(arg0, arg1) {
|
|
2730
|
+
const ret = debugString(getObject(arg1));
|
|
2731
|
+
const ptr1 = passStringToWasm0(ret, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2732
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2733
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2734
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2735
|
+
}
|
|
2736
|
+
function __wbg___wbindgen_in_47fa6863be6f2f25(arg0, arg1) {
|
|
2737
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2738
|
+
return ret;
|
|
2739
|
+
}
|
|
2740
|
+
function __wbg___wbindgen_is_bigint_31b12575b56f32fc(arg0) {
|
|
2741
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
2742
|
+
return ret;
|
|
2743
|
+
}
|
|
2744
|
+
function __wbg___wbindgen_is_function_0095a73b8b156f76(arg0) {
|
|
2745
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2746
|
+
return ret;
|
|
2747
|
+
}
|
|
2615
2748
|
function __wbg___wbindgen_is_null_ac34f5003991759a(arg0) {
|
|
2616
2749
|
const ret = getObject(arg0) === null;
|
|
2617
2750
|
return ret;
|
|
2618
2751
|
}
|
|
2752
|
+
function __wbg___wbindgen_is_object_5ae8e5880f2c1fbd(arg0) {
|
|
2753
|
+
const val = getObject(arg0);
|
|
2754
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2755
|
+
return ret;
|
|
2756
|
+
}
|
|
2619
2757
|
function __wbg___wbindgen_is_string_cd444516edc5b180(arg0) {
|
|
2620
2758
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
2621
2759
|
return ret;
|
|
@@ -2624,6 +2762,14 @@ function __wbg___wbindgen_is_undefined_9e4d92534c42d778(arg0) {
|
|
|
2624
2762
|
const ret = getObject(arg0) === undefined;
|
|
2625
2763
|
return ret;
|
|
2626
2764
|
}
|
|
2765
|
+
function __wbg___wbindgen_jsval_eq_11888390b0186270(arg0, arg1) {
|
|
2766
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
2767
|
+
return ret;
|
|
2768
|
+
}
|
|
2769
|
+
function __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811(arg0, arg1) {
|
|
2770
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
2771
|
+
return ret;
|
|
2772
|
+
}
|
|
2627
2773
|
function __wbg___wbindgen_number_get_8ff4255516ccad3e(arg0, arg1) {
|
|
2628
2774
|
const obj = getObject(arg1);
|
|
2629
2775
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -2633,7 +2779,7 @@ function __wbg___wbindgen_number_get_8ff4255516ccad3e(arg0, arg1) {
|
|
|
2633
2779
|
function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
|
|
2634
2780
|
const obj = getObject(arg1);
|
|
2635
2781
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2636
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$
|
|
2782
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2637
2783
|
var len1 = WASM_VECTOR_LEN;
|
|
2638
2784
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2639
2785
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -2641,6 +2787,22 @@ function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
|
|
|
2641
2787
|
function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
|
|
2642
2788
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2643
2789
|
}
|
|
2790
|
+
function __wbg_call_389efe28435a9388() { return handleError(function (arg0, arg1) {
|
|
2791
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
2792
|
+
return addHeapObject(ret);
|
|
2793
|
+
}, arguments); }
|
|
2794
|
+
function __wbg_codePointAt_bf59dbf74d8db275(arg0, arg1) {
|
|
2795
|
+
const ret = getObject(arg0).codePointAt(arg1 >>> 0);
|
|
2796
|
+
return addHeapObject(ret);
|
|
2797
|
+
}
|
|
2798
|
+
function __wbg_done_57b39ecd9addfe81(arg0) {
|
|
2799
|
+
const ret = getObject(arg0).done;
|
|
2800
|
+
return ret;
|
|
2801
|
+
}
|
|
2802
|
+
function __wbg_entries_58c7934c745daac7(arg0) {
|
|
2803
|
+
const ret = Object.entries(getObject(arg0));
|
|
2804
|
+
return addHeapObject(ret);
|
|
2805
|
+
}
|
|
2644
2806
|
function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
2645
2807
|
let deferred0_0;
|
|
2646
2808
|
let deferred0_1;
|
|
@@ -2649,13 +2811,79 @@ function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
2649
2811
|
deferred0_1 = arg1;
|
|
2650
2812
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
2651
2813
|
} finally {
|
|
2652
|
-
wasm$
|
|
2814
|
+
wasm$3.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
2653
2815
|
}
|
|
2654
2816
|
}
|
|
2655
2817
|
function __wbg_fromCodePoint_22365db7b7d6ac39() { return handleError(function (arg0) {
|
|
2656
2818
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
2657
2819
|
return addHeapObject(ret);
|
|
2658
2820
|
}, arguments); }
|
|
2821
|
+
function __wbg_get_9b94d73e6221f75c(arg0, arg1) {
|
|
2822
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2823
|
+
return addHeapObject(ret);
|
|
2824
|
+
}
|
|
2825
|
+
function __wbg_get_b3ed3ad4be2bc8ac() { return handleError(function (arg0, arg1) {
|
|
2826
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
2827
|
+
return addHeapObject(ret);
|
|
2828
|
+
}, arguments); }
|
|
2829
|
+
function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
2830
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
2831
|
+
return addHeapObject(ret);
|
|
2832
|
+
}
|
|
2833
|
+
function __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04(arg0) {
|
|
2834
|
+
let result;
|
|
2835
|
+
try {
|
|
2836
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
2837
|
+
} catch (_) {
|
|
2838
|
+
result = false;
|
|
2839
|
+
}
|
|
2840
|
+
const ret = result;
|
|
2841
|
+
return ret;
|
|
2842
|
+
}
|
|
2843
|
+
function __wbg_instanceof_Map_53af74335dec57f4(arg0) {
|
|
2844
|
+
let result;
|
|
2845
|
+
try {
|
|
2846
|
+
result = getObject(arg0) instanceof Map;
|
|
2847
|
+
} catch (_) {
|
|
2848
|
+
result = false;
|
|
2849
|
+
}
|
|
2850
|
+
const ret = result;
|
|
2851
|
+
return ret;
|
|
2852
|
+
}
|
|
2853
|
+
function __wbg_instanceof_Uint8Array_9b9075935c74707c(arg0) {
|
|
2854
|
+
let result;
|
|
2855
|
+
try {
|
|
2856
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
2857
|
+
} catch (_) {
|
|
2858
|
+
result = false;
|
|
2859
|
+
}
|
|
2860
|
+
const ret = result;
|
|
2861
|
+
return ret;
|
|
2862
|
+
}
|
|
2863
|
+
function __wbg_isArray_d314bb98fcf08331(arg0) {
|
|
2864
|
+
const ret = Array.isArray(getObject(arg0));
|
|
2865
|
+
return ret;
|
|
2866
|
+
}
|
|
2867
|
+
function __wbg_isSafeInteger_bfbc7332a9768d2a(arg0) {
|
|
2868
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
2869
|
+
return ret;
|
|
2870
|
+
}
|
|
2871
|
+
function __wbg_iterator_6ff6560ca1568e55() {
|
|
2872
|
+
const ret = Symbol.iterator;
|
|
2873
|
+
return addHeapObject(ret);
|
|
2874
|
+
}
|
|
2875
|
+
function __wbg_length_32ed9a279acd054c(arg0) {
|
|
2876
|
+
const ret = getObject(arg0).length;
|
|
2877
|
+
return ret;
|
|
2878
|
+
}
|
|
2879
|
+
function __wbg_length_35a7bace40f36eac(arg0) {
|
|
2880
|
+
const ret = getObject(arg0).length;
|
|
2881
|
+
return ret;
|
|
2882
|
+
}
|
|
2883
|
+
function __wbg_length_68dc7c5cf1b6d349(arg0) {
|
|
2884
|
+
const ret = getObject(arg0).length;
|
|
2885
|
+
return ret;
|
|
2886
|
+
}
|
|
2659
2887
|
function __wbg_new_361308b2356cecd0() {
|
|
2660
2888
|
const ret = new Object();
|
|
2661
2889
|
return addHeapObject(ret);
|
|
@@ -2672,6 +2900,21 @@ function __wbg_new_dca287b076112a51() {
|
|
|
2672
2900
|
const ret = new Map();
|
|
2673
2901
|
return addHeapObject(ret);
|
|
2674
2902
|
}
|
|
2903
|
+
function __wbg_new_dd2b680c8bf6ae29(arg0) {
|
|
2904
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
2905
|
+
return addHeapObject(ret);
|
|
2906
|
+
}
|
|
2907
|
+
function __wbg_next_3482f54c49e8af19() { return handleError(function (arg0) {
|
|
2908
|
+
const ret = getObject(arg0).next();
|
|
2909
|
+
return addHeapObject(ret);
|
|
2910
|
+
}, arguments); }
|
|
2911
|
+
function __wbg_next_418f80d8f5303233(arg0) {
|
|
2912
|
+
const ret = getObject(arg0).next;
|
|
2913
|
+
return addHeapObject(ret);
|
|
2914
|
+
}
|
|
2915
|
+
function __wbg_prototypesetcall_bdcdcc5842e4d77d(arg0, arg1, arg2) {
|
|
2916
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2917
|
+
}
|
|
2675
2918
|
function __wbg_set_1eb0999cf5d27fc8(arg0, arg1, arg2) {
|
|
2676
2919
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
2677
2920
|
return addHeapObject(ret);
|
|
@@ -2684,11 +2927,15 @@ function __wbg_set_f43e577aea94465b(arg0, arg1, arg2) {
|
|
|
2684
2927
|
}
|
|
2685
2928
|
function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
2686
2929
|
const ret = getObject(arg1).stack;
|
|
2687
|
-
const ptr1 = passStringToWasm0(ret, wasm$
|
|
2930
|
+
const ptr1 = passStringToWasm0(ret, wasm$3.__wbindgen_export, wasm$3.__wbindgen_export2);
|
|
2688
2931
|
const len1 = WASM_VECTOR_LEN;
|
|
2689
2932
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2690
2933
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2691
2934
|
}
|
|
2935
|
+
function __wbg_value_0546255b415e96c1(arg0) {
|
|
2936
|
+
const ret = getObject(arg0).value;
|
|
2937
|
+
return addHeapObject(ret);
|
|
2938
|
+
}
|
|
2692
2939
|
function __wbindgen_cast_0000000000000001(arg0) {
|
|
2693
2940
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2694
2941
|
const ret = arg0;
|
|
@@ -2718,37 +2965,37 @@ function __wbindgen_object_drop_ref(arg0) {
|
|
|
2718
2965
|
}
|
|
2719
2966
|
const WasmAssignmentArrayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2720
2967
|
? { register: () => {}, unregister: () => {} }
|
|
2721
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2968
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmassignmentarray_free(ptr >>> 0, 1));
|
|
2722
2969
|
const WasmCaseBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2723
2970
|
? { register: () => {}, unregister: () => {} }
|
|
2724
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2971
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmcasebuilder_free(ptr >>> 0, 1));
|
|
2725
2972
|
const WasmDeleteBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2726
2973
|
? { register: () => {}, unregister: () => {} }
|
|
2727
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2974
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmdeletebuilder_free(ptr >>> 0, 1));
|
|
2728
2975
|
const WasmExprFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2729
2976
|
? { register: () => {}, unregister: () => {} }
|
|
2730
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2977
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmexpr_free(ptr >>> 0, 1));
|
|
2731
2978
|
const WasmExprArrayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2732
2979
|
? { register: () => {}, unregister: () => {} }
|
|
2733
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2980
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmexprarray_free(ptr >>> 0, 1));
|
|
2734
2981
|
const WasmInsertBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2735
2982
|
? { register: () => {}, unregister: () => {} }
|
|
2736
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2983
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasminsertbuilder_free(ptr >>> 0, 1));
|
|
2737
2984
|
const WasmMergeBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2738
2985
|
? { register: () => {}, unregister: () => {} }
|
|
2739
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2986
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmmergebuilder_free(ptr >>> 0, 1));
|
|
2740
2987
|
const WasmSelectBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2741
2988
|
? { register: () => {}, unregister: () => {} }
|
|
2742
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2989
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmselectbuilder_free(ptr >>> 0, 1));
|
|
2743
2990
|
const WasmSetOpBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2744
2991
|
? { register: () => {}, unregister: () => {} }
|
|
2745
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2992
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmsetopbuilder_free(ptr >>> 0, 1));
|
|
2746
2993
|
const WasmUpdateBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2747
2994
|
? { register: () => {}, unregister: () => {} }
|
|
2748
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2995
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmupdatebuilder_free(ptr >>> 0, 1));
|
|
2749
2996
|
const WasmWindowDefBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2750
2997
|
? { register: () => {}, unregister: () => {} }
|
|
2751
|
-
: new FinalizationRegistry(ptr => wasm$
|
|
2998
|
+
: new FinalizationRegistry(ptr => wasm$3.__wbg_wasmwindowdefbuilder_free(ptr >>> 0, 1));
|
|
2752
2999
|
|
|
2753
3000
|
function addHeapObject(obj) {
|
|
2754
3001
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -2765,16 +3012,86 @@ function _assertClass(instance, klass) {
|
|
|
2765
3012
|
}
|
|
2766
3013
|
}
|
|
2767
3014
|
|
|
3015
|
+
function debugString(val) {
|
|
3016
|
+
// primitive types
|
|
3017
|
+
const type = typeof val;
|
|
3018
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
3019
|
+
return `${val}`;
|
|
3020
|
+
}
|
|
3021
|
+
if (type == 'string') {
|
|
3022
|
+
return `"${val}"`;
|
|
3023
|
+
}
|
|
3024
|
+
if (type == 'symbol') {
|
|
3025
|
+
const description = val.description;
|
|
3026
|
+
if (description == null) {
|
|
3027
|
+
return 'Symbol';
|
|
3028
|
+
} else {
|
|
3029
|
+
return `Symbol(${description})`;
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
if (type == 'function') {
|
|
3033
|
+
const name = val.name;
|
|
3034
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
3035
|
+
return `Function(${name})`;
|
|
3036
|
+
} else {
|
|
3037
|
+
return 'Function';
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
// objects
|
|
3041
|
+
if (Array.isArray(val)) {
|
|
3042
|
+
const length = val.length;
|
|
3043
|
+
let debug = '[';
|
|
3044
|
+
if (length > 0) {
|
|
3045
|
+
debug += debugString(val[0]);
|
|
3046
|
+
}
|
|
3047
|
+
for(let i = 1; i < length; i++) {
|
|
3048
|
+
debug += ', ' + debugString(val[i]);
|
|
3049
|
+
}
|
|
3050
|
+
debug += ']';
|
|
3051
|
+
return debug;
|
|
3052
|
+
}
|
|
3053
|
+
// Test for built-in
|
|
3054
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
3055
|
+
let className;
|
|
3056
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
3057
|
+
className = builtInMatches[1];
|
|
3058
|
+
} else {
|
|
3059
|
+
// Failed to match the standard '[object ClassName]'
|
|
3060
|
+
return toString.call(val);
|
|
3061
|
+
}
|
|
3062
|
+
if (className == 'Object') {
|
|
3063
|
+
// we're a user defined class or Object
|
|
3064
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
3065
|
+
// easier than looping through ownProperties of `val`.
|
|
3066
|
+
try {
|
|
3067
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
3068
|
+
} catch (_) {
|
|
3069
|
+
return 'Object';
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
// errors
|
|
3073
|
+
if (val instanceof Error) {
|
|
3074
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
3075
|
+
}
|
|
3076
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
3077
|
+
return className;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
2768
3080
|
function dropObject(idx) {
|
|
2769
3081
|
if (idx < 132) return;
|
|
2770
3082
|
heap[idx] = heap_next;
|
|
2771
3083
|
heap_next = idx;
|
|
2772
3084
|
}
|
|
2773
3085
|
|
|
3086
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
3087
|
+
ptr = ptr >>> 0;
|
|
3088
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
3089
|
+
}
|
|
3090
|
+
|
|
2774
3091
|
let cachedDataViewMemory0 = null;
|
|
2775
3092
|
function getDataViewMemory0() {
|
|
2776
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm$
|
|
2777
|
-
cachedDataViewMemory0 = new DataView(wasm$
|
|
3093
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm$3.memory.buffer)) {
|
|
3094
|
+
cachedDataViewMemory0 = new DataView(wasm$3.memory.buffer);
|
|
2778
3095
|
}
|
|
2779
3096
|
return cachedDataViewMemory0;
|
|
2780
3097
|
}
|
|
@@ -2787,7 +3104,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
2787
3104
|
let cachedUint8ArrayMemory0 = null;
|
|
2788
3105
|
function getUint8ArrayMemory0() {
|
|
2789
3106
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
2790
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm$
|
|
3107
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm$3.memory.buffer);
|
|
2791
3108
|
}
|
|
2792
3109
|
return cachedUint8ArrayMemory0;
|
|
2793
3110
|
}
|
|
@@ -2798,7 +3115,7 @@ function handleError(f, args) {
|
|
|
2798
3115
|
try {
|
|
2799
3116
|
return f.apply(this, args);
|
|
2800
3117
|
} catch (e) {
|
|
2801
|
-
wasm$
|
|
3118
|
+
wasm$3.__wbindgen_export3(addHeapObject(e));
|
|
2802
3119
|
}
|
|
2803
3120
|
}
|
|
2804
3121
|
|
|
@@ -2894,9 +3211,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2894
3211
|
let WASM_VECTOR_LEN = 0;
|
|
2895
3212
|
|
|
2896
3213
|
|
|
2897
|
-
let wasm$
|
|
3214
|
+
let wasm$3;
|
|
2898
3215
|
function __wbg_set_wasm(val) {
|
|
2899
|
-
wasm$
|
|
3216
|
+
wasm$3 = val;
|
|
2900
3217
|
}
|
|
2901
3218
|
|
|
2902
3219
|
URL = globalThis.URL;
|
|
@@ -2905,23 +3222,52 @@ const __vite__wasmModule = await __vite__initWasm({ "./polyglot_sql_wasm_bg.js":
|
|
|
2905
3222
|
"__wbg_new_8a6f238a6ece86ea": __wbg_new_8a6f238a6ece86ea,
|
|
2906
3223
|
"__wbg_stack_0ed75d68575b0f3c": __wbg_stack_0ed75d68575b0f3c,
|
|
2907
3224
|
"__wbg_error_7534b8e9a36f1ab4": __wbg_error_7534b8e9a36f1ab4,
|
|
3225
|
+
"__wbg_get_with_ref_key_1dc361bd10053bfe": __wbg_get_with_ref_key_1dc361bd10053bfe,
|
|
2908
3226
|
"__wbg_set_3f1d0b984ed272ed": __wbg_set_3f1d0b984ed272ed,
|
|
2909
3227
|
"__wbg_String_8f0eb39a4a4c2f66": __wbg_String_8f0eb39a4a4c2f66,
|
|
3228
|
+
"__wbg_new_dd2b680c8bf6ae29": __wbg_new_dd2b680c8bf6ae29,
|
|
3229
|
+
"__wbg_length_32ed9a279acd054c": __wbg_length_32ed9a279acd054c,
|
|
3230
|
+
"__wbg_prototypesetcall_bdcdcc5842e4d77d": __wbg_prototypesetcall_bdcdcc5842e4d77d,
|
|
3231
|
+
"__wbg_done_57b39ecd9addfe81": __wbg_done_57b39ecd9addfe81,
|
|
3232
|
+
"__wbg_value_0546255b415e96c1": __wbg_value_0546255b415e96c1,
|
|
3233
|
+
"__wbg_instanceof_Map_53af74335dec57f4": __wbg_instanceof_Map_53af74335dec57f4,
|
|
3234
|
+
"__wbg_instanceof_Uint8Array_9b9075935c74707c": __wbg_instanceof_Uint8Array_9b9075935c74707c,
|
|
3235
|
+
"__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04": __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04,
|
|
2910
3236
|
"__wbg_new_dca287b076112a51": __wbg_new_dca287b076112a51,
|
|
2911
3237
|
"__wbg_set_1eb0999cf5d27fc8": __wbg_set_1eb0999cf5d27fc8,
|
|
3238
|
+
"__wbg_get_9b94d73e6221f75c": __wbg_get_9b94d73e6221f75c,
|
|
2912
3239
|
"__wbg_new_3eb36ae241fe6f44": __wbg_new_3eb36ae241fe6f44,
|
|
2913
3240
|
"__wbg_set_f43e577aea94465b": __wbg_set_f43e577aea94465b,
|
|
3241
|
+
"__wbg_length_35a7bace40f36eac": __wbg_length_35a7bace40f36eac,
|
|
3242
|
+
"__wbg_isArray_d314bb98fcf08331": __wbg_isArray_d314bb98fcf08331,
|
|
3243
|
+
"__wbg_isSafeInteger_bfbc7332a9768d2a": __wbg_isSafeInteger_bfbc7332a9768d2a,
|
|
2914
3244
|
"__wbg_new_361308b2356cecd0": __wbg_new_361308b2356cecd0,
|
|
3245
|
+
"__wbg_entries_58c7934c745daac7": __wbg_entries_58c7934c745daac7,
|
|
3246
|
+
"__wbg_iterator_6ff6560ca1568e55": __wbg_iterator_6ff6560ca1568e55,
|
|
3247
|
+
"__wbg_get_b3ed3ad4be2bc8ac": __wbg_get_b3ed3ad4be2bc8ac,
|
|
3248
|
+
"__wbg_call_389efe28435a9388": __wbg_call_389efe28435a9388,
|
|
3249
|
+
"__wbg_next_418f80d8f5303233": __wbg_next_418f80d8f5303233,
|
|
3250
|
+
"__wbg_next_3482f54c49e8af19": __wbg_next_3482f54c49e8af19,
|
|
3251
|
+
"__wbg_codePointAt_bf59dbf74d8db275": __wbg_codePointAt_bf59dbf74d8db275,
|
|
2915
3252
|
"__wbg_fromCodePoint_22365db7b7d6ac39": __wbg_fromCodePoint_22365db7b7d6ac39,
|
|
3253
|
+
"__wbg_length_68dc7c5cf1b6d349": __wbg_length_68dc7c5cf1b6d349,
|
|
3254
|
+
"__wbg___wbindgen_in_47fa6863be6f2f25": __wbg___wbindgen_in_47fa6863be6f2f25,
|
|
2916
3255
|
"__wbg___wbindgen_throw_be289d5034ed271b": __wbg___wbindgen_throw_be289d5034ed271b,
|
|
2917
3256
|
"__wbg___wbindgen_is_null_ac34f5003991759a": __wbg___wbindgen_is_null_ac34f5003991759a,
|
|
3257
|
+
"__wbg___wbindgen_jsval_eq_11888390b0186270": __wbg___wbindgen_jsval_eq_11888390b0186270,
|
|
2918
3258
|
"__wbg_Number_04624de7d0e8332d": __wbg_Number_04624de7d0e8332d,
|
|
2919
3259
|
"__wbg_Error_8c4e43fe74559d73": __wbg_Error_8c4e43fe74559d73,
|
|
3260
|
+
"__wbg___wbindgen_is_bigint_31b12575b56f32fc": __wbg___wbindgen_is_bigint_31b12575b56f32fc,
|
|
3261
|
+
"__wbg___wbindgen_is_object_5ae8e5880f2c1fbd": __wbg___wbindgen_is_object_5ae8e5880f2c1fbd,
|
|
2920
3262
|
"__wbg___wbindgen_is_string_cd444516edc5b180": __wbg___wbindgen_is_string_cd444516edc5b180,
|
|
2921
3263
|
"__wbg___wbindgen_number_get_8ff4255516ccad3e": __wbg___wbindgen_number_get_8ff4255516ccad3e,
|
|
2922
3264
|
"__wbg___wbindgen_string_get_72fb696202c56729": __wbg___wbindgen_string_get_72fb696202c56729,
|
|
2923
3265
|
"__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25": __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25,
|
|
3266
|
+
"__wbg___wbindgen_is_function_0095a73b8b156f76": __wbg___wbindgen_is_function_0095a73b8b156f76,
|
|
2924
3267
|
"__wbg___wbindgen_is_undefined_9e4d92534c42d778": __wbg___wbindgen_is_undefined_9e4d92534c42d778,
|
|
3268
|
+
"__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811": __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811,
|
|
3269
|
+
"__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2": __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2,
|
|
3270
|
+
"__wbg___wbindgen_debug_string_0bc8482c6e3508ae": __wbg___wbindgen_debug_string_0bc8482c6e3508ae,
|
|
2925
3271
|
"__wbindgen_cast_0000000000000001": __wbindgen_cast_0000000000000001,
|
|
2926
3272
|
"__wbindgen_cast_0000000000000002": __wbindgen_cast_0000000000000002,
|
|
2927
3273
|
"__wbindgen_cast_0000000000000003": __wbindgen_cast_0000000000000003,
|
|
@@ -2955,14 +3301,20 @@ const ast_set_distinct = __vite__wasmModule.ast_set_distinct;
|
|
|
2955
3301
|
const ast_set_limit = __vite__wasmModule.ast_set_limit;
|
|
2956
3302
|
const diff_sql = __vite__wasmModule.diff_sql;
|
|
2957
3303
|
const format_sql = __vite__wasmModule.format_sql;
|
|
3304
|
+
const format_sql_value = __vite__wasmModule.format_sql_value;
|
|
2958
3305
|
const generate$1 = __vite__wasmModule.generate;
|
|
3306
|
+
const generate_value = __vite__wasmModule.generate_value;
|
|
2959
3307
|
const get_dialects = __vite__wasmModule.get_dialects;
|
|
3308
|
+
const get_dialects_value = __vite__wasmModule.get_dialects_value;
|
|
2960
3309
|
const lineage_sql = __vite__wasmModule.lineage_sql;
|
|
2961
3310
|
const parse$1 = __vite__wasmModule.parse;
|
|
3311
|
+
const parse_value = __vite__wasmModule.parse_value;
|
|
2962
3312
|
const plan$1 = __vite__wasmModule.plan;
|
|
2963
3313
|
const source_tables = __vite__wasmModule.source_tables;
|
|
2964
3314
|
const transpile$1 = __vite__wasmModule.transpile;
|
|
3315
|
+
const transpile_value = __vite__wasmModule.transpile_value;
|
|
2965
3316
|
const validate$1 = __vite__wasmModule.validate;
|
|
3317
|
+
const validate_with_options = __vite__wasmModule.validate_with_options;
|
|
2966
3318
|
const validate_with_schema = __vite__wasmModule.validate_with_schema;
|
|
2967
3319
|
const version = __vite__wasmModule.version;
|
|
2968
3320
|
const wasm_alias = __vite__wasmModule.wasm_alias;
|
|
@@ -3096,7 +3448,7 @@ const __wbindgen_export3 = __vite__wasmModule.__wbindgen_export3;
|
|
|
3096
3448
|
const __wbindgen_export4 = __vite__wasmModule.__wbindgen_export4;
|
|
3097
3449
|
const __wbindgen_add_to_stack_pointer = __vite__wasmModule.__wbindgen_add_to_stack_pointer;
|
|
3098
3450
|
|
|
3099
|
-
const wasm = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3451
|
+
const wasm$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3100
3452
|
__proto__: null,
|
|
3101
3453
|
__wbg_wasmassignmentarray_free,
|
|
3102
3454
|
__wbg_wasmcasebuilder_free,
|
|
@@ -3131,15 +3483,21 @@ const wasm = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3131
3483
|
ast_set_limit,
|
|
3132
3484
|
diff_sql,
|
|
3133
3485
|
format_sql,
|
|
3486
|
+
format_sql_value,
|
|
3134
3487
|
generate: generate$1,
|
|
3488
|
+
generate_value,
|
|
3135
3489
|
get_dialects,
|
|
3490
|
+
get_dialects_value,
|
|
3136
3491
|
lineage_sql,
|
|
3137
3492
|
memory,
|
|
3138
3493
|
parse: parse$1,
|
|
3494
|
+
parse_value,
|
|
3139
3495
|
plan: plan$1,
|
|
3140
3496
|
source_tables,
|
|
3141
3497
|
transpile: transpile$1,
|
|
3498
|
+
transpile_value,
|
|
3142
3499
|
validate: validate$1,
|
|
3500
|
+
validate_with_options,
|
|
3143
3501
|
validate_with_schema,
|
|
3144
3502
|
version,
|
|
3145
3503
|
wasm_alias,
|
|
@@ -3271,7 +3629,72 @@ const wasm = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3271
3629
|
|
|
3272
3630
|
/* @ts-self-types="./polyglot_sql_wasm.d.ts" */
|
|
3273
3631
|
|
|
3274
|
-
__wbg_set_wasm(wasm);
|
|
3632
|
+
__wbg_set_wasm(wasm$2);
|
|
3633
|
+
|
|
3634
|
+
const wasmModule = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3635
|
+
__proto__: null,
|
|
3636
|
+
WasmAssignmentArray,
|
|
3637
|
+
WasmCaseBuilder,
|
|
3638
|
+
WasmDeleteBuilder,
|
|
3639
|
+
WasmExpr,
|
|
3640
|
+
WasmExprArray,
|
|
3641
|
+
WasmInsertBuilder,
|
|
3642
|
+
WasmMergeBuilder,
|
|
3643
|
+
WasmSelectBuilder,
|
|
3644
|
+
WasmSetOpBuilder,
|
|
3645
|
+
WasmUpdateBuilder,
|
|
3646
|
+
WasmWindowDefBuilder,
|
|
3647
|
+
ast_add_where: ast_add_where$1,
|
|
3648
|
+
ast_get_aggregate_functions: ast_get_aggregate_functions$1,
|
|
3649
|
+
ast_get_column_names: ast_get_column_names$1,
|
|
3650
|
+
ast_get_functions: ast_get_functions$1,
|
|
3651
|
+
ast_get_literals: ast_get_literals$1,
|
|
3652
|
+
ast_get_subqueries: ast_get_subqueries$1,
|
|
3653
|
+
ast_get_table_names: ast_get_table_names$1,
|
|
3654
|
+
ast_get_window_functions: ast_get_window_functions$1,
|
|
3655
|
+
ast_node_count: ast_node_count$1,
|
|
3656
|
+
ast_qualify_columns: ast_qualify_columns$1,
|
|
3657
|
+
ast_remove_where: ast_remove_where$1,
|
|
3658
|
+
ast_rename_columns: ast_rename_columns$1,
|
|
3659
|
+
ast_rename_tables: ast_rename_tables$1,
|
|
3660
|
+
ast_set_distinct: ast_set_distinct$1,
|
|
3661
|
+
ast_set_limit: ast_set_limit$1,
|
|
3662
|
+
diff_sql: diff_sql$1,
|
|
3663
|
+
format_sql: format_sql$1,
|
|
3664
|
+
format_sql_value: format_sql_value$1,
|
|
3665
|
+
generate: generate$2,
|
|
3666
|
+
generate_value: generate_value$1,
|
|
3667
|
+
get_dialects: get_dialects$1,
|
|
3668
|
+
get_dialects_value: get_dialects_value$1,
|
|
3669
|
+
lineage_sql: lineage_sql$1,
|
|
3670
|
+
parse: parse$2,
|
|
3671
|
+
parse_value: parse_value$1,
|
|
3672
|
+
plan: plan$2,
|
|
3673
|
+
source_tables: source_tables$1,
|
|
3674
|
+
transpile: transpile$2,
|
|
3675
|
+
transpile_value: transpile_value$1,
|
|
3676
|
+
validate: validate$2,
|
|
3677
|
+
validate_with_options: validate_with_options$1,
|
|
3678
|
+
validate_with_schema: validate_with_schema$1,
|
|
3679
|
+
version: version$1,
|
|
3680
|
+
wasm_alias: wasm_alias$1,
|
|
3681
|
+
wasm_and: wasm_and$1,
|
|
3682
|
+
wasm_boolean: wasm_boolean$1,
|
|
3683
|
+
wasm_case_of: wasm_case_of$1,
|
|
3684
|
+
wasm_cast: wasm_cast$1,
|
|
3685
|
+
wasm_col: wasm_col$1,
|
|
3686
|
+
wasm_count_distinct: wasm_count_distinct$1,
|
|
3687
|
+
wasm_extract: wasm_extract$1,
|
|
3688
|
+
wasm_func: wasm_func$1,
|
|
3689
|
+
wasm_lit: wasm_lit$1,
|
|
3690
|
+
wasm_not: wasm_not$1,
|
|
3691
|
+
wasm_null: wasm_null$1,
|
|
3692
|
+
wasm_or: wasm_or$1,
|
|
3693
|
+
wasm_sql_expr: wasm_sql_expr$1,
|
|
3694
|
+
wasm_star: wasm_star$1,
|
|
3695
|
+
wasm_subquery: wasm_subquery$1,
|
|
3696
|
+
wasm_table: wasm_table$1
|
|
3697
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3275
3698
|
|
|
3276
3699
|
function getExprType(expr) {
|
|
3277
3700
|
return Object.keys(expr)[0];
|
|
@@ -4776,7 +5199,8 @@ function validateWithSchema(sql, schema, dialect = "generic", options = {}) {
|
|
|
4776
5199
|
check_types: options.checkTypes ?? false,
|
|
4777
5200
|
check_references: options.checkReferences ?? false,
|
|
4778
5201
|
strict,
|
|
4779
|
-
semantic: options.semantic ?? false
|
|
5202
|
+
semantic: options.semantic ?? false,
|
|
5203
|
+
strict_syntax: options.strictSyntax ?? false
|
|
4780
5204
|
};
|
|
4781
5205
|
const resultJson = validate_with_schema$1(
|
|
4782
5206
|
sql,
|
|
@@ -4792,23 +5216,32 @@ const ValidationSeverity = {
|
|
|
4792
5216
|
Warning: "warning"
|
|
4793
5217
|
};
|
|
4794
5218
|
|
|
5219
|
+
const wasm$1 = wasmModule;
|
|
5220
|
+
function decodeWasmPayload$1(payload) {
|
|
5221
|
+
if (typeof payload === "string") {
|
|
5222
|
+
return JSON.parse(payload);
|
|
5223
|
+
}
|
|
5224
|
+
return payload;
|
|
5225
|
+
}
|
|
4795
5226
|
function validate(sql, dialect = "generic", options = {}) {
|
|
4796
|
-
const resultJson =
|
|
5227
|
+
const resultJson = options.strictSyntax ? wasm$1.validate_with_options(
|
|
5228
|
+
sql,
|
|
5229
|
+
dialect,
|
|
5230
|
+
JSON.stringify({ strictSyntax: true })
|
|
5231
|
+
) : wasm$1.validate(sql, dialect);
|
|
4797
5232
|
const syntaxResult = JSON.parse(resultJson);
|
|
4798
5233
|
if (!syntaxResult.valid || !options.semantic) {
|
|
4799
5234
|
return syntaxResult;
|
|
4800
5235
|
}
|
|
4801
|
-
const
|
|
4802
|
-
|
|
5236
|
+
const parseResult = typeof wasm$1.parse_value === "function" ? decodeWasmPayload$1(
|
|
5237
|
+
wasm$1.parse_value(sql, dialect)
|
|
5238
|
+
) : decodeWasmPayload$1(
|
|
5239
|
+
wasm$1.parse(sql, dialect)
|
|
5240
|
+
);
|
|
4803
5241
|
if (!parseResult.success || !parseResult.ast) {
|
|
4804
5242
|
return syntaxResult;
|
|
4805
5243
|
}
|
|
4806
|
-
|
|
4807
|
-
try {
|
|
4808
|
-
ast = JSON.parse(parseResult.ast);
|
|
4809
|
-
} catch {
|
|
4810
|
-
return syntaxResult;
|
|
4811
|
-
}
|
|
5244
|
+
const ast = typeof parseResult.ast === "string" ? JSON.parse(parseResult.ast) : parseResult.ast;
|
|
4812
5245
|
const allErrors = [...syntaxResult.errors];
|
|
4813
5246
|
for (const stmt of ast) {
|
|
4814
5247
|
const semanticErrors = validateSemantics(stmt);
|
|
@@ -4884,6 +5317,40 @@ var Dialect = /* @__PURE__ */ ((Dialect2) => {
|
|
|
4884
5317
|
Dialect2["DataFusion"] = "datafusion";
|
|
4885
5318
|
return Dialect2;
|
|
4886
5319
|
})(Dialect || {});
|
|
5320
|
+
const wasm = wasmModule;
|
|
5321
|
+
function errorMessage(error) {
|
|
5322
|
+
if (error instanceof Error && error.message) {
|
|
5323
|
+
return error.message;
|
|
5324
|
+
}
|
|
5325
|
+
if (typeof error === "string") {
|
|
5326
|
+
return error;
|
|
5327
|
+
}
|
|
5328
|
+
return String(error);
|
|
5329
|
+
}
|
|
5330
|
+
function transpileFailure(context, error) {
|
|
5331
|
+
return {
|
|
5332
|
+
success: false,
|
|
5333
|
+
sql: void 0,
|
|
5334
|
+
error: `WASM ${context} failed: ${errorMessage(error)}`,
|
|
5335
|
+
errorLine: void 0,
|
|
5336
|
+
errorColumn: void 0
|
|
5337
|
+
};
|
|
5338
|
+
}
|
|
5339
|
+
function parseFailure(context, error) {
|
|
5340
|
+
return {
|
|
5341
|
+
success: false,
|
|
5342
|
+
ast: void 0,
|
|
5343
|
+
error: `WASM ${context} failed: ${errorMessage(error)}`,
|
|
5344
|
+
errorLine: void 0,
|
|
5345
|
+
errorColumn: void 0
|
|
5346
|
+
};
|
|
5347
|
+
}
|
|
5348
|
+
function decodeWasmPayload(payload) {
|
|
5349
|
+
if (typeof payload === "string") {
|
|
5350
|
+
return JSON.parse(payload);
|
|
5351
|
+
}
|
|
5352
|
+
return payload;
|
|
5353
|
+
}
|
|
4887
5354
|
async function init() {
|
|
4888
5355
|
return Promise.resolve();
|
|
4889
5356
|
}
|
|
@@ -4891,31 +5358,64 @@ function isInitialized() {
|
|
|
4891
5358
|
return true;
|
|
4892
5359
|
}
|
|
4893
5360
|
function transpile(sql, read, write) {
|
|
4894
|
-
|
|
4895
|
-
|
|
5361
|
+
try {
|
|
5362
|
+
if (typeof wasm.transpile_value === "function") {
|
|
5363
|
+
return decodeWasmPayload(
|
|
5364
|
+
wasm.transpile_value(sql, read, write)
|
|
5365
|
+
);
|
|
5366
|
+
}
|
|
5367
|
+
return JSON.parse(wasm.transpile(sql, read, write));
|
|
5368
|
+
} catch (error) {
|
|
5369
|
+
return transpileFailure("transpile", error);
|
|
5370
|
+
}
|
|
4896
5371
|
}
|
|
4897
5372
|
function parse(sql, dialect = "generic" /* Generic */) {
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
5373
|
+
try {
|
|
5374
|
+
if (typeof wasm.parse_value === "function") {
|
|
5375
|
+
return decodeWasmPayload(wasm.parse_value(sql, dialect));
|
|
5376
|
+
}
|
|
5377
|
+
const result = JSON.parse(wasm.parse(sql, dialect));
|
|
5378
|
+
if (result.success && typeof result.ast === "string") {
|
|
5379
|
+
result.ast = JSON.parse(result.ast);
|
|
5380
|
+
}
|
|
5381
|
+
return result;
|
|
5382
|
+
} catch (error) {
|
|
5383
|
+
return parseFailure("parse", error);
|
|
4902
5384
|
}
|
|
4903
|
-
return result;
|
|
4904
5385
|
}
|
|
4905
5386
|
function generate(ast2, dialect = "generic" /* Generic */) {
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
5387
|
+
try {
|
|
5388
|
+
if (typeof wasm.generate_value === "function" && Array.isArray(ast2)) {
|
|
5389
|
+
return decodeWasmPayload(
|
|
5390
|
+
wasm.generate_value(ast2, dialect)
|
|
5391
|
+
);
|
|
5392
|
+
}
|
|
5393
|
+
const astJson = JSON.stringify(ast2);
|
|
5394
|
+
return JSON.parse(wasm.generate(astJson, dialect));
|
|
5395
|
+
} catch (error) {
|
|
5396
|
+
return transpileFailure("generate", error);
|
|
5397
|
+
}
|
|
4909
5398
|
}
|
|
4910
5399
|
function format(sql, dialect = "generic" /* Generic */) {
|
|
4911
|
-
|
|
4912
|
-
|
|
5400
|
+
try {
|
|
5401
|
+
if (typeof wasm.format_sql_value === "function") {
|
|
5402
|
+
return decodeWasmPayload(
|
|
5403
|
+
wasm.format_sql_value(sql, dialect)
|
|
5404
|
+
);
|
|
5405
|
+
}
|
|
5406
|
+
return JSON.parse(wasm.format_sql(sql, dialect));
|
|
5407
|
+
} catch (error) {
|
|
5408
|
+
return transpileFailure("format", error);
|
|
5409
|
+
}
|
|
4913
5410
|
}
|
|
4914
5411
|
function getDialects() {
|
|
4915
|
-
|
|
5412
|
+
if (typeof wasm.get_dialects_value === "function") {
|
|
5413
|
+
return decodeWasmPayload(wasm.get_dialects_value());
|
|
5414
|
+
}
|
|
5415
|
+
return JSON.parse(wasm.get_dialects());
|
|
4916
5416
|
}
|
|
4917
5417
|
function getVersion() {
|
|
4918
|
-
return version
|
|
5418
|
+
return wasm.version();
|
|
4919
5419
|
}
|
|
4920
5420
|
class Polyglot {
|
|
4921
5421
|
static instance = null;
|