~/bend-docscommunity

capture_query.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/capture_query.bend as Capture_query

6 imports
import Base
import ./change_tick.bend as Tick
import ./world.bend as W
import ./compose.bend as Q
import ./transaction.bend as T
import ./commands.bend as Cmd

Types

type Executed source · line 10 · raw

@World:Type -> @L:Type -> @Error:Data -> @Out:Data -> Type

Ordinary query selection and access stay in Q.Frame. The affine accumulator is outside the transaction journal and survives each entered row, including error.

Templates

template prepend source · line 12 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @value:Out -> @observed:Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>))) -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))

template completed source · line 15 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @next:(@_:L -> @_:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))) -> @capture:L -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @value:Out -> @status:0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>> -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))

template body_returned source · line 19 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @next:(@_:L -> @_:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))) -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, R, E>, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out))) -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))

template selected source · line 22 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @args:A -> @capture:L -> @next:(@_:L -> @_:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))) -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/compose.Frame<S, C, R, E>, Bool) -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))

template run_handles source · line 26 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @handles:List<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>> -> @+args:A -> @+cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @capture:L -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>)))

template returned source · line 30 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @capture:L -> @values:List<&2, Out> -> @result:0x67fd5084c1da4adc13317822045bb11f/transaction.Returned<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>> -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template finished source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @observed:Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>>, List<&2, Out>))) -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template scope_finished source · line 37 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @owned:Bool -> @result:Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out> -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template reserved_inner source · line 40 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @args:A -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @capture:L -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>) -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template reserved_scoped source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @args:A -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @capture:L -> @handles:List<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>> -> @admitted:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Bool) -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template reserved source · line 46 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @args:A -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @capture:L -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/world.Handle<S>>) -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>

template each_since source · line 50 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-L:Type -> @-U:Data -> @-Out:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-plan:0x67fd5084c1da4adc13317822045bb11f/compose.Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:L -> @_:A -> @_:H -> Pair(H, Pair(L, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<U>, Out)))) -> @args:A -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @capture:L -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Executed<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, L, 0x67fd5084c1da4adc13317822045bb11f/compose.Error<U>, Out>