summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/asyncio/session.py
diff options
context:
space:
mode:
authorGrey Li <withlihui@gmail.com>2023-02-26 05:56:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2023-02-26 23:04:35 -0500
commitff97b9ab5e59283f684edac9a075702c43e8a4c1 (patch)
treeece7781f8715ba3dc120dd84a59e9e4ffd4bcd6a /lib/sqlalchemy/ext/asyncio/session.py
parent16d3dad4490fc4915096b7963f21e6b591b15ba7 (diff)
downloadsqlalchemy-ff97b9ab5e59283f684edac9a075702c43e8a4c1.tar.gz
Add separate version notes for scalars
Add separate 1.4.24 and 1.4.26 version notes for the .scalars method; this covers Session, scoped_session, AsyncSession, async_scoped_session as the "scoped" versions did not have the method added until 1.4.26 as part of :ticket:`7103`. Also indicate scoped_session as ``sqlalchemy.orm.scoped_session`` in docs rather than ``sqlalchemy.orm.scoping.scoped_session``. This is also happening in I77da54891860095edcb1f0625ead99fee89bd76f separately, as both changesets refer to scoped_session without using ".scoping". References: #7103 Closes: #9371 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9371 Pull-request-sha: 61132230cc6e897ab61beff25d98b19a4c0aefd0 Change-Id: I84c8b1aad752db124cfee6bc8516f6eed7ba2faf
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/session.py')
-rw-r--r--lib/sqlalchemy/ext/asyncio/session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py
index 45b70ddeb..dabe1824e 100644
--- a/lib/sqlalchemy/ext/asyncio/session.py
+++ b/lib/sqlalchemy/ext/asyncio/session.py
@@ -415,7 +415,10 @@ class AsyncSession(ReversibleProxy[Session]):
:return: a :class:`_result.ScalarResult` object
- .. versionadded:: 1.4.24
+ .. versionadded:: 1.4.24 Added :meth:`_asyncio.AsyncSession.scalars`
+
+ .. versionadded:: 1.4.26 Added
+ :meth:`_asyncio.async_scoped_session.scalars`
.. seealso::