summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaoyu Sun <raptorsun@gmail.com>2020-05-29 14:31:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-06-01 15:15:03 -0400
commit9be0e9e5477cd6a494d9e3b3c13ceed1e50cc5a9 (patch)
tree8454886aeec55debd781b8b2e21eee814e80de67 /doc
parent7ff6cf1eaa84f1387d60d4eb7ba752480a6bf567 (diff)
downloadsqlalchemy-9be0e9e5477cd6a494d9e3b3c13ceed1e50cc5a9.tar.gz
Add default expression to query_expression()
Added a new parameter :paramref:`_orm.query_expression.default_expr` to the :func:`_orm.query_expression` construct, which will be appled to queries automatically if the :func:`_orm.with_expression` option is not used. Pull request courtesy Haoyu Sun. Fixes: #5198 Closes: #5354 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5354 Pull-request-sha: 57dd4922a3ae4e5fe56dcc541d85ce42256b38b9 Change-Id: I3400f2c00b58bf161f31c74c579feb9ac0f03356
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_13/5198.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_13/5198.rst b/doc/build/changelog/unreleased_13/5198.rst
new file mode 100644
index 000000000..b19da1e08
--- /dev/null
+++ b/doc/build/changelog/unreleased_13/5198.rst
@@ -0,0 +1,8 @@
+.. change::
+ :tags: usecase, orm
+ :tickets: 5198
+
+ Added a new parameter :paramref:`_orm.query_expression.default_expr` to the
+ :func:`_orm.query_expression` construct, which will be appled to queries
+ automatically if the :func:`_orm.with_expression` option is not used. Pull
+ request courtesy Haoyu Sun. \ No newline at end of file