opaleye-0.6.7003.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.PrimQuery

Documentation

data LimitOp #

Instances
Show LimitOp # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data BinOp #

Instances
Show BinOp # 
Instance details

Defined in Opaleye.Internal.PrimQuery

Methods

showsPrec :: Int -> BinOp -> ShowS #

show :: BinOp -> String #

showList :: [BinOp] -> ShowS #

data JoinType #

Constructors

LeftJoin 
RightJoin 
FullJoin 
Instances
Show JoinType # 
Instance details

Defined in Opaleye.Internal.PrimQuery

type Bindings a = [(Symbol, a)] #

data PrimQuery' a #

Constructors

Unit 
Empty a 
BaseTable TableIdentifier (Bindings PrimExpr) 
Product (NonEmpty (PrimQuery' a)) [PrimExpr] 
Aggregate (Bindings (Maybe (AggrOp, [OrderExpr], AggrDistinct), PrimExpr)) (PrimQuery' a) 
DistinctOnOrderBy (Maybe (NonEmpty PrimExpr)) [OrderExpr] (PrimQuery' a)

Represents both DISTINCT ON and ORDER BY clauses. In order to represent valid SQL only, DISTINCT ON expressions are always interpreted as the first ORDER BYs when present, preceding any in the provided list. See distinctOnOrderBy.

Limit LimitOp (PrimQuery' a) 
Join JoinType PrimExpr (Bindings PrimExpr) (Bindings PrimExpr) (PrimQuery' a) (PrimQuery' a) 
Exists Bool (PrimQuery' a) (PrimQuery' a) 
Values [Symbol] (NonEmpty [PrimExpr]) 
Binary BinOp (Bindings (PrimExpr, PrimExpr)) (PrimQuery' a, PrimQuery' a) 
Label String (PrimQuery' a) 
RelExpr PrimExpr (Bindings PrimExpr) 
Instances
Show a => Show (PrimQuery' a) # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data PrimQueryFold' a p #

Constructors

PrimQueryFold 

Fields