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

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

Database.Relational.Query.Monad.Assign

Contents

Description

This module contains definitions about restrict context with assignment monad type.

Synopsis

Monad to restrict target records with assignment.

type Assign r = Assignings r Restrict Source #

Target update monad type used from update statement and merge statement.

type AssignStatement r a = Projection Flat r -> Assign r a Source #

AssignStatement type synonym. Specifying assignments and restrictions like update statement. Projection record type must be the same as Target type parameter r.

extract :: Assign r a -> Config -> ((a, Table r -> [Assignment]), QueryRestriction Flat) Source #

Run Assign.