Loading request...
Requesting a new function similar to `copy_records_to_table` that outputs data in PGCOPY format to a file, with specified parameters for output, records, columns, schema name, and timeout.
I would like to request a version of `copy_records_to_table` that will produce a PGCOPY format file. Parameters: - output – A path-like object, or a file-like object, or a coroutine function that takes a bytes instance as a sole argument. - records – An iterable returning row tuples to copy into the file. - columns (list) – An optional list of column names to copy. - schema_name (str) – An optional schema name to qualify the table. - timeout (float) – Optional timeout value in seconds. Thanks!