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

Copyright2013 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Database.Relational.Query.Monad.Aggregate

Contents

Description

This module contains definitions about aggregated query type.

Synopsis

Aggregated Query

toSQL Source

Arguments

:: AggregatedQuery p 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 a Source

Operator to make window function projection.