Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 795 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 795 Bytes

PagedQuery

Build Status hex.pm version

Ecto query helpers for pagination

Installation

Add the paged_query package to your list of dependencies in mix.exs:

def deps do
  [
    {:paged_query, "~> 0.0.2"}
  ]
end

Usage

require Ecto.Query
import Ecto.Query

page = 0
page_size = 50

from(Blog)
|> PagedQuery.call(page, page_size)
|> Repo.all()

Authors

License

paged_query is released under the MIT license