Box.Ecto.Pagination.Page (box v0.15.1)
View SourceSummary
Functions
Maps invdividual result over
Maps results over
Merges two pages together using a merge function.
Creates a new page from another page and some results
Creates a new page
Types
@type query() :: Ecto.Queryable.t()
@type result() :: any()
@type t() :: %Box.Ecto.Pagination.Page{ has_next_page: boolean(), index: term(), limit: non_neg_integer(), offset: non_neg_integer(), query: query(), results: [result()], sort_by: sort_by() }
Functions
Maps invdividual result over
Maps results over
Merges two pages together using a merge function.
Creates a new page from another page and some results
@spec new([result()], query(), non_neg_integer(), non_neg_integer(), sort_by()) :: t()
Creates a new page