If so, something like this should work
from sqlalchemy import and_
from datetime import date
data = Table.query().filter(and_([Mikropost.c.create_date >= date(2007,
1, 1),
Mikropost.c.create_date < date(2008,
1, 1)]))
Hope that helps,
Simon
--On 18. Januar 2008 12:08:46 -0500 Rick Morrison <rickmo...@gmail.com>
wrote:
Such operations will likely trigger a full table scan. Depending on the
size of your data you might adjust the data model to the need of your query
and/or think about functional indexes (in case your database provides this
functionality).
Andreas