EctoOrderable.Query (ecto_orderable v0.1.0)

Helpers for querying position information for items in an ordered set.

Summary

Functions

Given an interpolated Orderable and an Ecto query term representing an orderable row, returns a boolean indicating if the row is first in the sequence.

Given an interpolated Orderable and an Ecto query term representing an orderable row, returns a boolean indicating if the row is last in the sequence.

Functions

first_in_order?(order, row)

(macro)

Given an interpolated Orderable and an Ecto query term representing an orderable row, returns a boolean indicating if the row is first in the sequence.

last_in_order?(order, row)

(macro)

Given an interpolated Orderable and an Ecto query term representing an orderable row, returns a boolean indicating if the row is last in the sequence.