Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines the top-level translation functions pertaining to queries that use aggregation (i.e., not so-called "simple" selects) into Postgres AST.
Synopsis
- selectAggregateQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => AnnAggregateSelect ('Postgres pgKind) -> Query
- mkAggregateSelect :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => AnnAggregateSelect ('Postgres pgKind) -> Select
Documentation
selectAggregateQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => AnnAggregateSelect ('Postgres pgKind) -> Query Source #
Translates IR to Postgres queries for aggregated SELECTs.
See mkAggregateSelect
for the Postgres AST.
mkAggregateSelect :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => AnnAggregateSelect ('Postgres pgKind) -> Select Source #