]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Added `merge_all` and `delete_all`
authorFederico Caselli <cfederico87@gmail.com>
Fri, 3 Jan 2025 20:42:48 +0000 (21:42 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Feb 2025 15:08:09 +0000 (10:08 -0500)
commit41c30cc031266d2e3a02ccc0d6cd2ab91bc725fa
treef71b45ce186fe7b1b44f9adec7bb1a24a11c3c83
parente4f0afe06baa5d9b57d5b8cfe2647b943f2145e6
Added `merge_all` and `delete_all`

Added the utility method :meth:`_orm.Session.merge_all` and
:meth:`_orm.Session.delete_all` that operate on a collection
of instances.

Fixes: #11776
Change-Id: Ifd70ba2850db7c5e7aee482799fd65c348c2899a
doc/build/changelog/unreleased_21/11776.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/scoping.py
lib/sqlalchemy/ext/asyncio/session.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/scoping.py
lib/sqlalchemy/orm/session.py
test/orm/test_merge.py
test/orm/test_session.py
test/profiles.txt