opaleye-0.5.0.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe
LanguageHaskell98

Opaleye.Internal.PrimQuery

Documentation

data JoinType Source

Constructors

LeftJoin 

Instances

data PrimQueryFold' a p Source

Constructors

PrimQueryFold 

Fields

unit :: p
 
empty :: a -> p
 
baseTable :: TableIdentifier -> [(Symbol, PrimExpr)] -> p
 
product :: NonEmpty p -> [PrimExpr] -> p
 
aggregate :: [(Symbol, (Maybe (AggrOp, [OrderExpr]), PrimExpr))] -> p -> p
 
order :: [OrderExpr] -> p -> p
 
limit :: LimitOp -> p -> p
 
join :: JoinType -> PrimExpr -> p -> p -> p
 
values :: [Symbol] -> NonEmpty [PrimExpr] -> p
 
binary :: BinOp -> [(Symbol, (PrimExpr, PrimExpr))] -> (p, p) -> p
 
label :: String -> p -> p