pub struct Postgres;Expand description
Postgres dialect implementation.
Trait Implementations§
Source§impl Dialect for Postgres
impl Dialect for Postgres
Source§fn positional_param(idx: usize) -> Cow<'static, str>
fn positional_param(idx: usize) -> Cow<'static, str>
Generate the SQL placeholder for a positional parameter.
Source§fn select<V: Default>(op: &SelectOperation) -> (String, V)
fn select<V: Default>(op: &SelectOperation) -> (String, V)
Generate the SQL query for a
SELECT operation.Source§fn insert<V>(_op: &InsertOperation) -> (String, V)
fn insert<V>(_op: &InsertOperation) -> (String, V)
Generate the SQL query for a
INSERT operation.Source§fn update<V>(_op: &UpdateOperation) -> (String, V)
fn update<V>(_op: &UpdateOperation) -> (String, V)
Generate the SQL query for a
UPDATE operation.Source§fn delete<V>(_op: &DeleteOperation) -> (String, V)
fn delete<V>(_op: &DeleteOperation) -> (String, V)
Generate the SQL query for a
DELETE operation.Auto Trait Implementations§
impl Freeze for Postgres
impl RefUnwindSafe for Postgres
impl Send for Postgres
impl Sync for Postgres
impl Unpin 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> 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