Class: SQLParser::Statement::Select

Inherits:
Node
  • Object
show all
Defined in:
lib/sql-parser/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(list, table_expression = nil) ⇒ Select

Returns a new instance of Select.



80
81
82
83
# File 'lib/sql-parser/statement.rb', line 80

def initialize(list, table_expression = nil)
  @list = list
  @table_expression = table_expression
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



85
86
87
# File 'lib/sql-parser/statement.rb', line 85

def list
  @list
end

#table_expressionObject (readonly)

Returns the value of attribute table_expression.



86
87
88
# File 'lib/sql-parser/statement.rb', line 86

def table_expression
  @table_expression
end