I\'m trying to do a very simple search from a list of terms
terms = [\'term1\', \'term2\', \'term3\']
How do I programmatically go through
I had the same issue in"SQLAlchemy: an efficient/better select by primary keys?":
terms = ['one', 'two', 'three'] clauses = or_( * [Table.field == x for x in terms] ) query = Session.query(Table).filter(clauses)