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;
7#[cfg(feature = "mssql")]
8mod impl_mssql;
9#[cfg(feature = "postgres")]
10mod impl_postgres;
11#[cfg(feature = "sqlite")]
12mod impl_sqlite;
13#[cfg(feature = "turso")]
14mod impl_turso;
15mod macros;
16mod traits;
17
18// Re-export everything for public API
19pub use any::{AnyIdle, AnyTx};
20pub use traits::{BeginTx, Queryable, TxConn, TypedConnOps};