[][src]Struct sqlx::MySql

pub struct MySql;
This is supported on feature="mysql" only.

MySQL database driver.

Trait Implementations

impl Database for MySql[src]

type Connection = MySqlConnection

The concrete Connection implementation for this database.

type Arguments = MySqlArguments

The concrete Arguments implementation for this database.

type Row = MySqlRow

The concrete Row implementation for this database.

type TypeInfo = MySqlTypeInfo

The concrete TypeInfo implementation for this database.

type TableId = Box<str>

The Rust type of table identifiers for this database.

impl Encode<MySql> for u32[src]

impl Encode<MySql> for NaiveDate[src]

impl Encode<MySql> for i8[src]

impl Encode<MySql> for str[src]

impl Encode<MySql> for bool[src]

impl Encode<MySql> for Vec<u8>[src]

impl Encode<MySql> for [u8][src]

impl Encode<MySql> for u64[src]

impl Encode<MySql> for NaiveDateTime[src]

impl Encode<MySql> for f32[src]

impl Encode<MySql> for f64[src]

impl Encode<MySql> for DateTime<Utc>[src]

impl Encode<MySql> for u16[src]

impl Encode<MySql> for i16[src]

impl Encode<MySql> for u8[src]

impl Encode<MySql> for i64[src]

impl Encode<MySql> for NaiveTime[src]

impl Encode<MySql> for i32[src]

impl Encode<MySql> for String[src]

impl HasSqlType<[u8]> for MySql[src]

impl HasSqlType<DateTime<Utc>> for MySql[src]

impl HasSqlType<NaiveDate> for MySql[src]

impl HasSqlType<NaiveDateTime> for MySql[src]

impl HasSqlType<NaiveTime> for MySql[src]

impl HasSqlType<String> for MySql[src]

impl HasSqlType<Vec<u8>> for MySql[src]

impl HasSqlType<bool> for MySql[src]

impl HasSqlType<f32> for MySql[src]

The equivalent MySQL type for f32 is FLOAT.

Note

While we added support for f32 as FLOAT for completeness, we don't recommend using it for any real-life applications as it cannot precisely represent some fractional values, and may be implicitly widened to DOUBLE in some cases, resulting in a slightly different value:

// Widening changes the equivalent decimal value, these two expressions are not equal
// (This is expected behavior for floating points and happens both in Rust and in MySQL)
assert_ne!(10.2f32 as f64, 10.2f64);

impl HasSqlType<f64> for MySql[src]

The equivalent MySQL type for f64 is DOUBLE.

Note that DOUBLE is a floating-point type and cannot represent some fractional values exactly.

impl HasSqlType<i16> for MySql[src]

impl HasSqlType<i32> for MySql[src]

impl HasSqlType<i64> for MySql[src]

impl HasSqlType<i8> for MySql[src]

impl HasSqlType<str> for MySql[src]

impl HasSqlType<u16> for MySql[src]

impl HasSqlType<u32> for MySql[src]

impl HasSqlType<u64> for MySql[src]

impl HasSqlType<u8> for MySql[src]

Auto Trait Implementations

impl RefUnwindSafe for MySql

impl Send for MySql

impl Sync for MySql

impl Unpin for MySql

impl UnwindSafe for MySql

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<'_, T, DB> HasSqlType<&'_ T> for DB where
    DB: HasSqlType<T>,
    T: ?Sized
[src]

impl<T, DB> HasSqlType<Option<T>> for DB where
    DB: HasSqlType<T>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,