~/bend-docscommunity

inspector_relation_projection.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/inspector_relation_projection.bend as Inspector_relation_projection

10 imports
import Base
import ./change_tick.bend as Tick
import inspector_query_projection.bend as Select
import inspector_query.bend as Query
import inspector_query_frame_world.bend as Traverse
import inspector.bend as I
import world.bend as W
import relation_types.bend as G
import relation_commands.bend as A
import relation_query.bend as RQ

Templates

template graph_joined source · line 14 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>)

Real Inspector Frame, not a fabricated transaction. Graph is detached Data; Store components/resources remain arbitrary affine Type owners.

template graph source · line 17 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>)

template accepted source · line 20 · raw

@-S:Data -> @observed:Pair(Bool, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Row<S, Unit>) -> Bool

template cells source · line 23 · raw

@-S:Data -> @observed:Pair(Bool, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Row<S, Unit>) -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>

template matched source · line 26 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool)

template matches source · line 29 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool)

template projected source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>)

template project source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>)

template matched_runtime source · line 38 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool)

Runtime-data counterparts let composed query kernels share code across immutable relation specs without changing graph access or row semantics.

template matches_runtime source · line 41 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, Bool)

template projected_runtime source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Graph<S>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>)

template project_runtime source · line 46 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> @target:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>)

template relations source · line 50 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> 0x67fd5084c1da4adc13317822045bb11f/inspector_query_projection.DeclaredSelection<0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, S, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>>

Closed relation requirement list supports both directions, required/optional, presence/absence filters and every declared projection key/order unchanged.

template grant source · line 54 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-component:0x67fd5084c1da4adc13317822045bb11f/inspector_query_projection.DeclaredSelection<0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, S, V> -> @-spec:0x67fd5084c1da4adc13317822045bb11f/relation_query.Spec<S> -> 0x67fd5084c1da4adc13317822045bb11f/inspector_query.ComposedReadQuery<0x67fd5084c1da4adc13317822045bb11f/inspector.Frame<S, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Store<S, C>, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, S, 0x67fd5084c1da4adc13317822045bb11f/inspector_query_projection.Product<V, List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_query.Cell<S>>>>

Recursive Product/map component providers are reused, not reimplemented. Query.grant_composed performs World namespace/liveness checks before public lookup.