View Source ScrollexEcto.Paginator (ScrollexEcto v0.1.0)
Provides pagination functionality for Ecto queries.
This module implements both offset-based and cursor-based pagination methods.
Summary
Functions
Paginates the given queryable based on the provided parameters.
Functions
Paginates the given queryable based on the provided parameters.
Parameters
queryable
- The Ecto queryable to paginateparams
- A map of pagination parametersrepo
- The Ecto repo to use for queriesconf
- Configuration options
Returns
A ScrollexEcto.Page
struct containing the paginated results.