pub struct PostgresBackend;Expand description
Postgres backend marker.
Trait Implementations§
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 moreimpl Copy for PostgresBackend
Source§impl Debug for PostgresBackend
impl Debug for PostgresBackend
Source§impl GatekeepSqlxBackend for PostgresBackend
Available on crate feature postgres only.
impl GatekeepSqlxBackend for PostgresBackend
Available on crate feature
postgres only.Source§const DRIVER: SqlxDriver = SqlxDriver::Postgres
const DRIVER: SqlxDriver = SqlxDriver::Postgres
Database driver represented by this backend.
Source§const MIN_FUNCTION: &'static str = "LEAST"
const MIN_FUNCTION: &'static str = "LEAST"
Name of the SQL function that returns the lower of two non-null grades.
Source§const MAX_FUNCTION: &'static str = "GREATEST"
const MAX_FUNCTION: &'static str = "GREATEST"
Name of the SQL function that returns the higher of two non-null grades.
Source§const GRADE_FUNCTION_PROPAGATES_NULL: bool = false
const GRADE_FUNCTION_PROPAGATES_NULL: bool = false
Whether the backend’s grade functions return
NULL when any input is
NULL.Source§fn push_placeholder(sql: &mut String, index: usize)
fn push_placeholder(sql: &mut String, index: usize)
Appends one bind placeholder to rendered SQL.
Source§impl<T> SqlxFactPredicates<PostgresBackend> for Twhere
T: PgFactPredicates,
Available on crate feature postgres only.
impl<T> SqlxFactPredicates<PostgresBackend> for Twhere
T: PgFactPredicates,
Available on crate feature
postgres only.Source§fn predicate(
&self,
fact: &FactId,
cx: &Context,
) -> Option<SqlxFragment<PostgresBackend>>
fn predicate( &self, fact: &FactId, cx: &Context, ) -> Option<SqlxFragment<PostgresBackend>>
Returns a predicate for the given fact, or
None when the fact cannot be
represented by this backend.Auto Trait Implementations§
impl Freeze for PostgresBackend
impl RefUnwindSafe for PostgresBackend
impl Send for PostgresBackend
impl Sync for PostgresBackend
impl Unpin for PostgresBackend
impl UnsafeUnpin for PostgresBackend
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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