class Jennifer::QueryBuilder::MultiQueryRelationTree

Overview

Wrapper class to store information what model relations structure should be loaded in the separate requests.

Defined in:

jennifer/query_builder/multi_query_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 preload(collection) #

[View source]