pub enum BindErrorKind {
UnknownLabel,
UnknownRelationType,
UnknownProperty,
UndeclaredVariable,
DuplicateVariable,
AmbiguousProperty,
UnsupportedClause,
InvalidDeleteTarget,
VariableKindConflict,
VariableAlreadyBound,
InvalidArgument,
}Expand description
The kind of a binder error.
Variants§
UnknownLabel
A label name was not found in the ontology (strict mode).
UnknownRelationType
A relation type name was not found in the ontology (strict mode).
UnknownProperty
A property name was not found in the ontology (strict mode).
UndeclaredVariable
A variable was referenced before it was introduced by a MATCH pattern.
DuplicateVariable
The same variable was introduced more than once in a conflicting way.
AmbiguousProperty
A property name is ambiguous across multiple owner labels.
UnsupportedClause
A clause is recognized by the parser but not yet implemented by the binder/executor (SET/REMOVE/CALL). Surfaced as an error instead of a silent no-op (#724).
InvalidDeleteTarget
A DELETE target was not a plain bound variable (e.g. DELETE n.prop
or DELETE n + 1). Only DELETE <var> is supported (#740).
VariableKindConflict
A variable is used with two incompatible kinds — e.g. a relationship
variable reused as a node pattern (MATCH ()-[r]-() MATCH (r)).
openCypher rejects this as a compile-time VariableTypeConflict (#956).
VariableAlreadyBound
An already-bound variable is re-declared by a CREATE/MERGE pattern
(MATCH (a) CREATE (a), a reused relationship variable, a bound node
given new labels/properties). openCypher VariableAlreadyBound (#956).
InvalidArgument
A clause or function argument is semantically invalid — a non-integer
range()/SKIP/LIMIT argument, an aggregate in WHERE, a CREATE
relationship with no/var-length/undirected type, a UNION column
mismatch, etc. Covers openCypher’s ArgumentError / InvalidAggregation
/ NoSingleRelationshipType / … — the harness checks the phase, not the
sub-code, so one kind with a descriptive message suffices (#956).
Trait Implementations§
Source§impl Clone for BindErrorKind
impl Clone for BindErrorKind
Source§fn clone(&self) -> BindErrorKind
fn clone(&self) -> BindErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BindErrorKind
impl Debug for BindErrorKind
impl Eq for BindErrorKind
Source§impl PartialEq for BindErrorKind
impl PartialEq for BindErrorKind
impl StructuralPartialEq for BindErrorKind
Auto Trait Implementations§
impl Freeze for BindErrorKind
impl RefUnwindSafe for BindErrorKind
impl Send for BindErrorKind
impl Sync for BindErrorKind
impl Unpin for BindErrorKind
impl UnsafeUnpin for BindErrorKind
impl UnwindSafe for BindErrorKind
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.