pub struct PgDriver {}
Trait Implementations§
Source§impl Driver for PgDriver
impl Driver for PgDriver
fn name(&self) -> &str
Source§fn connect(
&self,
url: &str,
) -> BoxFuture<'_, Result<Box<dyn Connection>, Error>>
fn connect( &self, url: &str, ) -> BoxFuture<'_, Result<Box<dyn Connection>, Error>>
Create a connection to the database. Note that connections are intended to be used
in a single thread since most database connections are not thread-safe
fn connect_opt<'a>( &'a self, opt: &'a dyn ConnectOptions, ) -> BoxFuture<'a, Result<Box<dyn Connection>, Error>>
Source§fn default_option(&self) -> Box<dyn ConnectOptions>
fn default_option(&self) -> Box<dyn ConnectOptions>
make an default option
Auto Trait Implementations§
impl Freeze for PgDriver
impl RefUnwindSafe for PgDriver
impl Send for PgDriver
impl Sync for PgDriver
impl Unpin for PgDriver
impl UnwindSafe for PgDriver
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> 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