on master help sign in
Document stringAgg
00a36f5Ollie Charles
src/Rel8/Expr/Aggregate.hs+1
@@ -135,6 +135,7 @@ sumWhere :: (Sql DBNum a, Sql DBSum a)
135sumWhere condition a = sum (caseExpr [(condition, a)] 0)
135sumWhere condition a = sum (caseExpr [(condition, a)] 0)
136
136
137
137
138+-- | Corresponds to @string_agg()@.
138stringAgg :: Sql DBString a
139stringAgg :: Sql DBString a
139 => Expr db -> Expr a -> Aggregate (Expr a)
140 => Expr db -> Expr a -> Aggregate (Expr a)
140stringAgg delimiter =
141stringAgg delimiter =