Struct agdb::TransactionMut
source · pub struct TransactionMut<'a, Store: StorageData> { /* private fields */ }Expand description
The TransactionMut is a proxy struct that
encapsulates a mutably borrowed DbImpl.
It allows running queries via exec() and exec_mut().
Implementations§
source§impl<'a, Store: StorageData> TransactionMut<'a, Store>
impl<'a, Store: StorageData> TransactionMut<'a, Store>
sourcepub fn exec<T: Query>(&self, query: &T) -> Result<QueryResult, QueryError>
pub fn exec<T: Query>(&self, query: &T) -> Result<QueryResult, QueryError>
Executes immutable queries:
- Select elements
- Select values
- Select keys
- Select key count
- Select aliases
- Select all aliases
- Search
sourcepub fn exec_mut<T: QueryMut>(
&mut self,
query: &T
) -> Result<QueryResult, QueryError>
pub fn exec_mut<T: QueryMut>( &mut self, query: &T ) -> Result<QueryResult, QueryError>
Executes mutable queries:
- Insert nodes
- Insert edges
- Insert aliases
- Insert values
- Remove elements
- Remove aliases
- Remove values
Auto Trait Implementations§
impl<'a, Store> RefUnwindSafe for TransactionMut<'a, Store>where
Store: RefUnwindSafe,
impl<'a, Store> Send for TransactionMut<'a, Store>where
Store: Send,
impl<'a, Store> Sync for TransactionMut<'a, Store>where
Store: Sync,
impl<'a, Store> Unpin for TransactionMut<'a, Store>
impl<'a, Store> !UnwindSafe for TransactionMut<'a, Store>
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