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

Link to this function

paginate(queryable, params, repo, conf)

View Source

Paginates the given queryable based on the provided parameters.

Parameters

  • queryable - The Ecto queryable to paginate
  • params - A map of pagination parameters
  • repo - The Ecto repo to use for queries
  • conf - Configuration options

Returns

A ScrollexEcto.Page struct containing the paginated results.