]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Add Connection.pipeline() context manager and Pipeline object
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 8 Dec 2021 10:39:44 +0000 (11:39 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:17:57 +0000 (01:17 +0200)
commit54b91ab2067f77972a4c663defbed17abf29e839
treecad784d4d89f465e4c67576c63c2e16b5ab9eab0
parent6ba95ce8f57462412e9c94162c555e3cbdb08cca
Add Connection.pipeline() context manager and Pipeline object

On the connection, we store the pipeline object as _pipeline attribute
when in pipeline mode or None otherwise.
docs/api/connections.rst
psycopg/psycopg/__init__.py
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
tests/test_pipeline.py [new file with mode: 0644]
tests/test_pipeline_async.py [new file with mode: 0644]