pub struct WriteStats {
pub nodes_created: i64,
pub nodes_deleted: i64,
pub relationships_created: i64,
pub relationships_deleted: i64,
pub properties_set: i64,
pub labels_added: i64,
pub indexes_added: i64,
pub indexes_removed: i64,
pub constraints_added: i64,
pub constraints_removed: i64,
}Expand description
What a write statement changed, counted per effect: the numbers a client reads as the statement’s summary. Every field counts this statement only.
The one-row write result (created, properties_set, deleted,
relationships_created) keeps its documented meaning; these counters are
finer: deletes are split into nodes and relationships, and
properties_set includes the properties a CREATE or a MERGE create
arm writes with the node.
Fields§
§nodes_created: i64§nodes_deleted: i64§relationships_created: i64§relationships_deleted: i64§properties_set: i64§labels_added: i64One per node created: a node is created with its one label.
indexes_added: i64§indexes_removed: i64§constraints_added: i64§constraints_removed: i64Implementations§
Source§impl WriteStats
impl WriteStats
Sourcepub fn contains_updates(&self) -> bool
pub fn contains_updates(&self) -> bool
Whether the statement changed anything.
Trait Implementations§
Source§impl Clone for WriteStats
impl Clone for WriteStats
impl Copy for WriteStats
Source§impl Debug for WriteStats
impl Debug for WriteStats
Source§impl Default for WriteStats
impl Default for WriteStats
impl Eq for WriteStats
Source§impl PartialEq for WriteStats
impl PartialEq for WriteStats
impl StructuralPartialEq for WriteStats
Auto Trait Implementations§
impl Forget for WriteStats
impl Freeze for WriteStats
impl RefUnwindSafe for WriteStats
impl Send for WriteStats
impl Sync for WriteStats
impl Unpin for WriteStats
impl UnsafeUnpin for WriteStats
impl UnwindSafe for WriteStats
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.