Struct rstdev_storage::sql::options::DefaultDBPoolOptionsBuilder
source · pub struct DefaultDBPoolOptionsBuilder<TDB>where
TDB: Database,{ /* private fields */ }Expand description
DefaultDBPoolOptionsBuilder this object used as default implementation of sqlx pool option builder
The motivatino of this object is used as shared object that will be able to be used between current Mysql and Postgres, rather than implement it manually to each of database instance
Implementations§
source§impl<TDB> DefaultDBPoolOptionsBuilder<TDB>where
TDB: Database,
impl<TDB> DefaultDBPoolOptionsBuilder<TDB>where
TDB: Database,
pub fn new(opts: DefaultDBPoolOptions) -> Self
pub fn build(&self) -> PoolOptions<TDB>
Auto Trait Implementations§
impl<TDB> RefUnwindSafe for DefaultDBPoolOptionsBuilder<TDB>where
TDB: RefUnwindSafe,
impl<TDB> Send for DefaultDBPoolOptionsBuilder<TDB>
impl<TDB> Sync for DefaultDBPoolOptionsBuilder<TDB>where
TDB: Sync,
impl<TDB> Unpin for DefaultDBPoolOptionsBuilder<TDB>where
TDB: Unpin,
impl<TDB> UnwindSafe for DefaultDBPoolOptionsBuilder<TDB>where
TDB: 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