gluesql 0.13.0 → 0.14.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 +13 -12
- package/gluesql.js +5 -5
- package/gluesql.node.js +1 -1
- package/gluesql.rollup.js +8 -474
- package/{dist/nodejs → nodejs}/gluesql_js.js +71 -64
- package/nodejs/gluesql_js_bg.wasm +0 -0
- package/package.json +6 -8
- package/web/gluesql_js.js +819 -0
- package/web/gluesql_js_bg.wasm +0 -0
- package/dist/nodejs/gluesql_js_bg.wasm +0 -0
- package/dist/nodejs/package.json +0 -18
- package/dist/web/gluesql_js.js +0 -432
- package/dist/web/gluesql_js_bg.wasm +0 -0
- package/dist/web/package.json +0 -19
|
Binary file
|
|
Binary file
|
package/dist/nodejs/package.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gluesql-js",
|
|
3
|
-
"collaborators": [
|
|
4
|
-
"Taehoon Moon <taehoon.moon@outlook.com>"
|
|
5
|
-
],
|
|
6
|
-
"description": "GlueSQL - Open source SQL database engine fully written in Rust with pure functional execution layer, easily swappable storage and web assembly support!",
|
|
7
|
-
"version": "0.13.0",
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/gluesql/gluesql"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"gluesql_js_bg.wasm",
|
|
15
|
-
"gluesql_js.js"
|
|
16
|
-
],
|
|
17
|
-
"main": "gluesql_js.js"
|
|
18
|
-
}
|
package/dist/web/gluesql_js.js
DELETED
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
let wasm;
|
|
3
|
-
|
|
4
|
-
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
5
|
-
|
|
6
|
-
cachedTextDecoder.decode();
|
|
7
|
-
|
|
8
|
-
let cachegetUint8Memory0 = null;
|
|
9
|
-
function getUint8Memory0() {
|
|
10
|
-
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
11
|
-
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
-
}
|
|
13
|
-
return cachegetUint8Memory0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function getStringFromWasm0(ptr, len) {
|
|
17
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const heap = new Array(32).fill(undefined);
|
|
21
|
-
|
|
22
|
-
heap.push(undefined, null, true, false);
|
|
23
|
-
|
|
24
|
-
let heap_next = heap.length;
|
|
25
|
-
|
|
26
|
-
function addHeapObject(obj) {
|
|
27
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
|
-
const idx = heap_next;
|
|
29
|
-
heap_next = heap[idx];
|
|
30
|
-
|
|
31
|
-
heap[idx] = obj;
|
|
32
|
-
return idx;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function getObject(idx) { return heap[idx]; }
|
|
36
|
-
|
|
37
|
-
function dropObject(idx) {
|
|
38
|
-
if (idx < 36) return;
|
|
39
|
-
heap[idx] = heap_next;
|
|
40
|
-
heap_next = idx;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function takeObject(idx) {
|
|
44
|
-
const ret = getObject(idx);
|
|
45
|
-
dropObject(idx);
|
|
46
|
-
return ret;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
50
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
51
|
-
const real = (...args) => {
|
|
52
|
-
// First up with a closure we increment the internal reference
|
|
53
|
-
// count. This ensures that the Rust closure environment won't
|
|
54
|
-
// be deallocated while we're invoking it.
|
|
55
|
-
state.cnt++;
|
|
56
|
-
const a = state.a;
|
|
57
|
-
state.a = 0;
|
|
58
|
-
try {
|
|
59
|
-
return f(a, state.b, ...args);
|
|
60
|
-
} finally {
|
|
61
|
-
if (--state.cnt === 0) {
|
|
62
|
-
wasm.__wbindgen_export_0.get(state.dtor)(a, state.b);
|
|
63
|
-
|
|
64
|
-
} else {
|
|
65
|
-
state.a = a;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
real.original = state;
|
|
70
|
-
|
|
71
|
-
return real;
|
|
72
|
-
}
|
|
73
|
-
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
74
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h219d4f1f418bd857(arg0, arg1, addHeapObject(arg2));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
let WASM_VECTOR_LEN = 0;
|
|
78
|
-
|
|
79
|
-
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
80
|
-
|
|
81
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
82
|
-
? function (arg, view) {
|
|
83
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
84
|
-
}
|
|
85
|
-
: function (arg, view) {
|
|
86
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
87
|
-
view.set(buf);
|
|
88
|
-
return {
|
|
89
|
-
read: arg.length,
|
|
90
|
-
written: buf.length
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
95
|
-
|
|
96
|
-
if (realloc === undefined) {
|
|
97
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
98
|
-
const ptr = malloc(buf.length);
|
|
99
|
-
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
100
|
-
WASM_VECTOR_LEN = buf.length;
|
|
101
|
-
return ptr;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
let len = arg.length;
|
|
105
|
-
let ptr = malloc(len);
|
|
106
|
-
|
|
107
|
-
const mem = getUint8Memory0();
|
|
108
|
-
|
|
109
|
-
let offset = 0;
|
|
110
|
-
|
|
111
|
-
for (; offset < len; offset++) {
|
|
112
|
-
const code = arg.charCodeAt(offset);
|
|
113
|
-
if (code > 0x7F) break;
|
|
114
|
-
mem[ptr + offset] = code;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (offset !== len) {
|
|
118
|
-
if (offset !== 0) {
|
|
119
|
-
arg = arg.slice(offset);
|
|
120
|
-
}
|
|
121
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
122
|
-
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
123
|
-
const ret = encodeString(arg, view);
|
|
124
|
-
|
|
125
|
-
offset += ret.written;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
WASM_VECTOR_LEN = offset;
|
|
129
|
-
return ptr;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
let cachegetInt32Memory0 = null;
|
|
133
|
-
function getInt32Memory0() {
|
|
134
|
-
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
135
|
-
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
136
|
-
}
|
|
137
|
-
return cachegetInt32Memory0;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function handleError(f, args) {
|
|
141
|
-
try {
|
|
142
|
-
return f.apply(this, args);
|
|
143
|
-
} catch (e) {
|
|
144
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
149
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
150
|
-
}
|
|
151
|
-
function __wbg_adapter_59(arg0, arg1, arg2, arg3) {
|
|
152
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h15dfab62720e3232(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
*/
|
|
157
|
-
export class Glue {
|
|
158
|
-
|
|
159
|
-
static __wrap(ptr) {
|
|
160
|
-
const obj = Object.create(Glue.prototype);
|
|
161
|
-
obj.ptr = ptr;
|
|
162
|
-
|
|
163
|
-
return obj;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
__destroy_into_raw() {
|
|
167
|
-
const ptr = this.ptr;
|
|
168
|
-
this.ptr = 0;
|
|
169
|
-
|
|
170
|
-
return ptr;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
free() {
|
|
174
|
-
const ptr = this.__destroy_into_raw();
|
|
175
|
-
wasm.__wbg_glue_free(ptr);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
*/
|
|
179
|
-
constructor() {
|
|
180
|
-
const ret = wasm.glue_new();
|
|
181
|
-
return Glue.__wrap(ret);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* @param {string} sql
|
|
185
|
-
* @returns {Promise<any>}
|
|
186
|
-
*/
|
|
187
|
-
query(sql) {
|
|
188
|
-
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
189
|
-
const len0 = WASM_VECTOR_LEN;
|
|
190
|
-
const ret = wasm.glue_query(this.ptr, ptr0, len0);
|
|
191
|
-
return takeObject(ret);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
async function load(module, imports) {
|
|
196
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
197
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
198
|
-
try {
|
|
199
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
200
|
-
|
|
201
|
-
} catch (e) {
|
|
202
|
-
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
203
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
204
|
-
|
|
205
|
-
} else {
|
|
206
|
-
throw e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const bytes = await module.arrayBuffer();
|
|
212
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
213
|
-
|
|
214
|
-
} else {
|
|
215
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
216
|
-
|
|
217
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
218
|
-
return { instance, module };
|
|
219
|
-
|
|
220
|
-
} else {
|
|
221
|
-
return instance;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
async function init(input) {
|
|
227
|
-
if (typeof input === 'undefined') {
|
|
228
|
-
input = new URL('gluesql_js_bg.wasm', import.meta.url);
|
|
229
|
-
}
|
|
230
|
-
const imports = {};
|
|
231
|
-
imports.wbg = {};
|
|
232
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
233
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
234
|
-
return addHeapObject(ret);
|
|
235
|
-
};
|
|
236
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
237
|
-
takeObject(arg0);
|
|
238
|
-
};
|
|
239
|
-
imports.wbg.__wbg_log_819d5f8ad601b300 = function(arg0, arg1) {
|
|
240
|
-
console.log(getStringFromWasm0(arg0, arg1));
|
|
241
|
-
};
|
|
242
|
-
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
243
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
244
|
-
return addHeapObject(ret);
|
|
245
|
-
};
|
|
246
|
-
imports.wbg.__wbg_new_693216e109162396 = function() {
|
|
247
|
-
const ret = new Error();
|
|
248
|
-
return addHeapObject(ret);
|
|
249
|
-
};
|
|
250
|
-
imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
251
|
-
const ret = getObject(arg1).stack;
|
|
252
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
-
const len0 = WASM_VECTOR_LEN;
|
|
254
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
255
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
256
|
-
};
|
|
257
|
-
imports.wbg.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
258
|
-
try {
|
|
259
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
260
|
-
} finally {
|
|
261
|
-
wasm.__wbindgen_free(arg0, arg1);
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
265
|
-
const obj = takeObject(arg0).original;
|
|
266
|
-
if (obj.cnt-- == 1) {
|
|
267
|
-
obj.a = 0;
|
|
268
|
-
return true;
|
|
269
|
-
}
|
|
270
|
-
const ret = false;
|
|
271
|
-
return ret;
|
|
272
|
-
};
|
|
273
|
-
imports.wbg.__wbg_process_2f24d6544ea7b200 = function(arg0) {
|
|
274
|
-
const ret = getObject(arg0).process;
|
|
275
|
-
return addHeapObject(ret);
|
|
276
|
-
};
|
|
277
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
278
|
-
const val = getObject(arg0);
|
|
279
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
280
|
-
return ret;
|
|
281
|
-
};
|
|
282
|
-
imports.wbg.__wbg_versions_6164651e75405d4a = function(arg0) {
|
|
283
|
-
const ret = getObject(arg0).versions;
|
|
284
|
-
return addHeapObject(ret);
|
|
285
|
-
};
|
|
286
|
-
imports.wbg.__wbg_node_4b517d861cbcb3bc = function(arg0) {
|
|
287
|
-
const ret = getObject(arg0).node;
|
|
288
|
-
return addHeapObject(ret);
|
|
289
|
-
};
|
|
290
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
291
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
292
|
-
return ret;
|
|
293
|
-
};
|
|
294
|
-
imports.wbg.__wbg_modulerequire_3440a4bcf44437db = function() { return handleError(function (arg0, arg1) {
|
|
295
|
-
const ret = module.require(getStringFromWasm0(arg0, arg1));
|
|
296
|
-
return addHeapObject(ret);
|
|
297
|
-
}, arguments) };
|
|
298
|
-
imports.wbg.__wbg_crypto_98fc271021c7d2ad = function(arg0) {
|
|
299
|
-
const ret = getObject(arg0).crypto;
|
|
300
|
-
return addHeapObject(ret);
|
|
301
|
-
};
|
|
302
|
-
imports.wbg.__wbg_msCrypto_a2cdb043d2bfe57f = function(arg0) {
|
|
303
|
-
const ret = getObject(arg0).msCrypto;
|
|
304
|
-
return addHeapObject(ret);
|
|
305
|
-
};
|
|
306
|
-
imports.wbg.__wbg_getRandomValues_98117e9a7e993920 = function() { return handleError(function (arg0, arg1) {
|
|
307
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
308
|
-
}, arguments) };
|
|
309
|
-
imports.wbg.__wbg_randomFillSync_64cc7d048f228ca8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
310
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
311
|
-
}, arguments) };
|
|
312
|
-
imports.wbg.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
|
|
313
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
314
|
-
return addHeapObject(ret);
|
|
315
|
-
};
|
|
316
|
-
imports.wbg.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
|
|
317
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
318
|
-
return addHeapObject(ret);
|
|
319
|
-
}, arguments) };
|
|
320
|
-
imports.wbg.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
|
|
321
|
-
const ret = self.self;
|
|
322
|
-
return addHeapObject(ret);
|
|
323
|
-
}, arguments) };
|
|
324
|
-
imports.wbg.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
|
|
325
|
-
const ret = window.window;
|
|
326
|
-
return addHeapObject(ret);
|
|
327
|
-
}, arguments) };
|
|
328
|
-
imports.wbg.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
|
|
329
|
-
const ret = globalThis.globalThis;
|
|
330
|
-
return addHeapObject(ret);
|
|
331
|
-
}, arguments) };
|
|
332
|
-
imports.wbg.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
|
|
333
|
-
const ret = global.global;
|
|
334
|
-
return addHeapObject(ret);
|
|
335
|
-
}, arguments) };
|
|
336
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
337
|
-
const ret = getObject(arg0) === undefined;
|
|
338
|
-
return ret;
|
|
339
|
-
};
|
|
340
|
-
imports.wbg.__wbg_call_3ed288a247f13ea5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
341
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
342
|
-
return addHeapObject(ret);
|
|
343
|
-
}, arguments) };
|
|
344
|
-
imports.wbg.__wbg_getTime_bffb1c09df09618b = function(arg0) {
|
|
345
|
-
const ret = getObject(arg0).getTime();
|
|
346
|
-
return ret;
|
|
347
|
-
};
|
|
348
|
-
imports.wbg.__wbg_new0_0ff7eb5c1486f3ec = function() {
|
|
349
|
-
const ret = new Date();
|
|
350
|
-
return addHeapObject(ret);
|
|
351
|
-
};
|
|
352
|
-
imports.wbg.__wbg_new_37705eed627d5ed9 = function(arg0, arg1) {
|
|
353
|
-
try {
|
|
354
|
-
var state0 = {a: arg0, b: arg1};
|
|
355
|
-
var cb0 = (arg0, arg1) => {
|
|
356
|
-
const a = state0.a;
|
|
357
|
-
state0.a = 0;
|
|
358
|
-
try {
|
|
359
|
-
return __wbg_adapter_59(a, state0.b, arg0, arg1);
|
|
360
|
-
} finally {
|
|
361
|
-
state0.a = a;
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
const ret = new Promise(cb0);
|
|
365
|
-
return addHeapObject(ret);
|
|
366
|
-
} finally {
|
|
367
|
-
state0.a = state0.b = 0;
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
imports.wbg.__wbg_resolve_a9a87bdd64e9e62c = function(arg0) {
|
|
371
|
-
const ret = Promise.resolve(getObject(arg0));
|
|
372
|
-
return addHeapObject(ret);
|
|
373
|
-
};
|
|
374
|
-
imports.wbg.__wbg_then_ce526c837d07b68f = function(arg0, arg1) {
|
|
375
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
376
|
-
return addHeapObject(ret);
|
|
377
|
-
};
|
|
378
|
-
imports.wbg.__wbg_buffer_7af23f65f6c64548 = function(arg0) {
|
|
379
|
-
const ret = getObject(arg0).buffer;
|
|
380
|
-
return addHeapObject(ret);
|
|
381
|
-
};
|
|
382
|
-
imports.wbg.__wbg_new_cc9018bd6f283b6f = function(arg0) {
|
|
383
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
384
|
-
return addHeapObject(ret);
|
|
385
|
-
};
|
|
386
|
-
imports.wbg.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) {
|
|
387
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
388
|
-
};
|
|
389
|
-
imports.wbg.__wbg_length_0acb1cf9bbaf8519 = function(arg0) {
|
|
390
|
-
const ret = getObject(arg0).length;
|
|
391
|
-
return ret;
|
|
392
|
-
};
|
|
393
|
-
imports.wbg.__wbg_newwithlength_8f0657faca9f1422 = function(arg0) {
|
|
394
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
395
|
-
return addHeapObject(ret);
|
|
396
|
-
};
|
|
397
|
-
imports.wbg.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
|
|
398
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
399
|
-
return addHeapObject(ret);
|
|
400
|
-
};
|
|
401
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
402
|
-
const ret = getObject(arg0);
|
|
403
|
-
return addHeapObject(ret);
|
|
404
|
-
};
|
|
405
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
406
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
407
|
-
};
|
|
408
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
409
|
-
const ret = wasm.memory;
|
|
410
|
-
return addHeapObject(ret);
|
|
411
|
-
};
|
|
412
|
-
imports.wbg.__wbindgen_closure_wrapper432 = function(arg0, arg1, arg2) {
|
|
413
|
-
const ret = makeMutClosure(arg0, arg1, 87, __wbg_adapter_22);
|
|
414
|
-
return addHeapObject(ret);
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
|
418
|
-
input = fetch(input);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
const { instance, module } = await load(await input, imports);
|
|
424
|
-
|
|
425
|
-
wasm = instance.exports;
|
|
426
|
-
init.__wbindgen_wasm_module = module;
|
|
427
|
-
|
|
428
|
-
return wasm;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export default init;
|
|
432
|
-
|
|
Binary file
|
package/dist/web/package.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gluesql-js",
|
|
3
|
-
"collaborators": [
|
|
4
|
-
"Taehoon Moon <taehoon.moon@outlook.com>"
|
|
5
|
-
],
|
|
6
|
-
"description": "GlueSQL - Open source SQL database engine fully written in Rust with pure functional execution layer, easily swappable storage and web assembly support!",
|
|
7
|
-
"version": "0.13.0",
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/gluesql/gluesql"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"gluesql_js_bg.wasm",
|
|
15
|
-
"gluesql_js.js"
|
|
16
|
-
],
|
|
17
|
-
"module": "gluesql_js.js",
|
|
18
|
-
"sideEffects": false
|
|
19
|
-
}
|