CurryInfo: spicey-4.2.0 / Spicey.GenerationHelper.manyToOne

definition: Info
 
manyToOne :: Entity -> [Relationship] -> [String]
manyToOne (Entity ename _) rel =
    map (relatedRelation ename) (filter isManyToOne rel)    
 where
  isManyToOne :: Relationship -> Bool
  isManyToOne relationship = case relationship of
    Relationship _ [REnd _        _ (Exactly 1),
                    REnd relEName _ (Between _ _)] -> relEName == ename
    _                                              -> False
demand: Info
 arguments 1 2
deterministic: Info
 deterministic operation
documentation: Info
 
Returns for a given entities the many-to-one related entity names.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Entity},_) |-> {:,[]}}
name: Info
 manyToOne
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 Database.ERD.Entity -> [Database.ERD.Relationship] -> [String]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term