sql-middleware 0.7.0

Lightweight async wrappers for tokio-postgres, rusqlite, turso, and tiberius.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Backend-agnostic typestate traits and enums for typed connections.
//!
//! This module provides traits for typed database connections with compile-time
//! transaction state tracking, plus backend-neutral `AnyIdle`/`AnyTx` wrappers.

mod any;
mod macros;
#[cfg(feature = "postgres")]
mod impl_postgres;
#[cfg(feature = "sqlite")]
mod impl_sqlite;
#[cfg(feature = "turso")]
mod impl_turso;
mod traits;

// Re-export everything for public API
pub use any::{AnyIdle, AnyTx};
pub use traits::{BeginTx, Queryable, TxConn, TypedConnOps};