@moyodb/sdk 0.0.0-alpha.3 → 1.0.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.
- package/LICENSE +202 -0
- package/README.md +10 -2
- package/dist/assets/worker-R2dy1Ju5.js +4 -0
- package/dist/assets/worker-R2dy1Ju5.js.map +1 -0
- package/dist/change-events.d.ts.map +1 -1
- package/dist/codec.d.ts.map +1 -1
- package/dist/compression.d.ts.map +1 -1
- package/dist/engine/README.md +20 -4
- package/dist/engine/moyodb_engine.d.ts +115 -54
- package/dist/engine/moyodb_engine.js +885 -391
- package/dist/engine/moyodb_engine_bg.wasm +0 -0
- package/dist/engine/moyodb_engine_bg.wasm.d.ts +55 -47
- package/dist/engine/package.json +3 -3
- package/dist/engine/snippets/moyodb-engine-8ebe6af0cc2e81b7/js/opfs_shim.js +513 -0
- package/dist/engine/snippets/moyodb-engine-cff0a0e2441a7a8f/js/opfs_shim.js +192 -81
- package/dist/errors.d.ts +8 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/indexing.d.ts.map +1 -1
- package/dist/moyodb-sdk.js +1853 -1985
- package/dist/moyodb-sdk.js.map +1 -1
- package/dist/registry.d.ts +2 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/subscriptions.d.ts.map +1 -1
- package/dist/types.d.ts +29 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/worker-api.d.ts +51 -37
- package/dist/worker-api.d.ts.map +1 -1
- package/dist/worker-client.d.ts +5 -2
- package/dist/worker-client.d.ts.map +1 -1
- package/dist/worker-protocol.d.ts +14 -3
- package/dist/worker-protocol.d.ts.map +1 -1
- package/dist/worker-server.d.ts.map +1 -1
- package/package.json +10 -8
- package/dist/assets/worker-CaOzbBz1.js +0 -2351
- package/dist/assets/worker-CaOzbBz1.js.map +0 -1
- package/dist/moyodb-sdk.umd.cjs +0 -2
- package/dist/moyodb-sdk.umd.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-events.d.ts","sourceRoot":"","sources":["../src/change-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,EAAE,CAAC;CACvB;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,EAAE,CAAC;CAC5B;AACD,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,aAAa,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"change-events.d.ts","sourceRoot":"","sources":["../src/change-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,EAAE,CAAC;CACvB;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,EAAE,CAAC;CAC5B;AACD,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACd;AACD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,aAAa,GAAG,cAAc,CAAC;AAkB3G,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAShF"}
|
package/dist/codec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../src/codec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAarC,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAChD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEpD;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEpD;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAErD;AACD,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,GAAG,CAAC,CAElD;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CASzD;
|
|
1
|
+
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../src/codec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAarC,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAChD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEpD;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEpD;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAErD;AACD,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,GAAG,CAAC,CAElD;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CASzD;AAMD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC,GAAG,UAAU,CAK5F;AACD,wBAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,eAAe,EAAE,GAAG,UAAU,CAEnE;AACD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAEtE;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,UAAU,CAEnF;AACD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,EAAE,CA2B9D;AACD,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CASrE;AACD,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAGrD;AACD,wBAAgB,gBAAgB,CAAC,GAAG,KAAK,EAAE,eAAe,EAAE,GAAG,KAAK,CAEnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../src/compression.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,KAAK,CAAC;AAUxD,eAAO,MAAM,iCAAiC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../src/compression.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,KAAK,CAAC;AAUxD,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAuKtD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAY1E;AACD,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAYnH;AACD,wBAAsB,sBAAsB,CACxC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE;IACL,MAAM,EAAE,OAAO,CAAC;CACnB,GACF,OAAO,CAAC,UAAU,CAAC,CAqDrB;AACD,wBAAsB,2BAA2B,CAC7C,QAAQ,EAAE,UAAU,EACpB,WAAW,EAAE,iBAAiB,GAC/B,OAAO,CAAC,UAAU,CAAC,CAMrB;AACD,wBAAsB,yBAAyB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAmCzF"}
|
package/dist/engine/README.md
CHANGED
|
@@ -19,12 +19,12 @@ Experimental Rust/WASM transactional key-value storage engine for browser apps.
|
|
|
19
19
|
|
|
20
20
|
It provides ordered byte keys, range scans, snapshots, TTL, recovery checks, and a TypeScript SDK that talks to a dedicated Worker-backed runtime over OPFS.
|
|
21
21
|
|
|
22
|
-
>
|
|
22
|
+
> Release: **1.0.0**. MoyoDB is experimental. Validate durability and compatibility for your workload before using it for production data.
|
|
23
23
|
|
|
24
24
|
## Quick start
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install @moyodb/sdk@
|
|
27
|
+
npm install @moyodb/sdk@1.0.0
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
```ts
|
|
@@ -40,13 +40,29 @@ console.log(value ? utf8Decode(value) : null);
|
|
|
40
40
|
await db.close();
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
## Verification
|
|
44
|
+
|
|
45
|
+
- `proofs/moyodb_proofs` is a Lean 4 executable specification, not a proof of the storage engine. It models the store as a sorted association list, the WAL as a list of page-image and commit records, and transactions as write batches over that list. Its theorems (lookup after insert, idempotent delete, scan bounds, an incomplete WAL tail is ignored, snapshot stability) hold for that model only; they say nothing about the Rust B-tree, page and checksum layout, OPFS I/O, flush ordering, or power loss.
|
|
46
|
+
- The traces exported to `proofs/artifacts` are replayed against the Rust engine by `crates/engine/tests/proof_artifacts.rs` as conformance scenarios.
|
|
47
|
+
- Crash behavior is covered by tests: `crates/engine/tests/crash_matrix.rs`, `crates/engine/tests/fault_injection.rs` (failed and short writes plus torn flushes at every WAL, main-file, and superblock operation during commit, checkpoint, and recovery), and `crates/engine/js/opfs_shim.test.mjs` for control-file publication.
|
|
44
48
|
|
|
45
49
|
## Limitations
|
|
46
50
|
|
|
47
|
-
-
|
|
51
|
+
- Experimental software; storage format and SDK API may still change.
|
|
48
52
|
- Browser-only runtime; there is no Node.js persistence API.
|
|
49
53
|
- Requires OPFS and Worker-side sync access handles.
|
|
50
54
|
- One active owner per database and one write transaction at a time.
|
|
51
55
|
- Raw byte keys and values; no SQL/query planner.
|
|
52
56
|
- No cloud sync, multi-tab concurrent writers, SharedWorker runtime, or IndexedDB fallback.
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
Copyright © 2026 Eluvane. The licensor is Eluvane; licensing requests go to [keiko1337@proton.me](mailto:keiko1337@proton.me). The official repository is [eluvane/MoyoDB](https://github.com/eluvane/MoyoDB).
|
|
61
|
+
|
|
62
|
+
MoyoDB **1.0.0** is the first release covered by the [Mother of Licenses 1.0](LICENSE) (`LicenseRef-MoL-1.0`). Earlier published releases retain their original licenses. Third-party dependencies and any separately licensed material retain their own licenses and notices.
|
|
63
|
+
|
|
64
|
+
MoL permits royalty-free use, including commercial use of unmodified code or Authorized Builds inside your own products. Private modifications and production patches are permitted for your own internal use, provided the modified code is not distributed, published, made available to third parties, or used to create a standalone or competing product or provide Project-as-a-Service. The upstream contribution workflow in Section 6 remains permitted. Other publication or distribution of modified versions, independent forks, resale of MoyoDB itself, and hosting MoyoDB itself as a service require written permission. MoyoDB under MoL is source-available, not OSI-approved open source.
|
|
65
|
+
|
|
66
|
+
## Contributing
|
|
67
|
+
|
|
68
|
+
Read [CONTRIBUTING.md](CONTRIBUTING.md) and the license before submitting changes. Contributions must include explicit acceptance of the contribution and patent terms in Sections 9 and 10.
|
|
@@ -4,41 +4,82 @@
|
|
|
4
4
|
export class WasmEngine {
|
|
5
5
|
free(): void;
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
|
+
/**
|
|
8
|
+
* Closes without a checkpoint. Used for an engine whose files are
|
|
9
|
+
* about to be replaced or whose memory is not trusted.
|
|
10
|
+
*/
|
|
11
|
+
abandon(): void;
|
|
7
12
|
apply_batch(tx_id: bigint, store: string, ops: any): any;
|
|
8
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Returns one byte per op: for puts whether the key existed before,
|
|
15
|
+
* for deletes whether a key was deleted. The op kinds are the caller's.
|
|
16
|
+
*/
|
|
17
|
+
apply_batch_packed(tx_id: bigint, store: string, ops: Uint8Array): Uint8Array;
|
|
9
18
|
begin_tx(mode: string): bigint;
|
|
19
|
+
change_feed_policy(): any;
|
|
10
20
|
changes_since(tx_id: bigint, options: any): any;
|
|
21
|
+
checkpoint(): void;
|
|
11
22
|
clear_store(tx_id: bigint, name: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Checkpoints (when healthy) and closes. The handle is released even
|
|
25
|
+
* when closing fails, so a retry never reuses a half-closed engine.
|
|
26
|
+
*/
|
|
12
27
|
close(): void;
|
|
13
28
|
commit_tx(tx_id: bigint): bigint;
|
|
29
|
+
/**
|
|
30
|
+
* Streams this database into `target`, a freshly opened empty
|
|
31
|
+
* generation. Returns the txid the target was published at.
|
|
32
|
+
*/
|
|
33
|
+
compact_into(target: WasmEngine): bigint;
|
|
14
34
|
create_store(tx_id: bigint, name: string, options: any): void;
|
|
15
35
|
delete(tx_id: bigint, store: string, key: Uint8Array): boolean;
|
|
16
36
|
delete_many(tx_id: bigint, store: string, keys: any): any;
|
|
17
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Returns one byte per key: 1 if the key existed and was deleted.
|
|
39
|
+
*/
|
|
40
|
+
delete_many_packed(tx_id: bigint, store: string, keys: Uint8Array): Uint8Array;
|
|
18
41
|
drop_store(tx_id: bigint, name: string): void;
|
|
19
42
|
export_snapshot(): Uint8Array;
|
|
20
43
|
get(tx_id: bigint, store: string, key: Uint8Array): any;
|
|
21
44
|
get_many(tx_id: bigint, store: string, keys: any): any;
|
|
22
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Keys arrive packed; values leave packed as
|
|
47
|
+
* `u32 count | count x u32 length (u32::MAX = missing) | bytes`,
|
|
48
|
+
* one buffer instead of one JS array per value.
|
|
49
|
+
*/
|
|
50
|
+
get_many_packed(tx_id: bigint, store: string, keys: Uint8Array): Uint8Array;
|
|
23
51
|
get_schema_version(): bigint;
|
|
24
52
|
has(tx_id: bigint, store: string, key: Uint8Array): boolean;
|
|
53
|
+
health(): any;
|
|
25
54
|
import_snapshot(data: Uint8Array): bigint;
|
|
26
55
|
list_store_configs(): any;
|
|
27
56
|
list_stores(): any;
|
|
57
|
+
needs_recovery(): boolean;
|
|
28
58
|
constructor();
|
|
29
|
-
open(name: string, options: any): Promise<void>;
|
|
30
59
|
openGeneration(name: string, generation_name: string, options: any): Promise<void>;
|
|
31
|
-
|
|
60
|
+
open(name: string, options: any): Promise<void>;
|
|
61
|
+
put(tx_id: bigint, store: string, key: Uint8Array, value: Uint8Array, options: any): boolean;
|
|
32
62
|
put_many(tx_id: bigint, store: string, entries: any, options: any): any;
|
|
33
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Returns one byte per entry: 1 if the key existed before the put.
|
|
65
|
+
*/
|
|
66
|
+
put_many_packed(tx_id: bigint, store: string, entries: Uint8Array, options: any): Uint8Array;
|
|
67
|
+
recover(): any;
|
|
34
68
|
reset(): bigint;
|
|
35
69
|
rollback_tx(tx_id: bigint): void;
|
|
36
70
|
scan(tx_id: bigint, store: string, range: any): any;
|
|
71
|
+
set_change_feed_policy(tx_id: bigint, policy: any): void;
|
|
37
72
|
set_failpoint(failpoint: any): void;
|
|
38
73
|
set_schema_version(tx_id: bigint, version: bigint): void;
|
|
39
74
|
stats(): any;
|
|
40
75
|
}
|
|
41
76
|
|
|
77
|
+
/**
|
|
78
|
+
* `"debug"` or `"release"`; benchmark reports record which build they
|
|
79
|
+
* measured instead of trusting the build script that was supposed to run.
|
|
80
|
+
*/
|
|
81
|
+
export function buildProfile(): string;
|
|
82
|
+
|
|
42
83
|
export function cleanupInactiveEntries(name: string): Promise<void>;
|
|
43
84
|
|
|
44
85
|
export function dbDirectorySize(name: string): Promise<number>;
|
|
@@ -47,61 +88,81 @@ export function deleteDB(name: string): Promise<void>;
|
|
|
47
88
|
|
|
48
89
|
export function prepareRebuildTarget(name: string): Promise<any>;
|
|
49
90
|
|
|
50
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Active generation from the control file, or `null` for the legacy
|
|
93
|
+
* layout. A corrupt control file is an error, never `null`.
|
|
94
|
+
*/
|
|
95
|
+
export function readActiveGeneration(name: string): Promise<any>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Publishes `generation_name` as the active generation. With
|
|
99
|
+
* `expected_current` set, the swap fails unless the control file still
|
|
100
|
+
* names that generation (or is absent, for `null`), and the written
|
|
101
|
+
* control file is read back and verified before this resolves.
|
|
102
|
+
*/
|
|
103
|
+
export function swapActiveGeneration(name: string, generation_name: string, expected_current?: string | null): Promise<void>;
|
|
51
104
|
|
|
52
105
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
53
106
|
|
|
54
107
|
export interface InitOutput {
|
|
55
108
|
readonly memory: WebAssembly.Memory;
|
|
56
109
|
readonly __wbg_wasmengine_free: (a: number, b: number) => void;
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
110
|
+
readonly buildProfile: (a: number) => void;
|
|
111
|
+
readonly cleanupInactiveEntries: (a: number, b: number) => number;
|
|
112
|
+
readonly dbDirectorySize: (a: number, b: number) => number;
|
|
113
|
+
readonly deleteDB: (a: number, b: number) => number;
|
|
114
|
+
readonly prepareRebuildTarget: (a: number, b: number) => number;
|
|
115
|
+
readonly readActiveGeneration: (a: number, b: number) => number;
|
|
116
|
+
readonly swapActiveGeneration: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
117
|
+
readonly wasmengine_abandon: (a: number, b: number) => void;
|
|
118
|
+
readonly wasmengine_apply_batch: (a: number, b: number, c: bigint, d: number, e: number, f: number) => void;
|
|
119
|
+
readonly wasmengine_apply_batch_packed: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
120
|
+
readonly wasmengine_begin_tx: (a: number, b: number, c: number, d: number) => void;
|
|
121
|
+
readonly wasmengine_change_feed_policy: (a: number, b: number) => void;
|
|
122
|
+
readonly wasmengine_changes_since: (a: number, b: number, c: bigint, d: number) => void;
|
|
123
|
+
readonly wasmengine_checkpoint: (a: number, b: number) => void;
|
|
124
|
+
readonly wasmengine_clear_store: (a: number, b: number, c: bigint, d: number, e: number) => void;
|
|
125
|
+
readonly wasmengine_close: (a: number, b: number) => void;
|
|
126
|
+
readonly wasmengine_commit_tx: (a: number, b: number, c: bigint) => void;
|
|
127
|
+
readonly wasmengine_compact_into: (a: number, b: number, c: number) => void;
|
|
128
|
+
readonly wasmengine_create_store: (a: number, b: number, c: bigint, d: number, e: number, f: number) => void;
|
|
129
|
+
readonly wasmengine_delete: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
130
|
+
readonly wasmengine_delete_many: (a: number, b: number, c: bigint, d: number, e: number, f: number) => void;
|
|
131
|
+
readonly wasmengine_delete_many_packed: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
132
|
+
readonly wasmengine_drop_store: (a: number, b: number, c: bigint, d: number, e: number) => void;
|
|
133
|
+
readonly wasmengine_export_snapshot: (a: number, b: number) => void;
|
|
134
|
+
readonly wasmengine_get: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
135
|
+
readonly wasmengine_get_many: (a: number, b: number, c: bigint, d: number, e: number, f: number) => void;
|
|
136
|
+
readonly wasmengine_get_many_packed: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
137
|
+
readonly wasmengine_get_schema_version: (a: number, b: number) => void;
|
|
138
|
+
readonly wasmengine_has: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
139
|
+
readonly wasmengine_health: (a: number, b: number) => void;
|
|
140
|
+
readonly wasmengine_import_snapshot: (a: number, b: number, c: number, d: number) => void;
|
|
141
|
+
readonly wasmengine_list_store_configs: (a: number, b: number) => void;
|
|
142
|
+
readonly wasmengine_list_stores: (a: number, b: number) => void;
|
|
143
|
+
readonly wasmengine_needs_recovery: (a: number, b: number) => void;
|
|
83
144
|
readonly wasmengine_new: () => number;
|
|
84
|
-
readonly wasmengine_open: (a: number, b: number, c: number, d:
|
|
85
|
-
readonly wasmengine_openGeneration: (a: number, b: number, c: number, d: number, e: number, f:
|
|
86
|
-
readonly wasmengine_put: (a: number, b:
|
|
87
|
-
readonly wasmengine_put_many: (a: number, b:
|
|
88
|
-
readonly wasmengine_put_many_packed: (a: number, b:
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
145
|
+
readonly wasmengine_open: (a: number, b: number, c: number, d: number) => number;
|
|
146
|
+
readonly wasmengine_openGeneration: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
147
|
+
readonly wasmengine_put: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
148
|
+
readonly wasmengine_put_many: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number) => void;
|
|
149
|
+
readonly wasmengine_put_many_packed: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number) => void;
|
|
150
|
+
readonly wasmengine_recover: (a: number, b: number) => void;
|
|
151
|
+
readonly wasmengine_reset: (a: number, b: number) => void;
|
|
152
|
+
readonly wasmengine_rollback_tx: (a: number, b: number, c: bigint) => void;
|
|
153
|
+
readonly wasmengine_scan: (a: number, b: number, c: bigint, d: number, e: number, f: number) => void;
|
|
154
|
+
readonly wasmengine_set_change_feed_policy: (a: number, b: number, c: bigint, d: number) => void;
|
|
155
|
+
readonly wasmengine_set_failpoint: (a: number, b: number, c: number) => void;
|
|
156
|
+
readonly wasmengine_set_schema_version: (a: number, b: number, c: bigint, d: bigint) => void;
|
|
157
|
+
readonly wasmengine_stats: (a: number, b: number) => void;
|
|
158
|
+
readonly __wasm_bindgen_func_elem_665: (a: number, b: number, c: number, d: number) => void;
|
|
159
|
+
readonly __wasm_bindgen_func_elem_680: (a: number, b: number, c: number, d: number) => void;
|
|
160
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
161
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
162
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
163
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
164
|
+
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
165
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
105
166
|
}
|
|
106
167
|
|
|
107
168
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|