opaleye-0.7.1.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.PrimQuery

Documentation

data LimitOp Source #

Instances
Show LimitOp Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data BinOp Source #

Instances
Show BinOp Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

Methods

showsPrec :: Int -> BinOp -> ShowS #

show :: BinOp -> String #

showList :: [BinOp] -> ShowS #

data JoinType Source #

Constructors

LeftJoin 
RightJoin 
FullJoin 
Instances
Show JoinType Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

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

data Lateral Source #

Constructors

NonLateral 
Lateral 
Instances
Show Lateral Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

Semigroup Lateral Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

Monoid Lateral Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data PrimQuery' a Source #

Constructors

Unit 
Empty a 
BaseTable TableIdentifier (Bindings PrimExpr) 
Product (NonEmpty (Lateral, PrimQuery' a)) [PrimExpr] 
Aggregate (Bindings (Maybe (AggrOp, [OrderExpr], AggrDistinct), Symbol)) (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 (PrimQuery' a, PrimQuery' a) 
Label String (PrimQuery' a) 
RelExpr PrimExpr (Bindings PrimExpr) 
Rebind Bool (Bindings PrimExpr) (PrimQuery' a) 
ForUpdate (PrimQuery' a) 
Instances
Show a => Show (PrimQuery' a) Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data PrimQueryFold' a p Source #

Constructors

PrimQueryFold 

Fields