@@ -32,7 +32,7 @@ class which can be used to obtain `Driver` instances that are used for
32
32
33
33
from .compat import integer , string , urlparse
34
34
from .connection import connect , Response , RUN , PULL_ALL
35
- from .exceptions import CypherError , DriverError
35
+ from .exceptions import CypherError , ResultError
36
36
from .typesystem import hydrated
37
37
38
38
@@ -222,12 +222,12 @@ def summary(self):
222
222
Attempting to access the summary before then will raise an error.
223
223
224
224
:rtype: ResultSummary
225
- :raises DriverError : if the entire result has not yet been consumed
225
+ :raises ResultError : if the entire result has not yet been consumed
226
226
"""
227
227
if self ._consumed :
228
228
return self ._summary
229
229
else :
230
- raise DriverError ("Summary not available until the entire result has been consumed" )
230
+ raise ResultError ("Summary not available until the entire result has been consumed" )
231
231
232
232
def _consume (self ):
233
233
# Consume the remainder of this result, triggering all appropriate callback functions.
@@ -267,8 +267,8 @@ class ResultSummary(object):
267
267
#: The type of statement (``'r'`` = read-only, ``'rw'`` = read/write).
268
268
statement_type = None
269
269
270
- #: A set of statistical information held in a :class:`.StatementStatistics ` instance.
271
- statistics = None
270
+ #: A set of statistical information held in a :class:`.Counters ` instance.
271
+ counters = None
272
272
273
273
#: A :class:`.Plan` instance
274
274
plan = None
@@ -286,7 +286,7 @@ def __init__(self, statement, parameters, **metadata):
286
286
self .statement = statement
287
287
self .parameters = parameters
288
288
self .statement_type = metadata .get ("type" )
289
- self .statistics = StatementStatistics (metadata .get ("stats" , {}))
289
+ self .counters = Counters (metadata .get ("stats" , {}))
290
290
if "plan" in metadata :
291
291
self .plan = make_plan (metadata ["plan" ])
292
292
if "profile" in metadata :
@@ -301,7 +301,7 @@ def __init__(self, statement, parameters, **metadata):
301
301
notification ["description" ], position ))
302
302
303
303
304
- class StatementStatistics (object ):
304
+ class Counters (object ):
305
305
""" Set of statistics from a Cypher statement execution.
306
306
"""
307
307
0 commit comments