sqlalchemy filter in list code example
Example 1: sqlalchemy filter or
from sqlalchemy import or_
filter(or_(User.name == 'ed', User.name == 'wendy'))
Example 2: sqlalchemy _in array sqlite
session.query(MyUserClass).filter(MyUserClass.id.in_((123,456))).all()
Example 3: sqlalchemy core in clause
session.execute(
select(
[MyUserTable.c.id, MyUserTable.c.name],
MyUserTable.c.id.in_((123, 456))
)
).fetchall()