QueryExecutor

Trait QueryExecutor 

Source
pub trait QueryExecutor: MetricsRepository {
    // Provided method
    fn execute_query<'life0, 'async_trait>(
        &'life0 self,
        query: MetricsQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(ResultKey, AnalyzerContext)>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Extension trait for repositories to provide custom query execution.

Provided Methods§

Source

fn execute_query<'life0, 'async_trait>( &'life0 self, query: MetricsQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<(ResultKey, AnalyzerContext)>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Executes a query with repository-specific optimizations.

Repositories can implement this method to provide more efficient query execution than the default in-memory filtering.

Implementors§