pub struct Database { /* private fields */ }
Expand description
Default super::ConnectionPool
implementation.
Implementations§
Trait Implementations§
Source§impl ConnectionPool for Database
impl ConnectionPool for Database
Source§fn new<S>(
driver_name: S,
driver: Arc<Mutex<BoxedDriver>>,
url: S,
) -> Result<Self>
fn new<S>( driver_name: S, driver: Arc<Mutex<BoxedDriver>>, url: S, ) -> Result<Self>
Implement super::ConnectionPool::new
Source§fn get_conn(&self) -> Result<Box<dyn Connection>>
fn get_conn(&self) -> Result<Box<dyn Connection>>
Implement super::ConnectionPool::get_conn
Source§fn release_conn(&self, conn: Box<dyn Connection>)
fn release_conn(&self, conn: Box<dyn Connection>)
Implement super::ConnectionPool::release_conn
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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