pub struct Repository<'a, D, M, E> { /* private fields */ }Implementations§
Source§impl<'a, D, M, E> Repository<'a, D, M, E>
impl<'a, D, M, E> Repository<'a, D, M, E>
pub fn new(dialect: &'a D, metadata: &'a M, executor: &'a E) -> Self
pub fn compile( &self, query: &SelectQuery, ) -> Result<CompiledQuery, RuntimeError>
pub fn compile_insert( &self, command: &InsertCommand, ) -> Result<CompiledQuery, RuntimeError>
pub fn compile_update( &self, command: &UpdateCommand, ) -> Result<CompiledQuery, RuntimeError>
pub fn compile_delete( &self, command: &DeleteCommand, ) -> Result<CompiledQuery, RuntimeError>
pub fn compile_recover( &self, command: &RecoverCommand, ) -> 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>>
pub fn insert_many( &self, commands: &[InsertCommand], ) -> Result<u64, RepositoryError<E::Error>>
pub fn update_many( &self, commands: &[UpdateCommand], ) -> Result<u64, RepositoryError<E::Error>>
pub fn delete_many( &self, commands: &[DeleteCommand], ) -> Result<u64, RepositoryError<E::Error>>
pub fn recover_many( &self, commands: &[RecoverCommand], ) -> Result<u64, RepositoryError<E::Error>>
Auto Trait Implementations§
impl<'a, D, M, E> Freeze for Repository<'a, D, M, E>
impl<'a, D, M, E> RefUnwindSafe for Repository<'a, D, M, E>
impl<'a, D, M, E> Send for Repository<'a, D, M, E>
impl<'a, D, M, E> Sync for Repository<'a, D, M, E>
impl<'a, D, M, E> Unpin for Repository<'a, D, M, E>
impl<'a, D, M, E> UnsafeUnpin for Repository<'a, D, M, E>
impl<'a, D, M, E> UnwindSafe for Repository<'a, D, M, 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