Class Sequel::SQL::JoinClause
In: lib/sequel_core/sql.rb
Parent: SpecificExpression

Represents an SQL JOIN clause, used for joining tables.

Methods

new   to_s  

Attributes

join_type  [R]  The type of join to do
table  [R]  The actual table to join
table_alias  [R]  The table alias to use for the join, if any

Public Class methods

Create an object with the given conditions and default value.

[Source]

     # File lib/sequel_core/sql.rb, line 631
631:       def initialize(join_type, table, table_alias = nil)
632:         @join_type, @table, @table_alias = join_type, table, table_alias
633:       end

Public Instance methods

Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.

[Source]

     # File lib/sequel_core/sql.rb, line 637
637:       def to_s(ds)
638:         ds.join_clause_sql(self)
639:       end

[Validate]