Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- aggregateFieldsToExtractorExps :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> AggregateFields ('Postgres pgKind) SQLExp -> [(ColumnAlias, SQLExp)]
- mkAggregateOrderByExtractorAndFields :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> AnnotatedAggregateOrderBy ('Postgres pgKind) SQLExp -> (Extractor, AggregateFields ('Postgres pgKind) SQLExp)
- mkRawComputedFieldExpression :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> ComputedFieldScalarSelect ('Postgres pgKind) SQLExp -> SQLExp
- withJsonAggExtr :: PermissionLimitSubQuery -> Maybe OrderByExp -> ColumnAlias -> SQLExp
- asSingleRowExtr :: ColumnAlias -> SQLExp
- asJsonAggExtr :: JsonAggSelect -> ColumnAlias -> PermissionLimitSubQuery -> Maybe OrderByExp -> Extractor
- withColumnOp :: Maybe ColumnOp -> SQLExp -> SQLExp
- withRedactionExp :: Backend ('Postgres pgKind) => Qual -> AnnRedactionExp ('Postgres pgKind) SQLExp -> SQLExp -> SQLExp
Documentation
aggregateFieldsToExtractorExps :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> AggregateFields ('Postgres pgKind) SQLExp -> [(ColumnAlias, SQLExp)] Source #
Creates node extractors for all of the columns and computed fields used in aggregated fields.
The ColumnAliases for all the extractors are namespaced aliases using the 'contextualize*` functions
so that none of the extractors names will conflict with one another (for example, if a column name
is the same as a field name (eg nodes
))
mkAggregateOrderByExtractorAndFields :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> AnnotatedAggregateOrderBy ('Postgres pgKind) SQLExp -> (Extractor, AggregateFields ('Postgres pgKind) SQLExp) Source #
mkRawComputedFieldExpression :: forall pgKind. Backend ('Postgres pgKind) => TableIdentifier -> ComputedFieldScalarSelect ('Postgres pgKind) SQLExp -> SQLExp Source #
asSingleRowExtr :: ColumnAlias -> SQLExp Source #
asJsonAggExtr :: JsonAggSelect -> ColumnAlias -> PermissionLimitSubQuery -> Maybe OrderByExp -> Extractor Source #