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()" 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 you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.