Class: ActiveRecord::HierarchicalQuery::Adapters::PostgreSQL Private
- Inherits:
-
Object
- Object
- ActiveRecord::HierarchicalQuery::Adapters::PostgreSQL
- Defined in:
- lib/active_record/hierarchical_query/adapters/postgresql.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #builder ⇒ Object readonly private
- #table ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(builder) ⇒ PostgreSQL
constructor
private
A new instance of PostgreSQL.
- #prior ⇒ Object private
Constructor Details
#initialize(builder) ⇒ PostgreSQL
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PostgreSQL.
17 18 19 20 21 |
# File 'lib/active_record/hierarchical_query/adapters/postgresql.rb', line 17 def initialize(builder) @builder = builder @table = klass.arel_table @query = CTE::Query.new(builder) end |
Instance Attribute Details
#builder ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/active_record/hierarchical_query/adapters/postgresql.rb', line 10 def builder @builder end |
#table ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/active_record/hierarchical_query/adapters/postgresql.rb', line 10 def table @table end |
Instance Method Details
#prior ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/active_record/hierarchical_query/adapters/postgresql.rb', line 23 def prior @query.recursive_table end |