@@ -32,7 +32,7 @@ class which can be used to obtain `Driver` instances that are used for
3232
3333from .compat import integer , string , urlparse
3434from .connection import connect , Response , RUN , PULL_ALL
35- from .exceptions import CypherError , DriverError
35+ from .exceptions import CypherError , ResultError
3636from .typesystem import hydrated
3737
3838
@@ -222,12 +222,12 @@ def summary(self):
222222 Attempting to access the summary before then will raise an error.
223223
224224 :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
226226 """
227227 if self ._consumed :
228228 return self ._summary
229229 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" )
231231
232232 def _consume (self ):
233233 # Consume the remainder of this result, triggering all appropriate callback functions.
@@ -267,8 +267,8 @@ class ResultSummary(object):
267267 #: The type of statement (``'r'`` = read-only, ``'rw'`` = read/write).
268268 statement_type = None
269269
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
272272
273273 #: A :class:`.Plan` instance
274274 plan = None
@@ -286,7 +286,7 @@ def __init__(self, statement, parameters, **metadata):
286286 self .statement = statement
287287 self .parameters = parameters
288288 self .statement_type = metadata .get ("type" )
289- self .statistics = StatementStatistics (metadata .get ("stats" , {}))
289+ self .counters = Counters (metadata .get ("stats" , {}))
290290 if "plan" in metadata :
291291 self .plan = make_plan (metadata ["plan" ])
292292 if "profile" in metadata :
@@ -301,7 +301,7 @@ def __init__(self, statement, parameters, **metadata):
301301 notification ["description" ], position ))
302302
303303
304- class StatementStatistics (object ):
304+ class Counters (object ):
305305 """ Set of statistics from a Cypher statement execution.
306306 """
307307
0 commit comments