Haven't tried it myself, but I think you can use the add_columns method of Query.
Check out http://docs.sqlalchemy.org/ru/latest/orm/query.html On 4 Sep, 2013 2:05 PM, "lars van gemerden" <[email protected]> wrote: > I think i must be reading over something, but: > > is there a way to delay the selection of attributes in a query; something > like > > >>> session.query(Person).filter(Person.age > > 100).select(Person.name).first() > > >>> (u"Ancient Bob",) > > Cheers, Lars > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
