]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Added buffer object to wrap libpq memory
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 17 Dec 2020 04:02:35 +0000 (05:02 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 17 Dec 2020 04:57:09 +0000 (05:57 +0100)
commite9be5632d12f4ea98ee135b94ed69a1f00391c40
treee824f76f6d5403b9e3e85880ce73ca5c01f876f3
parentadd8fef21898921b4e731e0abdb7f199637ede81
Added buffer object to wrap libpq memory

Several code paths extended to deal with objects implementing the buffer
protocol instead of just bytes: this allows to perform less memory copy.

Added sql.Composable.as_bytes method to use in preference of as_string
(you may do without decoding altogether).
psycopg3/psycopg3/adapt.py
psycopg3/psycopg3/pq/pq_ctypes.py
psycopg3/psycopg3/pq/proto.py
psycopg3/psycopg3/sql.py
psycopg3/psycopg3/types/array.py
psycopg3/psycopg3/types/composite.py
psycopg3/psycopg3/types/text.py
psycopg3_c/psycopg3_c/adapt.pyx
psycopg3_c/psycopg3_c/pq_cython.pxd
psycopg3_c/psycopg3_c/pq_cython.pyx
psycopg3_c/psycopg3_c/types/text.pyx