Copyright | Flipstone Technology Partners 2023 |
---|---|
License | MIT |
Stability | Stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Since: 1.0.0.0
Synopsis
Documentation
data GroupByClause Source #
Type to represent a SQL group by clause. E.G.
GROUP BY team_name
GroupByClause
provides a SqlExpression
instance. See
unsafeSqlExpression
for how to construct a value with your own custom
SQL.
Since: 1.0.0.0
Instances
SqlExpression GroupByClause Source # | Since: 1.0.0.0 |
Defined in Orville.PostgreSQL.Expr.GroupBy toRawSql :: GroupByClause -> RawSql Source # |
groupByClause :: GroupByExpr -> GroupByClause Source #
Create a full SQL GROUP BY clause with the given expression.
Since: 1.0.0.0
data GroupByExpr Source #
Type to represent a SQL group by expression (the part that follows the
GROUP BY
in SQL). E.G.
team_name
GroupByExpr
provides a SqlExpression
instance. See
unsafeSqlExpression
for how to construct a value with your own custom
SQL.
Since: 1.0.0.0
Instances
Semigroup GroupByExpr Source # | Since: 1.0.0.0 |
Defined in Orville.PostgreSQL.Expr.GroupBy (<>) :: GroupByExpr -> GroupByExpr -> GroupByExpr # sconcat :: NonEmpty GroupByExpr -> GroupByExpr # stimes :: Integral b => b -> GroupByExpr -> GroupByExpr # | |
SqlExpression GroupByExpr Source # | Since: 1.0.0.0 |
Defined in Orville.PostgreSQL.Expr.GroupBy toRawSql :: GroupByExpr -> RawSql Source # unsafeFromRawSql :: RawSql -> GroupByExpr Source # |
appendGroupByExpr :: GroupByExpr -> GroupByExpr -> GroupByExpr Source #
Combines two GroupByExpr
s with a comma between them.
Since: 1.0.0.0
groupByColumnsExpr :: NonEmpty ColumnName -> GroupByExpr Source #
Create a GroupByExpr
from the given ColumnName
s.
Since: 1.0.0.0