def graph_schema

bendvy-ecs-core@0.1.0.4 · ordinary_app_relation_schedule.bend:18

import bendvy-ecs-core@0.1.0.4/ordinary_app_relation_schedule.bend as OrdinaryAppRelationSchedule
import Base
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A
import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as Schema

18# Advanced schema wrapper adapting storage/event types to the relation graph
19# World without changing entries. Raw schema/projection coherence is trusted setup.
20def graph_schema(~S:Data,~C:Type,~R:Type,schema:Schema.Schema<S,C,R>) -> Schema.Schema<S,A.Store<S,C>,R>:
21  match schema:
22    case Schema.Schema{entries}:Schema.Schema{entries}

Uses (2)

Used by (2)