class Jennifer::QueryBuilder::NestedRelationTree

Overview

Wrapper class to store information what model relations structure should be loaded in a request.

Defined in:

jennifer/query_builder/nested_relation_tree.cr

Instance Method Summary

Instance methods inherited from class Jennifer::QueryBuilder::RelationTree

adapter adapter, add_deep_relation(query, rel, nested_rel : Symbol, context = @klass, index : Int32 = 0)
add_deep_relation(query, rel, nested_rels : Array, context = @klass, index : Int32 = 0)
add_deep_relation(query, rel, nested_rels : Hash | NamedTuple, context = @klass, index : Int32 = 0)
add_deep_relation
, add_relation(query, rel, context, index : Int32)
add_relation(rel)
add_relation
, bucket : Array(Element) bucket, clone clone

Constructor methods inherited from class Jennifer::QueryBuilder::RelationTree

new(klass : Model::Resource.class) new

Instance Method Detail

def add_relation(query, rel, context = @klass, index : Int32 = 0) #

[View source]
def read(rs, klass : T.class) forall T #

[View source]
def select_fields(query) #

[View source]