Class: Sequel::SQL::JoinClause
- Inherits:
-
Expression
- Object
- Expression
- Sequel::SQL::JoinClause
- Defined in:
- lib/sequel/sql.rb
Overview
Represents an SQL JOIN clause, used for joining tables.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#join_type ⇒ Object
readonly
The type of join to do.
-
#table ⇒ Object
readonly
The actual table to join.
-
#table_alias ⇒ Object
readonly
The table alias to use for the join, if any.
Instance Method Summary collapse
-
#initialize(join_type, table, table_alias = nil) ⇒ JoinClause
constructor
Create an object with the given join_type, table, and table alias.
Methods inherited from Expression
#==, attr_reader, #eql?, #hash, inherited, #inspect, #lit, #sql_literal
Constructor Details
#initialize(join_type, table, table_alias = nil) ⇒ JoinClause
Create an object with the given join_type, table, and table alias
1248 1249 1250 |
# File 'lib/sequel/sql.rb', line 1248 def initialize(join_type, table, table_alias = nil) @join_type, @table, @table_alias = join_type, table, table_alias end |
Instance Attribute Details
#join_type ⇒ Object (readonly)
The type of join to do
1239 1240 1241 |
# File 'lib/sequel/sql.rb', line 1239 def join_type @join_type end |
#table ⇒ Object (readonly)
The actual table to join
1242 1243 1244 |
# File 'lib/sequel/sql.rb', line 1242 def table @table end |
#table_alias ⇒ Object (readonly)
The table alias to use for the join, if any
1245 1246 1247 |
# File 'lib/sequel/sql.rb', line 1245 def table_alias @table_alias end |