pub enum AnyTx {
Postgres(PgConnection<InTx>),
Sqlite(SqliteTypedConnection<InTx>),
}Expand description
Backend-neutral tx wrapper.
Variants§
Postgres(PgConnection<InTx>)
Sqlite(SqliteTypedConnection<InTx>)
Trait Implementations§
Source§impl Queryable for AnyTx
impl Queryable for AnyTx
fn query<'a>(&'a mut self, sql: &'a str) -> QueryBuilder<'a, 'a>
Source§impl TypedConnOps for AnyTx
impl TypedConnOps for AnyTx
fn execute_batch( &mut self, sql: &str, ) -> impl Future<Output = Result<(), SqlMiddlewareDbError>>
fn dml( &mut self, query: &str, params: &[RowValues], ) -> impl Future<Output = Result<usize, SqlMiddlewareDbError>>
fn select( &mut self, query: &str, params: &[RowValues], ) -> impl Future<Output = Result<ResultSet, SqlMiddlewareDbError>>
Auto Trait Implementations§
impl Freeze for AnyTx
impl !RefUnwindSafe for AnyTx
impl Send for AnyTx
impl Sync for AnyTx
impl Unpin for AnyTx
impl !UnwindSafe for AnyTx
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