[−][src]Struct sqlx::mysql::MySql
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 = MySqlDatabaseError
The concrete DatabaseError
type used to report errors from the database.
impl Debug for MySql
[src]
impl<'de, T> Decode<'de, MySql> for Option<T> where
T: Decode<'de, MySql>,
[src]
T: Decode<'de, MySql>,
impl<'de> Decode<'de, MySql> for &'de str
[src]
impl<'de> Decode<'de, MySql> for OffsetDateTime
[src]
fn decode(value: MySqlValue<'de>) -> Result<OffsetDateTime, Error<MySql>>
[src]
impl<'de> Decode<'de, MySql> for Time
[src]
impl<'de> Decode<'de, MySql> for &'de [u8]
[src]
impl<'de> Decode<'de, MySql> for u32
[src]
impl<'de> Decode<'de, MySql> for NaiveDateTime
[src]
fn decode(buf: MySqlValue<'de>) -> Result<NaiveDateTime, Error<MySql>>
[src]
impl<'de> Decode<'de, MySql> for u64
[src]
impl<'de> Decode<'de, MySql> for i8
[src]
impl<'de> Decode<'de, MySql> for i64
[src]
impl<'de> Decode<'de, MySql> for i16
[src]
impl<'de> Decode<'de, MySql> for PrimitiveDateTime
[src]
fn decode(value: MySqlValue<'de>) -> Result<PrimitiveDateTime, Error<MySql>>
[src]
impl<'de> Decode<'de, MySql> for Date
[src]
impl<'de> Decode<'de, MySql> for i32
[src]
impl<'de> Decode<'de, MySql> for Vec<u8>
[src]
impl<'de> Decode<'de, MySql> for bool
[src]
impl<'de> Decode<'de, MySql> for f64
[src]
impl<'de> Decode<'de, MySql> for u8
[src]
impl<'de> Decode<'de, MySql> for f32
[src]
impl<'de> Decode<'de, MySql> for u16
[src]
impl<'de> Decode<'de, MySql> for NaiveDate
[src]
impl<'de> Decode<'de, MySql> for String
[src]
impl<'de> Decode<'de, MySql> for DateTime<Utc>
[src]
impl<'de> Decode<'de, MySql> for NaiveTime
[src]
impl Encode<MySql> for u64
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for u32
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for Date
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for i16
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for u16
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for f32
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for i8
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for [u8]
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for i64
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for Time
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for bool
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for DateTime<Utc>
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for OffsetDateTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for NaiveTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for i32
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for u8
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for NaiveDateTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for Vec<u8>
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for str
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for PrimitiveDateTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for String
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for NaiveDate
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
impl Encode<MySql> for f64
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[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]
impl<O, F> TryMapRow<MySql> for F where
F: FnMut(MySqlRow<'c>) -> Result<O, Error<MySql>>,
O: Unpin,
[src]
F: FnMut(MySqlRow<'c>) -> Result<O, Error<MySql>>,
O: Unpin,
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.
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for i8
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for NaiveTime
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for u8
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for Vec<u8>
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for u64
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for [u8]
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for NaiveDateTime
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for Time
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for i32
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for PrimitiveDateTime
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for u16
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for Date
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for NaiveDate
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for i64
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for str
[src]
fn type_info() -> MySqlTypeInfo
[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);
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for bool
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for i16
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for u32
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for OffsetDateTime
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for String
[src]
fn type_info() -> MySqlTypeInfo
[src]
impl Type<MySql> for DateTime<Utc>
[src]
fn type_info() -> MySqlTypeInfo
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,