restore_storage.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_storage.bend as Restore_storage
11 imports
import Base import ./change_tick.bend as Tick import ./restore_data.bend as R import ./restore_leaf.bend as Stage import ./snapshot_leaf.bend as Leaf import ./ordinary_declaration.bend as Identity import ./decode_data.bend as D import ./column.bend as Col import ./world.bend as W import ./entity_key.bend as Key import ./persistence_declaration.bend as Decl
Templates
template inserted source · line 13 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @+position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @undo:(@_:P -> I) -> @context:Context -> @records:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Record<I, P>> -> @returned:List<&1, I> -> @removed:List<&1, P> -> @applied:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Applied<I, P>> -> @+target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> @result:0x14a72e1c180a5ab1f8a056d43822425c/column.SwapOutcome<S, P> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template mapped source · line 19 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @+saved:0x14a72e1c180a5ab1f8a056d43822425c/entity_key.Key -> @owner:P -> @undo:(@_:P -> I) -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @column:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> @target:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template component_record source · line 23 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @record:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Record<I, P> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @column:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> @+bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template components_next source · line 27 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template component_records source · line 30 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @records:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Record<I, P>> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @column:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> @+bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @+tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template component_join source · line 34 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template components source · line 37 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template resource_record source · line 40 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @record:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Record<I, P> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @previous:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template resource_next source · line 44 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @next:(@_:P -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)) -> @observed:Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template resource_records source · line 47 · raw
@-Context:Type -> @-I:Type -> @-P:Type -> @records:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.Record<I, P>> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @owner:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template resource_join source · line 51 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/persistence_declaration.Constructed<S, P, identity, project> -> @observed:Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)
template resources source · line 54 · raw
@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)