vantage-expressions 0.4.1

Database agnostic expressions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Trait for associated queries that can be executed
///
/// This trait provides execution methods for queries that have been
/// associated with their datasource, allowing direct execution without
/// passing the datasource separately.
use vantage_core::Result;

#[async_trait::async_trait]
pub trait AssociatedQueryable<R> {
    /// Execute the query and return the result in the expected type
    async fn get(&self) -> Result<R>;
}