Skip to content

Feature request: copy_records_to_file #171

@austinnichols101

Description

@austinnichols101

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions