Struct rstdev_storage::engine::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> Freeze for DefaultDBPoolOptionsBuilder<TDB>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more