[−][src]Struct rbatis_core::mysql::MySql
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]
fn decode(value: MySqlValue<'_>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for bool[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for Vec<u8>[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for String[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for u8[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for u16[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for u32[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for u64[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for DateTime<Utc>[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for NaiveTime[src]
fn decode(buf: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for NaiveDate[src]
fn decode(buf: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for NaiveDateTime[src]
fn decode(buf: MySqlValue<'de>) -> Result<Self>[src]
impl<'de, T> Decode<'de, MySql> for Option<T> where
T: Decode<'de, MySql>, [src]
T: Decode<'de, MySql>,
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for &'de [u8][src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for f32[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for f64[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for i8[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for i16[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for i32[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for i64[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl<'de> Decode<'de, MySql> for &'de str[src]
fn decode(value: MySqlValue<'de>) -> Result<Self>[src]
impl Encode<MySql> for bool[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::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::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for String[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::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::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::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::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for u64[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for BigDecimal[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn size_hint(&self) -> usize[src]
fn encode_nullable(&self, buf: &mut DB::RawBuffer) -> IsNull[src]
impl Encode<MySql> for DateTime<Utc>[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::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::RawBuffer) -> IsNull[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::RawBuffer) -> IsNull[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::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::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::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for f64[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::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::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for i16[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::RawBuffer) -> IsNull[src]
fn size_hint(&self) -> usize[src]
impl Encode<MySql> for i32[src]
fn encode(&self, buf: &mut Vec<u8>)[src]
fn encode_nullable(&self, buf: &mut DB::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::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::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: Unpin, F> MapRow<MySql> for F where
F: for<'c> FnMut(MySqlRow<'c>) -> O, [src]
F: for<'c> FnMut(MySqlRow<'c>) -> O,
impl<O: Unpin, F> TryMapRow<MySql> for F where
F: for<'c> FnMut(MySqlRow<'c>) -> Result<O>, [src]
F: for<'c> FnMut(MySqlRow<'c>) -> Result<O>,
type Output = O
fn try_map_row(&mut self, row: MySqlRow<'_>) -> Result<O>[src]
impl Type<MySql> for bool[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for [u8][src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for String[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for u8[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for u16[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for u32[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for u64[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for BigDecimal[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for DateTime<Utc>[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for NaiveTime[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for NaiveDate[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for NaiveDateTime[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for Vec<u8>[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 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 i16[src]
fn type_info() -> MySqlTypeInfo[src]
impl Type<MySql> for i32[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]
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,
pub 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.
pub 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.
pub 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>,