@rainlanguage/sqlite-web 0.0.1-alpha.7 → 0.0.1
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/package.json +5 -1
- package/sqlite_web.d.ts +3 -3
- package/sqlite_web.js +82 -9
- package/sqlite_web_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/sqlite-web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/rainlanguage/sqlite-web"
|
|
8
|
+
},
|
|
5
9
|
"files": [
|
|
6
10
|
"sqlite_web_bg.wasm",
|
|
7
11
|
"sqlite_web.js",
|
package/sqlite_web.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class SQLiteWasmDatabase {
|
|
|
13
13
|
/**
|
|
14
14
|
* Create a new database connection with fully embedded worker
|
|
15
15
|
*/
|
|
16
|
-
static new(db_name: string): WasmEncodedResult<SQLiteWasmDatabase
|
|
16
|
+
static new(db_name: string): Promise<WasmEncodedResult<SQLiteWasmDatabase>>;
|
|
17
17
|
/**
|
|
18
18
|
* Execute a SQL query (optionally parameterized via JS Array)
|
|
19
19
|
*
|
|
@@ -35,8 +35,8 @@ export interface InitOutput {
|
|
|
35
35
|
readonly __externref_table_alloc: () => number;
|
|
36
36
|
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
37
37
|
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
38
|
+
readonly closure2_externref_shim: (a: number, b: number, c: any) => void;
|
|
39
|
+
readonly closure25_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
40
40
|
readonly __wbindgen_start: () => void;
|
|
41
41
|
}
|
|
42
42
|
|
package/sqlite_web.js
CHANGED
|
@@ -197,12 +197,12 @@ function debugString(val) {
|
|
|
197
197
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
198
198
|
return className;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
wasm.
|
|
200
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
201
|
+
wasm.closure2_externref_shim(arg0, arg1, arg2);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function
|
|
205
|
-
wasm.
|
|
204
|
+
function __wbg_adapter_91(arg0, arg1, arg2, arg3) {
|
|
205
|
+
wasm.closure25_externref_shim(arg0, arg1, arg2, arg3);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
const SQLiteWasmDatabaseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -321,6 +321,14 @@ function __wbg_get_imports() {
|
|
|
321
321
|
const ret = arg0.data;
|
|
322
322
|
return ret;
|
|
323
323
|
};
|
|
324
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
325
|
+
const ret = arg0.done;
|
|
326
|
+
return ret;
|
|
327
|
+
};
|
|
328
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
329
|
+
const ret = Object.entries(arg0);
|
|
330
|
+
return ret;
|
|
331
|
+
};
|
|
324
332
|
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
325
333
|
const ret = Reflect.get(arg0, arg1);
|
|
326
334
|
return ret;
|
|
@@ -339,6 +347,16 @@ function __wbg_get_imports() {
|
|
|
339
347
|
const ret = result;
|
|
340
348
|
return ret;
|
|
341
349
|
};
|
|
350
|
+
imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
351
|
+
let result;
|
|
352
|
+
try {
|
|
353
|
+
result = arg0 instanceof Map;
|
|
354
|
+
} catch (_) {
|
|
355
|
+
result = false;
|
|
356
|
+
}
|
|
357
|
+
const ret = result;
|
|
358
|
+
return ret;
|
|
359
|
+
};
|
|
342
360
|
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
343
361
|
let result;
|
|
344
362
|
try {
|
|
@@ -353,6 +371,14 @@ function __wbg_get_imports() {
|
|
|
353
371
|
const ret = Array.isArray(arg0);
|
|
354
372
|
return ret;
|
|
355
373
|
};
|
|
374
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
375
|
+
const ret = Number.isSafeInteger(arg0);
|
|
376
|
+
return ret;
|
|
377
|
+
};
|
|
378
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
379
|
+
const ret = Symbol.iterator;
|
|
380
|
+
return ret;
|
|
381
|
+
};
|
|
356
382
|
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
357
383
|
const ret = arg0.length;
|
|
358
384
|
return ret;
|
|
@@ -368,7 +394,7 @@ function __wbg_get_imports() {
|
|
|
368
394
|
const a = state0.a;
|
|
369
395
|
state0.a = 0;
|
|
370
396
|
try {
|
|
371
|
-
return
|
|
397
|
+
return __wbg_adapter_91(a, state0.b, arg0, arg1);
|
|
372
398
|
} finally {
|
|
373
399
|
state0.a = a;
|
|
374
400
|
}
|
|
@@ -403,6 +429,14 @@ function __wbg_get_imports() {
|
|
|
403
429
|
const ret = new Blob(arg0, arg1);
|
|
404
430
|
return ret;
|
|
405
431
|
}, arguments) };
|
|
432
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
433
|
+
const ret = arg0.next;
|
|
434
|
+
return ret;
|
|
435
|
+
};
|
|
436
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
437
|
+
const ret = arg0.next();
|
|
438
|
+
return ret;
|
|
439
|
+
}, arguments) };
|
|
406
440
|
imports.wbg.__wbg_postMessage_6edafa8f7b9c2f52 = function() { return handleError(function (arg0, arg1) {
|
|
407
441
|
arg0.postMessage(arg1);
|
|
408
442
|
}, arguments) };
|
|
@@ -472,6 +506,24 @@ function __wbg_get_imports() {
|
|
|
472
506
|
const ret = arg0.toString(arg1);
|
|
473
507
|
return ret;
|
|
474
508
|
}, arguments) };
|
|
509
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
510
|
+
const ret = arg0.value;
|
|
511
|
+
return ret;
|
|
512
|
+
};
|
|
513
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
514
|
+
const ret = arg0;
|
|
515
|
+
return ret;
|
|
516
|
+
};
|
|
517
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
518
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
519
|
+
return ret;
|
|
520
|
+
};
|
|
521
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
522
|
+
const v = arg1;
|
|
523
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
524
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
525
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
526
|
+
};
|
|
475
527
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
476
528
|
const v = arg0;
|
|
477
529
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -486,12 +538,12 @@ function __wbg_get_imports() {
|
|
|
486
538
|
const ret = false;
|
|
487
539
|
return ret;
|
|
488
540
|
};
|
|
489
|
-
imports.wbg.
|
|
490
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
541
|
+
imports.wbg.__wbindgen_closure_wrapper1061 = function(arg0, arg1, arg2) {
|
|
542
|
+
const ret = makeMutClosure(arg0, arg1, 49, __wbg_adapter_50);
|
|
491
543
|
return ret;
|
|
492
544
|
};
|
|
493
|
-
imports.wbg.
|
|
494
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
545
|
+
imports.wbg.__wbindgen_closure_wrapper77 = function(arg0, arg1, arg2) {
|
|
546
|
+
const ret = makeMutClosure(arg0, arg1, 3, __wbg_adapter_50);
|
|
495
547
|
return ret;
|
|
496
548
|
};
|
|
497
549
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -501,6 +553,14 @@ function __wbg_get_imports() {
|
|
|
501
553
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
502
554
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
503
555
|
};
|
|
556
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
557
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
558
|
+
return ret;
|
|
559
|
+
};
|
|
560
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
561
|
+
const ret = arg0 in arg1;
|
|
562
|
+
return ret;
|
|
563
|
+
};
|
|
504
564
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
505
565
|
const table = wasm.__wbindgen_export_4;
|
|
506
566
|
const offset = table.grow(4);
|
|
@@ -523,10 +583,23 @@ function __wbg_get_imports() {
|
|
|
523
583
|
const ret = arg0 === null;
|
|
524
584
|
return ret;
|
|
525
585
|
};
|
|
586
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
587
|
+
const val = arg0;
|
|
588
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
589
|
+
return ret;
|
|
590
|
+
};
|
|
526
591
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
527
592
|
const ret = arg0 === undefined;
|
|
528
593
|
return ret;
|
|
529
594
|
};
|
|
595
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
596
|
+
const ret = arg0 === arg1;
|
|
597
|
+
return ret;
|
|
598
|
+
};
|
|
599
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
600
|
+
const ret = arg0 == arg1;
|
|
601
|
+
return ret;
|
|
602
|
+
};
|
|
530
603
|
imports.wbg.__wbindgen_memory = function() {
|
|
531
604
|
const ret = wasm.memory;
|
|
532
605
|
return ret;
|
package/sqlite_web_bg.wasm
CHANGED
|
Binary file
|