Skip to main content

sql_middleware/typed/
mod.rs

1//! Backend-agnostic typestate traits and enums for typed connections.
2//!
3//! This module provides traits for typed database connections with compile-time
4//! transaction state tracking, plus backend-neutral `AnyIdle`/`AnyTx` wrappers.
5
6mod any;
7mod macros;
8#[cfg(feature = "postgres")]
9mod impl_postgres;
10#[cfg(feature = "sqlite")]
11mod impl_sqlite;
12#[cfg(feature = "turso")]
13mod impl_turso;
14mod traits;
15
16// Re-export everything for public API
17pub use any::{AnyIdle, AnyTx};
18pub use traits::{BeginTx, Queryable, TxConn, TypedConnOps};