Abstract class to read rows from a query result
Close the reader discarding any unread results.
# File lib/data_objects/reader.rb, line 18 def close raise NotImplementedError.new end
Yield each row to the given block as a Hash
# File lib/data_objects/reader.rb, line 33 def each begin while next! row = {} fields.each_with_index { |field, index| row[field] = values[index] } yield row end ensure close end self end
Return the number of fields in the result set.
# File lib/data_objects/reader.rb, line 28 def field_count raise NotImplementedError.new end
Return the array of field names
# File lib/data_objects/reader.rb, line 8 def fields raise NotImplementedError.new end
Generated with the Darkfish Rdoc Generator 2.