pub trait AsyncDatabaseExecutor {
// Required methods
fn execute_batch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SqlMiddlewareDbError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn execute_select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<ResultSet, SqlMiddlewareDbError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn execute_dml<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<usize, SqlMiddlewareDbError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Required Methods§
Sourcefn execute_batch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_batch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a batch of SQL queries (can be a mix of reads/writes) within a transaction. No parameters are supported.
Sourcefn execute_select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<ResultSet, SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<ResultSet, SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Executes a single SELECT statement and returns the result set.
Sourcefn execute_dml<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<usize, SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_dml<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [RowValues],
) -> Pin<Box<dyn Future<Output = Result<usize, SqlMiddlewareDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Executes a single DML statement (INSERT, UPDATE, DELETE, etc.) and returns the number of rows affected.