Marten::DB::Query::SQL::Join
Represents an SQL join used in the context of a specific query.
SQL joins are managed as a tree, which means that each join can be associated with a list of underlying children joins (for the joins following the considered relationship). SQL joins are "flattened" when the raw SQL queries are generated.
Constructors
new(id : Int32, type : JoinType, from_model : Model.class, from_common_field : Field::Base, reverse_relation : ReverseRelation | Nil, to_model : Model.class, to_common_field : Field::Base, selected : Bool, table_alias_prefix : String = "t", children : Array(Marten::DB::Query::SQL::Join) = [] of self)
SourceInstance methods
add_child(child : self) : Nil
Sourcechildren
Sourceclone
Sourcecolumns
Sourcefrom_common_field
Sourcefrom_model
Sourceid
Sourceparent
Sourcereverse_relation
Sourceselected?
Sourcetable_alias
Sourcetable_alias_prefix
Sourceto_a
Sourceto_common_field
Sourceto_model
Sourceto_sql
Sourcetype
Source