@@ -112,7 +112,7 @@ let
113 '[ "sum" ::: 'NotNull 'PGint4
113 '[ "sum" ::: 'NotNull 'PGint4
114 , "col1" ::: 'NotNull 'PGint4 ]
114 , "col1" ::: 'NotNull 'PGint4 ]
115− query =
115+ query =
117 ((#col1 + #col2) `As` #sum :* #col1 :* Nil)
117 ((#col1 + #col2) `As` #sum :* #col1 :* Nil)
118 ( from (table (#tab `As` #t))
118 ( from (table (#tab `As` #t))
@@ -179,7 +179,7 @@ let
180 select (sum_ #col2 `As` #sum :* #col1 `As` #col1 :* Nil)
180 select (sum_ #col2 `As` #sum :* #col1 `As` #col1 :* Nil)
181 ( from (table (#tab `As` #table1))
181 ( from (table (#tab `As` #table1))
182− & group (By #col1 :* Nil)
182+ & group (By #col1 :* Nil)
183 & having (#col1 + sum_ #col2 .> 1) )
183 & having (#col1 + sum_ #col2 .> 1) )
184in renderQuery query
184in renderQuery query
@@ -281,7 +281,7 @@ newtype Query
281 deriving (GHC.Generic,Show,Eq,Ord,NFData)
281 deriving (GHC.Generic,Show,Eq,Ord,NFData)
283-- | The results of two queries can be combined using the set operation
283-- | The results of two queries can be combined using the set operation
284−-- `union`. Duplicate rows are eliminated.
284+-- `union`. Duplicate rows are eliminated.
286 :: Query schema params columns
286 :: Query schema params columns
287 -> Query schema params columns
287 -> Query schema params columns
@@ -412,7 +412,7 @@ selectDotStar
412selectDotStar rel relations = UnsafeQuery $
412selectDotStar rel relations = UnsafeQuery $
413 "SELECT" <+> renderAlias rel <> ".*" <+> renderTableExpression relations
413 "SELECT" <+> renderAlias rel <> ".*" <+> renderTableExpression relations
415−-- | A `selectDistinctDotStar` asks for all the columns of a particular table,
415+-- | A `selectDistinctDotStar` asks for all the columns of a particular table,
416-- and eliminates duplicate rows.
416-- and eliminates duplicate rows.
417selectDistinctDotStar
417selectDistinctDotStar
418 :: Has relation relations columns
418 :: Has relation relations columns
@@ -555,7 +555,7 @@ where_ wh rels = rels {whereClause = wh : whereClause rels}
556 :: SListI bys
556 :: SListI bys
557 => NP (By relations) bys -- ^ grouped columns
557 => NP (By relations) bys -- ^ grouped columns
558− -> TableExpression schema params relations 'Ungrouped
558+ -> TableExpression schema params relations 'Ungrouped
559 -> TableExpression schema params relations ('Grouped bys)
559 -> TableExpression schema params relations ('Grouped bys)
560group bys rels = TableExpression
560group bys rels = TableExpression
561 { fromClause = fromClause rels
561 { fromClause = fromClause rels