pub trait AsyncDbConnection<T, P>: DbConnection<T, P> + Sync {
// Required methods
fn new(conn: T) -> Self
where Self: Sized;
fn get_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
table_reference: &'life1 TableReference,
) -> Pin<Box<dyn Future<Output = Result<SchemaRef, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_arrow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sql: &'life1 str,
params: &'life2 [P],
projected_schema: Option<SchemaRef>,
) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream, GenericError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sql: &'life1 str,
params: &'life2 [P],
) -> Pin<Box<dyn Future<Output = Result<u64, GenericError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}