Trait servers::query_handler::sql::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;
}

Required Associated Types§

source

type Error: ErrorExt

Required Methods§

source

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,

source

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,

source

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,

source

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,

source

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,

Implementors§

source§

impl<E> SqlQueryHandler for ServerSqlQueryHandlerAdapter<E>
where E: ErrorExt + Send + Sync + 'static,

§

type Error = Error