pub struct ContextRepository<'a, E> { /* private fields */ }Implementations§
Source§impl<'a, E> ContextRepository<'a, E>
impl<'a, E> ContextRepository<'a, E>
pub async fn fetch_all( &self, query: SelectQuery, ) -> Result<Vec<Record>, RepositoryError<E::Error>>
pub async fn fetch_smart_list( &self, query: &SelectQuery, ) -> Result<SmartList<Record>, RepositoryError<E::Error>>
pub async fn fetch_entities<T>(
&self,
query: &SelectQuery,
) -> Result<SmartList<T>, RepositoryError<E::Error>>where
T: Entity,
pub async fn fetch_enhanced_entities<T>(
&self,
query: &SelectQuery,
) -> Result<SmartList<T>, RepositoryError<E::Error>>where
T: Entity,
pub async fn insert( &self, command: &InsertCommand, ) -> Result<u64, RepositoryError<E::Error>>
pub async fn update( &self, command: &UpdateCommand, ) -> Result<u64, RepositoryError<E::Error>>
pub async fn batch_insert( &self, command: &BatchInsertCommand, ) -> Result<u64, RepositoryError<E::Error>>
pub async fn batch_update( &self, command: &BatchUpdateCommand, ) -> Result<u64, RepositoryError<E::Error>>
pub async fn delete( &self, command: &DeleteCommand, ) -> Result<u64, RepositoryError<E::Error>>
pub async fn recover( &self, command: &RecoverCommand, ) -> Result<u64, RepositoryError<E::Error>>
Auto Trait Implementations§
impl<'a, E> !RefUnwindSafe for ContextRepository<'a, E>
impl<'a, E> !UnwindSafe for ContextRepository<'a, E>
impl<'a, E> Freeze for ContextRepository<'a, E>
impl<'a, E> Send for ContextRepository<'a, E>where
E: Sync,
impl<'a, E> Sync for ContextRepository<'a, E>where
E: Sync,
impl<'a, E> Unpin for ContextRepository<'a, E>
impl<'a, E> UnsafeUnpin for ContextRepository<'a, E>
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