Class: Exwiw::QueryAstBuilder::ScopedArm

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



683
684
685
# File 'lib/exwiw/query_ast_builder.rb', line 683

def path
  @path
end

#relationObject

Returns the value of attribute relation

Returns:

  • (Object)

    the current value of relation



683
684
685
# File 'lib/exwiw/query_ast_builder.rb', line 683

def relation
  @relation
end

#target_queryObject

Returns the value of attribute target_query

Returns:

  • (Object)

    the current value of target_query



683
684
685
# File 'lib/exwiw/query_ast_builder.rb', line 683

def target_query
  @target_query
end