pub struct PostgresDialect;Expand description
PostgreSQL SQL dialect renderer.
Uses $1, $2, ... numbered parameter placeholders and double-quoted identifiers.
Supports RETURNING, DISTINCT ON, PostgreSQL array operators, UUID type casts,
and FILTER (WHERE ...) on aggregates.
Trait Implementations§
Source§impl Clone for PostgresDialect
impl Clone for PostgresDialect
Source§fn clone(&self) -> PostgresDialect
fn clone(&self) -> PostgresDialect
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 Debug for PostgresDialect
impl Debug for PostgresDialect
Source§impl Dialect for PostgresDialect
impl Dialect for PostgresDialect
Source§fn render_select_owned(&self, select: Select) -> Result<Sql>
fn render_select_owned(&self, select: Select) -> Result<Sql>
Render an owned SELECT query into SQL, moving bound values out of the AST
instead of cloning them. This is the primary rendering entry point used by
the engine’s hot paths; dialects implement this.
Source§fn render_insert_owned(&self, insert: Insert) -> Result<Sql>
fn render_insert_owned(&self, insert: Insert) -> Result<Sql>
Render an owned INSERT query into SQL, moving bound values out of the AST
instead of cloning them.
Source§fn render_update_owned(&self, update: Update) -> Result<Sql>
fn render_update_owned(&self, update: Update) -> Result<Sql>
Render an owned UPDATE query into SQL, moving bound values out of the AST
instead of cloning them.
Source§fn render_delete_owned(&self, delete: Delete) -> Result<Sql>
fn render_delete_owned(&self, delete: Delete) -> Result<Sql>
Render an owned DELETE query into SQL, moving bound values out of the AST
instead of cloning them.
Source§fn supports_returning(&self) -> bool
fn supports_returning(&self) -> bool
Whether this dialect natively supports the RETURNING clause
on INSERT, UPDATE, and DELETE statements. Read more
Source§fn render_select(&self, select: &Select) -> Result<Sql>
fn render_select(&self, select: &Select) -> Result<Sql>
Render a borrowed SELECT query into SQL. Read more
Source§fn render_insert(&self, insert: &Insert) -> Result<Sql>
fn render_insert(&self, insert: &Insert) -> Result<Sql>
Render a borrowed INSERT query into SQL by cloning and delegating to
Self::render_insert_owned.Source§fn render_update(&self, update: &Update) -> Result<Sql>
fn render_update(&self, update: &Update) -> Result<Sql>
Render a borrowed UPDATE query into SQL by cloning and delegating to
Self::render_update_owned.Source§fn render_delete(&self, delete: &Delete) -> Result<Sql>
fn render_delete(&self, delete: &Delete) -> Result<Sql>
Render a borrowed DELETE query into SQL by cloning and delegating to
Self::render_delete_owned.impl Copy for PostgresDialect
Auto Trait Implementations§
impl Freeze for PostgresDialect
impl RefUnwindSafe for PostgresDialect
impl Send for PostgresDialect
impl Sync for PostgresDialect
impl Unpin for PostgresDialect
impl UnsafeUnpin for PostgresDialect
impl UnwindSafe for PostgresDialect
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