pub struct MergeRelationshipOp {
pub variable: String,
pub source_variable: String,
pub target_variable: String,
pub edge_type: String,
pub match_properties: Vec<(String, LogicalExpression)>,
pub on_create: Vec<(String, LogicalExpression)>,
pub on_match: Vec<(String, LogicalExpression)>,
pub input: Box<LogicalOperator>,
}Expand description
Merge a relationship pattern (match or create between two bound nodes).
MERGE on a relationship tries to find an existing relationship of the given type between the source and target nodes. If found, returns the existing relationship (optionally applying ON MATCH SET). If not found, creates it (optionally applying ON CREATE SET).
Fields§
§variable: StringVariable to bind the relationship to.
source_variable: StringSource node variable (must already be bound).
target_variable: StringTarget node variable (must already be bound).
edge_type: StringRelationship type.
match_properties: Vec<(String, LogicalExpression)>Properties that must match (used for both matching and creation).
on_create: Vec<(String, LogicalExpression)>Properties to set on CREATE.
on_match: Vec<(String, LogicalExpression)>Properties to set on MATCH.
input: Box<LogicalOperator>Input operator.
Trait Implementations§
Source§impl Clone for MergeRelationshipOp
impl Clone for MergeRelationshipOp
Source§fn clone(&self) -> MergeRelationshipOp
fn clone(&self) -> MergeRelationshipOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MergeRelationshipOp
impl RefUnwindSafe for MergeRelationshipOp
impl Send for MergeRelationshipOp
impl Sync for MergeRelationshipOp
impl Unpin for MergeRelationshipOp
impl UnsafeUnpin for MergeRelationshipOp
impl UnwindSafe for MergeRelationshipOp
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more