summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/changelog/migration_20.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/build/changelog/migration_20.rst b/doc/build/changelog/migration_20.rst
index 604d59e08..d31ed5b02 100644
--- a/doc/build/changelog/migration_20.rst
+++ b/doc/build/changelog/migration_20.rst
@@ -1522,6 +1522,9 @@ following the table, and may include additional notes not summarized here.
select(func.count()).
select_from(User)
).one()
+
+ # or
+
session.scalars(
select(func.count(User.id))
).one()