MCPcopy
hub / github.com/psycopg/psycopg / _fetch_pipeline

Method _fetch_pipeline

psycopg/psycopg/cursor.py:336–343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 self._select_current_result(0)
335
336 def _fetch_pipeline(self) -> None:
337 if (
338 self._execmany_returning is not False
339 and (not self.pgresult)
340 and self._conn._pipeline
341 ):
342 with self._conn.lock:
343 self._conn.wait(self._conn._pipeline._fetch_gen(flush=True))

Callers 5

fetchoneMethod · 0.95
fetchmanyMethod · 0.95
fetchallMethod · 0.95
__next__Method · 0.95
scrollMethod · 0.95

Calls 2

waitMethod · 0.45
_fetch_genMethod · 0.45

Tested by

no test coverage detected