pub struct MySql;Expand description
MySQL dialect marker.
Trait Implementations§
impl Copy for MySql
Source§impl Dialect for MySql
impl Dialect for MySql
Source§fn quote_char() -> char
fn quote_char() -> char
The identifier quote character (e.g. backtick for MySQL,
" for ANSI).Source§fn write_placeholder(out: &mut String, _n: usize)
fn write_placeholder(out: &mut String, _n: usize)
Source§fn supports_returning() -> bool
fn supports_returning() -> bool
Whether this dialect supports the
RETURNING clause.Source§fn upsert_style() -> UpsertStyle
fn upsert_style() -> UpsertStyle
How this dialect expresses an upsert. Defaults to
UpsertStyle::OnConflict (Postgres / SQLite); MySQL overrides to
UpsertStyle::OnDuplicateKey.Source§fn supports_distinct_on() -> bool
fn supports_distinct_on() -> bool
Whether this dialect supports
SELECT DISTINCT ON (cols). Defaults to
false; only Postgres overrides to true. Compiling a distinct_on
query against a dialect that returns false panics.Source§fn ilike_is_native() -> bool
fn ilike_is_native() -> bool
Whether this dialect has a native case-insensitive
ILIKE operator.
Defaults to false; only Postgres overrides to true. When false,
where_ilike is compiled as LOWER(col) LIKE LOWER(?).impl Eq for MySql
Source§impl SqlxDialect for MySql
Available on crate feature sqlx_mysql only.
impl SqlxDialect for MySql
Available on crate feature
sqlx_mysql only.impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more