relational-query-0.3.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.Trans.Config

Contents

Description

This module defines monad transformer which requires query generate configuration.

Synopsis

Transformer into query with configuration

data QueryConfig m a Source

ReaderT type to require query generate configuration.

Instances

MonadQualifyUnique ConfigureQuery QueryUnique

Instance to lift from qualified table forms into QueryUnique.

MonadQualify ConfigureQuery Restrict

Instance to lift from qualified table forms into Restrict.

MonadQualify ConfigureQuery QueryAggregate

Instance to lift from qualified table forms into QueryAggregate.

MonadQualify ConfigureQuery (Assign r)

Instance to lift from qualified table forms into Restrict.

MonadQualify ConfigureQuery (Orderings Flat QueryCore)

Instance to lift from qualified table forms into QuerySimple.

Monad m => Monad (QueryConfig m) 
Functor m => Functor (QueryConfig m) 
Applicative m => Applicative (QueryConfig m) 

queryConfig :: Monad m => m a -> QueryConfig m a Source

Lift to QueryConfig.

runQueryConfig :: QueryConfig m a -> Config -> m a Source

Run QueryConfig to expand with configuration

askQueryConfig :: Monad m => QueryConfig m Config Source

Read configuration.