Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Order a = Order (a -> [(OrderOp, PrimExpr)])
- order :: OrderOp -> (a -> Column b) -> Order a
- orderByU :: Order a -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag)
- orderExprs :: a -> Order a -> [OrderExpr]
- limit' :: Int -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag)
- offset' :: Int -> (a, PrimQuery, Tag) -> (a, PrimQuery, Tag)
Documentation
An Order
a
represents a sort order and direction for the elements
of the type a
. Multiple Order
s can be composed with
mappend
or (<>)
from Data.Monoid. If two rows are
equal according to the first Order
in the mappend
, the second is
used, and so on.
orderExprs :: a -> Order a -> [OrderExpr] Source #