Skip to main content

Module pagination

Module pagination 

Source
Expand description

SeaORM repository helpers for offset pagination.

The helper executes the same select query for total count and page items, letting service code build filters once and reuse them consistently. It stays generic over entities and connections so product repositories can keep their own model types.

Functionsยง

fetch_offset_page
Fetches an offset page and total count from a SeaORM select query.