opaleye-0.4.2.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell98

Opaleye.Internal.Order

Synopsis

Documentation

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.

Constructors

Order (a -> [(OrderOp, PrimExpr)]) 

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