I have list of ID from external postgresql database.
A = [1,2,3,4,5,6,7,98,0]
I would to do query to database using SQLAlchemy, but I would
You can try:
results = session.query(user).limit(20).offset(10).order_by(*A)