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 either PostgreSQL or SQLite connections in a generic way.
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