]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add default expression to query_expression()
authorHaoyu Sun <raptorsun@gmail.com>
Fri, 29 May 2020 18:31:07 +0000 (14:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 1 Jun 2020 19:15:03 +0000 (15:15 -0400)
commit9be0e9e5477cd6a494d9e3b3c13ceed1e50cc5a9
tree8454886aeec55debd781b8b2e21eee814e80de67
parent7ff6cf1eaa84f1387d60d4eb7ba752480a6bf567
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
doc/build/changelog/unreleased_13/5198.rst [new file with mode: 0644]
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_deferred.py