def relation_entries
import bendvy-ecs-core@0.1.0.4/ordinary_app_resource_field_declaration.bend as OrdinaryAppResourceFieldDeclarationimport Base
import bendvy-ecs-core@0.1.0.4/schema_fragments.bend as Fragments
import bendvy-ecs-core@0.1.0.4/relation_failure_reader.bend as RelationDecl
import bendvy-ecs-core@0.1.0.4/relation_types.bend as RelationTypes
139# Schema-assembly projection: consume a relation declaration and emit entries
140# for its forward name followed by its inverse name. Entries describe schema
141# metadata; they do not create an edge, register a system or grant write access.
142def relation_entries(~S:Data,relation:RelationDecl.Declaration<S>) -> List<&2,Fragments.Entry<S>>:
143 match relation:
144 case RelationDecl.Declaration{RelationTypes.Descriptor{_,+name,+inverseName,_}}:[Fragments.Entry{Fragments.Relation{},name,name},Fragments.Entry{Fragments.Relation{},inverseName,inverseName}]
Uses (5)
Used by (0)
No other definition uses this definition.