Ecto Cursor Pagination v0.1.1 Ecto.CursorPagination
Cursor / Value based pagination using Ecto
http://blog.novatec-gmbh.de/art-pagination-offset-vs-value-based-paging/
Summary
Functions
Efficiently returns a maximum of per_page
configured results
Functions
paginate(query, last_seen_id, direction)
paginate(Ecto.Query.t, pos_integer, String.t) :: Ecto.Query.t
Efficiently returns a maximum of per_page
configured results.
Assumes cursor_ids are integers and incremented as inserted in order.
It returns an Ecto Query that is the combination of the inputted query and the cursor pagination.
If an unknown or nil direction is inputted, it returns the original query in the default order.