Expand description
Typed SQLx pools, instrumentation, batching, and cache-aside records.
use rust_zero_core::{SqlStoreConfig, SqliteStore};
let store = SqliteStore::connect_sqlite(SqlStoreConfig::new("sqlite::memory:")).await?;
store.health_check().await?;Structs§
- Cached
SqlStore - A typed SQL pool with cache-aside record loading and mutation invalidation.
- SqlCache
Config - Settings for the in-process cache used by
CachedSqlStore. - SqlStore
- A typed SQL connection pool.
- SqlStore
Config - SqlStore
Metrics - Cardinality-bounded SQL operation metrics used by
SqlStore’s typed helpers.
Enums§
- SqlStore
Error - Stable failures returned by the typed SQL helpers.