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