I'm trying to do this query in SQLAlchemy:
I would like to bind the list [123,456] at execution time.
How about session.query(MyUserClass).filter(MyUserClass.id.in_((123,456))).all() ?
SELECT id, name FROM user WHERE id in (123,456)
Preface In typical imperative Python programs—including those that make use of classes and methods to hold their imperative code—a block...