Skip to main content

MySQLDialect

Struct MySQLDialect 

Source
pub struct MySQLDialect;
Expand description

Type-level marker for MySQL.

MySQL keeps signed and unsigned integer markers distinct, uses backtick identifiers, and has one native JSON type. It has no native UUID or time-zone-bearing datetime type: UUIDs use BINARY(16), while TimestampTz maps to session-time-zone-aware TIMESTAMP. Concrete wire-driver behavior remains outside this marker.

Trait Implementations§

Source§

impl AggregatePolicy<MySQLDialect> for TinyInt

Source§

impl AggregatePolicy<MySQLDialect> for TinyIntUnsigned

Source§

impl AggregatePolicy<MySQLDialect> for SmallInt

Source§

impl AggregatePolicy<MySQLDialect> for SmallIntUnsigned

Source§

impl AggregatePolicy<MySQLDialect> for MediumInt

Source§

impl AggregatePolicy<MySQLDialect> for MediumIntUnsigned

Source§

impl AggregatePolicy<MySQLDialect> for Int

Source§

impl AggregatePolicy<MySQLDialect> for IntUnsigned

Source§

impl AggregatePolicy<MySQLDialect> for BigInt

Source§

impl AggregatePolicy<MySQLDialect> for BigIntUnsigned

Source§

impl AggregatePolicy<MySQLDialect> for Year

Source§

impl AggregatePolicy<MySQLDialect> for Decimal

Source§

impl AggregatePolicy<MySQLDialect> for Float

Source§

impl AggregatePolicy<MySQLDialect> for Double

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, BigInt> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, BigIntUnsigned> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Date> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, DateTime> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Decimal> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Double> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Float> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Json> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Time> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Varbinary> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Varchar> for ()

Source§

impl<Source: DataType> CastTypePolicy<MySQLDialect, Source, Year> for ()

Source§

impl CharLengthPolicy for MySQLDialect

Source§

const CHAR_LENGTH_FN: &'static str = "CHAR_LENGTH"

Source§

impl Clone for MySQLDialect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MySQLDialect

Source§

impl CountPolicy for MySQLDialect

Source§

type Count = BigInt

The integer type returned by COUNT (e.g. Integer on SQLite, Int8 on PostgreSQL).
Source§

impl Debug for MySQLDialect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DialectTypes for MySQLDialect

Source§

impl FloatPolicy for MySQLDialect

Source§

type Float = Double

The floating-point type returned by distribution window functions like PERCENT_RANK and CUME_DIST (Real on SQLite, Float8 on PostgreSQL).
Source§

impl<L, R> GreatestLeastPolicy<L, R> for MySQLDialect
where L: NullOr<R>, R: Nullability,

Source§

type Nullable = <L as NullOr<R>>::Output

Source§

impl GroupConcatSupport for MySQLDialect

Source§

impl InstrPolicy for MySQLDialect

Source§

impl LeftRightSupport for MySQLDialect

Source§

impl LengthPolicy<MySQLDialect> for Char

Source§

impl LengthPolicy<MySQLDialect> for Varchar

Source§

impl LengthPolicy<MySQLDialect> for TinyText

Source§

impl LengthPolicy<MySQLDialect> for Text

Source§

impl LengthPolicy<MySQLDialect> for MediumText

Source§

impl LengthPolicy<MySQLDialect> for LongText

Source§

impl LengthPolicy<MySQLDialect> for Enum

Source§

impl LengthPolicy<MySQLDialect> for Set

Source§

impl Log2Policy for MySQLDialect

Source§

impl MathExt for MySQLDialect

Source§

impl PadSupport for MySQLDialect

Source§

impl PiSupport for MySQLDialect

Source§

impl RandomPolicy for MySQLDialect

Source§

impl RepeatSupport for MySQLDialect

Source§

impl ReverseSupport for MySQLDialect

Source§

impl RoundingPolicy<MySQLDialect> for TinyInt

Source§

type Output = BigInt

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for SmallInt

Source§

type Output = BigInt

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for MediumInt

Source§

type Output = BigInt

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for Int

Source§

type Output = BigInt

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for BigInt

Source§

type Output = BigInt

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for TinyIntUnsigned

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for SmallIntUnsigned

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for MediumIntUnsigned

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for IntUnsigned

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for BigIntUnsigned

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for Year

Source§

type Output = BigIntUnsigned

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for Float

Source§

type Output = Double

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for Double

Source§

type Output = Double

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<MySQLDialect> for Decimal

Source§

type Output = Decimal

Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepare the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerce a rounding function’s result to Self::Output. Read more
Source§

impl SQLTypeToRust<MySQLDialect> for TinyInt

Source§

impl SQLTypeToRust<MySQLDialect> for TinyIntUnsigned

Source§

impl SQLTypeToRust<MySQLDialect> for SmallInt

Source§

impl SQLTypeToRust<MySQLDialect> for SmallIntUnsigned

Source§

impl SQLTypeToRust<MySQLDialect> for MediumInt

Source§

impl SQLTypeToRust<MySQLDialect> for Int

Source§

impl SQLTypeToRust<MySQLDialect> for MediumIntUnsigned

Source§

impl SQLTypeToRust<MySQLDialect> for IntUnsigned

Source§

