Class RR::ResultFetcher
In: lib/rubyrep/proxy_connection.rb
Parent: Object

Enables the fetching of (potential large) result sets in chunks.

Methods

clear   new   next?   next_row  

Attributes

connection  [RW]  The current database ProxyConnection
current_row_index  [RW]  Index to the current row in rows
last_row  [RW]  column_name => value hash of the last returned row
options  [RW]  hash of select options as described under ProxyConnection#select_cursor
rows  [RW]  The current row set: an array of column_name => value hashes

Public Class methods

Creates a new fetcher.

Public Instance methods

Frees up all ressources

Returns true if there are more rows to read.

Returns the row as a column => value hash and moves the cursor to the next row.

[Validate]