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

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