servers::query_handler::sqlTrait SqlQueryHandler
source pub trait SqlQueryHandler {
type Error: ErrorExt;
// Required methods
fn do_query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn do_exec_plan<'life0, 'async_trait>(
&'life0 self,
plan: LogicalPlan,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn do_promql_query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 PromQuery,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn do_describe<'life0, 'async_trait>(
&'life0 self,
stmt: Statement,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Option<DescribeResult>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_valid_schema<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}