Skip to main content

Module stores_sql

Module stores_sql 

Source
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§

CachedSqlStore
A typed SQL pool with cache-aside record loading and mutation invalidation.
SqlCacheConfig
Settings for the in-process cache used by CachedSqlStore.
SqlStore
A typed SQL connection pool.
SqlStoreConfig
SqlStoreMetrics
Cardinality-bounded SQL operation metrics used by SqlStore’s typed helpers.

Enums§

SqlStoreError
Stable failures returned by the typed SQL helpers.

Type Aliases§

MySqlStore
PostgresStore
SqliteStore