~/bend-docscommunity

check_relation_projection.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.2/check_relation_projection.bend as Check_relation_projection

9 imports
import Base
import inspector_query_projection.bend as Select
import inspector_query.bend as Query
import inspector_query_frame_world.bend as Traverse
import check.bend as K
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 13 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_types.Graph<S>) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/check.Frame<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_types.Graph<S>)

Actual cursor-free Check Frame. Graph is detached Data; Store components/resources remain arbitrary affine Type owners.

template graph source · line 16 · raw

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

template accepted source · line 19 · raw

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

template cells source · line 22 · raw

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

template matched source · line 25 · raw

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

template matches source · line 28 · raw

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

template projected source · line 30 · raw

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

template project source · line 33 · raw

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

template matched_runtime source · line 37 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @spec:0xb2b0f04555daca474f0f77d0966945c9/relation_query.Spec<S> -> @target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/check.Frame<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, 0xb2b0f04555daca474f0f77d0966945c9/relation_types.Graph<S>) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/check.Frame<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/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 40 · raw

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

template projected_runtime source · line 42 · raw

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

template project_runtime source · line 45 · raw

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

template relations source · line 49 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-spec:0xb2b0f04555daca474f0f77d0966945c9/relation_query.Spec<S> -> 0xb2b0f04555daca474f0f77d0966945c9/inspector_query_projection.DeclaredSelection<0xb2b0f04555daca474f0f77d0966945c9/check.Frame<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Store<S, C>, R, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, E>>, S, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/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 53 · raw

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

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