Où Sqlalchemy
query = sqlalchemy.select([actor]).where(actor.columns.first_name == 'PENELOPE')
Scary Salamander
query = sqlalchemy.select([actor]).where(actor.columns.first_name == 'PENELOPE')
session.query(MyUserClass).filter(MyUserClass.id.in_((123,456))).all()
session.execute(
select(
[MyUserTable.c.id, MyUserTable.c.name],
MyUserTable.c.id.in_((123, 456))
)
).fetchall()