sql_middleware/pool/
any_conn_wrapper.rs1#[cfg(feature = "mssql")]
4use tiberius::Client as TiberiusClient;
5#[cfg(feature = "mssql")]
6use tokio::net::TcpStream;
7#[cfg(feature = "mssql")]
8use tokio_util::compat::Compat;
9
10#[cfg(feature = "sqlite")]
11use rusqlite::Connection as SqliteConnectionType;
12
13pub enum AnyConnWrapper<'a> {
19 #[cfg(feature = "postgres")]
21 Postgres(&'a mut tokio_postgres::Client),
22 #[cfg(feature = "sqlite")]
24 Sqlite(&'a mut SqliteConnectionType),
25 #[cfg(feature = "mssql")]
27 Mssql(&'a mut TiberiusClient<Compat<TcpStream>>),
28 #[cfg(feature = "libsql")]
30 Libsql(&'a deadpool_libsql::Object),
31 #[cfg(feature = "turso")]
33 Turso(&'a turso::Connection),
34}