Alembic v2.1.0 Alembic.Pagination behaviour

Pagination by fixed-size pages

Summary

Types

t()
  • first - the first Page.t
  • last - the last Page.t
  • next - the next Page.t
  • previous - the previous Page.t
  • total_size - the total number of all resources that can be paged

Callbacks

Converts the module’s type to a t or nil if there is no pagination information

Types

t :: %Alembic.Pagination{first: InterpreterServer.Api.Pagination.Page.t, last: InterpreterServer.Api.Pagination.Page.t, next: InterpreterServer.Api.Pagination.Page.t, previous: InterpreterServer.Api.Pagination.Page.t, total_size: non_neg_integer}
  • first - the first Page.t
  • last - the last Page.t
  • next - the next Page.t
  • previous - the previous Page.t
  • total_size - the total number of all resources that can be paged.

Callbacks

to_pagination(any)

Specs

to_pagination(any) :: t | nil

Converts the module’s type to a t or nil if there is no pagination information.