]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Added dumpers row
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Jan 2021 21:44:28 +0000 (22:44 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Jan 2021 21:44:28 +0000 (22:44 +0100)
commit861e74d8a53882b1fc5215c7aaf39ce2d478ec2c
treeb8b042ea818662dcea4983bff4e7833e041ad05c
parent29d4c2777ae0cd552b2ddcc716d2e0b14961e50d
Added dumpers row

Speed up repeated dumps on the same query (e.g. in executemany, in copy,
for composite types).

Things are a bit iffy around empty list dumping. As a tradeoff, prefer
that empty list don't behave too differently from non-empty list, but
accept that text and binary work differently (because it doesn't seem
possible to pass an array as unknown in binary, whereas in text '{}'
works ok).
docs/adapt-types.rst
psycopg3/psycopg3/_transform.py
psycopg3/psycopg3/types/array.py
psycopg3_c/psycopg3_c/_psycopg3/transform.pyx
tests/test_cursor.py
tests/test_cursor_async.py
tests/types/test_array.py
tests/types/test_singletons.py