gluesql 0.15.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist_nodejs/gluesql_js.js +242 -244
- package/dist_nodejs/gluesql_js_bg.wasm +0 -0
- package/dist_web/gluesql_js.js +504 -501
- package/dist_web/gluesql_js_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,81 +1,40 @@
|
|
|
1
|
+
|
|
1
2
|
let imports = {};
|
|
2
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
4
|
let wasm;
|
|
4
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
6
|
|
|
7
|
+
function addToExternrefTable0(obj) {
|
|
8
|
+
const idx = wasm.__externref_table_alloc();
|
|
9
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
10
|
+
return idx;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function handleError(f, args) {
|
|
14
|
+
try {
|
|
15
|
+
return f.apply(this, args);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
const idx = addToExternrefTable0(e);
|
|
18
|
+
wasm.__wbindgen_exn_store(idx);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
6
22
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
7
23
|
|
|
8
24
|
cachedTextDecoder.decode();
|
|
9
25
|
|
|
10
|
-
let
|
|
26
|
+
let cachedUint8ArrayMemory0 = null;
|
|
11
27
|
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
|
|
28
|
+
function getUint8ArrayMemory0() {
|
|
29
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
30
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
31
|
}
|
|
16
|
-
return
|
|
32
|
+
return cachedUint8ArrayMemory0;
|
|
17
33
|
}
|
|
18
34
|
|
|
19
35
|
function getStringFromWasm0(ptr, len) {
|
|
20
36
|
ptr = ptr >>> 0;
|
|
21
|
-
return cachedTextDecoder.decode(
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const heap = new Array(128).fill(undefined);
|
|
25
|
-
|
|
26
|
-
heap.push(undefined, null, true, false);
|
|
27
|
-
|
|
28
|
-
let heap_next = heap.length;
|
|
29
|
-
|
|
30
|
-
function addHeapObject(obj) {
|
|
31
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
32
|
-
const idx = heap_next;
|
|
33
|
-
heap_next = heap[idx];
|
|
34
|
-
|
|
35
|
-
heap[idx] = obj;
|
|
36
|
-
return idx;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function getObject(idx) { return heap[idx]; }
|
|
40
|
-
|
|
41
|
-
function dropObject(idx) {
|
|
42
|
-
if (idx < 132) return;
|
|
43
|
-
heap[idx] = heap_next;
|
|
44
|
-
heap_next = idx;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function takeObject(idx) {
|
|
48
|
-
const ret = getObject(idx);
|
|
49
|
-
dropObject(idx);
|
|
50
|
-
return ret;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
54
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
55
|
-
const real = (...args) => {
|
|
56
|
-
// First up with a closure we increment the internal reference
|
|
57
|
-
// count. This ensures that the Rust closure environment won't
|
|
58
|
-
// be deallocated while we're invoking it.
|
|
59
|
-
state.cnt++;
|
|
60
|
-
const a = state.a;
|
|
61
|
-
state.a = 0;
|
|
62
|
-
try {
|
|
63
|
-
return f(a, state.b, ...args);
|
|
64
|
-
} finally {
|
|
65
|
-
if (--state.cnt === 0) {
|
|
66
|
-
wasm.__wbindgen_export_0.get(state.dtor)(a, state.b);
|
|
67
|
-
|
|
68
|
-
} else {
|
|
69
|
-
state.a = a;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
real.original = state;
|
|
74
|
-
|
|
75
|
-
return real;
|
|
76
|
-
}
|
|
77
|
-
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
78
|
-
wasm.__wbindgen_export_1(arg0, arg1, addHeapObject(arg2));
|
|
37
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
79
38
|
}
|
|
80
39
|
|
|
81
40
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -100,7 +59,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
100
59
|
if (realloc === undefined) {
|
|
101
60
|
const buf = cachedTextEncoder.encode(arg);
|
|
102
61
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
103
|
-
|
|
62
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
104
63
|
WASM_VECTOR_LEN = buf.length;
|
|
105
64
|
return ptr;
|
|
106
65
|
}
|
|
@@ -108,7 +67,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
108
67
|
let len = arg.length;
|
|
109
68
|
let ptr = malloc(len, 1) >>> 0;
|
|
110
69
|
|
|
111
|
-
const mem =
|
|
70
|
+
const mem = getUint8ArrayMemory0();
|
|
112
71
|
|
|
113
72
|
let offset = 0;
|
|
114
73
|
|
|
@@ -123,105 +82,129 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
123
82
|
arg = arg.slice(offset);
|
|
124
83
|
}
|
|
125
84
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
126
|
-
const view =
|
|
85
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
127
86
|
const ret = encodeString(arg, view);
|
|
128
87
|
|
|
129
88
|
offset += ret.written;
|
|
89
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
130
90
|
}
|
|
131
91
|
|
|
132
92
|
WASM_VECTOR_LEN = offset;
|
|
133
93
|
return ptr;
|
|
134
94
|
}
|
|
135
95
|
|
|
136
|
-
let
|
|
96
|
+
let cachedDataViewMemory0 = null;
|
|
137
97
|
|
|
138
|
-
function
|
|
139
|
-
if (
|
|
140
|
-
|
|
98
|
+
function getDataViewMemory0() {
|
|
99
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
100
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
141
101
|
}
|
|
142
|
-
return
|
|
102
|
+
return cachedDataViewMemory0;
|
|
143
103
|
}
|
|
144
104
|
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
105
|
+
function isLikeNone(x) {
|
|
106
|
+
return x === undefined || x === null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
110
|
+
? { register: () => {}, unregister: () => {} }
|
|
111
|
+
: new FinalizationRegistry(state => {
|
|
112
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
116
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
117
|
+
const real = (...args) => {
|
|
118
|
+
// First up with a closure we increment the internal reference
|
|
119
|
+
// count. This ensures that the Rust closure environment won't
|
|
120
|
+
// be deallocated while we're invoking it.
|
|
121
|
+
state.cnt++;
|
|
122
|
+
const a = state.a;
|
|
123
|
+
state.a = 0;
|
|
124
|
+
try {
|
|
125
|
+
return f(a, state.b, ...args);
|
|
126
|
+
} finally {
|
|
127
|
+
if (--state.cnt === 0) {
|
|
128
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
129
|
+
CLOSURE_DTORS.unregister(state);
|
|
130
|
+
} else {
|
|
131
|
+
state.a = a;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
real.original = state;
|
|
136
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
137
|
+
return real;
|
|
151
138
|
}
|
|
152
|
-
function
|
|
153
|
-
wasm.
|
|
139
|
+
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
140
|
+
wasm.closure189_externref_shim(arg0, arg1, arg2);
|
|
154
141
|
}
|
|
155
142
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
143
|
+
function __wbg_adapter_65(arg0, arg1, arg2, arg3) {
|
|
144
|
+
wasm.closure2638_externref_shim(arg0, arg1, arg2, arg3);
|
|
145
|
+
}
|
|
159
146
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
obj.__wbg_ptr = ptr;
|
|
147
|
+
const GlueFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
148
|
+
? { register: () => {}, unregister: () => {} }
|
|
149
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_glue_free(ptr >>> 0, 1));
|
|
164
150
|
|
|
165
|
-
|
|
166
|
-
}
|
|
151
|
+
class Glue {
|
|
167
152
|
|
|
168
153
|
__destroy_into_raw() {
|
|
169
154
|
const ptr = this.__wbg_ptr;
|
|
170
155
|
this.__wbg_ptr = 0;
|
|
171
|
-
|
|
156
|
+
GlueFinalization.unregister(this);
|
|
172
157
|
return ptr;
|
|
173
158
|
}
|
|
174
159
|
|
|
175
160
|
free() {
|
|
176
161
|
const ptr = this.__destroy_into_raw();
|
|
177
|
-
wasm.__wbg_glue_free(ptr);
|
|
162
|
+
wasm.__wbg_glue_free(ptr, 0);
|
|
178
163
|
}
|
|
179
|
-
/**
|
|
180
|
-
*/
|
|
181
164
|
constructor() {
|
|
182
165
|
const ret = wasm.glue_new();
|
|
183
|
-
|
|
166
|
+
this.__wbg_ptr = ret >>> 0;
|
|
167
|
+
GlueFinalization.register(this, this.__wbg_ptr, this);
|
|
168
|
+
return this;
|
|
184
169
|
}
|
|
185
170
|
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
171
|
+
* @param {string} sql
|
|
172
|
+
* @returns {Promise<any>}
|
|
173
|
+
*/
|
|
189
174
|
query(sql) {
|
|
190
|
-
const ptr0 = passStringToWasm0(sql, wasm.
|
|
175
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
191
176
|
const len0 = WASM_VECTOR_LEN;
|
|
192
177
|
const ret = wasm.glue_query(this.__wbg_ptr, ptr0, len0);
|
|
193
|
-
return
|
|
178
|
+
return ret;
|
|
194
179
|
}
|
|
195
180
|
}
|
|
196
181
|
module.exports.Glue = Glue;
|
|
197
182
|
|
|
198
|
-
module.exports.
|
|
199
|
-
const ret =
|
|
200
|
-
return
|
|
183
|
+
module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
184
|
+
const ret = arg0.buffer;
|
|
185
|
+
return ret;
|
|
201
186
|
};
|
|
202
187
|
|
|
203
|
-
module.exports.
|
|
204
|
-
|
|
205
|
-
|
|
188
|
+
module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
189
|
+
const ret = arg0.call(arg1);
|
|
190
|
+
return ret;
|
|
191
|
+
}, arguments) };
|
|
206
192
|
|
|
207
|
-
module.exports.
|
|
208
|
-
|
|
209
|
-
|
|
193
|
+
module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
194
|
+
const ret = arg0.call(arg1, arg2);
|
|
195
|
+
return ret;
|
|
196
|
+
}, arguments) };
|
|
210
197
|
|
|
211
|
-
module.exports.
|
|
212
|
-
const ret =
|
|
213
|
-
return
|
|
198
|
+
module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
199
|
+
const ret = arg0.crypto;
|
|
200
|
+
return ret;
|
|
214
201
|
};
|
|
215
202
|
|
|
216
|
-
module.exports.
|
|
217
|
-
|
|
218
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
|
|
219
|
-
const len1 = WASM_VECTOR_LEN;
|
|
220
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
221
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
203
|
+
module.exports.__wbg_debug_92859dac05840d3a = function(arg0, arg1) {
|
|
204
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
222
205
|
};
|
|
223
206
|
|
|
224
|
-
module.exports.
|
|
207
|
+
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
225
208
|
let deferred0_0;
|
|
226
209
|
let deferred0_1;
|
|
227
210
|
try {
|
|
@@ -229,204 +212,217 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
229
212
|
deferred0_1 = arg1;
|
|
230
213
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
231
214
|
} finally {
|
|
232
|
-
wasm.
|
|
215
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
233
216
|
}
|
|
234
217
|
};
|
|
235
218
|
|
|
236
|
-
module.exports.
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
const ret = false;
|
|
219
|
+
module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
220
|
+
arg0.getRandomValues(arg1);
|
|
221
|
+
}, arguments) };
|
|
222
|
+
|
|
223
|
+
module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
224
|
+
const ret = arg0.getTime();
|
|
243
225
|
return ret;
|
|
244
226
|
};
|
|
245
227
|
|
|
246
|
-
module.exports.
|
|
247
|
-
const ret =
|
|
248
|
-
return
|
|
228
|
+
module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
229
|
+
const ret = arg0.msCrypto;
|
|
230
|
+
return ret;
|
|
249
231
|
};
|
|
250
232
|
|
|
251
|
-
module.exports.
|
|
252
|
-
const
|
|
253
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
233
|
+
module.exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
234
|
+
const ret = new Date();
|
|
254
235
|
return ret;
|
|
255
236
|
};
|
|
256
237
|
|
|
257
|
-
module.exports.
|
|
258
|
-
|
|
259
|
-
|
|
238
|
+
module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
239
|
+
try {
|
|
240
|
+
var state0 = {a: arg0, b: arg1};
|
|
241
|
+
var cb0 = (arg0, arg1) => {
|
|
242
|
+
const a = state0.a;
|
|
243
|
+
state0.a = 0;
|
|
244
|
+
try {
|
|
245
|
+
return __wbg_adapter_65(a, state0.b, arg0, arg1);
|
|
246
|
+
} finally {
|
|
247
|
+
state0.a = a;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
const ret = new Promise(cb0);
|
|
251
|
+
return ret;
|
|
252
|
+
} finally {
|
|
253
|
+
state0.a = state0.b = 0;
|
|
254
|
+
}
|
|
260
255
|
};
|
|
261
256
|
|
|
262
|
-
module.exports.
|
|
263
|
-
const ret =
|
|
264
|
-
return
|
|
257
|
+
module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
258
|
+
const ret = new Error();
|
|
259
|
+
return ret;
|
|
265
260
|
};
|
|
266
261
|
|
|
267
|
-
module.exports.
|
|
268
|
-
const ret =
|
|
269
|
-
return
|
|
262
|
+
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
263
|
+
const ret = new Uint8Array(arg0);
|
|
264
|
+
return ret;
|
|
270
265
|
};
|
|
271
266
|
|
|
272
|
-
module.exports.
|
|
273
|
-
const ret =
|
|
267
|
+
module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
268
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
274
269
|
return ret;
|
|
275
270
|
};
|
|
276
271
|
|
|
277
|
-
module.exports.
|
|
278
|
-
const ret =
|
|
279
|
-
return
|
|
272
|
+
module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
273
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
274
|
+
return ret;
|
|
280
275
|
};
|
|
281
276
|
|
|
282
|
-
module.exports.
|
|
283
|
-
const ret =
|
|
284
|
-
return addHeapObject(ret);
|
|
285
|
-
}, arguments) };
|
|
286
|
-
|
|
287
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
288
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
277
|
+
module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
278
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
289
279
|
return ret;
|
|
290
280
|
};
|
|
291
281
|
|
|
292
|
-
module.exports.
|
|
293
|
-
|
|
294
|
-
|
|
282
|
+
module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
283
|
+
const ret = arg0.node;
|
|
284
|
+
return ret;
|
|
285
|
+
};
|
|
295
286
|
|
|
296
|
-
module.exports.
|
|
297
|
-
|
|
287
|
+
module.exports.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
|
|
288
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
289
|
+
return ret;
|
|
298
290
|
}, arguments) };
|
|
299
291
|
|
|
300
|
-
module.exports.
|
|
301
|
-
const ret =
|
|
302
|
-
return
|
|
292
|
+
module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
293
|
+
const ret = arg0.process;
|
|
294
|
+
return ret;
|
|
303
295
|
};
|
|
304
296
|
|
|
305
|
-
module.exports.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}, arguments) };
|
|
297
|
+
module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
298
|
+
queueMicrotask(arg0);
|
|
299
|
+
};
|
|
309
300
|
|
|
310
|
-
module.exports.
|
|
311
|
-
const ret =
|
|
312
|
-
return
|
|
301
|
+
module.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
302
|
+
const ret = arg0.queueMicrotask;
|
|
303
|
+
return ret;
|
|
313
304
|
};
|
|
314
305
|
|
|
315
|
-
module.exports.
|
|
316
|
-
|
|
317
|
-
return addHeapObject(ret);
|
|
306
|
+
module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
|
|
307
|
+
arg0.randomFillSync(arg1);
|
|
318
308
|
}, arguments) };
|
|
319
309
|
|
|
320
|
-
module.exports.
|
|
321
|
-
const ret =
|
|
322
|
-
return
|
|
310
|
+
module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
|
|
311
|
+
const ret = module.require;
|
|
312
|
+
return ret;
|
|
323
313
|
}, arguments) };
|
|
324
314
|
|
|
325
|
-
module.exports.
|
|
326
|
-
const ret =
|
|
327
|
-
return
|
|
328
|
-
}
|
|
315
|
+
module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
316
|
+
const ret = Promise.resolve(arg0);
|
|
317
|
+
return ret;
|
|
318
|
+
};
|
|
329
319
|
|
|
330
|
-
module.exports.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}, arguments) };
|
|
320
|
+
module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
321
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
322
|
+
};
|
|
334
323
|
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret =
|
|
337
|
-
|
|
324
|
+
module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
325
|
+
const ret = arg1.stack;
|
|
326
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
327
|
+
const len1 = WASM_VECTOR_LEN;
|
|
328
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
329
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
338
330
|
};
|
|
339
331
|
|
|
340
|
-
module.exports.
|
|
341
|
-
const ret =
|
|
342
|
-
return
|
|
343
|
-
}
|
|
332
|
+
module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
333
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
334
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
335
|
+
};
|
|
344
336
|
|
|
345
|
-
module.exports.
|
|
346
|
-
const ret =
|
|
347
|
-
return ret;
|
|
337
|
+
module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
338
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
339
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
348
340
|
};
|
|
349
341
|
|
|
350
|
-
module.exports.
|
|
351
|
-
const ret =
|
|
352
|
-
return
|
|
342
|
+
module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
343
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
344
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
353
345
|
};
|
|
354
346
|
|
|
355
|
-
module.exports.
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
var cb0 = (arg0, arg1) => {
|
|
359
|
-
const a = state0.a;
|
|
360
|
-
state0.a = 0;
|
|
361
|
-
try {
|
|
362
|
-
return __wbg_adapter_59(a, state0.b, arg0, arg1);
|
|
363
|
-
} finally {
|
|
364
|
-
state0.a = a;
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
const ret = new Promise(cb0);
|
|
368
|
-
return addHeapObject(ret);
|
|
369
|
-
} finally {
|
|
370
|
-
state0.a = state0.b = 0;
|
|
371
|
-
}
|
|
347
|
+
module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
348
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
349
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
372
350
|
};
|
|
373
351
|
|
|
374
|
-
module.exports.
|
|
375
|
-
const ret =
|
|
376
|
-
return
|
|
352
|
+
module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
353
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
354
|
+
return ret;
|
|
377
355
|
};
|
|
378
356
|
|
|
379
|
-
module.exports.
|
|
380
|
-
const ret =
|
|
381
|
-
return
|
|
357
|
+
module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
358
|
+
const ret = arg0.then(arg1);
|
|
359
|
+
return ret;
|
|
382
360
|
};
|
|
383
361
|
|
|
384
|
-
module.exports.
|
|
385
|
-
const ret =
|
|
386
|
-
return
|
|
362
|
+
module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
363
|
+
const ret = arg0.versions;
|
|
364
|
+
return ret;
|
|
387
365
|
};
|
|
388
366
|
|
|
389
|
-
module.exports.
|
|
390
|
-
const
|
|
391
|
-
|
|
367
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
368
|
+
const obj = arg0.original;
|
|
369
|
+
if (obj.cnt-- == 1) {
|
|
370
|
+
obj.a = 0;
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
const ret = false;
|
|
374
|
+
return ret;
|
|
392
375
|
};
|
|
393
376
|
|
|
394
|
-
module.exports.
|
|
395
|
-
const ret =
|
|
396
|
-
return
|
|
377
|
+
module.exports.__wbindgen_closure_wrapper1028 = function(arg0, arg1, arg2) {
|
|
378
|
+
const ret = makeMutClosure(arg0, arg1, 190, __wbg_adapter_24);
|
|
379
|
+
return ret;
|
|
397
380
|
};
|
|
398
381
|
|
|
399
|
-
module.exports.
|
|
400
|
-
|
|
382
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
383
|
+
const table = wasm.__wbindgen_export_2;
|
|
384
|
+
const offset = table.grow(4);
|
|
385
|
+
table.set(0, undefined);
|
|
386
|
+
table.set(offset + 0, undefined);
|
|
387
|
+
table.set(offset + 1, null);
|
|
388
|
+
table.set(offset + 2, true);
|
|
389
|
+
table.set(offset + 3, false);
|
|
390
|
+
;
|
|
401
391
|
};
|
|
402
392
|
|
|
403
|
-
module.exports.
|
|
404
|
-
const ret =
|
|
405
|
-
return
|
|
393
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
394
|
+
const ret = typeof(arg0) === 'function';
|
|
395
|
+
return ret;
|
|
406
396
|
};
|
|
407
397
|
|
|
408
|
-
module.exports.
|
|
409
|
-
const
|
|
410
|
-
|
|
398
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
399
|
+
const val = arg0;
|
|
400
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
401
|
+
return ret;
|
|
411
402
|
};
|
|
412
403
|
|
|
413
|
-
module.exports.
|
|
414
|
-
const ret =
|
|
415
|
-
return
|
|
416
|
-
}
|
|
404
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
405
|
+
const ret = typeof(arg0) === 'string';
|
|
406
|
+
return ret;
|
|
407
|
+
};
|
|
417
408
|
|
|
418
|
-
module.exports.
|
|
419
|
-
|
|
409
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
410
|
+
const ret = arg0 === undefined;
|
|
411
|
+
return ret;
|
|
420
412
|
};
|
|
421
413
|
|
|
422
414
|
module.exports.__wbindgen_memory = function() {
|
|
423
415
|
const ret = wasm.memory;
|
|
424
|
-
return
|
|
416
|
+
return ret;
|
|
425
417
|
};
|
|
426
418
|
|
|
427
|
-
module.exports.
|
|
428
|
-
const ret =
|
|
429
|
-
return
|
|
419
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
420
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
421
|
+
return ret;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
425
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
430
426
|
};
|
|
431
427
|
|
|
432
428
|
const path = require('path').join(__dirname, 'gluesql_js_bg.wasm');
|
|
@@ -437,3 +433,5 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
|
437
433
|
wasm = wasmInstance.exports;
|
|
438
434
|
module.exports.__wasm = wasm;
|
|
439
435
|
|
|
436
|
+
wasm.__wbindgen_start();
|
|
437
|
+
|
|
Binary file
|