servers::query_handler

Trait LogQueryHandler

Source
pub trait LogQueryHandler {
    // Required methods
    fn query<'life0, 'async_trait>(
        &'life0 self,
        query: LogQuery,
        ctx: QueryContextRef,
    ) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn catalog_manager(&self, ctx: &QueryContext) -> Result<&dyn CatalogManager>;
}
Expand description

Handle log query requests.

Required Methods§

Source

fn query<'life0, 'async_trait>( &'life0 self, query: LogQuery, ctx: QueryContextRef, ) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute a log query.

Source

fn catalog_manager(&self, ctx: &QueryContext) -> Result<&dyn CatalogManager>

Get catalog manager.

Implementors§