declared_family.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.2/declared_family.bend as Declared_family
8 imports
import Base import ./ordinary_declaration.bend as Identity import ./persistence_declaration.bend as Decl import ./snapshot_leaf.bend as Leaf import ./decode_data.bend as D import ./component.bend as Cmp import ./column.bend as Col import ./schema_fragments.bend as SF
Templates
template split source · line 12 · raw
@-S:Data -> @-P:Type -> @-Rest:Type -> @-identity:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> @observed:Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/snapshot_leaf.Component<S, P, identity, save>) -> Pair(Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/persistence_declaration.Constructed<S, P, identity, save>), 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, P>)
Closed trusted schema lenses, as in existing component.Family. The retained recipe becomes part of Family's Rest and survives ordinary column operations.
template take_column source · line 15 · raw
@-S:Data -> @-P:Type -> @-Store:Type -> @-Rest:Type -> @-identity:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/snapshot_leaf.Component<S, P, identity, save>)) -> @owner:Store -> Pair(Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/persistence_declaration.Constructed<S, P, identity, save>), 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, P>)
template put_column source · line 17 · raw
@-S:Data -> @-P:Type -> @-Store:Type -> @-Rest:Type -> @-identity:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/snapshot_leaf.Component<S, P, identity, save> -> Store) -> @rest:Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/persistence_declaration.Constructed<S, P, identity, save>) -> @column:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, P> -> Store
template family source · line 20 · raw
@-S:Data -> @-P:Type -> @-Store:Type -> @-Rest:Type -> @-V:Data -> @-Token:Data -> @-identity:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/snapshot_leaf.Component<S, P, identity, save>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/snapshot_leaf.Component<S, P, identity, save> -> Store) -> 0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/persistence_declaration.Constructed<S, P, identity, save>), P, V, Token, take_column(S, P, Store, Rest, identity, save, take), put_column(S, P, Store, Rest, identity, save, put), view>
template descriptor source · line 22 · raw
@-S:Data -> @-P:Type -> @-Token:Data -> @-identity:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> 0xb2b0f04555daca474f0f77d0966945c9/schema_fragments.Descriptor<S, Token, P>