jsql-neo 5.4.2 → 5.5.0

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.
Files changed (72) hide show
  1. package/LICENSE +202 -202
  2. package/README.md +8097 -7971
  3. package/bin/jsql +320 -320
  4. package/bin/jsql-server +90 -90
  5. package/bin/jsql-server-control.js +177 -177
  6. package/index.d.ts +385 -357
  7. package/index.js +124 -118
  8. package/lib/ast.js +214 -0
  9. package/lib/btree.js +413 -413
  10. package/lib/cache.js +328 -328
  11. package/lib/client.js +125 -125
  12. package/lib/database.js +1744 -1744
  13. package/lib/date-types.js +182 -182
  14. package/lib/errors.js +89 -89
  15. package/lib/jsql_format.js +497 -497
  16. package/lib/migrate.js +254 -254
  17. package/lib/mod.js +292 -292
  18. package/lib/mongo_server.js +607 -607
  19. package/lib/multiserver.js +140 -140
  20. package/lib/mysql_compat.js +413 -413
  21. package/lib/mysql_server.js +1237 -1237
  22. package/lib/native_client.js +732 -732
  23. package/lib/nedb_compat.js +506 -506
  24. package/lib/pg_server.js +864 -864
  25. package/lib/plugin.js +34 -34
  26. package/lib/query.js +815 -815
  27. package/lib/redis_server.js +571 -571
  28. package/lib/sql.js +3460 -2925
  29. package/lib/sqlite_compat.js +323 -323
  30. package/lib/sqlite_worker.js +264 -264
  31. package/lib/table.js +1304 -1304
  32. package/lib/tui.js +502 -502
  33. package/lib/wasm.js +1 -1
  34. package/lib/wasm_client.js +718 -718
  35. package/lib/web_ui.js +257 -257
  36. package/native/jsql-neo-native.node +0 -0
  37. package/nativesrc/jsql-neo-core/Cargo.lock +455 -455
  38. package/nativesrc/jsql-neo-core/Cargo.toml +24 -24
  39. package/nativesrc/jsql-neo-core/src/engine/hybrid.rs +455 -455
  40. package/nativesrc/jsql-neo-core/src/engine/memory.rs +168 -168
  41. package/nativesrc/jsql-neo-core/src/engine/mod.rs +62 -62
  42. package/nativesrc/jsql-neo-core/src/engine/table.rs +700 -700
  43. package/nativesrc/jsql-neo-core/src/lib.rs +2 -2
  44. package/nativesrc/jsql-neo-core/src/storage/mod.rs +2 -2
  45. package/nativesrc/jsql-neo-core/src/storage/persistent.rs +1 -1
  46. package/nativesrc/jsql-neo-core/src/storage/wal.rs +85 -85
  47. package/nativesrc/jsql-neo-core/src/types.rs +93 -93
  48. package/nativesrc/jsql-neo-native/Cargo.lock +606 -606
  49. package/nativesrc/jsql-neo-native/Cargo.toml +16 -16
  50. package/nativesrc/jsql-neo-native/build.rs +3 -3
  51. package/nativesrc/jsql-neo-native/package.json +7 -7
  52. package/nativesrc/jsql-neo-native/src/lib.rs +269 -269
  53. package/nativesrc/jsql-neo-wasm/Cargo.lock +465 -465
  54. package/nativesrc/jsql-neo-wasm/Cargo.toml +15 -15
  55. package/nativesrc/jsql-neo-wasm/src/lib.rs +447 -447
  56. package/package.json +87 -86
  57. package/postinstall.js +158 -158
  58. package/test/btree.test.js +128 -128
  59. package/test/coverage.js +187 -187
  60. package/test/join.test.js +110 -110
  61. package/test/native.test.js +158 -158
  62. package/test/regress-5.1.0.js +271 -271
  63. package/test/smoke.js +58 -58
  64. package/test/sql-parser.test.js +273 -0
  65. package/test/wasm.test.js +110 -110
  66. package/wasm/browser.d.ts +89 -89
  67. package/wasm/browser.mjs +569 -569
  68. package/wasm/browser_bg.mjs +597 -597
  69. package/wasm/jsql_neo_wasm.d.ts +38 -38
  70. package/wasm/jsql_neo_wasm.js +520 -520
  71. package/wasm/jsql_neo_wasm_bg.wasm.d.ts +26 -26
  72. package/wasm/package.json +11 -11
