MCPcopy
hub / github.com/psycopg/psycopg / __iter__

Method __iter__

psycopg/psycopg/_copy.py:82–85  ·  view source on GitHub ↗

Implement block-by-block iteration on :sql:`COPY TO`.

(self)

Source from the content-addressed store, hash-verified

80 # End user sync interface
81
82 def __iter__(self) -> Iterator[Buffer]:
83 """Implement block-by-block iteration on :sql:`COPY TO`."""
84 while data := self.read():
85 yield data
86
87 def read(self) -> Buffer:
88 """

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected