pub enum AnyConnWrapper<'a> {
Postgres(&'a mut Client),
Sqlite(&'a mut Connection),
}Expand description
Wrapper around a database connection for generic code.
This enum allows code to handle PostgreSQL, SQLite, SQL Server, or LibSQL
connections in a generic way. It is primarily used by the interact_* helpers
to hand raw driver connections to user closures without exposing pool internals.
Variants§
Postgres(&'a mut Client)
PostgreSQL client connection
Sqlite(&'a mut Connection)
SQLite database connection
Auto Trait Implementations§
impl<'a> Freeze for AnyConnWrapper<'a>
impl<'a> !RefUnwindSafe for AnyConnWrapper<'a>
impl<'a> Send for AnyConnWrapper<'a>
impl<'a> !Sync for AnyConnWrapper<'a>
impl<'a> Unpin for AnyConnWrapper<'a>
impl<'a> !UnwindSafe for AnyConnWrapper<'a>
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