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 Preface This chapter, along with Chapter 3, outlines techniques for effectively loading, storing, and manipulating i...