]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
PoolProxiedConnection support context protocol main
authorFederico Caselli <cfederico87@gmail.com>
Mon, 9 Feb 2026 21:47:19 +0000 (22:47 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 11 Feb 2026 19:41:27 +0000 (20:41 +0100)
commit6fa097ed100dbe5553796c3b45efc50f614c2371
treeff5ef5fd815e05645c3b365e8491d41d8b0241bf
parentcf0cc646d6700b25a0c7314ec1f9fe75ef1692ab
PoolProxiedConnection support context protocol

The connection object returned by :meth:`_engine.Engine.raw_connection`
now supports the context manager protocol, automatically returning the
connection to the pool when exiting the context.

Fixes: #13116
Change-Id: I51eb1fd61b772368f12a787e5f60db153a839e70
doc/build/changelog/unreleased_20/13116.rst [new file with mode: 0644]
lib/sqlalchemy/pool/base.py
test/engine/test_pool.py