MCPcopy
hub / github.com/psycopg/psycopg / fetchall

Method fetchall

psycopg/psycopg/cursor_async.py:276–286  ·  view source on GitHub ↗

Return all the remaining records from the current result set. :rtype: Sequence[Row], with Row defined by `row_factory`

(self)

Source from the content-addressed store, hash-verified

274 return records
275
276 async def fetchall(self) -> list[Row]:
277 """
278 Return all the remaining records from the current result set.
279
280 :rtype: Sequence[Row], with Row defined by `row_factory`
281 """
282 await self._fetch_pipeline()
283 res = self._check_result_for_fetch()
284 records = self._tx.load_rows(self._pos, res.ntuples, self._make_row)
285 self._pos = res.ntuples
286 return records
287
288 def __aiter__(self) -> Self:
289 return self

Callers

nothing calls this directly

Calls 3

_fetch_pipelineMethod · 0.95
load_rowsMethod · 0.45

Tested by

no test coverage detected