]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add ad-hoc mapped expressions
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jun 2017 20:35:53 +0000 (16:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jun 2017 21:41:39 +0000 (17:41 -0400)
commit83c1e03c5c74c69facfc371840ffae890f05c338
tree15342e8c971d42192e25f71e2174fb44f0427a20
parent735fcd5e776f12e6237f190520ca2eef2565282d
Add ad-hoc mapped expressions

Added a new feature :func:`.orm.with_expression` that allows an ad-hoc
SQL expression to be added to a specific entity in a query at result
time.  This is an alternative to the SQL expression being delivered as
a separate element in the result tuple.

Change-Id: Id8c479f7489fb02e09427837c59d1eabb2a6c014
Fixes: #3058
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
doc/build/orm/loading_columns.rst
doc/build/orm/mapped_sql_expr.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py