]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- New Query methods: query.label(name), query.as_scalar(),
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Oct 2010 17:07:56 +0000 (13:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Oct 2010 17:07:56 +0000 (13:07 -0400)
commit92fb9f91af17ad07ff8308ef574f044f5bcbf9f7
treed3bf1912b7cf545853c8b314c395be49876bee29
parentc5579f77e26e1449f82888c4a95466a77642130d
- New Query methods: query.label(name), query.as_scalar(),
return the query's statement as a scalar subquery
with /without label [ticket:1920];
query.with_entities(*ent), replaces the SELECT list of
the query with new entities.
Roughly equivalent to a generative form of query.values()
which accepts mapped entities as well as column
expressions.
CHANGES
lib/sqlalchemy/orm/query.py
test/orm/test_query.py