Class RR::TypeCastingCursor
In: lib/rubyrep/type_casting_cursor.rb
Parent: Object

Provides functionality to cast a query result value into the correct ruby type. Requires originating table and column to be known.

Methods

clear   new   next?   next_row  

Attributes

columns  [RW]  A column_name => Column cache
org_cursor  [RW]  The original cursor object

Public Class methods

Creates a new TypeCastingCursor based on provided database connection and table name for the provided database query cursor

Public Instance methods

Delegate the uninteresting methods to the original cursor

Reads the next row from the original cursor and returns the row with the type casted row values.

[Validate]