]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add AsyncAttrs
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 May 2023 15:50:29 +0000 (11:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 May 2023 15:50:03 +0000 (11:50 -0400)
commitb3216486c417f7fb2abc0724563a1d21f9a835d9
tree56dd6446748c7dc837b2c6e4b2aa8eb6e559a1a2
parentdc60e7a7d35a470c09ce590f37e949ff8e8cdcde
add AsyncAttrs

Added a new helper mixin :class:`_asyncio.AsyncAttrs` that seeks to improve
the use of lazy-loader and other expired or deferred ORM attributes with
asyncio, providing a simple attribute accessor that provides an ``await``
interface to any ORM attribute, whether or not it needs to emit SQL.

Change-Id: I1427b288dc28319c854372643066c491b9ee8dc0
References: #9731
doc/build/changelog/unreleased_20/9731.rst [new file with mode: 0644]
doc/build/orm/extensions/asyncio.rst
examples/asyncio/async_orm.py
examples/asyncio/async_orm_writeonly.py
examples/asyncio/greenlet_orm.py
lib/sqlalchemy/ext/asyncio/__init__.py
lib/sqlalchemy/ext/asyncio/session.py
test/ext/asyncio/test_session_py3k.py