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§
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>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".