pub struct Psql;Expand description
The PostgreSQL dialect: $1 placeholders, " quoting, no named arguments.
A unit struct rather than a value to be constructed, because there is nothing
to configure — every query type hands out &Psql from
Query::dialect.
Trait Implementations§
impl Copy for Psql
Source§impl Dialect for Psql
impl Dialect for Psql
Source§fn write_quoted(&self, w: &mut SqlWriter<'_>, s: &str)
fn write_quoted(&self, w: &mut SqlWriter<'_>, s: &str)
Quote s as a delimited identifier.
An embedded " is doubled, which is how PostgreSQL escapes one inside a
delimited identifier (4.1.1 Identifiers and Key Words). bob writes the
name through unedited, so a name containing a quote silently ends the
identifier there; the fast path here is the same single push_str for the
overwhelmingly common case, and the scan only pays for itself when a quote
is actually present.
impl Eq for Psql
impl StructuralPartialEq for Psql
Auto Trait Implementations§
impl Freeze for Psql
impl RefUnwindSafe for Psql
impl Send for Psql
impl Sync for Psql
impl Unpin for Psql
impl UnsafeUnpin for Psql
impl UnwindSafe for Psql
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