pub struct EntityDataService<'a, E> { /* private fields */ }Implementations§
Source§impl<'a, E> EntityDataService<'a, E>
impl<'a, E> EntityDataService<'a, E>
pub async fn plan_graph( &self, node: GraphNode, ) -> Result<GraphMutationPlan, DataServiceError<E::Error>>
pub fn graph_node_from_entity<T>(
&self,
entity: T,
) -> Result<GraphNode, RuntimeError>where
T: Entity,
Source§impl<'a, E> EntityDataService<'a, E>
impl<'a, E> EntityDataService<'a, E>
pub fn relation_loads(&self) -> Vec<String>
pub fn relation_plans(&self) -> Result<Vec<RelationLoadPlan>, RuntimeError>
pub fn relation_query( &self, relation_name: &str, parent_rows: &[CompactRow], ) -> Result<SelectQuery, RuntimeError>
Source§impl<'a, E> EntityDataService<'a, E>
impl<'a, E> EntityDataService<'a, E>
pub fn entity(&self) -> &str
pub fn select(&self) -> SelectQuery
pub fn insert_command(&self) -> InsertCommand
pub fn prepare_insert_command( &self, command: &InsertCommand, ) -> Result<InsertCommand, RuntimeError>
pub fn update_command(&self, id: impl Into<Value>) -> UpdateCommand
pub fn prepare_update_command( &self, command: &UpdateCommand, ) -> Result<UpdateCommand, RuntimeError>
pub fn delete_command(&self, id: impl Into<Value>) -> DeleteCommand
pub fn recover_command( &self, id: impl Into<Value>, expected_version: i64, ) -> RecoverCommand
Source§impl<'a, E> EntityDataService<'a, E>
impl<'a, E> EntityDataService<'a, E>
pub fn with_trace_context(self, trace_context: Vec<TraceNode>) -> Self
Trait Implementations§
Source§impl<'a, E> TeaqlEntityDataService for EntityDataService<'a, E>
impl<'a, E> TeaqlEntityDataService for EntityDataService<'a, E>
async fn fetch_enhanced_entities<T>(
&self,
query: &PurposedSelectQuery,
) -> Result<SmartList<T>, DataServiceError<Self::Error>>where
T: Entity,
async fn fetch_enhanced_entities_with_relation_aggregates<T>(
&self,
query: &PurposedSelectQuery,
relation_aggregates: &[RuntimeRelationAggregate],
) -> Result<SmartList<T>, DataServiceError<Self::Error>>where
T: Entity,
Source§impl<'a, E> TeaqlQueryDataService for EntityDataService<'a, E>
impl<'a, E> TeaqlQueryDataService for EntityDataService<'a, E>
type Error = <E as DataServiceExecutor>::Error
async fn fetch_all( &self, query: &PurposedSelectQuery, ) -> Result<Vec<CompactRow>, DataServiceError<Self::Error>>
async fn fetch_smart_list( &self, query: &PurposedSelectQuery, ) -> Result<SmartList<CompactRow>, DataServiceError<Self::Error>>
async fn fetch_smart_list_with_relation_aggregates( &self, query: &PurposedSelectQuery, relation_aggregates: &[RuntimeRelationAggregate], ) -> Result<SmartList<CompactRow>, DataServiceError<Self::Error>>
async fn fetch_stream( &self, query: &PurposedSelectQuery, ) -> Result<Pin<Box<dyn Stream<Item = Result<StreamChunk, DataServiceError<Self::Error>>> + '_>>, DataServiceError<Self::Error>>
Auto Trait Implementations§
impl<'a, E> !RefUnwindSafe for EntityDataService<'a, E>
impl<'a, E> !UnwindSafe for EntityDataService<'a, E>
impl<'a, E> Freeze for EntityDataService<'a, E>where
ContextDataService<'a, E>: Freeze,
impl<'a, E> Send for EntityDataService<'a, E>where
ContextDataService<'a, E>: Send,
impl<'a, E> Sync for EntityDataService<'a, E>where
ContextDataService<'a, E>: Sync,
impl<'a, E> Unpin for EntityDataService<'a, E>where
ContextDataService<'a, E>: Unpin,
impl<'a, E> UnsafeUnpin for EntityDataService<'a, E>where
ContextDataService<'a, E>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more