Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the top-level translation functions pertaining to translating Connection (i.e. Relay) queries into Postgres AST.
Synopsis
- connectionSelectQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => ConnectionSelect ('Postgres pgKind) Void SQLExp -> Query
- mkConnectionSelect :: forall pgKind m. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind, MonadWriter CustomSQLCTEs m) => ConnectionSelect ('Postgres pgKind) Void SQLExp -> m (SelectWithG Select)
Documentation
connectionSelectQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => ConnectionSelect ('Postgres pgKind) Void SQLExp -> Query Source #
Translates IR to Postgres queries for "connection" queries (used for Relay).
See mkConnectionSelect
for the Postgres AST.
mkConnectionSelect :: forall pgKind m. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind, MonadWriter CustomSQLCTEs m) => ConnectionSelect ('Postgres pgKind) Void SQLExp -> m (SelectWithG Select) Source #