Skip to main content

Module store

Module store 

Source
Expand description

Store: generic OID-based CRUD for StoreObj types. Port of Go’s pkg/mstore/mstore_dbops.go + mstore_dbsetup.go.

Uses Mutex<Connection> matching Go’s MaxOpenConns(1). SQLite WAL mode + 5s busy timeout (same as Go).

Re-exports§

pub use super::agents::derive_slug;
pub use super::agents::AgentDefinition;
pub use super::agents::AgentInstance;
pub use super::agents::InstanceStatus;
pub use super::bundles::Bundle;
pub use super::content::AgentContent;
pub use super::skills::AgentSkill;
pub use super::identities::IdentityAccount;
pub use super::identities::SecretRef;

Structs§

Store
SQLite-backed object store for StoreObj types.
StoreTx
A borrowed connection handle for use inside Store::with_tx. Provides the same CRUD methods as Store but operates on the already-locked connection without additional Mutex acquisition.

Enums§

GlobalMemoryChange
A change to Global Memory, for Store::set_global_memory_observer.

Type Aliases§

GlobalMemoryObserver
Must not block or call back into the store: it runs where the change was made. The record’s observer only queues the change for a worker.