Method: Select#from

Defined in:
lib/select.rb

#fromObject

call-seq: select.from -> a_select

Returns a Select instance with ‘ from ’ appended to the SQL statement.

Select[1, :column1, 'book'].from.to_sql       #=> "select 1, column1, 'book' from "


37
38
39
40
# File 'lib/select.rb', line 37

def from
  @to_sql += " from "
  self
end