Skip to main content

Crate wasm_dbms_memory

Crate wasm_dbms_memory 

Source
Expand description

wasm-dbms-memory provides runtime-agnostic memory abstraction and page management for the wasm-dbms framework.

This crate contains:

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§

AccessControlList
Access control list storing allowed identities as raw bytes.
HeapMemoryProvider
An implementation of MemoryProvider that uses heap memory for testing purposes.
MemoryManager
The memory manager handles page-level memory operations on top of a MemoryProvider.
NoAccessControl
ACL provider that allows all identities unconditionally.
SchemaRegistry
The schema registry takes care of storing and retrieving table schemas from memory.
TableRegistryPage
Data regarding the table registry page.

Constants§

WASM_PAGE_SIZE
The size of a WASM memory page in bytes (64 KiB).

Traits§

AccessControl
Trait for access control providers.
MemoryAccess
Abstraction over page-level memory operations.
MemoryProvider
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].