Class: Sequel::SQL::JoinUsingClause

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

Overview

Represents an SQL JOIN clause with USING 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(cols, *args) ⇒ JoinUsingClause

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



1531
1532
1533
1534
# File 'lib/sequel/sql.rb', line 1531

def initialize(cols, *args)
  @using = cols 
  super(*args)
end

Instance Attribute Details

#usingObject (readonly)

The columns that appear in both tables that should be equal for the conditions to match.



1527
1528
1529
# File 'lib/sequel/sql.rb', line 1527

def using
  @using
end