pub struct ConnectionWithTransaction<DB, W>where
DB: DatabaseConnector + 'static,
W: Debug + Deref<Target = DB> + DerefMut<Target = DB> + Send + Sync + 'static,{ /* private fields */ }
Expand description
Database connection with a transaction
Implementations§
Trait Implementations§
Source§impl<DB, W> DatabaseExecutor for ConnectionWithTransaction<DB, W>
impl<DB, W> DatabaseExecutor for ConnectionWithTransaction<DB, W>
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes a query and returns the affected rows
Source§fn fetch_one<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Column>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_one<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Column>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs the query and returns the first row or None
Source§fn fetch_all<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Column>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_all<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Column>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs the query and returns the first row or None
Source§fn pluck<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Option<Column>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pluck<'life0, 'async_trait>(
&'life0 self,
statement: Statement,
) -> Pin<Box<dyn Future<Output = Result<Option<Column>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetches the first row and column from a query
Source§impl<DB, W> Debug for ConnectionWithTransaction<DB, W>
impl<DB, W> Debug for ConnectionWithTransaction<DB, W>
Auto Trait Implementations§
impl<DB, W> Freeze for ConnectionWithTransaction<DB, W>where
W: Freeze,
impl<DB, W> RefUnwindSafe for ConnectionWithTransaction<DB, W>where
W: RefUnwindSafe,
impl<DB, W> Send for ConnectionWithTransaction<DB, W>
impl<DB, W> Sync for ConnectionWithTransaction<DB, W>
impl<DB, W> Unpin for ConnectionWithTransaction<DB, W>where
W: Unpin,
impl<DB, W> UnwindSafe for ConnectionWithTransaction<DB, W>where
W: UnwindSafe,
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