pub struct TransactionalStore<'a, T> { /* private fields */ }
Implementations§
Source§impl<'a, T: Queryable + Serialize + DeserializeOwned> TransactionalStore<'a, T>
impl<'a, T: Queryable + Serialize + DeserializeOwned> TransactionalStore<'a, T>
pub fn create( &self, id: u64, inner: &T, ) -> Result<u64, ConflictableTransactionError<Error>>
pub fn create_multi( &self, ids: Vec<u64>, inners: &[T], ) -> Result<Vec<u64>, ConflictableTransactionError<Error>>
pub fn update( &self, object: &Object<T>, ) -> Result<(), ConflictableTransactionError<Error>>
pub fn update_multi( &self, objects: &[Object<T>], ) -> Result<(), ConflictableTransactionError<Error>>
pub fn delete(&self, id: u64) -> Result<(), ConflictableTransactionError<Error>>
pub fn delete_multi( &self, ids: &[u64], ) -> Result<(), ConflictableTransactionError<Error>>
pub fn find( &self, id: u64, ) -> Result<Option<Object<T>>, ConflictableTransactionError<Error>>
pub fn filter<Q: TransactionalQuery<TransactionalTree>>( &self, query: Q, ) -> Result<TransactionalResults<'_, T>, ConflictableTransactionError<Error>>
Auto Trait Implementations§
impl<'a, T> Freeze for TransactionalStore<'a, T>
impl<'a, T> !RefUnwindSafe for TransactionalStore<'a, T>
impl<'a, T> !Send for TransactionalStore<'a, T>
impl<'a, T> !Sync for TransactionalStore<'a, T>
impl<'a, T> Unpin for TransactionalStore<'a, T>
impl<'a, T> !UnwindSafe for TransactionalStore<'a, T>
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