Class: Sequel::SQL::JoinUsingClause
- Inherits:
-
JoinClause
- Object
- Expression
- SpecificExpression
- JoinClause
- Sequel::SQL::JoinUsingClause
- Defined in:
- lib/sequel_core/sql.rb
Overview
Represents an SQL JOIN table USING (columns) clause.
Instance Attribute Summary collapse
-
#using ⇒ Object
readonly
The columns that appear both tables that should be equal for the conditions to match.
Attributes inherited from JoinClause
#join_type, #table, #table_alias
Instance Method Summary collapse
-
#initialize(using, *args) ⇒ JoinUsingClause
constructor
Create an object with the given conditions and default value.
-
#to_s(ds) ⇒ Object
Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.
Methods inherited from Expression
Constructor Details
#initialize(using, *args) ⇒ JoinUsingClause
Create an object with the given conditions and default value.
646 647 648 649 |
# File 'lib/sequel_core/sql.rb', line 646 def initialize(using, *args) @using = using super(*args) end |
Instance Attribute Details
#using ⇒ Object (readonly)
The columns that appear both tables that should be equal for the conditions to match.
642 643 644 |
# File 'lib/sequel_core/sql.rb', line 642 def using @using end |
Instance Method Details
#to_s(ds) ⇒ Object
Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.
653 654 655 |
# File 'lib/sequel_core/sql.rb', line 653 def to_s(ds) ds.join_using_clause_sql(self) end |