pub struct MysqlDialect;Trait Implementations§
Source§impl SqlDialect for MysqlDialect
impl SqlDialect for MysqlDialect
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 MysqlDialect
impl RefUnwindSafe for MysqlDialect
impl Send for MysqlDialect
impl Sync for MysqlDialect
impl Unpin for MysqlDialect
impl UnsafeUnpin for MysqlDialect
impl UnwindSafe for MysqlDialect
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