pub struct MySql;Trait Implementations§
impl Copy for MySql
Source§impl Dialect for MySql
impl Dialect for MySql
Source§fn skip_locked(&self) -> (&'static str, &'static str)
fn skip_locked(&self) -> (&'static str, &'static str)
The same words PostgreSQL uses, and MySQL 8.0 or newer.
skip locked arrived in 8.0; on 5.7 this is a syntax error rather than
a silent fallback, which is the better failure — a queue that quietly
dropped the skip would run jobs twice.
Source§fn quote(&self, identifier: &str) -> String
fn quote(&self, identifier: &str) -> String
Wrap one identifier so a keyword or an unusual name is still valid. Read more
Source§fn placeholder(&self, _position: usize) -> String
fn placeholder(&self, _position: usize) -> String
The placeholder for the
position-th bound parameter, counting from 1.Source§fn column_type(&self, kind: &ColumnType) -> String
fn column_type(&self, kind: &ColumnType) -> String
The type name for a logical column type.
Source§fn uuid_default(&self) -> Option<&'static str>
fn uuid_default(&self) -> Option<&'static str>
The expression that generates a UUID, when the database has one.
Source§fn returning(&self) -> ReturningStyle
fn returning(&self) -> ReturningStyle
How a generated key comes back from an insert.
Source§fn limit_offset(
&self,
limit: Option<i64>,
offset: Option<i64>,
_ordered: bool,
) -> String
fn limit_offset( &self, limit: Option<i64>, offset: Option<i64>, _ordered: bool, ) -> String
limit … offset …, in whatever form this database accepts. Read moreSource§fn booleans_are_integers(&self) -> bool
fn booleans_are_integers(&self) -> bool
Whether a
boolean column really is one. Read moreSource§fn max_identifier_length(&self) -> usize
fn max_identifier_length(&self) -> usize
The longest identifier this database accepts.
Source§fn current_schema_expression(&self) -> &'static str
fn current_schema_expression(&self) -> &'static str
The expression naming the schema this connection is working in. Read more
Source§fn list_tables_sql(&self) -> &'static str
fn list_tables_sql(&self) -> &'static str
A query returning one row per table in the current schema, with the name
in the first column. Read more
Source§fn disable_foreign_keys_sql(&self) -> Option<&'static str>
fn disable_foreign_keys_sql(&self) -> Option<&'static str>
Turn off foreign key enforcement while tables are being dropped, so the
order they come back in does not matter.
fn enable_foreign_keys_sql(&self) -> Option<&'static str>
Source§fn supports_if_not_exists_table(&self) -> bool
fn supports_if_not_exists_table(&self) -> bool
Whether
create table if not exists is understood.Source§fn supports_if_not_exists_index(&self) -> bool
fn supports_if_not_exists_index(&self) -> bool
Whether
create index if not exists is understood. Read moreSource§fn migrations_table_sql(&self, table: &str) -> String
fn migrations_table_sql(&self, table: &str) -> String
The DDL for the migration tracking table. Read more
Source§fn add_column_clause(&self) -> &'static str
fn add_column_clause(&self) -> &'static str
How a column is added in an
alter table. Read morefn commit_sql(&self) -> &'static str
fn rollback_sql(&self) -> &'static str
fn savepoint_sql(&self, name: &str) -> String
fn rollback_to_savepoint_sql(&self, name: &str) -> String
Source§fn drop_table_sql(&self, table: &str) -> String
fn drop_table_sql(&self, table: &str) -> String
Drop one table, including anything depending on it.
Auto Trait Implementations§
impl Freeze for MySql
impl RefUnwindSafe for MySql
impl Send for MySql
impl Sync for MySql
impl Unpin for MySql
impl UnsafeUnpin for MySql
impl UnwindSafe for MySql
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