Skip to content

fremantle-industries/paged_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ecto query helpers for pagination

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages