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.



64
65
66
67
# File 'lib/sql-parser/statement.rb', line 64

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

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



69
70
71
# File 'lib/sql-parser/statement.rb', line 69

def list
  @list
end

#table_expressionObject (readonly)

Returns the value of attribute table_expression.



70
71
72
# File 'lib/sql-parser/statement.rb', line 70

def table_expression
  @table_expression
end