]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Simplify _ColumnEntity, related
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 27 Sep 2019 21:32:10 +0000 (17:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Sep 2019 14:10:58 +0000 (10:10 -0400)
commit6ddb62a8ba66b19afd41b967911ce5982250856e
treeb98eba226618f2dff301366ac7e384f052feb69e
parent2c34d2503a17316cae3282192405b9b9d60df6fe
Simplify _ColumnEntity, related

In the interests of making Query much more lightweight up front,
rework the calculations done at the top when the entities
are constructed to be much less inolved.  Use the new
coercion system for _ColumnEntity and stop accepting
plain strings, this will need to emit a deprecation warning
in 1.3.x.     Use annotations and other techniques to reduce
the decisionmaking and complexity of Query.

For the use case of subquery(), .statement, etc. we would like
to do minimal work in order to get the columns clause.

Change-Id: I7e459bbd3bb10ec71235f75ef4f3b0a969bec590
17 files changed:
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/util.py
test/aaa_profiling/test_orm.py
test/orm/inheritance/test_single.py
test/orm/test_composites.py
test/orm/test_froms.py
test/orm/test_query.py
test/orm/test_subquery_relations.py
test/orm/test_utils.py
test/profiles.txt