Skip to main content

TeaqlRecordDataService

Trait TeaqlRecordDataService 

Source
pub trait TeaqlRecordDataService {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    async fn fetch_all(
        &self,
        query: &SelectQuery,
    ) -> Result<Vec<Record>, DataServiceError<Self::Error>>;
    async fn fetch_smart_list(
        &self,
        query: &SelectQuery,
    ) -> Result<SmartList<Record>, DataServiceError<Self::Error>>;
    async fn fetch_smart_list_with_relation_aggregates(
        &self,
        query: &SelectQuery,
        relation_aggregates: &[RuntimeRelationAggregate],
    ) -> Result<SmartList<Record>, DataServiceError<Self::Error>>;
    async fn fetch_stream(
        &self,
        query: &SelectQuery,
    ) -> Result<Vec<StreamChunk>, DataServiceError<Self::Error>>;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§