Enum rbatis_core::db::db_adapter::DBPoolConn
source · [−]pub enum DBPoolConn<'a> {
Mysql(PoolConnection<MySql>, &'a Box<dyn DataDecoder>),
Postgres(PoolConnection<Postgres>, &'a Box<dyn DataDecoder>),
Sqlite(PoolConnection<Sqlite>, &'a Box<dyn DataDecoder>),
Mssql(PoolConnection<Mssql>, &'a Box<dyn DataDecoder>),
}
Variants
Mysql(PoolConnection<MySql>, &'a Box<dyn DataDecoder>)
Postgres(PoolConnection<Postgres>, &'a Box<dyn DataDecoder>)
Sqlite(PoolConnection<Sqlite>, &'a Box<dyn DataDecoder>)
Mssql(PoolConnection<Mssql>, &'a Box<dyn DataDecoder>)
Implementations
sourceimpl<'a> DBPoolConn<'a>
impl<'a> DBPoolConn<'a>
pub fn driver_type(&self) -> DriverType
pub fn make_query<'f, 's>(&'f self, sql: &'s str) -> Result<DBQuery<'s>>
pub fn check_alive(&self) -> Result<()>
pub async fn fetch<'q, T>(&mut self, sql: &'q str) -> Result<(T, usize)> where
T: DeserializeOwned,
pub async fn exec_sql(&mut self, sql: &str) -> Result<DBExecResult>
pub async fn fetch_parperd<T>(&mut self, sql: DBQuery<'_>) -> Result<(T, usize)> where
T: DeserializeOwned,
pub async fn exec_prepare(&mut self, sql: DBQuery<'_>) -> Result<DBExecResult>
pub async fn begin(self) -> Result<DBTx<'a>>
pub async fn ping(&mut self) -> Result<()>
pub async fn close(self) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DBPoolConn<'a>
impl<'a> Send for DBPoolConn<'a>
impl<'a> !Sync for DBPoolConn<'a>
impl<'a> Unpin for DBPoolConn<'a>
impl<'a> !UnwindSafe for DBPoolConn<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more