pub struct MySql;Expand description
MySQL database driver.
Trait Implementations§
Source§impl Database for MySql
 
impl Database for MySql
Source§const URL_SCHEMES: &'static [&'static str]
 
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = MySqlConnection
 
type Connection = MySqlConnection
The concrete 
Connection implementation for this database.Source§type TransactionManager = MySqlTransactionManager
 
type TransactionManager = MySqlTransactionManager
The concrete 
TransactionManager implementation for this database.Source§type QueryResult = MySqlQueryResult
 
type QueryResult = MySqlQueryResult
The concrete 
QueryResult implementation for this database.Source§type Column = MySqlColumn
 
type Column = MySqlColumn
The concrete 
Column implementation for this database.Source§type TypeInfo = MySqlTypeInfo
 
type TypeInfo = MySqlTypeInfo
The concrete 
TypeInfo implementation for this database.Source§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.
Source§type ValueRef<'r> = MySqlValueRef<'r>
 
type ValueRef<'r> = MySqlValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
Source§type Arguments = MySqlArguments
 
type Arguments = MySqlArguments
The concrete 
Arguments implementation for this database.Source§type ArgumentBuffer = Vec<u8>
 
type ArgumentBuffer = Vec<u8>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = MySqlStatement
 
type Statement = MySqlStatement
The concrete 
Statement implementation for this database.Source§impl Decode<'_, MySql> for IpAddr
 
impl Decode<'_, MySql> for IpAddr
Source§fn 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.
Source§impl Decode<'_, MySql> for Ipv4Addr
 
impl Decode<'_, MySql> for Ipv4Addr
Source§fn 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.
Source§impl Decode<'_, MySql> for Ipv6Addr
 
impl Decode<'_, MySql> for Ipv6Addr
Source§fn 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.
Source§impl Decode<'_, MySql> for String
 
impl Decode<'_, MySql> for String
Source§fn 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.
Source§impl Decode<'_, MySql> for Vec<u8>
 
impl Decode<'_, MySql> for Vec<u8>
Source§fn 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.
Source§impl Decode<'_, MySql> for bool
 
impl Decode<'_, MySql> for bool
Source§fn 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.
Source§impl Decode<'_, MySql> for f32
 
impl Decode<'_, MySql> for f32
Source§fn 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.
Source§impl Decode<'_, MySql> for f64
 
impl Decode<'_, MySql> for f64
Source§fn 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.
Source§impl Decode<'_, MySql> for i16
 
impl Decode<'_, MySql> for i16
Source§fn 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.
Source§impl Decode<'_, MySql> for i32
 
impl Decode<'_, MySql> for i32
Source§fn 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.
Source§impl Decode<'_, MySql> for i64
 
impl Decode<'_, MySql> for i64
Source§fn 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.
Source§impl Decode<'_, MySql> for i8
 
impl Decode<'_, MySql> for i8
Source§fn 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.
Source§impl Decode<'_, MySql> for u16
 
impl Decode<'_, MySql> for u16
Source§fn 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.
Source§impl Decode<'_, MySql> for u32
 
impl Decode<'_, MySql> for u32
Source§fn 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.
Source§impl Decode<'_, MySql> for u64
 
impl Decode<'_, MySql> for u64
Source§fn 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.
Source§impl Decode<'_, MySql> for u8
 
impl Decode<'_, MySql> for u8
Source§fn 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.
Source§impl<'r> Decode<'r, MySql> for &'r [u8]
 
impl<'r> Decode<'r, MySql> for &'r [u8]
Source§fn 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.
Source§impl<'r> Decode<'r, MySql> for &'r str
 
impl<'r> Decode<'r, MySql> for &'r str
Source§fn 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.
Source§impl<'r, T> Decode<'r, MySql> for Text<T>
 
impl<'r, T> Decode<'r, MySql> for Text<T>
Source§fn 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.
Source§impl Encode<'_, MySql> for &[u8]
 
impl Encode<'_, MySql> for &[u8]
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for &str
 
impl Encode<'_, MySql> for &str
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for IpAddr
 
