pub struct DB<'a> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Storage for DB<'_>
impl Storage for DB<'_>
fn save(&self, item: &impl StoreObject) -> DBResult<usize>
fn get_all<T: StoreObject>(&self) -> DBResult<Vec<T>>
fn remove_by_filter<T: StoreObject>(
&self,
filter: Filter<'_>
) -> DBResult<usize>
fn get_by_statement<T: StoreObject>(&self, s: Statement<'_>) -> DBResult<Vec<T>>
fn get_by_id<T: StoreObject>(&self, id: usize) -> DBResult<T> where
Self: Sized,
fn get_by_filter<T: StoreObject>(&self, f: Filter<'_>) -> DBResult<Vec<T>> where
Self: Sized,
fn get_with_max<T: StoreObject>(&self, f: &str) -> DBResult<Option<T>> where
Self: Sized,
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DB<'a>
impl<'a> !Send for DB<'a>
impl<'a> !Sync for DB<'a>
impl<'a> Unpin for DB<'a>
impl<'a> !UnwindSafe for DB<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more