View Source FatEcto.FatPaginator (FatEcto v1.0.0)
Provides pagination functionality for Ecto queries.
This module can be used to paginate query results by specifying limit
and skip
parameters.
It also supports counting the total number of records for pagination metadata.
Usage
defmodule MyApp.MyContext do
use FatEcto.FatPaginator, repo: MyApp.Repo
# Custom functions can be added here
end
Now you can use the paginate/2
function within MyApp.MyContext
.