On Dec 17, 2011, at 2:35 PM, Kent wrote: > How do I get the attribute to copy to a subquery's query._attribute ? I need > it to be a MapperOption and that should then copy itself via q = > q._conditional_options(*orig_query._with_options)? > > (This doesn't seem like it needs be a MapperOption, or do you think it should > be? Not quite sure why not just a query method like enable_eagerloads().... > it needs no path information.
Because this is basically an instruction sent to relationships like any other option. Ideally anything to do with the mechanics of how rows are loaded and how the SQL is transformed according to supplementary loading would be using options(). enable_eagerloads() OTOH is more relevant to the job of the Query creating SQL that's to be nested in another query, it is primarily concerned with how the Query itself is to be used. Anyway here is that, it's an easy add, the work is of course the tests and making sure the name being used will work well with eventual features being added for deferred(): http://www.sqlalchemy.org/trac/ticket/2351 -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