impl Encode<'_, MySql> for IpAddr
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for Ipv4Addr
 
impl Encode<'_, MySql> for Ipv4Addr
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for Ipv6Addr
 
impl Encode<'_, MySql> for Ipv6Addr
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for MySqlTime
 
impl Encode<'_, MySql> for MySqlTime
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl<T> Encode<'_, MySql> for Text<T>where
    T: Display,
 
impl<T> Encode<'_, MySql> for Text<T>where
    T: Display,
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for Vec<u8>
 
impl Encode<'_, MySql> for Vec<u8>
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for bool
 
impl Encode<'_, MySql> for bool
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for f32
 
impl Encode<'_, MySql> for f32
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for f64
 
impl Encode<'_, MySql> for f64
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for i16
 
impl Encode<'_, MySql> for i16
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for i32
 
impl Encode<'_, MySql> for i32
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for i64
 
impl Encode<'_, MySql> for i64
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for i8
 
impl Encode<'_, MySql> for i8
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for u16
 
impl Encode<'_, MySql> for u16
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for u32
 
impl Encode<'_, MySql> for u32
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for u64
 
impl Encode<'_, MySql> for u64
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, MySql> for u8
 
impl Encode<'_, MySql> for u8
Source§fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref(&self, buf: &mut Vec<u8>) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Arc<[u8]>
 
impl<'q> Encode<'q, MySql> for Arc<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Arc<str>
 
impl<'q> Encode<'q, MySql> for Arc<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Box<[u8]>
 
impl<'q> Encode<'q, MySql> for Box<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Box<str>
 
impl<'q> Encode<'q, MySql> for Box<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Cow<'_, [u8]>
 
impl<'q> Encode<'q, MySql> for Cow<'_, [u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Cow<'_, str>
 
impl<'q> Encode<'q, MySql> for Cow<'_, str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, MySql> for Option<T>
 
impl<'q, T> Encode<'q, MySql> for Option<T>
fn produces(&self) -> Option<<MySql as Database>::TypeInfo>
Source§fn encode(
    self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode( self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Writes the value of 
self into buf in the expected format for the database.Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Rc<[u8]>
 
impl<'q> Encode<'q, MySql> for Rc<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for Rc<str>
 
impl<'q> Encode<'q, MySql> for Rc<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, MySql> for String
 
impl<'q> Encode<'q, MySql> for String
Source§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Type<MySql> for [u8]
 
impl Type<MySql> for [u8]
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for IpAddr
 
impl Type<MySql> for IpAddr
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for Ipv4Addr
 
impl Type<MySql> for Ipv4Addr
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for Ipv6Addr
 
impl Type<MySql> for Ipv6Addr
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for String
 
impl Type<MySql> for String
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T> Type<MySql> for Text<T>
 
impl<T> Type<MySql> for Text<T>
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for Vec<u8>
 
impl Type<MySql> for Vec<u8>
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for bool
 
impl Type<MySql> for bool
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for f32
 
impl Type<MySql> for f32
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for f64
 
impl Type<MySql> for f64
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for i16
 
impl Type<MySql> for i16
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for i32
 
impl Type<MySql> for i32
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for i64
 
impl Type<MySql> for i64
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for i8
 
impl Type<MySql> for i8
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for str
 
impl Type<MySql> for str
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for u16
 
impl Type<MySql> for u16
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for u32
 
impl Type<MySql> for u32
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for u64
 
impl Type<MySql> for u64
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<MySql> for u8
 
impl Type<MySql> for u8
Source§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl TypeChecking for MySql
 
impl TypeChecking for MySql
Source§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
 
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
Describes how the database in question typechecks query parameters.
Source§fn param_type_for_id(
    info: &Self::TypeInfo,
    preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
 
fn param_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read moreSource§fn return_type_for_id(
    info: &Self::TypeInfo,
    preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
 
fn return_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read moreimpl HasStatementCache for MySql
Auto Trait Implementations§
impl Freeze for MySql
impl RefUnwindSafe for MySql
impl Send for MySql
impl Sync for MySql
impl Unpin for MySql
impl UnwindSafe for MySql
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more