File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -291,9 +291,6 @@ class SummaryCounters(object):
291291 """ Set of statistics from a Cypher statement execution.
292292 """
293293
294- #:
295- contains_updates = False
296-
297294 #:
298295 nodes_created = 0
299296
@@ -335,6 +332,14 @@ def __init__(self, statistics):
335332 def __repr__ (self ):
336333 return repr (vars (self ))
337334
335+ @property
336+ def contains_updates (self ):
337+ return self .nodes_created or self .nodes_deleted or \
338+ self .relationships_created or self .relationships_deleted or \
339+ self .properties_set or self .labels_added or self .labels_removed or \
340+ self .indexes_added or self .indexes_removed or \
341+ self .constraints_added or self .constraints_removed
342+
338343
339344#: A plan describes how the database will execute your statement.
340345#:
You can’t perform that action at this time.
0 commit comments