pub enum MutationStage {
Update {
target: BindingId,
data: UpdateData,
},
Delete {
target: BindingId,
detach: DetachMode,
},
Insert(InsertStage),
}Expand description
One write stage applied to the binding table, in textual order.
A stage consumes the binding rows produced by earlier steps (or a single
empty row, for a leading INSERT), performs its write through the native
document pipeline, and passes the rows on so a trailing RETURN can
project the post-mutation state.
Variants§
Update
SET a.p = v / SET a = {…} / REMOVE a.p: mutate the record bound at
target.
Delete
[DETACH|NODETACH] DELETE a: delete the record bound at target.
Insert(InsertStage)
INSERT …: create the new nodes and relate the new edges.
Trait Implementations§
Source§impl Clone for MutationStage
impl Clone for MutationStage
Source§impl Debug for MutationStage
impl Debug for MutationStage
impl Eq for MutationStage
Source§impl Hash for MutationStage
impl Hash for MutationStage
Source§impl PartialEq for MutationStage
impl PartialEq for MutationStage
impl StructuralPartialEq for MutationStage
Auto Trait Implementations§
impl !Freeze for MutationStage
impl RefUnwindSafe for MutationStage
impl Send for MutationStage
impl Sync for MutationStage
impl Unpin for MutationStage
impl UnsafeUnpin for MutationStage
impl UnwindSafe for MutationStage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.