Class: Rooq::DSL::Join

Inherits:
Object
  • Object
show all
Defined in:
lib/rooq/dsl/select_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, table, condition, table_alias = nil, using: nil) ⇒ Join

Returns a new instance of Join.



180
181
182
183
184
185
186
187
# File 'lib/rooq/dsl/select_query.rb', line 180

def initialize(type, table, condition, table_alias = nil, using: nil)
  @type = type
  @table = table
  @condition = condition
  @table_alias = table_alias
  @using_columns = using&.freeze
  freeze
end

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition.



178
179
180
# File 'lib/rooq/dsl/select_query.rb', line 178

def condition
  @condition
end

#tableObject (readonly)

Returns the value of attribute table.



178
179
180
# File 'lib/rooq/dsl/select_query.rb', line 178

def table
  @table
end

#table_aliasObject (readonly)

Returns the value of attribute table_alias.



178
179
180
# File 'lib/rooq/dsl/select_query.rb', line 178

def table_alias
  @table_alias
end

#typeObject (readonly)

Returns the value of attribute type.



178
179
180
# File 'lib/rooq/dsl/select_query.rb', line 178

def type
  @type
end

#using_columnsObject (readonly)

Returns the value of attribute using_columns.



178
179
180
# File 'lib/rooq/dsl/select_query.rb', line 178

def using_columns
  @using_columns
end