Trait ProviderExecutor
Source pub trait ProviderExecutor: Send + Sync {
// Required methods
fn query(&self, sql: &str) -> KnowledgeResult<Vec<RowData>>;
fn query_fields(
&self,
sql: &str,
params: &[DataField],
) -> KnowledgeResult<Vec<RowData>>;
fn query_row(&self, sql: &str) -> KnowledgeResult<RowData>;
fn query_named_fields(
&self,
sql: &str,
params: &[DataField],
) -> KnowledgeResult<RowData>;
// Provided methods
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = KnowledgeResult<Vec<RowData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn query_fields_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sql: &'life1 str,
params: &'life2 [DataField],
) -> Pin<Box<dyn Future<Output = KnowledgeResult<Vec<RowData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn query_row_async<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = KnowledgeResult<RowData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn query_named_fields_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sql: &'life1 str,
params: &'life2 [DataField],
) -> Pin<Box<dyn Future<Output = KnowledgeResult<RowData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}