]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix AsyncSession.close_all()
authorBryan不可思议 <programripper@foxmail.com>
Wed, 18 Oct 2023 20:31:45 +0000 (16:31 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 18 Oct 2023 21:04:57 +0000 (23:04 +0200)
commit29948f6848a84e5124c886aa6466e76938cb27de
treed0ff582fa0eea7759826a51327df2fb0342dc7ab
parentefe4025c068d6746637db362245ab88ce7dfe785
fix AsyncSession.close_all()

Fixed bug with method :meth:`_asyncio.AsyncSession.close_all`
that was not working correctly.
Also added function :func:`_asyncio.close_all_sessions` that's
the equivalent of :func:`_orm.close_all_sessions`.

Fixes: #10421
Closes: #10429
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10429
Pull-request-sha: a35c29d41213bd79bfa73ac559a29035ca4e9eb9

Change-Id: If2c3f0130a71b239382c2ea11a3436788ee242be
doc/build/changelog/changelog_20.rst
doc/build/changelog/unreleased_20/10421.rst [new file with mode: 0644]
doc/build/orm/extensions/asyncio.rst
lib/sqlalchemy/ext/asyncio/__init__.py
lib/sqlalchemy/ext/asyncio/scoping.py
lib/sqlalchemy/ext/asyncio/session.py
lib/sqlalchemy/util/langhelpers.py
test/ext/asyncio/test_session_py3k.py