Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains the default types and function that model aggregation predicates.
Synopsis
- data AggregationPredicatesImplementation (b :: BackendType) field = AggregationPredicatesImplementation {
- aggRelation :: RelInfo b
- aggPredicates :: [AggregationPredicate b field]
- data AggregationPredicate (b :: BackendType) field = AggregationPredicate {
- aggPredFunctionName :: Text
- aggPredDistinct :: Bool
- aggPredFilter :: Maybe (AnnBoolExp b field)
- aggPredArguments :: AggregationPredicateArguments b
- aggPredPredicate :: [OpExpG b field]
- data AggregationPredicateArguments (b :: BackendType)
Documentation
data AggregationPredicatesImplementation (b :: BackendType) field Source #
This type the default non-empty implementation of the
AggregationPredicates
type family of 'class Backend'.
This represents an _applied_ aggregation predicate, i.e. _not_ an aggegation function in isolation.
In the default schema implementation, this type results from parsing graphql such as:
table(_where( relation_aggregate: {functionname: { arguments: arguments, predicate: predicate, distinct: bool } } )) { ... }
Note that we make no attemt at modelling window functions or so-called
analytical
functions such as percentile_cont
.
AggregationPredicatesImplementation | |
|
Instances
data AggregationPredicate (b :: BackendType) field Source #
AggregationPredicate | |
|
Instances
data AggregationPredicateArguments (b :: BackendType) Source #