|
definition: |
foreignKeyAttributes :: String -> [Attribute] -> [Attribute]
foreignKeyAttributes ename attrs = filter isForeignKeyWithName attrs
where
isForeignKeyWithName (Attribute _ d _ _) = case d of KeyDom n -> n==ename
_ -> False
|
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
Returns the attributes that are a foreign key of a given entity name. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> {:,[]}}
|
|
name: |
foreignKeyAttributes |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
String -> [Database.ERD.Attribute] -> [Database.ERD.Attribute] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |