MCPcopy
hub / github.com/psycopg/psycopg / read

Method read

psycopg/psycopg/_copy.py:87–93  ·  view source on GitHub ↗

Read an unparsed row after a :sql:`COPY TO` operation. Return an empty string when the data is finished.

(self)

Source from the content-addressed store, hash-verified

85 yield data
86
87 def read(self) -> Buffer:
88 """
89 Read an unparsed row after a :sql:`COPY TO` operation.
90
91 Return an empty string when the data is finished.
92 """
93 return self.connection.wait(self._read_gen())
94
95 def rows(self) -> Iterator[tuple[Any, ...]]:
96 """

Callers 15

__iter__Method · 0.95
update_fileFunction · 0.45
convertFunction · 0.45
update_fileFunction · 0.45
parse_errors_txtFunction · 0.45
update_fileFunction · 0.45
sed_iFunction · 0.45
test_copy_out_readFunction · 0.45
test_copy_in_formatFunction · 0.45
test_file_writerFunction · 0.45
workFunction · 0.45
blocksMethod · 0.45

Calls 2

_read_genMethod · 0.80
waitMethod · 0.45

Tested by 14

test_copy_out_readFunction · 0.36
test_copy_in_formatFunction · 0.36
test_file_writerFunction · 0.36
workFunction · 0.36
blocksMethod · 0.36
shaMethod · 0.36
test_copy_out_readFunction · 0.36
test_copy_in_formatFunction · 0.36
test_file_writerFunction · 0.36
workFunction · 0.36
blocksMethod · 0.36
shaMethod · 0.36