Struct xql_sqlx_mysql::MySql
[−]pub struct MySql;
Expand description
MySQL database driver.
Trait Implementations
impl 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.
impl<'_, '_> Encode<'_, MySql> for &'_ str
impl<'_, '_> Encode<'_, MySql> for &'_ str
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
impl<'_, '_> Encode<'_, MySql> for &'_ [u8]
impl<'_, '_> Encode<'_, MySql> for &'_ [u8]
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
impl<'_> HasArguments<'_> for MySql
impl<'_> HasArguments<'_> for MySql
impl<'q> HasStatement<'q> for MySql
impl<'q> HasStatement<'q> for MySql
impl<'r> HasValueRef<'r> for MySql
impl<'r> HasValueRef<'r> for MySql
impl Type<MySql> for str
impl Type<MySql> for str
pub fn compatible(ty: &MySqlTypeInfo) -> bool
pub fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Type<MySql> for [u8]
impl Type<MySql> for [u8]
pub fn compatible(ty: &MySqlTypeInfo) -> bool
pub 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more