Class: Sequel::SQL::JoinOnClause

Inherits:
JoinClause show all
Defined in:
lib/sequel/sql.rb,
lib/sequel/extensions/eval_inspect.rb

Overview

Represents an SQL JOIN clause with ON conditions.

Instance Attribute Summary collapse

Attributes inherited from JoinClause

#join_type, #table_expr

Instance Method Summary collapse

Methods inherited from JoinClause

#column_aliases, #table, #table_alias

Methods inherited from Expression

#==, attr_reader, #clone, #eql?, #hash, inherited, #inspect

Constructor Details

#initialize(on, *args) ⇒ JoinOnClause

Create an object with the ON conditions and call super with the remaining args.



1515
1516
1517
1518
# File 'lib/sequel/sql.rb', line 1515

def initialize(on, *args)
  @on = on
  super(*args)
end

Instance Attribute Details

#onObject (readonly)

The conditions for the join



1511
1512
1513
# File 'lib/sequel/sql.rb', line 1511

def on
  @on
end