So far I've been having a great time with generative query-building
methods... build a query, filter it, order it, etc...
Is there a way to, uh, de-generate a query? E.g.,
q0 = session.query(someclass)
q1 = q.filter(col == value)
q2 = q.filter(othercol == othervalue)
# all of the above works
On May 30, 2007, at 4:50 PM, Eric Ongerth wrote:
So far I've been having a great time with generative query-building
methods... build a query, filter it, order it, etc...
Is there a way to, uh, de-generate a query? E.g.,
q0 = session.query(someclass)
q1 = q.filter(col == value)
q2 =
On May 30, 2:06 pm, Michael Bayer [EMAIL PROTECTED] wrote:
On May 30, 2007, at 4:50 PM, Eric Ongerth wrote:
Is there a way to, uh, de-generate a query? E.g.,
...
As it stands now, this is not actually difficult to do: I just store a
set of filters that have been added so far, and when
Michael Bayer wrote:
On May 29, 2007, at 10:28 PM, Huy Do wrote:
s = select()
query = db.query(model.Invoice).options(contains_eager('client'))
query = query.from_select(s) #
query = query.limit(10).offset(10)
rs = query.list()
What I'm doing, is pretty much setting up a query in
On May 29, 2007, at 10:28 PM, Huy Do wrote:
s = select()
query = db.query(model.Invoice).options(contains_eager('client'))
query = query.from_select(s) #
query = query.limit(10).offset(10)
rs = query.list()
What I'm doing, is pretty much setting up a query in one place of my
program,