pub struct Postgres;Expand description
PostgreSQL dialect marker.
Trait Implementations§
impl Copy for Postgres
Source§impl Dialect for Postgres
impl Dialect for Postgres
Source§fn quote_char() -> char
fn quote_char() -> char
The identifier quote character (e.g. backtick for MySQL,
" for ANSI).Source§fn write_placeholder(out: &mut String, n: usize)
fn write_placeholder(out: &mut String, n: usize)
Source§fn supports_returning() -> bool
fn supports_returning() -> bool
Whether this dialect supports the
RETURNING clause.Source§fn supports_distinct_on() -> bool
fn supports_distinct_on() -> bool
Whether this dialect supports
SELECT DISTINCT ON (cols). Defaults to
false; only Postgres overrides to true. Compiling a distinct_on
query against a dialect that returns false panics.Source§fn ilike_is_native() -> bool
fn ilike_is_native() -> bool
Whether this dialect has a native case-insensitive
ILIKE operator.
Defaults to false; only Postgres overrides to true. When false,
where_ilike is compiled as LOWER(col) LIKE LOWER(?).Source§fn upsert_style() -> UpsertStyle
fn upsert_style() -> UpsertStyle
How this dialect expresses an upsert. Defaults to
UpsertStyle::OnConflict (Postgres / SQLite); MySQL overrides to
UpsertStyle::OnDuplicateKey.Source§fn supports_row_locking() -> bool
fn supports_row_locking() -> bool
Whether this dialect supports row-locking clauses (
FOR UPDATE /
FOR SHARE, optionally SKIP LOCKED / NOWAIT). Defaults to true
(Postgres / MySQL); SQLite overrides to false, where such clauses are a
silent no-op (SQLite locks the whole database, not rows).impl Eq for Postgres
Source§impl SqlxDialect for Postgres
Available on crate feature sqlx_postgres only.
impl SqlxDialect for Postgres
Available on crate feature
sqlx_postgres only.impl StructuralPartialEq for Postgres
Auto Trait Implementations§
impl Freeze for Postgres
impl RefUnwindSafe for Postgres
impl Send for Postgres
impl Sync for Postgres
impl Unpin for Postgres
impl UnsafeUnpin for Postgres
impl UnwindSafe for Postgres
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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