MCPcopy
hub / github.com/psycopg/psycopg / read_row

Method read_row

psycopg/psycopg/_copy.py:105–114  ·  view source on GitHub ↗

Read a parsed row of data from a table after a :sql:`COPY TO` operation. Return `!None` when the data is finished. Note that the records returned will be tuples of unparsed strings or bytes, unless data types are specified using `set_types()`.

(self)

Source from the content-addressed store, hash-verified

103 yield record
104
105 def read_row(self) -> tuple[Any, ...] | None:
106 """
107 Read a parsed row of data from a table after a :sql:`COPY TO` operation.
108
109 Return `!None` when the data is finished.
110
111 Note that the records returned will be tuples of unparsed strings or
112 bytes, unless data types are specified using `set_types()`.
113 """
114 return self.connection.wait(self._read_row_gen())
115
116 def write(self, buffer: Buffer | str) -> None:
117 """

Callers 15

rowsMethod · 0.95
test_read_rowsFunction · 0.45
test_copy_out_allcharsFunction · 0.45
test_read_row_notypesFunction · 0.45
test_copy_out_badntypesFunction · 0.45
workFunction · 0.45
test_read_rowsFunction · 0.45
test_copy_out_allcharsFunction · 0.45
test_read_row_notypesFunction · 0.45
test_copy_out_badntypesFunction · 0.45

Calls 2

_read_row_genMethod · 0.80
waitMethod · 0.45

Tested by 15

test_read_rowsFunction · 0.36
test_copy_out_allcharsFunction · 0.36
test_read_row_notypesFunction · 0.36
test_copy_out_badntypesFunction · 0.36
workFunction · 0.36
test_read_rowsFunction · 0.36
test_copy_out_allcharsFunction · 0.36
test_read_row_notypesFunction · 0.36
test_copy_out_badntypesFunction · 0.36