Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Check = Check {
- chkName :: RawSQL ()
- chkCondition :: RawSQL ()
- chkValidated :: Bool
- tblCheck :: Check
- sqlAddCheck :: Check -> RawSQL ()
- sqlAddValidCheck :: Check -> RawSQL ()
- sqlAddNotValidCheck :: Check -> RawSQL ()
- sqlValidateCheck :: Check -> RawSQL ()
- sqlDropCheck :: RawSQL () -> RawSQL ()
Documentation
Check | |
|
sqlAddCheck :: Check -> RawSQL () Source #
Deprecated: Use sqlAddValidCheck instead
Deprecated version of sqlAddValidCheck
.
sqlAddValidCheck :: 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 :: Check -> RawSQL () Source #
Validate check previously created as NOT VALID.
sqlDropCheck :: RawSQL () -> RawSQL () Source #