|
definition: |
existsEntryWithDBKey :: (Read t, Show t) =>
String -> (Key -> t -> Dynamic) -> Key -> Transaction ()
existsEntryWithDBKey ename entrypred key =
getDB (getDBInfo entrypred key) |>>=
maybe (errorT (TError KeyNotExistsError
("database contains no entry for key: "++show key
++" in table: "++ename)) )
(const doneT)
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
If there is no entry with a given key, raise a transaction error. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_,_,_) |-> _}
|
|
name: |
existsEntryWithDBKey |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
(Prelude.Read a, Prelude.Show a) => String -> (Prelude.Int -> a -> Database.KeyDatabaseSQLite.Dynamic) -> Prelude.Int -> Database.KeyDatabaseSQLite.Transaction () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |