pub struct QueryStats {Show 15 fields
pub nodes_created: i64,
pub nodes_deleted: i64,
pub relationships_created: i64,
pub relationships_deleted: i64,
pub properties_set: i64,
pub properties_removed: i64,
pub labels_added: i64,
pub labels_removed: i64,
pub indexes_added: i64,
pub indexes_removed: i64,
pub constraints_added: i64,
pub constraints_removed: i64,
pub node_labels_added: i64,
pub node_labels_removed: i64,
pub properties_written: i64,
}Expand description
A statement’s mutation counters. Two families count different things:
- The openCypher graph-diff counters the TCK side effects check:
labels_added/labels_removedcount label names that appear in or vanish from the graph, andproperties_set/properties_removedcount property additions and removals (an overwrite is one of each; a deleted entity’s properties are removed). - Neo4j’s update counters, which drivers read from a result summary
(ADR-0309):
node_labels_added/node_labels_removedcount labels per node (aREMOVE, never a delete), andproperties_writtencounts one per property aCREATE,SETorREMOVEwrites. The wire rendering (relate::query_stats_to_wire) uses these.
The node, relationship, index and constraint counters are shared.
Fields§
§nodes_created: i64§nodes_deleted: i64§relationships_created: i64§relationships_deleted: i64§properties_set: i64§properties_removed: i64§labels_added: i64§labels_removed: i64§indexes_added: i64Indexes created by index DDL (ADR-0309). The range index backing a
UNIQUE/KEY constraint is part of that constraint, not counted here.
indexes_removed: i64Indexes dropped by index DDL (ADR-0309); a constraint’s backing index dropped with it is not counted here.
constraints_added: i64Constraints created, by constraint DDL or a graph-type change (ADR-0309).
constraints_removed: i64Constraints dropped, by constraint DDL or a graph-type change (ADR-0309).
node_labels_added: i64Labels added to nodes, counted per node (Neo4j’s labels-added,
ADR-0309).
node_labels_removed: i64Labels removed from nodes by REMOVE, counted per node (Neo4j’s
labels-removed, ADR-0309); deleting a node counts none.
properties_written: i64Property writes: one per property a CREATE, SET or REMOVE
writes, overwrites and removals included (Neo4j’s properties-set,
ADR-0309); deleting an entity counts none.
Implementations§
Source§impl QueryStats
impl QueryStats
Sourcepub fn merge(&mut self, other: &QueryStats)
pub fn merge(&mut self, other: &QueryStats)
Merge another statement’s counters into this one. Generated from the one counter list, so a counter cannot exist without its merge arm.
Trait Implementations§
Source§impl Clone for QueryStats
impl Clone for QueryStats
Source§impl Debug for QueryStats
impl Debug for QueryStats
Source§impl Default for QueryStats
impl Default for QueryStats
impl Eq for QueryStats
Source§impl PartialEq for QueryStats
impl PartialEq for QueryStats
impl StructuralPartialEq for QueryStats
Auto Trait Implementations§
impl Forget for QueryStats
impl Freeze for QueryStats
impl Move for QueryStats
impl RefUnwindSafe for QueryStats
impl Send for QueryStats
impl Sync for QueryStats
impl Unpin for QueryStats
impl UnsafeUnpin for QueryStats
impl UnwindSafe for QueryStats
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
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.