[][src]Struct debil_mysql::DebilConn

pub struct DebilConn { /* fields omitted */ }

Methods

impl DebilConn[src]

pub fn as_conn(self) -> Conn[src]

pub fn from_conn(conn: Conn) -> Self[src]

pub async fn sql_query_with_map<'_, U>(
    &'_ mut self,
    query: impl AsRef<str>,
    parameters: impl Into<Params>,
    mapper: impl FnMut(Row) -> U
) -> Result<Vec<U>, Error>
[src]

pub async fn drop_table<'_, T: SQLTable<ValueType = MySQLValue> + Sync + Send>(
    &'_ mut self
) -> Result<(), Error>
[src]

pub async fn migrate<'_, T: SQLTable<ValueType = MySQLValue> + Sync + Send>(
    &'_ mut self
) -> Result<(), Error>
[src]

pub async fn save_all<'_, T: SQLTable<ValueType = MySQLValue> + Clone>(
    &'_ mut self,
    datas: Vec<T>
) -> Result<(), Error>
[src]

Trait Implementations

impl SQLConn<MySQLValue> for DebilConn[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,