[−][src]Struct debil_mysql::DebilConn
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]
&'_ mut self,
query: impl AsRef<str>,
parameters: impl Into<Params>,
mapper: impl FnMut(Row) -> U
) -> Result<Vec<U>, Error>
pub async fn drop_table<'_, T: SQLTable<ValueType = MySQLValue> + Sync + Send>(
&'_ mut self
) -> Result<(), Error>
[src]
&'_ mut self
) -> Result<(), Error>
pub async fn migrate<'_, T: SQLTable<ValueType = MySQLValue> + Sync + Send>(
&'_ mut self
) -> Result<(), Error>
[src]
&'_ mut self
) -> Result<(), Error>
pub async fn save_all<'_, T: SQLTable<ValueType = MySQLValue> + Clone>(
&'_ mut self,
datas: Vec<T>
) -> Result<(), Error>
[src]
&'_ mut self,
datas: Vec<T>
) -> Result<(), Error>
Trait Implementations
impl SQLConn<MySQLValue> for DebilConn
[src]
type Error = Error
fn sql_exec<'life0, 'async_trait>(
&'life0 mut self,
query: String,
params: Params<MySQLValue>
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
query: String,
params: Params<MySQLValue>
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn sql_query<'life0, 'async_trait, T: SQLMapper<ValueType = MySQLValue> + Sync + Send>(
&'life0 mut self,
query: String,
params: Params<MySQLValue>
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
query: String,
params: Params<MySQLValue>
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn sql_batch_exec<'life0, 'async_trait>(
&'life0 mut self,
query: String,
params_vec: Vec<Params<MySQLValue>>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
query: String,
params_vec: Vec<Params<MySQLValue>>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_table<'life0, 'async_trait, T>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
fn save<'life0, 'async_trait, T>(
&'life0 mut self,
data: T
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self,
data: T
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
fn load_with2<'life0, 'async_trait, T, U>(
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<Vec<U>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable + 'async_trait,
U: SQLMapper<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<Vec<U>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable + 'async_trait,
U: SQLMapper<ValueType = V> + Send + Sync + 'async_trait,
fn load_with<'life0, 'async_trait, T>(
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
fn first_with<'life0, 'async_trait, T>(
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self,
builder: QueryBuilder
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
fn load<'life0, 'async_trait, T>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
fn first<'life0, 'async_trait, T>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: Send + 'async_trait,
T: SQLTable<ValueType = V> + Send + Sync + 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for DebilConn
impl Send for DebilConn
impl Sync for DebilConn
impl Unpin for DebilConn
impl !UnwindSafe for DebilConn
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,
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.
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.
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>,