CurryInfo: ertools-3.0.0 / Database.ERD.Goodies.hasForeignKey

definition:
hasForeignKey :: String -> Entity -> Bool
hasForeignKey ename (Entity _ attrs) = any isForeignKeyWithName attrs
 where
  isForeignKeyWithName (Attribute _ d _ _) = case d of KeyDom n -> n==ename
                                                       _        -> False
demand:
argument 2
deterministic:
deterministic operation
documentation:
--- Has the entity an attribute with a foreign key for a given entity name?
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,{Entity}) |-> _}
name:
hasForeignKey
precedence:
no precedence defined
result-values:
_
signature:
String -> Database.ERD.Entity -> Prelude.Bool
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms