TurnThePage v0.2.0 TurnThePage View Source

Fast, simple and lightweight pagination system for your Elixir application.

It works with queries and with lists. No magic applied.

Link to this section Summary

Functions

It paginates the query or the list using Ecto.Query functions in case of query and Stream / Enum functions for list

Link to this section Functions

Link to this function paginate(module_name, list) View Source

It paginates the query or the list using Ecto.Query functions in case of query and Stream / Enum functions for list.

Parameters:

- name of the module, query or list
- keyword list in format [page: page, limit: limit]