| Copyright | 2013-2017 Kei Hibino | 
|---|---|
| License | BSD3 | 
| Maintainer | ex8k.hibino@gmail.com | 
| Stability | experimental | 
| Portability | unknown | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Database.Relational.Monad.Aggregate
Contents
Description
This module contains definitions about aggregated query type.
- type QueryAggregate = Orderings Aggregated (Restrictings Aggregated (AggregatingSetT QueryCore))
- type AggregatedQuery p r = OrderedQuery Aggregated (Restrictings Aggregated (AggregatingSetT QueryCore)) p r
- toSQL :: AggregatedQuery p r -> ConfigureQuery String
- toSubQuery :: AggregatedQuery p r -> ConfigureQuery SubQuery
- type Window c = Orderings c (PartitioningSet c)
- over :: SqlContext c => Record OverWindow a -> Window c () -> Record c a
Aggregated Query
type QueryAggregate = Orderings Aggregated (Restrictings Aggregated (AggregatingSetT QueryCore)) Source #
Aggregated query monad type.
type AggregatedQuery p r = OrderedQuery Aggregated (Restrictings Aggregated (AggregatingSetT QueryCore)) p r Source #
Aggregated query type. AggregatedQuery p r == QueryAggregate (PlaceHolders p, Record Aggregated r).
Arguments
| :: AggregatedQuery p r | 
 | 
| -> ConfigureQuery String | Result SQL string with  | 
Run AggregatedQuery to get SQL with ConfigureQuery computation.
Arguments
| :: AggregatedQuery p r | 
 | 
| -> ConfigureQuery SubQuery | Result  | 
Run AggregatedQuery to get SubQuery with ConfigureQuery computation.
type Window c = Orderings c (PartitioningSet c) Source #
Partition monad type for partition-by clause.
over :: SqlContext c => Record OverWindow a -> Window c () -> Record c a infix 8 Source #
Operator to make record of window function result using built Window monad.
Orphan instances
| MonadRestrict Flat q => MonadRestrict Flat (Restrictings Aggregated q) Source # | Restricted  |