]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support state expiration for with_expression(); rename deferred_expression
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Jun 2017 17:24:22 +0000 (13:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Jun 2017 17:49:49 +0000 (13:49 -0400)
commit9ac0f8119e34a696fbf711e00262e9c0851b749c
treef05beb1e57e70d4e286ac8b068f992f4fb52b59c
parente04594339c19c3cd8b8e0d96ce83e5ded961dbb7
Support state expiration for with_expression(); rename deferred_expression

The attributeimpl for a deferred_expression does not
support a scalar loader, add new configurability so that
the impl can have this flag turned off.   Document
that the with_expression() system currently does not
offer any deferred loading.

To eliminate confusion over "deferred", which refers to
lazy loading of column attributes, and "with_expression",
which refers to an attribute that is explicitly at
query time only, rename deferred_expression to query_expression.

Change-Id: I07c4a050ed68c79ccbde9492e9de1630b7470d74
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/attributes.py
lib/sqlalchemy/orm/dynamic.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py