Safe Haskell | Safe-Inferred |
---|---|
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 m. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind, MonadWriter CustomSQLCTEs m) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> m 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 m. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind, MonadWriter CustomSQLCTEs m) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> m Select Source #