Packages

Storage devices and guest plumbing for databases running in WebAssembly

Current section

Files

Jump to
wasm_storage README.md
Raw

README.md

# wasm_storage

Storage devices, namespaces and BEAM-local ownership for database engines
that run inside WebAssembly on erlang_wasm, and the plumbing that connects a
guest to its storage. Used by `wasm_redb` and `wasm_sqlite`.

- devices: `wasm_storage_file`, `wasm_storage_memory`, `wasm_storage_fault`
- namespaces: `wasm_storage_dir`, `wasm_storage_memory_ns`
- ownership: `wasm_storage_owner`
- guests: `wasm_storage_guest`, `wasm_storage_host`
- a conformance kit for your own provider: `wasm_storage_conformance`

The contract every device keeps is in
[the storage contract](https://github.com/benoitc/wasm_storage/blob/main/docs/storage-contract.md); to store data
somewhere new, follow [the provider guide](https://github.com/benoitc/wasm_storage/blob/main/docs/custom-provider.md).