NAME
Neo4j::Driver::SummaryCounters - Statement statistics
VERSION
version 0.52
SYNOPSIS
# $session = Neo4j::Driver->new({ ... })->session;
$counters = $session->execute_write( sub ($transaction) {
my $query = <<~'END';
MATCH (m:Movie) WHERE m.released > 2000
SET m.new = true
END
return $transaction->run($query)->consume->counters;
});
say sprintf '%i nodes updated.', $counters->properties_set;
DESCRIPTION
Contains counters for various operations that a statement triggered.
To obtain summary counters, call "counters" in Neo4j::Driver::ResultSummary.
Note that these statistics can be misleading in certain error conditions. In particular, using them to verify whether database modifications were successful is not advisable.
ATTRIBUTES
Neo4j::Driver::SummaryCounters implements the following read-only attributes.
my $constraints_added = $counters->constraints_added;
my $constraints_removed = $counters->constraints_removed;
my $contains_updates = $counters->contains_updates;
my $indexes_added = $counters->indexes_added;
my $indexes_removed = $counters->indexes_removed;
my $labels_added = $counters->labels_added;
my $labels_removed = $counters->labels_removed;
my $nodes_created = $counters->nodes_created;
my $nodes_deleted = $counters->nodes_deleted;
my $properties_set = $counters->properties_set;
my $relationships_created = $counters->relationships_created;
my $relationships_deleted = $counters->relationships_deleted;
SEE ALSO
Equivalent documentation for the official Neo4j drivers: SummaryCounters (Java)
AUTHOR
Arne Johannessen (AJNN)
COPYRIGHT AND LICENSE
This software is Copyright (c) 2016-2024 by Arne Johannessen.
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0 or (at your option) the same terms as the Perl 5 programming language system itself.