Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Check = Check {
- chkName :: RawSQL ()
- chkCondition :: RawSQL ()
- chkValidated :: Bool
- tblCheck :: Check
- sqlAddValidCheckMaybeDowntime :: Check -> RawSQL ()
- sqlAddNotValidCheck :: Check -> RawSQL ()
- sqlValidateCheck :: RawSQL () -> RawSQL ()
- sqlDropCheck :: RawSQL () -> RawSQL ()
Documentation
Check | |
|
sqlAddValidCheckMaybeDowntime :: Check -> RawSQL () Source #
Add valid check constraint. Warning: PostgreSQL acquires SHARE ROW
EXCLUSIVE lock (that prevents updates) on modified table for the duration of
the creation. If this is not acceptable, use sqlAddNotValidCheck
and
sqlValidateCheck
.
sqlAddNotValidCheck :: Check -> RawSQL () Source #
Add check marked as NOT VALID. This avoids potentially long validation
blocking updates to modified table for its duration. However, checks created
as such need to be validated later using sqlValidateCheck
.
sqlValidateCheck :: RawSQL () -> RawSQL () Source #
Validate check previously created as NOT VALID.
sqlDropCheck :: RawSQL () -> RawSQL () Source #