ordinary_owned_event_family_resource.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_owned_event_family_resource.bend as Ordinary_owned_event_family_resource
10 imports
import Base import ./change_tick.bend as Tick import ./world.bend as W import ./compose.bend as Q import ./capabilities.bend as Cap import ./ordinary_query_declaration.bend as Decl import ./ordinary_schema.bend as Schema import ./owner_product.bend as Product import ./resource_field.bend as Field import ./transaction.bend as T
Templates
template lens source · line 12 · raw
@-R:Type -> @-Logs:Type -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, R, Logs>
Only the user resource is writable; the affine event log is a retained sibling.
template read_returned source · line 14 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Logs:Type -> @-E:Data -> @-V:Data -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, E>, V) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, V)
template read source · line 20 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Logs:Type -> @-E:Data -> @-V:Data -> @-view:(@_:R -> Pair(R, V)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, V)
Advanced opaque-row read of the user resource R in Product.Owner<R,Logs>. The selected field projection returns its owner and detached V; log siblings remain retained. Raw schema lens/view callbacks are trusted setup.
template set source · line 26 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Logs:Type -> @-E:Data -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E> -> @replacement:R -> 0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>
Advanced transactional replacement of only user resource R, retaining affine Logs as siblings. Consumes replacement and returns the row owner; journal rollback restores the displaced resource, without exposing log writes.
template selected source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Logs:Type -> @-E:Data -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, Bool)
template write source · line 35 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-Logs:Type -> @-E:Data -> @-V:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, R> -> @-view:(@_:R -> Pair(R, V)) -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_query_declaration.Declaration<S, 0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueWrite<0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<R, Logs>, E>, R, V>>
Declare user-resource read/replacement using its ordinary schema identity. Selection is unconditional and access metadata derives from that identity. The typed field grant retains affine log owners; constructing this declaration neither reads resources nor publishes events.