]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat(pool): add `check` connection parameter
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 6 Oct 2023 13:15:04 +0000 (15:15 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 14 Oct 2023 07:45:35 +0000 (09:45 +0200)
commitbf874e2cb89e6eb4c0c8c7def89566c084e49d8f
treefa1095d95dbe7eca40209905657a825f38df9eb1
parent4575176cbaa2149eb9a74f95467403e69a9c0745
feat(pool): add `check` connection parameter

Allow to specify a callback to call on getconn and discard the
connection if not in working state.
docs/advanced/pool.rst
docs/api/pool.rst
docs/news_pool.rst
psycopg_pool/psycopg_pool/null_pool.py
psycopg_pool/psycopg_pool/null_pool_async.py
psycopg_pool/psycopg_pool/pool.py
psycopg_pool/psycopg_pool/pool_async.py
tests/pool/test_pool_common.py
tests/pool/test_pool_common_async.py