View Source Fob (Fob v1.0.0)

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)
@spec 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)
@spec 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)
@spec page_breaks(Ecto.Queryable.t(), record :: map() | nil) ::
  [Fob.PageBreak.t()] | nil