definition:
|
setForeignKeyCheck :: Bool -> DBAction ()
setForeignKeyCheck flag = DBAction $ \conn -> do
writeConnection ("PRAGMA foreign_keys=" ++ showFlag ++ ";") conn
return (Right ())
where
showFlag = if flag then "ON" else "OFF"
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Turn on/off checking of foreign key constraints (SQLite3).
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_) |-> _}
|
name:
|
setForeignKeyCheck
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Prelude.Bool -> DBAction ()
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|