Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Database.Relational.Query.Monad.Restrict
Description
This module contains definitions about simple restrict context monad type.
- type Restrict = Restrictings Flat ConfigureQuery
- type RestrictedStatement r a = Projection Flat r -> Restrict a
- extract :: Restrict a -> Config -> (a, QueryRestriction Flat)
Monad to restrict target records.
type Restrict = Restrictings Flat ConfigureQuery Source
Restrict only monad type used from update statement and delete statement.
type RestrictedStatement r a = Projection Flat r -> Restrict a Source
RestrictedStatement type synonym.
Projection record type r
must be
the same as Restrictings
type parameter r
.