GAResultSet

Object subclass: #'GAResultSet' 

Overview

I am a garage result set representing a result from a database query. I provide a collection-like interface with methods such as #at:, #collect:, #do:, #select.

Instance Method Details

at:

Accesses the nth row of the result set

at: anIndex 

collect:

A collect on the rows of the result set.

collect: aBlockClosure 

do:

A do on the rows of the result set.

do: aBlockClosure 

first

returns the first row of the result set

isEmpty

Returns if the result set has no rows

readStream

Returns a read stream for the current result set

readStream

rowAt:

Returns the nth row of the result set. Equivalent to #at:

rowAt: anIndex 
^self at: anIndex

select:

A select on the rows of the result set.

select: aBlockClosure