Skip to main content

Crate valence_backend_mem

Crate valence_backend_mem 

Source
Expand description

In-memory DatabaseBackend reference adapter.

Modules§

router_key
Compound router keys: "{engine_id}:{logical_name}".

Structs§

DatabaseRouter
Maps compound router keys to concrete DatabaseBackend implementations.
InMemoryBackend
In-memory DatabaseBackend storing rows and graph edges in process memory.
KnownEngines
Well-known DatabaseBackend::engine_id values shipped with this workspace.

Constants§

DEFAULT_IN_MEMORY_ROUTER_KEY
Router key for default in-memory backend (inmemory_mem:default).
ENGINE_ID
Stable engine slug for router keys (inmemory_mem:logical_name).

Functions§

install_default_mem_router
Register the default in-memory backend under DEFAULT_IN_MEMORY_ROUTER_KEY.
router_key
Build the compound router key used for registration and resolution.