Class: Sequel::SQL::JoinUsingClause

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

Overview

Represents an SQL JOIN table USING (columns) clause.

Instance Attribute Summary collapse

Attributes inherited from JoinClause

#join_type, #table, #table_alias

Instance Method Summary collapse

Methods inherited from Expression

#lit

Constructor Details

#initialize(using, *args) ⇒ JoinUsingClause

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


642
643
644
645
# File 'lib/sequel/lib/sequel/sql.rb', line 642

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

Instance Attribute Details

#usingObject (readonly)

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


638
639
640
# File 'lib/sequel/lib/sequel/sql.rb', line 638

def using
  @using
end