[][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 TypeInfo = MySqlTypeInfo

The concrete TypeInfo implementation for this database.

type TableId = Box<str>

The Rust type of table identifiers for this database.

type RawBuffer = Vec<u8>

The Rust type used as the buffer when encoding arguments. Read more

type Error = MySqlError

The concrete DatabaseError type used to report errors from the database.

impl Debug for MySql[src]

impl<'_> Decode<'_, MySql> for BigDecimal[src]

impl<'de> Decode<'de, MySql> for Time[src]

impl<'de> Decode<'de, MySql> for u8[src]

impl<'de> Decode<'de, MySql> for u32[src]

impl<'de> Decode<'de, MySql> for i64[src]

impl<'de> Decode<'de, MySql> for NaiveDate[src]

impl<'de> Decode<'de, MySql> for PrimitiveDateTime[src]

impl<'de> Decode<'de, MySql> for OffsetDateTime[src]

impl<'de> Decode<'de, MySql> for Vec<u8>[src]

impl<'de> Decode<'de, MySql> for &'de [u8][src]

impl<'de> Decode<'de, MySql> for String[src]

impl<'de> Decode<'de, MySql> for u64[src]

impl<'de> Decode<'de, MySql> for i32[src]

impl<'de> Decode<'de, MySql> for bool[src]

impl<'de> Decode<'de, MySql> for NaiveDateTime[src]

impl<'de> Decode<'de, MySql> for i8[src]

impl<'de> Decode<'de, MySql> for f64[src]

impl<'de> Decode<'de, MySql> for DateTime<Utc>[src]

impl<'de> Decode<'de, MySql> for f32[src]

impl<'de> Decode<'de, MySql> for &'de str[src]

impl<'de> Decode<'de, MySql> for Date[src]

impl<'de> Decode<'de, MySql> for i16[src]

impl<'de> Decode<'de, MySql> for NaiveTime[src]

impl<'de> Decode<'de, MySql> for u16[src]

impl<'de, T> Decode<'de, MySql> for Option<T> where
    T: Decode<'de, MySql>, 
[src]

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

impl Encode<MySql> for u32[src]

impl Encode<MySql> for PrimitiveDateTime[src]

impl Encode<MySql> for OffsetDateTime[src]

impl Encode<MySql> for NaiveTime[src]

impl Encode<MySql> for i8[src]

impl Encode<MySql> for NaiveDateTime[src]

impl Encode<MySql> for Time[src]

impl Encode<MySql> for u8[src]

impl Encode<MySql> for u16[src]

impl Encode<MySql> for i64[src]

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

impl Encode<MySql> for bool[src]

impl Encode<MySql> for i32[src]

impl Encode<MySql> for u64[src]

impl Encode<MySql> for i16[src]

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

impl Encode<MySql> for NaiveDate[src]

impl Encode<MySql> for Date[src]

impl Encode<MySql> for str[src]

impl Encode<MySql> for String[src]

impl Encode<MySql> for f64[src]

impl Encode<MySql> for f32[src]

impl Encode<MySql> for BigDecimal[src]

impl<'c, 'q> HasCursor<'c, 'q> for MySql[src]

type Database = MySql

type Cursor = MySqlCursor<'c, 'q>

The concrete Cursor implementation for this database.

impl<'c> HasRawValue<'c> for MySql[src]

type Database = MySql

type RawValue = MySqlValue<'c>

The Rust type used to hold a not-yet-decoded value that has just been received from the database. Read more

impl<'c> HasRow<'c> for MySql[src]

type Database = MySql

type Row = MySqlRow<'c>

The concrete Row implementation for this database.

impl<O, F> MapRow<MySql> for F where
    F: for<'c> FnMut(MySqlRow<'c>) -> O,
    O: Unpin
[src]

type Output = O

impl<O, F> TryMapRow<MySql> for F where
    F: for<'c> FnMut(MySqlRow<'c>) -> Result<O, Error>,
    O: Unpin
[src]

type Output = O

impl Type<MySql> for BigDecimal[src]

impl Type<MySql> for str[src]

impl Type<MySql> for i16[src]

impl Type<MySql> for u32[src]

impl Type<MySql> for Time[src]

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

impl Type<MySql> for Date[src]

impl Type<MySql> for String[src]

impl Type<MySql> for u16[src]

impl Type<MySql> for i8[src]

impl Type<MySql> for f32[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 Type<MySql> for OffsetDateTime[src]

impl Type<MySql> for bool[src]

impl Type<MySql> for u64[src]

impl Type<MySql> for u8[src]

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

impl Type<MySql> for f64[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 Type<MySql> for i32[src]

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

impl Type<MySql> for i64[src]

impl Type<MySql> for PrimitiveDateTime[src]

impl Type<MySql> for NaiveTime[src]

impl Type<MySql> for NaiveDate[src]

impl Type<MySql> for NaiveDateTime[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, 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> Sealed<T> for T where
    T: ?Sized

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>,