pub enum NotificationKind {
Show 30 variants
CartesianProduct,
UnboundedVariableLengthPattern,
AllNodesScan,
LabelDisjunctionScan,
MissingIndex,
EagerAggregation,
EstimationMiss,
UnknownLabelWarning,
UnknownRelationshipTypeWarning,
UnknownPropertyKeyWarning,
DeprecatedFunction,
DeprecatedProcedure,
CallSubqueryWithoutScope,
MergeSelfReference,
AmbiguousSubclauseReference,
ComplexSubclauseReference,
CreateSelfReference,
SubqueryVariableShadowing,
DynamicProperty,
UnsatisfiableRelationshipTypeExpression,
RepeatedRelationshipVariable,
SearchIdentifierShadowingVariable,
ExhaustiveShortestPath,
SchemaIndexOrConstraintAlreadyExists,
SchemaIndexOrConstraintDoesNotExist,
SchemaVectorIndexDimensionsNotSpecified,
HintedIndexNotFound,
JoinHintUnfulfillable,
RedundantOptionalProcedure,
RedundantOptionalSubquery,
}Expand description
The notification kinds (ADR-0363 decision 1) — the row identities of the one vocabulary below, generated from its single table.
Variants§
CartesianProduct
A multi-pattern MATCH whose patterns share no join anchor.
UnboundedVariableLengthPattern
A variable-length relationship pattern with no upper bound.
AllNodesScan
A label-less node scan while a property index exists.
LabelDisjunctionScan
A static label disjunction no seek serves: the scan answers per disjunct label (LABS-1083).
MissingIndex
A label/property equality with no range index on the pair.
EagerAggregation
An aggregation whose input estimate reaches the eager threshold.
EstimationMiss
PROFILE only: an estimate at least 10x the actual rows.
UnknownLabelWarning
A node pattern naming a label absent from the catalog.
UnknownRelationshipTypeWarning
A relationship pattern naming a type absent from the catalog.
UnknownPropertyKeyWarning
A predicate or property access naming an absent property key.
DeprecatedFunction
A function call resolving to a deprecated catalog entry.
DeprecatedProcedure
A CALL resolving to a deprecated procedure.
CallSubqueryWithoutScope
A CALL { … } subquery with no variable scope clause.
MergeSelfReference
A MERGE whose property map references the entity it merges.
AmbiguousSubclauseReference
A projection subclause expression (ORDER BY/WHERE) referencing a
variable that the projection’s own alias re-binds.
ComplexSubclauseReference
A projection subclause expression containing a complex projection item expression as a proper sub-expression.
CreateSelfReference
A CREATE whose property definition references an entity created in
the same clause.
SubqueryVariableShadowing
A variable declared in a subquery that shadows an outer variable.
DynamicProperty
A dynamic property-key predicate on a variable whose label (or relationship type) carries an index no static predicate can serve.
UnsatisfiableRelationshipTypeExpression
A relationship type expression no single type can satisfy.
RepeatedRelationshipVariable
A relationship variable repeated across pattern elements.
SearchIdentifierShadowingVariable
A SEARCH index identifier sharing a name with a variable in scope.
ExhaustiveShortestPath
A shortestPath whose predicates force exhaustive evaluation.
SchemaIndexOrConstraintAlreadyExists
A schema DDL command that had no effect because an identical or
schema-equivalent index/constraint already exists (00NA0).
SchemaIndexOrConstraintDoesNotExist
A DROP INDEX/CONSTRAINT … IF EXISTS that had no effect because no
such index/constraint exists (00NA1).
SchemaVectorIndexDimensionsNotSpecified
A CREATE VECTOR INDEX that omitted vector.dimensions (00NA2).
HintedIndexNotFound
A USING INDEX hint no catalog index can serve (01N31).
JoinHintUnfulfillable
A USING JOIN ON hint the planner could not fulfil (01N30).
RedundantOptionalProcedure
An OPTIONAL CALL over a procedure that produces no rows (03N61).
RedundantOptionalSubquery
An OPTIONAL CALL { … } whose body projects no columns (03N62).
Implementations§
Source§impl NotificationKind
impl NotificationKind
Sourcepub fn dedups_identical(self) -> bool
pub fn dedups_identical(self) -> bool
Whether two notifications of this kind with the same description are
the same finding (true) or two occurrences that must both be
reported (false). Name-based diagnostics collapse; every
occurrence-scoped kind — a deprecated call, a clause-shaped
deprecation, a per-pattern performance hint — keeps its duplicates,
because Neo4j reports one notification per occurrence.
Sourcepub fn is_plan_warning(self) -> bool
pub fn is_plan_warning(self) -> bool
Whether the plan table already renders this kind (ADR-0363
decision 8): the kinds that project to a PlanWarning variant, whose
one text rendering is the plan table’s Warnings column plus footer
(ADR-0344/0345). The other operator-scoped kinds (UnboundedVariableLengthPattern,
MissingIndex, EagerAggregation) do not join that column, so a
text block carries them. The membership is the row’s plan_warning
column, so a new kind states its side where it names its metadata.
Sourcepub fn code(self) -> &'static str
pub fn code(self) -> &'static str
The diagnostic code (Neo.ClientNotification.* for a Neo4j analog,
Relate.Notification.* for an engine-own kind).
Sourcepub fn gql_status(self) -> &'static str
pub fn gql_status(self) -> &'static str
The GQLSTATUS value (03N90, 03C90, 01N50, …).
Sourcepub fn severity(self) -> NotificationSeverity
pub fn severity(self) -> NotificationSeverity
The severity (INFORMATION or WARNING).
Sourcepub fn category(self) -> NotificationCategory
pub fn category(self) -> NotificationCategory
The category (PERFORMANCE, UNRECOGNIZED or DEPRECATION).
Trait Implementations§
Source§impl Clone for NotificationKind
impl Clone for NotificationKind
impl Copy for NotificationKind
Source§impl Debug for NotificationKind
impl Debug for NotificationKind
impl Eq for NotificationKind
Source§impl Hash for NotificationKind
impl Hash for NotificationKind
Source§impl PartialEq for NotificationKind
impl PartialEq for NotificationKind
impl StructuralPartialEq for NotificationKind
Auto Trait Implementations§
impl Forget for NotificationKind
impl Freeze for NotificationKind
impl Move for NotificationKind
impl RefUnwindSafe for NotificationKind
impl Send for NotificationKind
impl Sync for NotificationKind
impl Unpin for NotificationKind
impl UnsafeUnpin for NotificationKind
impl UnwindSafe for NotificationKind
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
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.