]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add ORMExecuteState mapper accessors
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Dec 2020 15:43:51 +0000 (10:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Dec 2020 15:43:51 +0000 (10:43 -0500)
commit0cc8a08262f6b92746a280387282d55beb24fa9d
tree5af9f1e6ac90973c02c907774a618cc428055f8a
parent3b8a14153da9e7b6694571fa10f6d30c4012ee82
Add ORMExecuteState mapper accessors

Added :attr:`_orm.ORMExecuteState.bind_mapper` and
:attr:`_orm.ORMExecuteState.all_mappers` accessors to
:class:`_orm.ORMExecuteState` event object, so that handlers can respond to
the target mapper and/or mapped class or classes involved in an ORM
statement execution.

Change-Id: I2cfe3d422ce5df2559105d53a51135a583359bd9
doc/build/changelog/unreleased_14/orm_exec_mapper.rst [new file with mode: 0644]
lib/sqlalchemy/orm/session.py
test/orm/test_events.py