Iterate on the result of a :sql:`COPY TO` operation record by record. Note that the records returned will be tuples of unparsed strings or bytes, unless data types are specified using `set_types()`.
(self)
| 93 | return self.connection.wait(self._read_gen()) |
| 94 | |
| 95 | def rows(self) -> Iterator[tuple[Any, ...]]: |
| 96 | """ |
| 97 | Iterate on the result of a :sql:`COPY TO` operation record by record. |
| 98 | |
| 99 | Note that the records returned will be tuples of unparsed strings or |
| 100 | bytes, unless data types are specified using `set_types()`. |
| 101 | """ |
| 102 | while (record := self.read_row()) is not None: |
| 103 | yield record |
| 104 | |
| 105 | def read_row(self) -> tuple[Any, ...] | None: |
| 106 | """ |