def component_plain
import bendvy-ecs-core@0.1.0.3/ordinary_schema.bend as OrdinarySchemaimport Base
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
53# Declare a component with plain persistence classification from its bound
54# extension. Records the classification and derives the owner type; does not
55# execute codecs, validate input, allocate payloads or export a snapshot.
56# Use the matching persistence declaration and identity when composing a schema.
57def component_plain(~S:Data,~P:Type,~identity:Component.Declaration<S,P>,extension:Persist.Plain<S,P,identity>) -> Schema<S,Col.Column<S,P>,Unit>:
58 +key=Component.key(~S,~P,identity)
59 Schema{[Fragment.Classified{Fragment.Component{},key,key,Fragment.Plain{}}]}
Uses (10)
Used by (0)
No other definition uses this definition.