Pagination tool class that used to add pagination to select statementFields
size Specify how many rows in a page
index Specify the page number, zero-indexed
Usagesstmt : Select pagi_conf = PaginationConfig(size=..., limit=...) stmt = pagi_conf.use_on(stmt)Also since this class is extend from pydantic.BaseModel, so it can be used as a dependency of FastAPI method:@router.get('/test') def test_endpoint(pagi_conf : PaginationConfig): pass