relational-query-0.1.0.1: Typeful, Modular, Relational, algebraic query engine

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellNone

Database.Relational.Query.Monad.Aggregate

Contents

Description

This module contains definitions about aggregated query type.

Synopsis

Aggregated Query

type AggregatedQuery r = OrderedQuery Aggregated (Restrictings Aggregated (AggregatingSetT QueryCore)) rSource

Aggregated query type. AggregatedQuery r == QueryAggregate (Projection Aggregated r).

toSQLSource

Arguments

:: AggregatedQuery r

AggregatedQuery to run

-> ConfigureQuery String

Result SQL string with ConfigureQuery computation

Run AggregatedQuery to get SQL with ConfigureQuery computation.

type Window c = Orderings c (PartitioningSet c)Source

Partition monad type for partition-by clause.

partitionBy :: Projection c r -> Window c ()Source

Add PARTITION BY term into context.

over :: SqlProjectable (Projection c) => Projection OverWindow a -> Window c () -> Projection c aSource

Operator to make window function projection.