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)
Source From Here Keyboard Shortcuts in the IPython Shell If you spend any amount of time on the computer, you’ve probably found a u...