pub struct MySql;
Expand description
MySQL database driver.
Trait Implementations
sourceimpl Database for MySql
impl Database for MySql
type Connection = MySqlConnection
type Connection = MySqlConnection
The concrete Connection
implementation for this database.
type TransactionManager = MySqlTransactionManager
type TransactionManager = MySqlTransactionManager
The concrete TransactionManager
implementation for this database.
type QueryResult = MySqlQueryResult
type QueryResult = MySqlQueryResult
The concrete QueryResult
implementation for this database.
type Column = MySqlColumn
type Column = MySqlColumn
The concrete Column
implementation for this database.
type TypeInfo = MySqlTypeInfo
type TypeInfo = MySqlTypeInfo
The concrete TypeInfo
implementation for this database.
type Value = MySqlValue
type Value = MySqlValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database. Read more
sourceimpl Decode<'_, MySql> for bool
impl Decode<'_, MySql> for bool
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for Vec<u8>
impl Decode<'_, MySql> for Vec<u8>
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for u16
impl Decode<'_, MySql> for u16
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for u32
impl Decode<'_, MySql> for u32
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for u64
impl Decode<'_, MySql> for u64
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for BigDecimal
impl Decode<'_, MySql> for BigDecimal
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for Decimal
impl Decode<'_, MySql> for Decimal
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for Uuid
impl Decode<'_, MySql> for Uuid
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for Hyphenated
impl Decode<'_, MySql> for Hyphenated
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for f32
impl Decode<'_, MySql> for f32
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for f64
impl Decode<'_, MySql> for f64
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for i8
impl Decode<'_, MySql> for i8
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for i16
impl Decode<'_, MySql> for i16
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for i32
impl Decode<'_, MySql> for i32
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for i64
impl Decode<'_, MySql> for i64
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for String
impl Decode<'_, MySql> for String
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Decode<'_, MySql> for u8
impl Decode<'_, MySql> for u8
sourcefn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for &'r [u8]
impl<'r> Decode<'r, MySql> for &'r [u8]
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for &'r str
impl<'r> Decode<'r, MySql> for &'r str
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for Date
impl<'r> Decode<'r, MySql> for Date
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for PrimitiveDateTime
impl<'r> Decode<'r, MySql> for PrimitiveDateTime
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r, T> Decode<'r, MySql> for Json<T> where
T: 'r + Deserialize<'r>,
impl<'r, T> Decode<'r, MySql> for Json<T> where
T: 'r + Deserialize<'r>,
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for Cow<'r, str>
impl<'r> Decode<'r, MySql> for Cow<'r, str>
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for DateTime<Utc>
impl<'r> Decode<'r, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for DateTime<Local>
impl<'r> Decode<'r, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for NaiveTime
impl<'r> Decode<'r, MySql> for NaiveTime
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for NaiveDate
impl<'r> Decode<'r, MySql> for NaiveDate
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for NaiveDateTime
impl<'r> Decode<'r, MySql> for NaiveDateTime
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for OffsetDateTime
impl<'r> Decode<'r, MySql> for OffsetDateTime
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl<'r> Decode<'r, MySql> for Time
impl<'r> Decode<'r, MySql> for Time
sourcefn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
sourceimpl Encode<'_, MySql> for bool
impl Encode<'_, MySql> for bool
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for &[u8]
impl Encode<'_, MySql> for &[u8]
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for String
impl Encode<'_, MySql> for String
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for Cow<'_, str>
impl Encode<'_, MySql> for Cow<'_, str>
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for u8
impl Encode<'_, MySql> for u8
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for u16
impl Encode<'_, MySql> for u16
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for u32
impl Encode<'_, MySql> for u32
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for u64
impl Encode<'_, MySql> for u64
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for BigDecimal
impl Encode<'_, MySql> for BigDecimal
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for Decimal
impl Encode<'_, MySql> for Decimal
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for DateTime<Utc>
impl Encode<'_, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for DateTime<Local>
impl Encode<'_, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for Vec<u8>
impl Encode<'_, MySql> for Vec<u8>
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for NaiveTime
impl Encode<'_, MySql> for NaiveTime
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for NaiveDate
impl Encode<'_, MySql> for NaiveDate
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for NaiveDateTime
impl Encode<'_, MySql> for NaiveDateTime
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for OffsetDateTime
impl Encode<'_, MySql> for OffsetDateTime
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for Time
impl Encode<'_, MySql> for Time
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for Date
impl Encode<'_, MySql> for Date
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for PrimitiveDateTime
impl Encode<'_, MySql> for PrimitiveDateTime
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
sourceimpl Encode<'_, MySql> for Uuid
impl Encode<'_, MySql> for Uuid
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for Hyphenated
impl Encode<'_, MySql> for Hyphenated
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl<T> Encode<'_, MySql> for Json<T> where
T: Serialize,
impl<T> Encode<'_, MySql> for Json<T> where
T: Serialize,
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for f32
impl Encode<'_, MySql> for f32
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for f64
impl Encode<'_, MySql> for f64
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for i8
impl Encode<'_, MySql> for i8
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for i16
impl Encode<'_, MySql> for i16
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for i32
impl Encode<'_, MySql> for i32
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for i64
impl Encode<'_, MySql> for i64
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl Encode<'_, MySql> for &str
impl Encode<'_, MySql> for &str
sourcefn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl<'q, T> Encode<'q, MySql> for Option<T> where
T: Encode<'q, MySql> + Type<MySql> + 'q,
impl<'q, T> Encode<'q, MySql> for Option<T> where
T: Encode<'q, MySql> + Type<MySql> + 'q,
fn produces(&self) -> Option<<MySql as Database>::TypeInfo>
sourcefn encode(self, buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
sourcefn encode_by_ref(
&self,
buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn encode_by_ref(
&self,
buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn size_hint(&self) -> usize
sourceimpl HasArguments<'_> for MySql
impl HasArguments<'_> for MySql
type Database = MySql
type Arguments = MySqlArguments
type Arguments = MySqlArguments
The concrete Arguments
implementation for this database.
type ArgumentBuffer = Vec<u8, Global>
type ArgumentBuffer = Vec<u8, Global>
The concrete type used as a buffer for arguments while encoding.
sourceimpl<'q> HasStatement<'q> for MySql
impl<'q> HasStatement<'q> for MySql
type Database = MySql
type Statement = MySqlStatement<'q>
type Statement = MySqlStatement<'q>
The concrete Statement
implementation for this database.
sourceimpl<'r> HasValueRef<'r> for MySql
impl<'r> HasValueRef<'r> for MySql
type Database = MySql
type ValueRef = MySqlValueRef<'r>
type ValueRef = MySqlValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database. Read more
sourceimpl MigrateDatabase for MySql
impl MigrateDatabase for MySql
sourceimpl Type<MySql> for bool
impl Type<MySql> for bool
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for [u8]
impl Type<MySql> for [u8]
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for String
impl Type<MySql> for String
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Cow<'_, str>
impl Type<MySql> for Cow<'_, str>
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for u8
impl Type<MySql> for u8
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for u16
impl Type<MySql> for u16
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for u32
impl Type<MySql> for u32
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for u64
impl Type<MySql> for u64
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for BigDecimal
impl Type<MySql> for BigDecimal
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Decimal
impl Type<MySql> for Decimal
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for DateTime<Utc>
impl Type<MySql> for DateTime<Utc>
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for DateTime<Local>
impl Type<MySql> for DateTime<Local>
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Vec<u8>
impl Type<MySql> for Vec<u8>
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for NaiveTime
impl Type<MySql> for NaiveTime
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for NaiveDate
impl Type<MySql> for NaiveDate
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for NaiveDateTime
impl Type<MySql> for NaiveDateTime
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for OffsetDateTime
impl Type<MySql> for OffsetDateTime
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Time
impl Type<MySql> for Time
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Date
impl Type<MySql> for Date
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for PrimitiveDateTime
impl Type<MySql> for PrimitiveDateTime
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &DB::TypeInfo) -> bool
fn compatible(ty: &DB::TypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Uuid
impl Type<MySql> for Uuid
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for Hyphenated
impl Type<MySql> for Hyphenated
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl<T> Type<MySql> for Json<T>
impl<T> Type<MySql> for Json<T>
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for f32
impl Type<MySql> for f32
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for f64
impl Type<MySql> for f64
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for i8
impl Type<MySql> for i8
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for i16
impl Type<MySql> for i16
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for i32
impl Type<MySql> for i32
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for i64
impl Type<MySql> for i64
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<MySql> for str
impl Type<MySql> for str
sourcefn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for MySql
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more