This class encapsulates a Result returned from calling exec_query on any database connection adapter. For example:

x = ActiveRecord::Base.connection.exec_query('SELECT * FROM foo')
x # => #<ActiveRecord::Result:0xdeadbeef>
Methods
E
N
T
Included Modules
Attributes
[R] columns
[R] rows
Class Public methods
new(columns, rows)
# File activerecord/lib/active_record/result.rb, line 13
def initialize(columns, rows)
  @columns   = columns
  @rows      = rows
  @hash_rows = nil
end
Instance Public methods
each()
# File activerecord/lib/active_record/result.rb, line 19
def each
  hash_rows.each { |row| yield row }
end
to_hash()
# File activerecord/lib/active_record/result.rb, line 23
def to_hash
  hash_rows
end