pub struct PostgresDriver {}Expand description
Postgres driver.
Implementations§
Trait Implementations§
Source§impl Clone for PostgresDriver
impl Clone for PostgresDriver
Source§fn clone(&self) -> PostgresDriver
fn clone(&self) -> PostgresDriver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresDriver
impl Debug for PostgresDriver
Source§impl Default for PostgresDriver
impl Default for PostgresDriver
Source§fn default() -> PostgresDriver
fn default() -> PostgresDriver
Returns the “default value” for a type. Read more
Source§impl Driver for PostgresDriver
impl Driver for PostgresDriver
Source§type Connection = PostgresConnection
type Connection = PostgresConnection
Concrete connection type.
Source§type SqlWriter = PostgresSqlWriter
type SqlWriter = PostgresSqlWriter
Dialect-specific SQL writer.
Source§type Prepared = PostgresPrepared
type Prepared = PostgresPrepared
Prepared statement implementation.
Source§type Transaction<'c> = PostgresTransaction<'c>
type Transaction<'c> = PostgresTransaction<'c>
Transaction implementation.
Source§fn sql_writer(&self) -> PostgresSqlWriter
fn sql_writer(&self) -> PostgresSqlWriter
Returns a dialect-specific SQL writer for query construction.
Source§fn connect_pool(
&self,
url: Cow<'static, str>,
config: PoolConfig,
) -> impl Future<Output = Result<impl ConnectionPool<Self>, Error>> + Send
fn connect_pool( &self, url: Cow<'static, str>, config: PoolConfig, ) -> impl Future<Output = Result<impl ConnectionPool<Self>, Error>> + Send
Creates a new connection to the database at the specified URL.
Auto Trait Implementations§
impl Freeze for PostgresDriver
impl RefUnwindSafe for PostgresDriver
impl Send for PostgresDriver
impl Sync for PostgresDriver
impl Unpin for PostgresDriver
impl UnsafeUnpin for PostgresDriver
impl UnwindSafe for PostgresDriver
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