ordinary_owned_event_query.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event_query.bend as Ordinary_owned_event_query
11 imports
import Base import ./change_tick.bend as Tick import ./world.bend as W import ./system.bend as Sys import ./transaction.bend as T import ./compose.bend as Q import ./capture_query.bend as Fold import ./ordinary_query_declaration.bend as Decl import ./ordinary_system.bend as Ordinary import ./ordinary_owned_event.bend as Pub import ./owned_event_storage.bend as Storage
Types
type Stage source · line 14 · raw
@P:Type -> Type
Engine-private staged owner, outside the query transaction and its inverses. Ordinary gameplay sees independent abstract H (query) and J (publication).
Stage@P:Type -> @newest:List<&1, P> -> Stage<P>
Engine-private staged owner, outside the query transaction and its inverses. Ordinary gameplay sees independent abstract H (query) and J (publication).
Templates
template emit source · line 15 · raw
@-P:Type -> @stage:Stage<P> -> @payload:P -> Stage<P>
template plan source · line 18 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> 0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Ops>
template row source · line 20 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @-H:Type -> @-caps:Ops(H) -> @stage:Stage<P> -> @args:A -> @owner:H -> Pair(H, Pair(Stage<P>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))
template finished source · line 22 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-U:Data -> @-Out:Data -> @result:0x67fd5084c1da4adc13317822045bb11f/capture_query.Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Stage<P>, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>>
template runner source · line 26 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @input:Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>) -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>>
template Registry source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> Type
template define source · line 30 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @name:String -> 0x67fd5084c1da4adc13317822045bb11f/system.RegistrationResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>), Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>, runner(S, C, R, P, identity, Ops, A, U, Out, query, body)>
template run_observed source · line 34 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @args:A -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>), Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>, runner(S, C, R, P, identity, Ops, A, U, Out, query, body)>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>) -> 0x67fd5084c1da4adc13317822045bb11f/system.RunResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>), Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>, runner(S, C, R, P, identity, Ops, A, U, Out, query, body)>
Transport is closed and always succeeds. Semantic failure must not advance the ordinary query cursor; the returned receipt remains outside Sys.Failed erasure.
template run source · line 37 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-identity:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-query:0x67fd5084c1da4adc13317822045bb11f/ordinary_query_declaration.Declaration<S, 0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Ops(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>)> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @-J:Type -> @-emit:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Write<S, P, identity, J> -> @_:A -> @_:H -> @_:J -> Pair(H, Pair(J, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>), Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>, runner(S, C, R, P, identity, Ops, A, U, Out, query, body)> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @args:A -> 0x67fd5084c1da4adc13317822045bb11f/system.RunResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Pair(A, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick>), Unit, 0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Reply<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, List<&2, Out>, P>, runner(S, C, R, P, identity, Ops, A, U, Out, query, body)>