Re: [sqlalchemy] is it possible to limit a session.query() to return only certain columns - not orm objects ?

2010-06-20 Thread Michael Bayer
you want to look at: 1. query.values(Class.foo, Class.bar) as well as 2. Session.query(Class.foo, Class.bar).all() #2 is in the ORM tutorial, and both are in the full Query API documentation. On Jun 19, 2010, at 3:37 PM, Jonathan Vanasco wrote: > i know this is usually done with the "select(

[sqlalchemy] is it possible to limit a session.query() to return only certain columns - not orm objects ?

2010-06-19 Thread Jonathan Vanasco
i know this is usually done with the "select()" mechanism. i have a convenience interface sitting on top of some sqlalchemy routines. i'd love to just use this same code block and have it return only a certain column or two - and not rebuild the query itself. -- You received this message because