Fob (Fob v0.6.1) View Source

A keyset pagination library for Ecto queries

Link to this section Summary

Link to this section Functions

Link to this function

between_bounds(queryable, start, stop)

View Source (since 0.1.0)

Specs

between_bounds(
  Ecto.Queryable.t(),
  [Fob.PageBreak.t()] | nil,
  [Fob.PageBreak.t()] | nil
) :: Ecto.Query.t()
Link to this function

next_page(queryable, page_breaks, page_size)

View Source (since 0.1.0)

Specs

next_page(Ecto.Queryable.t(), [Fob.PageBreak.t()], pos_integer() | :infinity) ::
  Ecto.Query.t()
Link to this function

page_breaks(queryable, record)

View Source (since 0.1.0)

Specs

page_breaks(Ecto.Queryable.t(), record :: map() | nil) ::
  [Fob.PageBreak.t()] | nil