opaleye-0.6.7004.2: 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 #

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

data PrimQuery' a Source #

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) Source # 
Instance details

Defined in Opaleye.Internal.PrimQuery

data PrimQueryFold' a p Source #

Constructors

PrimQueryFold 

Fields