diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-03-27 13:48:40 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-03-27 14:39:51 -0400 |
| commit | a4cdd0bc00a9985f0c775a644f7f004d6d4cab0a (patch) | |
| tree | 86481494937eeda24d75e977cd2f84e6bae14493 /lib/sqlalchemy/sql | |
| parent | 6eae79ac55ea2b25270758ed72f1a08e7f54980e (diff) | |
| download | sqlalchemy-a4cdd0bc00a9985f0c775a644f7f004d6d4cab0a.tar.gz | |
Allow aliased() to be passed to Query.select_entity_from().
An :func:`.aliased()` construct can now be passed to the
:meth:`.Query.select_entity_from` method. Entities will be pulled
from the selectable represented by the :func:`.aliased` construct.
This allows special options for :func:`.aliased` such as
:paramref:`.aliased.adapt_on_names` to be used in conjunction with
:meth:`.Query.select_entity_from`.
Additionally rewrote the docstring for :meth:`.Query.select_entity_from`,
including starting with explicit use of :func:`.aliased` as the
usual idiomatic pattern. An example using text().columns() is added
as well as the use case from :ticket:`3933` using name matching.
Change-Id: If7e182965236993064a2a086e3b6d55a4f097ca8
Fixes: #3933
Diffstat (limited to 'lib/sqlalchemy/sql')
0 files changed, 0 insertions, 0 deletions
