definition:
|
existsDBKey :: KeyPred _ -> Key -> Query Bool
existsDBKey keyPred key = Query $
do n <- selectInt keyPred "count(*)" $ "where _rowid_ = " ++ show key
return $! n > 0
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Checks whether the predicate has an entry with the given key.
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> _}
|
name:
|
existsDBKey
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
(Prelude.Int -> a -> Dynamic) -> Prelude.Int -> Query Prelude.Bool
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|