python-postgres / be

pg-python: Execute Python 3 code from PostgreSQL functions.
Other
5 stars 2 forks source link

Add binary and text COPY serialization. #27

Open jwp opened 13 years ago

jwp commented 13 years ago

For individual records and for Cursors as well:

ps = prepare(...) bcopy = ps.binary_copy(_args) tcopy = ps.string_copy(_args)

Where bcopy and tcopy produce chunks of copy data. (multiple rows)

Additionally, there is need for a function to construct binary copy the header.