~/bend-docscommunity

declared_family.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @observed:Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, save>) -> Pair(Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, save>), 0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, save>)) -> @owner:Store -> Pair(Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, save>), 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)

template put_column source · line 17 · raw

@-S:Data -> @-P:Type -> @-Store:Type -> @-Rest:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, save> -> Store) -> @rest:Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, save>) -> @column:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store

template family source · line 20 · raw

@-S:Data -> @-P:Type -> @-Store:Type -> @-Rest:Type -> @-V:Data -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-save:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, save>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, save> -> Store) -> 0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/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:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> 0x14a72e1c180a5ab1f8a056d43822425c/schema_fragments.Descriptor<S, Token, P>