]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add Query.enable_single_entity()
authorEric Atkin <eatkin@certusllc.us>
Wed, 28 Feb 2018 21:00:38 +0000 (16:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Mar 2018 02:42:49 +0000 (21:42 -0500)
commit611f7f4e94026926c8c85717e1a2d481bd2c5657
tree79dae4d5f30eb59e2395ab4f4dce8335ddca9f81
parent0e146706058c8e4920c675644623601f2c4930d7
Add Query.enable_single_entity()

Added new feature :meth:`.Query.only_return_tuples`.  Causes the
:class:`.Query` object to return keyed tuple objects unconditionally even
if the query is against a single entity.   Pull request courtesy Eric
Atkin.

Change-Id: Ib0b7f5f78431aa68082e5b200ed577daa4222336
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/425
doc/build/changelog/unreleased_12/single_entity.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/query.py
test/orm/test_query.py