Hi SQLAlchemy experts out there, here\'s a tricky one for you:
I\'m trying to write a query that resolves into something like:
SELECT * FROM MyTable
You can try to use any_()
In your case it would look something like this:
from sqlalchemy import any_ foo = ['a%', 'b%'] DBSession().query(MyTable).filter(MyTable.my_column.like(any_(foo)))