pub struct PostgresBackend { /* private fields */ }Expand description
The Postgres Backend
This struct provides the Backend implementation details for Postgres databases.
Available if the feature “postgres” is enabled.
Trait Implementations§
Source§impl Backend for PostgresBackend
impl Backend for PostgresBackend
Source§type Connection = PostgresConnection
type Connection = PostgresConnection
The database connection.
Source§fn connection(&self) -> Result<Self::Connection, InternalError>
fn connection(&self) -> Result<Self::Connection, InternalError>
Acquire a database connection. Read more
Source§impl Clone for PostgresBackend
impl Clone for PostgresBackend
Source§fn clone(&self) -> PostgresBackend
fn clone(&self) -> PostgresBackend
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 Execute for PostgresBackend
impl Execute for PostgresBackend
fn execute<F, T>(&self, f: F) -> Result<T, InternalError>
Source§impl From<Pool<ConnectionManager<PgConnection>>> for PostgresBackend
impl From<Pool<ConnectionManager<PgConnection>>> for PostgresBackend
Source§fn from(pool: Pool<ConnectionManager<PgConnection>>) -> Self
fn from(pool: Pool<ConnectionManager<PgConnection>>) -> Self
Converts to this type from the input type.
Source§impl From<PostgresBackend> for Pool<ConnectionManager<PgConnection>>
impl From<PostgresBackend> for Pool<ConnectionManager<PgConnection>>
Source§fn from(backend: PostgresBackend) -> Self
fn from(backend: PostgresBackend) -> Self
Converts to this type from the input type.
Source§impl MigrationManager for PostgresBackend
impl MigrationManager for PostgresBackend
fn run_migrations(&self) -> Result<(), InternalError>
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresBackend
impl !UnwindSafe for PostgresBackend
impl Freeze for PostgresBackend
impl Send for PostgresBackend
impl Sync for PostgresBackend
impl Unpin for PostgresBackend
impl UnsafeUnpin for PostgresBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.