Class: Exwiw::QueryAstBuilder::ScopedArm
- Inherits:
-
Struct
- Object
- Struct
- Exwiw::QueryAstBuilder::ScopedArm
- Defined in:
- lib/exwiw/query_ast_builder.rb
Overview
One resolved route from a table to the scope.
relation is the belongs_to the route leaves through (nil when the plain
BFS picked it). Exactly one of the two other members is set:
- `path` — table names from this table up to a directly-scoped
ancestor, compiled into a chain of JOINs.
- `target_query` — the arm target's own (already scoped) extraction
query, used when the target carries no scope column
and no join path reaches one, but is scoped by other
means (referenced_by / reverse_scope / the belongs_to
cascade). The arm then probes that query's ids.
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#target_query ⇒ Object
Returns the value of attribute target_query.
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
683 684 685 |
# File 'lib/exwiw/query_ast_builder.rb', line 683 def path @path end |
#relation ⇒ Object
Returns the value of attribute relation
683 684 685 |
# File 'lib/exwiw/query_ast_builder.rb', line 683 def relation @relation end |
#target_query ⇒ Object
Returns the value of attribute target_query
683 684 685 |
# File 'lib/exwiw/query_ast_builder.rb', line 683 def target_query @target_query end |