Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines the top-level translation functions pertaining to queries that are not aggregation queries, i.e. so-called "simple" selects into Postgres AST.
Synopsis
- selectQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> Query
- mkSQLSelect :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> Select
Documentation
selectQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> Query Source #
Translates IR to Postgres queries for simple SELECTs (select queries that are not aggregations, including subscriptions).
See mkSQLSelect
for the Postgres AST.
mkSQLSelect :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> Select Source #