pub struct MySql;Trait Implementations§
impl Copy for MySql
Source§impl Dialect for MySql
impl Dialect for MySql
Source§const CAST_BIGINT: &'static str = "SIGNED"
const CAST_BIGINT: &'static str = "SIGNED"
How this dialect spells the two types an aggregate is cast back to.
CAST itself is standard; the type names are not — MySQL takes
SIGNED and DOUBLE where Postgres takes BIGINT and
DOUBLE PRECISION.const CAST_DOUBLE: &'static str = "DOUBLE"
Source§const OFFSET_WITHOUT_LIMIT: Option<&'static str>
const OFFSET_WITHOUT_LIMIT: Option<&'static str>
What to put in a
LIMIT when a query has an OFFSET and no limit.
Postgres takes a bare OFFSET; SQLite and MySQL don’t, and each
spells “no limit” differently.Source§const IDENTIFIER_QUOTE: char = '`'
const IDENTIFIER_QUOTE: char = '`'
SQL identifier quote character, e.g.
" for Postgres/SQLite, `
for MySQL.Source§const INSERT_NO_COLUMNS: &'static str = " () VALUES ()"
const INSERT_NO_COLUMNS: &'static str = " () VALUES ()"
How to insert a row that names no column, which is what a table
whose every column is generated leaves.
INSERT INTO t () VALUES ()
is MySQL’s spelling and a syntax error everywhere else.Source§const PARENTHESIZED_SET_OP_BRANCHES: bool = true
const PARENTHESIZED_SET_OP_BRANCHES: bool = true
Whether a set operation’s branches may be parenthesised. SQLite’s
grammar has no place for a parenthesised
SELECT around UNION.Source§fn write_placeholder(n: usize, out: &mut String)
fn write_placeholder(n: usize, out: &mut String)
Writes the placeholder for the
nth bound parameter (1-indexed).
Postgres numbers them ($1, $2, …); MySQL/SQLite are purely
positional (? every time, matched by order of appearance).impl SupportsRightJoin for MySql
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