@@ -1,520 +1,520 @@
1
- /* @ts-self-types="./jsql_neo_wasm.d.ts" */
2
-
3
- /**
4
- * @returns {string}
5
- */
6
- function jsql_begin_tx() {
7
- let deferred1_0;
8
- let deferred1_1;
9
- try {
10
- const ret = wasm.jsql_begin_tx();
11
- deferred1_0 = ret[0];
12
- deferred1_1 = ret[1];
13
- return getStringFromWasm0(ret[0], ret[1]);
14
- } finally {
15
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
16
- }
17
- }
18
- exports.jsql_begin_tx = jsql_begin_tx;
19
-
20
- /**
21
- * @param {string} tx_id
22
- * @returns {string}
23
- */
24
- function jsql_commit_tx(tx_id) {
25
- let deferred2_0;
26
- let deferred2_1;
27
- try {
28
- const ptr0 = passStringToWasm0(tx_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29
- const len0 = WASM_VECTOR_LEN;
30
- const ret = wasm.jsql_commit_tx(ptr0, len0);
31
- deferred2_0 = ret[0];
32
- deferred2_1 = ret[1];
33
- return getStringFromWasm0(ret[0], ret[1]);
34
- } finally {
35
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
36
- }
37
- }
38
- exports.jsql_commit_tx = jsql_commit_tx;
39
-
40
- /**
41
- * @param {string} table
42
- * @returns {string}
43
- */
44
- function jsql_count(table) {
45
- let deferred2_0;
46
- let deferred2_1;
47
- try {
48
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
49
- const len0 = WASM_VECTOR_LEN;
50
- const ret = wasm.jsql_count(ptr0, len0);
51
- deferred2_0 = ret[0];
52
- deferred2_1 = ret[1];
53
- return getStringFromWasm0(ret[0], ret[1]);
54
- } finally {
55
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
56
- }
57
- }
58
- exports.jsql_count = jsql_count;
59
-
60
- /**
61
- * @param {string} name
62
- * @param {string} schema_json
63
- * @returns {string}
64
- */
65
- function jsql_create_table(name, schema_json) {
66
- let deferred3_0;
67
- let deferred3_1;
68
- try {
69
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
70
- const len0 = WASM_VECTOR_LEN;
71
- const ptr1 = passStringToWasm0(schema_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
72
- const len1 = WASM_VECTOR_LEN;
73
- const ret = wasm.jsql_create_table(ptr0, len0, ptr1, len1);
74
- deferred3_0 = ret[0];
75
- deferred3_1 = ret[1];
76
- return getStringFromWasm0(ret[0], ret[1]);
77
- } finally {
78
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
79
- }
80
- }
81
- exports.jsql_create_table = jsql_create_table;
82
-
83
- /**
84
- * @param {string} name
85
- * @returns {string}
86
- */
87
- function jsql_drop_table(name) {
88
- let deferred2_0;
89
- let deferred2_1;
90
- try {
91
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
92
- const len0 = WASM_VECTOR_LEN;
93
- const ret = wasm.jsql_drop_table(ptr0, len0);
94
- deferred2_0 = ret[0];
95
- deferred2_1 = ret[1];
96
- return getStringFromWasm0(ret[0], ret[1]);
97
- } finally {
98
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
99
- }
100
- }
101
- exports.jsql_drop_table = jsql_drop_table;
102
-
103
- /**
104
- * @param {string} table
105
- * @param {string} filter_json
106
- * @param {number} limit
107
- * @param {number} offset
108
- * @returns {string}
109
- */
110
- function jsql_find(table, filter_json, limit, offset) {
111
- let deferred3_0;
112
- let deferred3_1;
113
- try {
114
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
- const len0 = WASM_VECTOR_LEN;
116
- const ptr1 = passStringToWasm0(filter_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
117
- const len1 = WASM_VECTOR_LEN;
118
- const ret = wasm.jsql_find(ptr0, len0, ptr1, len1, limit, offset);
119
- deferred3_0 = ret[0];
120
- deferred3_1 = ret[1];
121
- return getStringFromWasm0(ret[0], ret[1]);
122
- } finally {
123
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
124
- }
125
- }
126
- exports.jsql_find = jsql_find;
127
-
128
- /**
129
- * @param {string} table
130
- * @param {bigint} id
131
- * @returns {string}
132
- */
133
- function jsql_find_by_id(table, id) {
134
- let deferred2_0;
135
- let deferred2_1;
136
- try {
137
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
138
- const len0 = WASM_VECTOR_LEN;
139
- const ret = wasm.jsql_find_by_id(ptr0, len0, id);
140
- deferred2_0 = ret[0];
141
- deferred2_1 = ret[1];
142
- return getStringFromWasm0(ret[0], ret[1]);
143
- } finally {
144
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
145
- }
146
- }
147
- exports.jsql_find_by_id = jsql_find_by_id;
148
-
149
- /**
150
- * @param {string} table
151
- * @param {string} ids_json
152
- * @returns {string}
153
- */
154
- function jsql_find_by_ids(table, ids_json) {
155
- let deferred3_0;
156
- let deferred3_1;
157
- try {
158
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
- const len0 = WASM_VECTOR_LEN;
160
- const ptr1 = passStringToWasm0(ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
161
- const len1 = WASM_VECTOR_LEN;
162
- const ret = wasm.jsql_find_by_ids(ptr0, len0, ptr1, len1);
163
- deferred3_0 = ret[0];
164
- deferred3_1 = ret[1];
165
- return getStringFromWasm0(ret[0], ret[1]);
166
- } finally {
167
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
168
- }
169
- }
170
- exports.jsql_find_by_ids = jsql_find_by_ids;
171
-
172
- /**
173
- * @param {string} table
174
- * @param {string} data_json
175
- * @returns {string}
176
- */
177
- function jsql_insert(table, data_json) {
178
- let deferred3_0;
179
- let deferred3_1;
180
- try {
181
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
182
- const len0 = WASM_VECTOR_LEN;
183
- const ptr1 = passStringToWasm0(data_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
184
- const len1 = WASM_VECTOR_LEN;
185
- const ret = wasm.jsql_insert(ptr0, len0, ptr1, len1);
186
- deferred3_0 = ret[0];
187
- deferred3_1 = ret[1];
188
- return getStringFromWasm0(ret[0], ret[1]);
189
- } finally {
190
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
191
- }
192
- }
193
- exports.jsql_insert = jsql_insert;
194
-
195
- /**
196
- * @param {string} table
197
- * @param {Uint8Array} data
198
- * @returns {string}
199
- */
200
- function jsql_insert_buf(table, data) {
201
- let deferred3_0;
202
- let deferred3_1;
203
- try {
204
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
205
- const len0 = WASM_VECTOR_LEN;
206
- const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
207
- const len1 = WASM_VECTOR_LEN;
208
- const ret = wasm.jsql_insert_buf(ptr0, len0, ptr1, len1);
209
- deferred3_0 = ret[0];
210
- deferred3_1 = ret[1];
211
- return getStringFromWasm0(ret[0], ret[1]);
212
- } finally {
213
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
214
- }
215
- }
216
- exports.jsql_insert_buf = jsql_insert_buf;
217
-
218
- /**
219
- * @param {string} table
220
- * @param {Uint8Array} data
221
- * @returns {string}
222
- */
223
- function jsql_insert_buf_count(table, data) {
224
- let deferred3_0;
225
- let deferred3_1;
226
- try {
227
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
230
- const len1 = WASM_VECTOR_LEN;
231
- const ret = wasm.jsql_insert_buf_count(ptr0, len0, ptr1, len1);
232
- deferred3_0 = ret[0];
233
- deferred3_1 = ret[1];
234
- return getStringFromWasm0(ret[0], ret[1]);
235
- } finally {
236
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
237
- }
238
- }
239
- exports.jsql_insert_buf_count = jsql_insert_buf_count;
240
-
241
- /**
242
- * @param {string} table
243
- * @param {string} json
244
- * @returns {string}
245
- */
246
- function jsql_insert_json(table, json) {
247
- let deferred3_0;
248
- let deferred3_1;
249
- try {
250
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
251
- const len0 = WASM_VECTOR_LEN;
252
- const ptr1 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
- const len1 = WASM_VECTOR_LEN;
254
- const ret = wasm.jsql_insert_json(ptr0, len0, ptr1, len1);
255
- deferred3_0 = ret[0];
256
- deferred3_1 = ret[1];
257
- return getStringFromWasm0(ret[0], ret[1]);
258
- } finally {
259
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
260
- }
261
- }
262
- exports.jsql_insert_json = jsql_insert_json;
263
-
264
- /**
265
- * @param {string} table
266
- * @param {bigint} id
267
- * @returns {string}
268
- */
269
- function jsql_remove_by_id(table, id) {
270
- let deferred2_0;
271
- let deferred2_1;
272
- try {
273
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
274
- const len0 = WASM_VECTOR_LEN;
275
- const ret = wasm.jsql_remove_by_id(ptr0, len0, id);
276
- deferred2_0 = ret[0];
277
- deferred2_1 = ret[1];
278
- return getStringFromWasm0(ret[0], ret[1]);
279
- } finally {
280
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
281
- }
282
- }
283
- exports.jsql_remove_by_id = jsql_remove_by_id;
284
-
285
- /**
286
- * @param {string} table
287
- * @param {string} ids_json
288
- * @returns {string}
289
- */
290
- function jsql_remove_by_ids(table, ids_json) {
291
- let deferred3_0;
292
- let deferred3_1;
293
- try {
294
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
- const len0 = WASM_VECTOR_LEN;
296
- const ptr1 = passStringToWasm0(ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
- const len1 = WASM_VECTOR_LEN;
298
- const ret = wasm.jsql_remove_by_ids(ptr0, len0, ptr1, len1);
299
- deferred3_0 = ret[0];
300
- deferred3_1 = ret[1];
301
- return getStringFromWasm0(ret[0], ret[1]);
302
- } finally {
303
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
304
- }
305
- }
306
- exports.jsql_remove_by_ids = jsql_remove_by_ids;
307
-
308
- function jsql_reset() {
309
- wasm.jsql_reset();
310
- }
311
- exports.jsql_reset = jsql_reset;
312
-
313
- /**
314
- * @param {string} tx_id
315
- * @returns {string}
316
- */
317
- function jsql_rollback_tx(tx_id) {
318
- let deferred2_0;
319
- let deferred2_1;
320
- try {
321
- const ptr0 = passStringToWasm0(tx_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
- const len0 = WASM_VECTOR_LEN;
323
- const ret = wasm.jsql_rollback_tx(ptr0, len0);
324
- deferred2_0 = ret[0];
325
- deferred2_1 = ret[1];
326
- return getStringFromWasm0(ret[0], ret[1]);
327
- } finally {
328
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
329
- }
330
- }
331
- exports.jsql_rollback_tx = jsql_rollback_tx;
332
-
333
- /**
334
- * @param {string} table
335
- * @param {bigint} id
336
- * @param {string} data_json
337
- * @returns {string}
338
- */
339
- function jsql_update_by_id(table, id, data_json) {
340
- let deferred3_0;
341
- let deferred3_1;
342
- try {
343
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
344
- const len0 = WASM_VECTOR_LEN;
345
- const ptr1 = passStringToWasm0(data_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
- const len1 = WASM_VECTOR_LEN;
347
- const ret = wasm.jsql_update_by_id(ptr0, len0, id, ptr1, len1);
348
- deferred3_0 = ret[0];
349
- deferred3_1 = ret[1];
350
- return getStringFromWasm0(ret[0], ret[1]);
351
- } finally {
352
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
353
- }
354
- }
355
- exports.jsql_update_by_id = jsql_update_by_id;
356
-
357
- /**
358
- * @param {string} table
359
- * @param {string} batch_json
360
- * @returns {string}
361
- */
362
- function jsql_update_by_ids(table, batch_json) {
363
- let deferred3_0;
364
- let deferred3_1;
365
- try {
366
- const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
367
- const len0 = WASM_VECTOR_LEN;
368
- const ptr1 = passStringToWasm0(batch_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
369
- const len1 = WASM_VECTOR_LEN;
370
- const ret = wasm.jsql_update_by_ids(ptr0, len0, ptr1, len1);
371
- deferred3_0 = ret[0];
372
- deferred3_1 = ret[1];
373
- return getStringFromWasm0(ret[0], ret[1]);
374
- } finally {
375
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
376
- }
377
- }
378
- exports.jsql_update_by_ids = jsql_update_by_ids;
379
- function __wbg_get_imports() {
380
- const import0 = {
381
- __proto__: null,
382
- __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
383
- const obj = arg1;
384
- const ret = typeof(obj) === 'string' ? obj : undefined;
385
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
- var len1 = WASM_VECTOR_LEN;
387
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
388
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
389
- },
390
- __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
391
- throw new Error(getStringFromWasm0(arg0, arg1));
392
- },
393
- __wbg_new_cc984128914cfc6f: function(arg0) {
394
- const ret = new Date(arg0);
395
- return ret;
396
- },
397
- __wbg_now_86c0d4ba3fa605b8: function() {
398
- const ret = Date.now();
399
- return ret;
400
- },
401
- __wbg_toISOString_706fbe321055ee58: function(arg0) {
402
- const ret = arg0.toISOString();
403
- return ret;
404
- },
405
- __wbindgen_cast_0000000000000001: function(arg0) {
406
- // Cast intrinsic for `F64 -> Externref`.
407
- const ret = arg0;
408
- return ret;
409
- },
410
- __wbindgen_init_externref_table: function() {
411
- const table = wasm.__wbindgen_externrefs;
412
- const offset = table.grow(4);
413
- table.set(0, undefined);
414
- table.set(offset + 0, undefined);
415
- table.set(offset + 1, null);
416
- table.set(offset + 2, true);
417
- table.set(offset + 3, false);
418
- },
419
- };
420
- return {
421
- __proto__: null,
422
- "./jsql_neo_wasm_bg.js": import0,
423
- };
424
- }
425
-
426
- let cachedDataViewMemory0 = null;
427
- function getDataViewMemory0() {
428
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
429
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
430
- }
431
- return cachedDataViewMemory0;
432
- }
433
-
434
- function getStringFromWasm0(ptr, len) {
435
- return decodeText(ptr >>> 0, len);
436
- }
437
-
438
- let cachedUint8ArrayMemory0 = null;
439
- function getUint8ArrayMemory0() {
440
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
441
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
442
- }
443
- return cachedUint8ArrayMemory0;
444
- }
445
-
446
- function isLikeNone(x) {
447
- return x === undefined || x === null;
448
- }
449
-
450
- function passArray8ToWasm0(arg, malloc) {
451
- const ptr = malloc(arg.length * 1, 1) >>> 0;
452
- getUint8ArrayMemory0().set(arg, ptr / 1);
453
- WASM_VECTOR_LEN = arg.length;
454
- return ptr;
455
- }
456
-
457
- function passStringToWasm0(arg, malloc, realloc) {
458
- if (realloc === undefined) {
459
- const buf = cachedTextEncoder.encode(arg);
460
- const ptr = malloc(buf.length, 1) >>> 0;
461
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
462
- WASM_VECTOR_LEN = buf.length;
463
- return ptr;
464
- }
465
-
466
- let len = arg.length;
467
- let ptr = malloc(len, 1) >>> 0;
468
-
469
- const mem = getUint8ArrayMemory0();
470
-
471
- let offset = 0;
472
-
473
- for (; offset < len; offset++) {
474
- const code = arg.charCodeAt(offset);
475
- if (code > 0x7F) break;
476
- mem[ptr + offset] = code;
477
- }
478
- if (offset !== len) {
479
- if (offset !== 0) {
480
- arg = arg.slice(offset);
481
- }
482
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
483
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
484
- const ret = cachedTextEncoder.encodeInto(arg, view);
485
-
486
- offset += ret.written;
487
- ptr = realloc(ptr, len, offset, 1) >>> 0;
488
- }
489
-
490
- WASM_VECTOR_LEN = offset;
491
- return ptr;
492
- }
493
-
494
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
495
- cachedTextDecoder.decode();
496
- function decodeText(ptr, len) {
497
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
498
- }
499
-
500
- const cachedTextEncoder = new TextEncoder();
501
-
502
- if (!('encodeInto' in cachedTextEncoder)) {
503
- cachedTextEncoder.encodeInto = function (arg, view) {
504
- const buf = cachedTextEncoder.encode(arg);
505
- view.set(buf);
506
- return {
507
- read: arg.length,
508
- written: buf.length
509
- };
510
- };
511
- }
512
-
513
- let WASM_VECTOR_LEN = 0;
514
-
515
- const wasmPath = `${__dirname}/jsql_neo_wasm_bg.wasm`;
516
- const wasmBytes = require('fs').readFileSync(wasmPath);
517
- const wasmModule = new WebAssembly.Module(wasmBytes);
518
- let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
519
- let wasm = wasmInstance.exports;
520
- wasm.__wbindgen_start();
1
+ /* @ts-self-types="./jsql_neo_wasm.d.ts" */
2
+
3
+ /**
4
+ * @returns {string}
5
+ */
6
+ function jsql_begin_tx() {
7
+ let deferred1_0;
8
+ let deferred1_1;
9
+ try {
10
+ const ret = wasm.jsql_begin_tx();
11
+ deferred1_0 = ret[0];
12
+ deferred1_1 = ret[1];
13
+ return getStringFromWasm0(ret[0], ret[1]);
14
+ } finally {
15
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
16
+ }
17
+ }
18
+ exports.jsql_begin_tx = jsql_begin_tx;
19
+
20
+ /**
21
+ * @param {string} tx_id
22
+ * @returns {string}
23
+ */
24
+ function jsql_commit_tx(tx_id) {
25
+ let deferred2_0;
26
+ let deferred2_1;
27
+ try {
28
+ const ptr0 = passStringToWasm0(tx_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29
+ const len0 = WASM_VECTOR_LEN;
30
+ const ret = wasm.jsql_commit_tx(ptr0, len0);
31
+ deferred2_0 = ret[0];
32
+ deferred2_1 = ret[1];
33
+ return getStringFromWasm0(ret[0], ret[1]);
34
+ } finally {
35
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
36
+ }
37
+ }
38
+ exports.jsql_commit_tx = jsql_commit_tx;
39
+
40
+ /**
41
+ * @param {string} table
42
+ * @returns {string}
43
+ */
44
+ function jsql_count(table) {
45
+ let deferred2_0;
46
+ let deferred2_1;
47
+ try {
48
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
49
+ const len0 = WASM_VECTOR_LEN;
50
+ const ret = wasm.jsql_count(ptr0, len0);
51
+ deferred2_0 = ret[0];
52
+ deferred2_1 = ret[1];
53
+ return getStringFromWasm0(ret[0], ret[1]);
54
+ } finally {
55
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
56
+ }
57
+ }
58
+ exports.jsql_count = jsql_count;
59
+
60
+ /**
61
+ * @param {string} name
62
+ * @param {string} schema_json
63
+ * @returns {string}
64
+ */
65
+ function jsql_create_table(name, schema_json) {
66
+ let deferred3_0;
67
+ let deferred3_1;
68
+ try {
69
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
70
+ const len0 = WASM_VECTOR_LEN;
71
+ const ptr1 = passStringToWasm0(schema_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
72
+ const len1 = WASM_VECTOR_LEN;
73
+ const ret = wasm.jsql_create_table(ptr0, len0, ptr1, len1);
74
+ deferred3_0 = ret[0];
75
+ deferred3_1 = ret[1];
76
+ return getStringFromWasm0(ret[0], ret[1]);
77
+ } finally {
78
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
79
+ }
80
+ }
81
+ exports.jsql_create_table = jsql_create_table;
82
+
83
+ /**
84
+ * @param {string} name
85
+ * @returns {string}
86
+ */
87
+ function jsql_drop_table(name) {
88
+ let deferred2_0;
89
+ let deferred2_1;
90
+ try {
91
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
92
+ const len0 = WASM_VECTOR_LEN;
93
+ const ret = wasm.jsql_drop_table(ptr0, len0);
94
+ deferred2_0 = ret[0];
95
+ deferred2_1 = ret[1];
96
+ return getStringFromWasm0(ret[0], ret[1]);
97
+ } finally {
98
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
99
+ }
100
+ }
101
+ exports.jsql_drop_table = jsql_drop_table;
102
+
103
+ /**
104
+ * @param {string} table
105
+ * @param {string} filter_json
106
+ * @param {number} limit
107
+ * @param {number} offset
108
+ * @returns {string}
109
+ */
110
+ function jsql_find(table, filter_json, limit, offset) {
111
+ let deferred3_0;
112
+ let deferred3_1;
113
+ try {
114
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
+ const len0 = WASM_VECTOR_LEN;
116
+ const ptr1 = passStringToWasm0(filter_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
117
+ const len1 = WASM_VECTOR_LEN;
118
+ const ret = wasm.jsql_find(ptr0, len0, ptr1, len1, limit, offset);
119
+ deferred3_0 = ret[0];
120
+ deferred3_1 = ret[1];
121
+ return getStringFromWasm0(ret[0], ret[1]);
122
+ } finally {
123
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
124
+ }
125
+ }
126
+ exports.jsql_find = jsql_find;
127
+
128
+ /**
129
+ * @param {string} table
130
+ * @param {bigint} id
131
+ * @returns {string}
132
+ */
133
+ function jsql_find_by_id(table, id) {
134
+ let deferred2_0;
135
+ let deferred2_1;
136
+ try {
137
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
138
+ const len0 = WASM_VECTOR_LEN;
139
+ const ret = wasm.jsql_find_by_id(ptr0, len0, id);
140
+ deferred2_0 = ret[0];
141
+ deferred2_1 = ret[1];
142
+ return getStringFromWasm0(ret[0], ret[1]);
143
+ } finally {
144
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
145
+ }
146
+ }
147
+ exports.jsql_find_by_id = jsql_find_by_id;
148
+
149
+ /**
150
+ * @param {string} table
151
+ * @param {string} ids_json
152
+ * @returns {string}
153
+ */
154
+ function jsql_find_by_ids(table, ids_json) {
155
+ let deferred3_0;
156
+ let deferred3_1;
157
+ try {
158
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
+ const len0 = WASM_VECTOR_LEN;
160
+ const ptr1 = passStringToWasm0(ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
161
+ const len1 = WASM_VECTOR_LEN;
162
+ const ret = wasm.jsql_find_by_ids(ptr0, len0, ptr1, len1);
163
+ deferred3_0 = ret[0];
164
+ deferred3_1 = ret[1];
165
+ return getStringFromWasm0(ret[0], ret[1]);
166
+ } finally {
167
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
168
+ }
169
+ }
170
+ exports.jsql_find_by_ids = jsql_find_by_ids;
171
+
172
+ /**
173
+ * @param {string} table
174
+ * @param {string} data_json
175
+ * @returns {string}
176
+ */
177
+ function jsql_insert(table, data_json) {
178
+ let deferred3_0;
179
+ let deferred3_1;
180
+ try {
181
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
182
+ const len0 = WASM_VECTOR_LEN;
183
+ const ptr1 = passStringToWasm0(data_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
184
+ const len1 = WASM_VECTOR_LEN;
185
+ const ret = wasm.jsql_insert(ptr0, len0, ptr1, len1);
186
+ deferred3_0 = ret[0];
187
+ deferred3_1 = ret[1];
188
+ return getStringFromWasm0(ret[0], ret[1]);
189
+ } finally {
190
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
191
+ }
192
+ }
193
+ exports.jsql_insert = jsql_insert;
194
+
195
+ /**
196
+ * @param {string} table
197
+ * @param {Uint8Array} data
198
+ * @returns {string}
199
+ */
200
+ function jsql_insert_buf(table, data) {
201
+ let deferred3_0;
202
+ let deferred3_1;
203
+ try {
204
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
205
+ const len0 = WASM_VECTOR_LEN;
206
+ const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
207
+ const len1 = WASM_VECTOR_LEN;
208
+ const ret = wasm.jsql_insert_buf(ptr0, len0, ptr1, len1);
209
+ deferred3_0 = ret[0];
210
+ deferred3_1 = ret[1];
211
+ return getStringFromWasm0(ret[0], ret[1]);
212
+ } finally {
213
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
214
+ }
215
+ }
216
+ exports.jsql_insert_buf = jsql_insert_buf;
217
+
218
+ /**
219
+ * @param {string} table
220
+ * @param {Uint8Array} data
221
+ * @returns {string}
222
+ */
223
+ function jsql_insert_buf_count(table, data) {
224
+ let deferred3_0;
225
+ let deferred3_1;
226
+ try {
227
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
+ const len0 = WASM_VECTOR_LEN;
229
+ const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
230
+ const len1 = WASM_VECTOR_LEN;
231
+ const ret = wasm.jsql_insert_buf_count(ptr0, len0, ptr1, len1);
232
+ deferred3_0 = ret[0];
233
+ deferred3_1 = ret[1];
234
+ return getStringFromWasm0(ret[0], ret[1]);
235
+ } finally {
236
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
237
+ }
238
+ }
239
+ exports.jsql_insert_buf_count = jsql_insert_buf_count;
240
+
241
+ /**
242
+ * @param {string} table
243
+ * @param {string} json
244
+ * @returns {string}
245
+ */
246
+ function jsql_insert_json(table, json) {
247
+ let deferred3_0;
248
+ let deferred3_1;
249
+ try {
250
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
251
+ const len0 = WASM_VECTOR_LEN;
252
+ const ptr1 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
+ const len1 = WASM_VECTOR_LEN;
254
+ const ret = wasm.jsql_insert_json(ptr0, len0, ptr1, len1);
255
+ deferred3_0 = ret[0];
256
+ deferred3_1 = ret[1];
257
+ return getStringFromWasm0(ret[0], ret[1]);
258
+ } finally {
259
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
260
+ }
261
+ }
262
+ exports.jsql_insert_json = jsql_insert_json;
263
+
264
+ /**
265
+ * @param {string} table
266
+ * @param {bigint} id
267
+ * @returns {string}
268
+ */
269
+ function jsql_remove_by_id(table, id) {
270
+ let deferred2_0;
271
+ let deferred2_1;
272
+ try {
273
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
274
+ const len0 = WASM_VECTOR_LEN;
275
+ const ret = wasm.jsql_remove_by_id(ptr0, len0, id);
276
+ deferred2_0 = ret[0];
277
+ deferred2_1 = ret[1];
278
+ return getStringFromWasm0(ret[0], ret[1]);
279
+ } finally {
280
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
281
+ }
282
+ }
283
+ exports.jsql_remove_by_id = jsql_remove_by_id;
284
+
285
+ /**
286
+ * @param {string} table
287
+ * @param {string} ids_json
288
+ * @returns {string}
289
+ */
290
+ function jsql_remove_by_ids(table, ids_json) {
291
+ let deferred3_0;
292
+ let deferred3_1;
293
+ try {
294
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
+ const len0 = WASM_VECTOR_LEN;
296
+ const ptr1 = passStringToWasm0(ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
+ const len1 = WASM_VECTOR_LEN;
298
+ const ret = wasm.jsql_remove_by_ids(ptr0, len0, ptr1, len1);
299
+ deferred3_0 = ret[0];
300
+ deferred3_1 = ret[1];
301
+ return getStringFromWasm0(ret[0], ret[1]);
302
+ } finally {
303
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
304
+ }
305
+ }
306
+ exports.jsql_remove_by_ids = jsql_remove_by_ids;
307
+
308
+ function jsql_reset() {
309
+ wasm.jsql_reset();
310
+ }
311
+ exports.jsql_reset = jsql_reset;
312
+
313
+ /**
314
+ * @param {string} tx_id
315
+ * @returns {string}
316
+ */
317
+ function jsql_rollback_tx(tx_id) {
318
+ let deferred2_0;
319
+ let deferred2_1;
320
+ try {
321
+ const ptr0 = passStringToWasm0(tx_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
+ const len0 = WASM_VECTOR_LEN;
323
+ const ret = wasm.jsql_rollback_tx(ptr0, len0);
324
+ deferred2_0 = ret[0];
325
+ deferred2_1 = ret[1];
326
+ return getStringFromWasm0(ret[0], ret[1]);
327
+ } finally {
328
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
329
+ }
330
+ }
331
+ exports.jsql_rollback_tx = jsql_rollback_tx;
332
+
333
+ /**
334
+ * @param {string} table
335
+ * @param {bigint} id
336
+ * @param {string} data_json
337
+ * @returns {string}
338
+ */
339
+ function jsql_update_by_id(table, id, data_json) {
340
+ let deferred3_0;
341
+ let deferred3_1;
342
+ try {
343
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
344
+ const len0 = WASM_VECTOR_LEN;
345
+ const ptr1 = passStringToWasm0(data_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
+ const len1 = WASM_VECTOR_LEN;
347
+ const ret = wasm.jsql_update_by_id(ptr0, len0, id, ptr1, len1);
348
+ deferred3_0 = ret[0];
349
+ deferred3_1 = ret[1];
350
+ return getStringFromWasm0(ret[0], ret[1]);
351
+ } finally {
352
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
353
+ }
354
+ }
355
+ exports.jsql_update_by_id = jsql_update_by_id;
356
+
357
+ /**
358
+ * @param {string} table
359
+ * @param {string} batch_json
360
+ * @returns {string}
361
+ */
362
+ function jsql_update_by_ids(table, batch_json) {
363
+ let deferred3_0;
364
+ let deferred3_1;
365
+ try {
366
+ const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
367
+ const len0 = WASM_VECTOR_LEN;
368
+ const ptr1 = passStringToWasm0(batch_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
369
+ const len1 = WASM_VECTOR_LEN;
370
+ const ret = wasm.jsql_update_by_ids(ptr0, len0, ptr1, len1);
371
+ deferred3_0 = ret[0];
372
+ deferred3_1 = ret[1];
373
+ return getStringFromWasm0(ret[0], ret[1]);
374
+ } finally {
375
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
376
+ }
377
+ }
378
+ exports.jsql_update_by_ids = jsql_update_by_ids;
379
+ function __wbg_get_imports() {
380
+ const import0 = {
381
+ __proto__: null,
382
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
383
+ const obj = arg1;
384
+ const ret = typeof(obj) === 'string' ? obj : undefined;
385
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
+ var len1 = WASM_VECTOR_LEN;
387
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
388
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
389
+ },
390
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
391
+ throw new Error(getStringFromWasm0(arg0, arg1));
392
+ },
393
+ __wbg_new_cc984128914cfc6f: function(arg0) {
394
+ const ret = new Date(arg0);
395
+ return ret;
396
+ },
397
+ __wbg_now_86c0d4ba3fa605b8: function() {
398
+ const ret = Date.now();
399
+ return ret;
400
+ },
401
+ __wbg_toISOString_706fbe321055ee58: function(arg0) {
402
+ const ret = arg0.toISOString();
403
+ return ret;
404
+ },
405
+ __wbindgen_cast_0000000000000001: function(arg0) {
406
+ // Cast intrinsic for `F64 -> Externref`.
407
+ const ret = arg0;
408
+ return ret;
409
+ },
410
+ __wbindgen_init_externref_table: function() {
411
+ const table = wasm.__wbindgen_externrefs;
412
+ const offset = table.grow(4);
413
+ table.set(0, undefined);
414
+ table.set(offset + 0, undefined);
415
+ table.set(offset + 1, null);
416
+ table.set(offset + 2, true);
417
+ table.set(offset + 3, false);
418
+ },
419
+ };
420
+ return {
421
+ __proto__: null,
422
+ "./jsql_neo_wasm_bg.js": import0,
423
+ };
424
+ }
425
+
426
+ let cachedDataViewMemory0 = null;
427
+ function getDataViewMemory0() {
428
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
429
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
430
+ }
431
+ return cachedDataViewMemory0;
432
+ }
433
+
434
+ function getStringFromWasm0(ptr, len) {
435
+ return decodeText(ptr >>> 0, len);
436
+ }
437
+
438
+ let cachedUint8ArrayMemory0 = null;
439
+ function getUint8ArrayMemory0() {
440
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
441
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
442
+ }
443
+ return cachedUint8ArrayMemory0;
444
+ }
445
+
446
+ function isLikeNone(x) {
447
+ return x === undefined || x === null;
448
+ }
449
+
450
+ function passArray8ToWasm0(arg, malloc) {
451
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
452
+ getUint8ArrayMemory0().set(arg, ptr / 1);
453
+ WASM_VECTOR_LEN = arg.length;
454
+ return ptr;
455
+ }
456
+
457
+ function passStringToWasm0(arg, malloc, realloc) {
458
+ if (realloc === undefined) {
459
+ const buf = cachedTextEncoder.encode(arg);
460
+ const ptr = malloc(buf.length, 1) >>> 0;
461
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
462
+ WASM_VECTOR_LEN = buf.length;
463
+ return ptr;
464
+ }
465
+
466
+ let len = arg.length;
467
+ let ptr = malloc(len, 1) >>> 0;
468
+
469
+ const mem = getUint8ArrayMemory0();
470
+
471
+ let offset = 0;
472
+
473
+ for (; offset < len; offset++) {
474
+ const code = arg.charCodeAt(offset);
475
+ if (code > 0x7F) break;
476
+ mem[ptr + offset] = code;
477
+ }
478
+ if (offset !== len) {
479
+ if (offset !== 0) {
480
+ arg = arg.slice(offset);
481
+ }
482
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
483
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
484
+ const ret = cachedTextEncoder.encodeInto(arg, view);
485
+
486
+ offset += ret.written;
487
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
488
+ }
489
+
490
+ WASM_VECTOR_LEN = offset;
491
+ return ptr;
492
+ }
493
+
494
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
495
+ cachedTextDecoder.decode();
496
+ function decodeText(ptr, len) {
497
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
498
+ }
499
+
500
+ const cachedTextEncoder = new TextEncoder();
501
+
502
+ if (!('encodeInto' in cachedTextEncoder)) {
503
+ cachedTextEncoder.encodeInto = function (arg, view) {
504
+ const buf = cachedTextEncoder.encode(arg);
505
+ view.set(buf);
506
+ return {
507
+ read: arg.length,
508
+ written: buf.length
509
+ };
510
+ };
511
+ }
512
+
513
+ let WASM_VECTOR_LEN = 0;
514
+
515
+ const wasmPath = `${__dirname}/jsql_neo_wasm_bg.wasm`;
516
+ const wasmBytes = require('fs').readFileSync(wasmPath);
517
+ const wasmModule = new WebAssembly.Module(wasmBytes);
518
+ let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
519
+ let wasm = wasmInstance.exports;
520
+ wasm.__wbindgen_start();