Skip to main content

TeaqlEntityRepository

Trait TeaqlEntityRepository 

Source
pub trait TeaqlEntityRepository: TeaqlRecordRepository {
    // Required methods
    async fn fetch_enhanced_entities<T>(
        &self,
        query: &SelectQuery,
    ) -> Result<SmartList<T>, RepositoryError<Self::Error>>
       where T: Entity;
    async fn fetch_enhanced_entities_with_relation_aggregates<T>(
        &self,
        query: &SelectQuery,
        relation_aggregates: &[RuntimeRelationAggregate],
    ) -> Result<SmartList<T>, RepositoryError<Self::Error>>
       where T: Entity;
    async fn save_entity_graph<T>(
        &self,
        entity: T,
    ) -> Result<GraphNode, RepositoryError<Self::Error>>
       where T: Entity;
}

Required Methods§

Source

async fn fetch_enhanced_entities<T>( &self, query: &SelectQuery, ) -> Result<SmartList<T>, RepositoryError<Self::Error>>
where T: Entity,

Source

async fn fetch_enhanced_entities_with_relation_aggregates<T>( &self, query: &SelectQuery, relation_aggregates: &[RuntimeRelationAggregate], ) -> Result<SmartList<T>, RepositoryError<Self::Error>>
where T: Entity,

Source

async fn save_entity_graph<T>( &self, entity: T, ) -> Result<GraphNode, RepositoryError<Self::Error>>
where T: Entity,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§