Skip to main content

Crate kuatia_storage_sql

Crate kuatia_storage_sql 

Source
Expand description

SQL-backed Store implementation for SQLite and PostgreSQL.

Uses sqlx::Any for database-agnostic queries. Enable features sqlite or postgres to select the backend.

let pool = sqlx::any::Pool<Any>Options::new()
    .connect("sqlite::memory:").await?;
let store = SqlStore::new(pool);
store.migrate().await?;

Structsยง

SqlStore
SQL-backed Store implementation.