struct

Interro::JoinClause

Inherits Struct / Value / Object

Constructors

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")
Source

Instance methods

condition
Source
join_type
Source
other_table
Source
relation
Source
to_sql(io)

Output this JOIN clause to the given IO as SQL.

Source