On 3/8/07, Michael Bayer <[EMAIL PROTECTED]> wrote: > > hey list - > > I continue to be troubled by the slightly fragmented nature of SA's > Query object (and the cousin SelectResults). When I work with > Hibernate, I can see that their querying interface is a little more > consistent than ours. We have flags that are used for some things, > generative methods for others. > > so id like to look into defining the next generation of query. Id > like it to have a "quasi-generative" approach, like Hibernates. this > means you can say: > > q = q.where(<something>).order_by(<somethingelse>) > > but also, its the same as: > > q.where(<something>) > q.order_by(<somethingelse>) > > so its really the same instance (this is not how SelectResults works > at the moment).
I like the select results way better. That way you can make a "base query" and then modify it easily; if you're modifying in place, and you add another where clause, you can't easily re-use the pre-modified version again. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---