opaleye-0.4.2.0: An SQL-generating DSL targeting PostgreSQL
Opaleye.Internal.Order
Synopsis
newtype Order a Source
An Order represents an expression to order on and a sort direction. Multiple Orders can be composed with mappend. If two rows are equal according to the first Order, the second is used, and so on.
Order
mappend
Constructors
Instances
order :: OrderOp -> (a -> Column b) -> Order a Source
orderByU :: Order a -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag) Source
limit' :: Int -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag) Source
offset' :: Int -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag) Source