pub struct PoolConnection { /* private fields */ }Expand description
A connection borrowed from the pool.
Returned to the pool when dropped.
Trait Implementations§
Source§impl Executor for PoolConnection
impl Executor for PoolConnection
Source§async fn query_raw(
&self,
sql: &str,
params: &[&(dyn ToSql + Sync)],
) -> BsqlResult<Vec<Row>>
async fn query_raw( &self, sql: &str, params: &[&(dyn ToSql + Sync)], ) -> BsqlResult<Vec<Row>>
Execute a query and return all rows.
Source§async fn query_raw_readonly(
&self,
sql: &str,
params: &[&(dyn ToSql + Sync)],
) -> BsqlResult<Vec<Row>>
async fn query_raw_readonly( &self, sql: &str, params: &[&(dyn ToSql + Sync)], ) -> BsqlResult<Vec<Row>>
Execute a read-only query. Routes to replicas when available. Read more
Source§async fn execute_raw(
&self,
sql: &str,
params: &[&(dyn ToSql + Sync)],
) -> BsqlResult<u64>
async fn execute_raw( &self, sql: &str, params: &[&(dyn ToSql + Sync)], ) -> BsqlResult<u64>
Execute a query and return the number of affected rows.
Auto Trait Implementations§
impl Freeze for PoolConnection
impl !RefUnwindSafe for PoolConnection
impl Send for PoolConnection
impl Sync for PoolConnection
impl Unpin for PoolConnection
impl UnsafeUnpin for PoolConnection
impl !UnwindSafe for PoolConnection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more