impl SQLTypeToRust<MySQLDialect> for BigInt

Source§

impl SQLTypeToRust<MySQLDialect> for BigIntUnsigned

Source§

impl SQLTypeToRust<MySQLDialect> for Float

Source§

impl SQLTypeToRust<MySQLDialect> for Double

Source§

impl SQLTypeToRust<MySQLDialect> for Boolean

Source§

impl SQLTypeToRust<MySQLDialect> for Char

Source§

impl SQLTypeToRust<MySQLDialect> for Varchar

Source§

impl SQLTypeToRust<MySQLDialect> for TinyText

Source§

impl SQLTypeToRust<MySQLDialect> for Text

Source§

impl SQLTypeToRust<MySQLDialect> for MediumText

Source§

impl SQLTypeToRust<MySQLDialect> for LongText

Source§

impl SQLTypeToRust<MySQLDialect> for Enum

Source§

impl SQLTypeToRust<MySQLDialect> for Set

Source§

impl SQLTypeToRust<MySQLDialect> for Any

Source§

impl SQLTypeToRust<MySQLDialect> for Binary

Source§

impl SQLTypeToRust<MySQLDialect> for Varbinary

Source§

impl SQLTypeToRust<MySQLDialect> for TinyBlob

Source§

impl SQLTypeToRust<MySQLDialect> for Blob

Source§

impl SQLTypeToRust<MySQLDialect> for MediumBlob

Source§

impl SQLTypeToRust<MySQLDialect> for LongBlob

Source§

impl SQLTypeToRust<MySQLDialect> for Bit

Source§

impl SQLTypeToRust<MySQLDialect> for Year

Source§

impl SQLTypeToRust<MySQLDialect> for Decimal

Source§

impl SQLTypeToRust<MySQLDialect> for Json

Source§

impl SQLTypeToRust<MySQLDialect> for Date

Source§

impl SQLTypeToRust<MySQLDialect> for Time

Source§

impl SQLTypeToRust<MySQLDialect> for DateTime

Source§

impl SQLTypeToRust<MySQLDialect> for Timestamp

Source§

impl SignPolicy for MySQLDialect

Source§

type Sign = BigInt

The SQL type of SIGN(expr).
Source§

impl StatisticalAggregatePolicy<MySQLDialect> for TinyInt

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for TinyIntUnsigned

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for SmallInt

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for SmallIntUnsigned

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for MediumInt

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for MediumIntUnsigned

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for Int

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for IntUnsigned

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for BigInt

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for BigIntUnsigned

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for Year

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for Decimal

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for Float

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for Double

Source§

impl ValueTypeForDialect<MySQLDialect> for i8

Source§

impl ValueTypeForDialect<MySQLDialect> for i16

Source§

impl ValueTypeForDialect<MySQLDialect> for i32

Source§

impl ValueTypeForDialect<MySQLDialect> for i64

Source§

impl ValueTypeForDialect<MySQLDialect> for isize

Source§

impl ValueTypeForDialect<MySQLDialect> for u8

Source§

impl ValueTypeForDialect<MySQLDialect> for u16

Source§

impl ValueTypeForDialect<MySQLDialect> for u32

Source§

impl ValueTypeForDialect<MySQLDialect> for u64

Source§

impl ValueTypeForDialect<MySQLDialect> for usize

Source§

impl ValueTypeForDialect<MySQLDialect> for f32

Source§

impl ValueTypeForDialect<MySQLDialect> for f64

Source§

impl ValueTypeForDialect<MySQLDialect> for bool

Source§

impl ValueTypeForDialect<MySQLDialect> for &str

Source§

impl ValueTypeForDialect<MySQLDialect> for Cow<'_, str>

Source§

impl ValueTypeForDialect<MySQLDialect> for String

Source§

impl ValueTypeForDialect<MySQLDialect> for Box<String>

Source§

impl ValueTypeForDialect<MySQLDialect> for Rc<String>

Source§

impl ValueTypeForDialect<MySQLDialect> for Arc<String>

Source§

impl ValueTypeForDialect<MySQLDialect> for Box<str>

Source§

impl ValueTypeForDialect<MySQLDialect> for Rc<str>

Source§

impl ValueTypeForDialect<MySQLDialect> for Arc<str>

Source§

impl ValueTypeForDialect<MySQLDialect> for &[u8]

Source§

impl ValueTypeForDialect<MySQLDialect> for Cow<'_, [u8]>

Source§

impl ValueTypeForDialect<MySQLDialect> for Vec<u8>

Source§

impl ValueTypeForDialect<MySQLDialect> for Box<Vec<u8>>

Source§

impl ValueTypeForDialect<MySQLDialect> for Rc<Vec<u8>>

Source§

impl ValueTypeForDialect<MySQLDialect> for Arc<Vec<u8>>

Source§

impl<const N: usize> ValueTypeForDialect<MySQLDialect> for [u8; N]

Source§

impl<const N: usize> ValueTypeForDialect<MySQLDialect> for [char; N]

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AliasExt for T

Source§

fn alias(self, name: &'static str) -> AliasedExpr<Self>

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mk> MarkerAggValidFor<()> for Mk

Source§

impl<Scope> ScopeSatisfies<Nil, ()> for Scope

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TypeEq<T> for T