pub trait Connection: DynClone + Send + Sync {
// Required methods
fn exec<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sql: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_iter<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sql: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Row, Error>> + Send>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_iter_with_progress<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sql: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<RowWithProgress, Error>> + Send>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_row<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sql: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Row>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Performs copy-assignment from
source
.
Read more
Performs copy-assignment from
source
.
Read more
Performs copy-assignment from
source
.
Read more
Performs copy-assignment from
source
.
Read more