@@ -175,7 +175,7 @@ def run(self, statement, parameters=None, mode=None, bookmarks=None, metadata=No
175175 :param timeout: timeout for transaction execution (seconds)
176176 :param db: name of the database against which to begin the transaction
177177 :param handlers: handler functions passed into the returned Response object
178- :return: :class:`neo4j.io._bolt3. Response` object
178+ :return: Response object
179179 """
180180
181181 def discard (self , n = - 1 , qid = - 1 , ** handlers ):
@@ -184,11 +184,17 @@ def discard(self, n=-1, qid=-1, **handlers):
184184 :param n: number of records to discard, default = -1 (ALL)
185185 :param qid: query ID to discard for, default = -1 (last query)
186186 :param handlers: handler functions passed into the returned Response object
187- :return: :class:`neo4j.io._bolt3. Response` object
187+ :return: Response object
188188 """
189189
190- def pull_all (self , ** handlers ):
191- raise NotImplementedError
190+ def pull (self , n = - 1 , qid = - 1 , ** handlers ):
191+ """ Appends a PULL message to the output stream.
192+
193+ :param n: number of records to pull, default = -1 (ALL)
194+ :param qid: query ID to pull for, default = -1 (last query)
195+ :param handlers: handler functions passed into the returned Response object
196+ :return: Response object
197+ """
192198
193199 def begin (self , mode = None , bookmarks = None , metadata = None , timeout = None , db = None , ** handlers ):
194200 """ Appends a BEGIN message to the output stream.
@@ -199,7 +205,7 @@ def begin(self, mode=None, bookmarks=None, metadata=None, timeout=None, db=None,
199205 :param timeout: timeout for transaction execution (seconds)
200206 :param db: name of the database against which to begin the transaction
201207 :param handlers: handler functions passed into the returned Response object
202- :return: :class:`neo4j.io._bolt3. Response` object
208+ :return: Response object
203209 """
204210
205211 def commit (self , ** handlers ):
@@ -492,7 +498,7 @@ def fail(md):
492498 log .debug ("[#%04X] C: <ROUTING> query=%r" , cx .local_port , self .routing_context or {})
493499 cx .run ("CALL dbms.cluster.routing.getRoutingTable($context)" ,
494500 {"context" : self .routing_context }, on_success = metadata .update , on_failure = fail )
495- cx .pull_all (on_success = metadata .update , on_records = records .extend )
501+ cx .pull (on_success = metadata .update , on_records = records .extend )
496502 cx .send_all ()
497503 cx .fetch_all ()
498504 routing_info = [dict (zip (metadata .get ("fields" , ()), values )) for values in records ]
0 commit comments