pub struct LogicalMergeRel {
pub rel_table_name: String,
pub rel_table_id: u64,
pub edge_var: String,
pub src_node_var: String,
pub dst_node_var: String,
pub properties: Vec<(String, Expression)>,
pub on_match: Vec<LogicalSet>,
pub on_create: Vec<LogicalSet>,
pub cardinality: u64,
}Expand description
Logical operator for edge MERGE (P53.20): MERGE (a)-[r:R]->(b).
Matches an existing edge from src to dst on the rel table whose props
equal the pattern properties; if absent, inserts a new edge. Emits the
matched/inserted edge’s _id as <edge_var>._id so a following SET clause
can target it.
Fields§
§rel_table_name: String§rel_table_id: u64§edge_var: StringVariable bound to the edge (e.g. r).
src_node_var: StringNode variables bound by a prior MATCH that anchor the endpoints.
dst_node_var: String§properties: Vec<(String, Expression)>Inline properties from the edge pattern ({type: $type}).
on_match: Vec<LogicalSet>SET operations applied when the edge already exists (empty for the
standalone-SET form used by Kairos add_connection).
on_create: Vec<LogicalSet>SET operations applied when a new edge is created.
cardinality: u64Trait Implementations§
Source§impl Clone for LogicalMergeRel
impl Clone for LogicalMergeRel
Source§fn clone(&self) -> LogicalMergeRel
fn clone(&self) -> LogicalMergeRel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogicalMergeRel
impl RefUnwindSafe for LogicalMergeRel
impl Send for LogicalMergeRel
impl Sync for LogicalMergeRel
impl Unpin for LogicalMergeRel
impl UnsafeUnpin for LogicalMergeRel
impl UnwindSafe for LogicalMergeRel
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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