struct Interro::JoinClause

Defined in:

join_clause.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(other_table : String, as relation : Nil | String, on condition : String, join_type : String = "INNER") #

Represent a SQL JOIN with the given arguments.

JoinClause.new("my_table", as: "m", on: "m.foo_id = foo.id")

[View source]

Instance Method Detail

def condition : String #

[View source]
def join_type : String #

[View source]
def other_table : String #

[View source]
def relation : String | Nil #

[View source]
def to_sql(io) #

Output this JOIN clause to the given IO as SQL.


[View source]