]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
convert AsyncSession.delete into awaitable
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Mar 2021 16:16:49 +0000 (11:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Mar 2021 16:16:49 +0000 (11:16 -0500)
commit92e3272602723225e07dfa6e32b722ac439c713a
treee81577895d8d7a433493c8c5c1c8a0856b41afe4
parent6bea034dfc7e113baa6d728f6e2ae8324499ff4f
convert AsyncSession.delete into awaitable

The API for :meth:`_asyncio.AsyncSession.delete` is now an awaitable;
this method cascades along relationships which must be loaded in a
similar manner as the :meth:`_asyncio.AsyncSession.merge` method.

Fixes: #5998
Change-Id: Iae001efe99a1dcc47598b4a2491d17c4157fbbfa
doc/build/changelog/unreleased_14/5998.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/session.py
lib/sqlalchemy/testing/fixtures.py
test/ext/asyncio/test_session_py3k.py