def resource_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/schema_fragments.bend as Fragment
77# Declare a resource with plain persistence classification from its bound
78# extension. Records the classification and derives the owner type; does not
79# execute codecs, validate input, allocate payloads or export a snapshot.
80# Use the matching persistence declaration and identity when composing a schema.
81def resource_plain(~S:Data,~P:Type,~identity:Component.Declaration<S,P>,extension:Persist.Plain<S,P,identity>) -> Schema<S,Unit,P>:
82 +key=Component.key(~S,~P,identity)
83 Schema{[Fragment.Classified{Fragment.Resource{},key,key,Fragment.Plain{}}]}
Uses (9)
Used by (0)
No other definition uses this definition.