Skip to main content

Crate toolu_orm_connection

Crate toolu_orm_connection 

Source
Expand description

Database connection trait and backend implementations for toolu-orm.

§Features

Enable exactly one backend per consumer:

  • libsql – async libsql (Turso embedded replica)
  • rusqlite – sync rusqlite (wrapped with spawn_blocking)
  • postgres – async tokio-postgres + deadpool connection pool

Re-exports§

pub use error::DbError;
pub use trait_def::DbConnection;

Modules§

error
DbError enum for connection-layer errors across all backends.
trait_def
DbConnection trait shared across all database backends.