use downcast_rs::{impl_downcast, Downcast};
pub trait TConnection: Send + Sync + Downcast {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for &'static sqlx::postgres::PgPool {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for Box<&'static sqlx::postgres::PgPool> {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for sqlx::postgres::PgPool {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for Box<sqlx::postgres::PgPool> {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for &'static mut sqlx::PgConnection {}
#[cfg(feature = "sqlx-postgres")]
impl TConnection for Box<&'static mut sqlx::PgConnection> {}
impl_downcast!(TConnection);