Expand description
wasm-dbms-memory provides runtime-agnostic memory abstraction and
page management for the wasm-dbms framework.
This crate contains:
MemoryProvidertrait for abstracting memory backendsHeapMemoryProviderfor testingMemoryManagerfor page-level memory operationsSchemaRegistryfor table schema persistenceAccessControltrait for pluggable access controlAccessControlListfor identity-based access controlNoAccessControlfor runtimes without access controlTableRegistryfor record-level storage and retrieval
Re-exports§
pub use self::table_registry::NextRecord;pub use self::table_registry::TableReader;pub use self::table_registry::TableRegistry;
Modules§
- prelude
- Prelude re-exports for convenient use.
- table_
registry
Structs§
- Access
Control List - Access control list storing allowed identities as raw bytes.
- Heap
Memory Provider - An implementation of
MemoryProviderthat uses heap memory for testing purposes. - Memory
Manager - The memory manager handles page-level memory operations on top of a
MemoryProvider. - NoAccess
Control - ACL provider that allows all identities unconditionally.
- Schema
Registry - The schema registry takes care of storing and retrieving table schemas from memory.
- Table
Registry Page - Data regarding the table registry page.
Constants§
- WASM_
PAGE_ SIZE - The size of a WASM memory page in bytes (64 KiB).
Traits§
- Access
Control - Trait for access control providers.
- Memory
Access - Abstraction over page-level memory operations.
- Memory
Provider - Memory Provider trait defines the interface for interacting with the underlying memory.
Functions§
- align_
up - Gets the padding at the given offset to the next multiple of
[
E::ALIGNMENT].