]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat(copy): add 'binary' param to copy object
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 24 Jul 2022 02:22:32 +0000 (03:22 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Jul 2022 12:23:46 +0000 (13:23 +0100)
commit99f0bb27b3f27dce133b8947fd02bb49bb1fd509
tree67ba4804caa1e57378f7e1c91fcbe6d0c02c4f9c
parent40500306a33d39f767c2fa602bbb3dde34bc1af1
feat(copy): add 'binary' param to copy object

This allows to write binary format even when the query has executed no
COPY operation.

Notice that now we have introduced tests that convert sample_records
into sample_binary: because small numbers would be dumped to int2, use
values large enough to require int4.
psycopg/psycopg/copy.py
tests/test_copy.py
tests/test_copy_async.py