def component_constructed
import bendvy-ecs-core@0.1.0.3/ordinary_schema.bend as OrdinarySchemaimport Base
import bendvy-ecs-core@0.1.0.3/decode_data.bend as D
import bendvy-ecs-core@0.1.0.3/persistence_declaration.bend as Persist
import bendvy-ecs-core@0.1.0.3/ordinary_declaration.bend as Component
import bendvy-ecs-core@0.1.0.3/column.bend as Col
import bendvy-ecs-core@0.1.0.3/schema_fragments.bend as Fragment
69# Declare a component with constructed persistence classification from its bound
70# extension. Records the classification and derives the owner type; does not
71# execute codecs, validate input, allocate payloads or export a snapshot.
72# Use the matching persistence declaration and identity when composing a schema.
73def component_constructed(~S:Data,~P:Type,~identity:Component.Declaration<S,P>,~project:P -> P & D.Raw,extension:Persist.Constructed<S,P,identity,project>) -> Schema<S,Col.Column<S,P>,Unit>:
74 +key=Component.key(~S,~P,identity)
75 Schema{[Fragment.Classified{Fragment.Component{},key,key,Fragment.Constructed{}}]}
Uses (12)
Used by (0)
No other definition uses this definition.