pub struct PostgresDialect;Trait Implementations§
Source§impl SqlDialect for PostgresDialect
impl SqlDialect for PostgresDialect
Source§fn placeholder(&self, index: usize) -> String
fn placeholder(&self, index: usize) -> String
Placeholder style:
$1 for Postgres, ? for MySQL.Source§fn quote_ident(&self, name: &str) -> String
fn quote_ident(&self, name: &str) -> String
Quote an identifier (table name, column name).
Source§fn sql_type(&self, col_type: &ColumnType) -> String
fn sql_type(&self, col_type: &ColumnType) -> String
Map a ColumnType to dialect-specific SQL type string.
Source§fn supports_returning(&self) -> bool
fn supports_returning(&self) -> bool
Whether RETURNING clause is supported (Postgres yes, MySQL no).
Source§fn upsert_syntax(&self) -> UpsertSyntax
fn upsert_syntax(&self) -> UpsertSyntax
Whether INSERT OR IGNORE / ON CONFLICT DO NOTHING is supported.
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