MCPcopy
hub / github.com/psycopg/psycopg / __next__

Method __next__

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

Source from the content-addressed store, hash-verified

287 return self
288
289 def __next__(self) -> Row:
290 self._fetch_pipeline()
291 res = self._check_result_for_fetch()
292 if self._pos < res.ntuples:
293 record = self._tx.load_row(self._pos, self._make_row)
294 self._pos += 1
295 return record
296 raise StopIteration("no more records to return")
297
298 def scroll(self, value: int, mode: str = "relative") -> None:
299 """

Callers

nothing calls this directly

Calls 3

_fetch_pipelineMethod · 0.95
load_rowMethod · 0.45

Tested by

no test coverage detected