SQLAlchemy and Alembic 2 · Querying
Paginate
Return the second page of 20 rows.
page = session.scalars(select(Post).order_by(Post.id).limit(20).offset(20)).all()
Official SQLAlchemy and Alembic 2 documentation
SQLAlchemy and Alembic 2 · Querying
Return the second page of 20 rows.
page = session.scalars(select(Post).order_by(Post.id).limit(20).offset(20)).all()
Official SQLAlchemy and Alembic 2 documentation
Was this page helpful?