Object subclass: #'GAResultSet' instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Garage-Driver'
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.
at:
Accesses the nth row of the result set
at: anIndex self subclassResponsibility
collect:
A collect on the rows of the result set.
collect: aBlockClosure ^self subclassResponsibility
do:
A do on the rows of the result set.
do: aBlockClosure ^self subclassResponsibility
first
returns the first row of the result set
first^self subclassResponsibility
isEmpty
Returns if the result set has no rows
isEmptyself subclassResponsibility
readStream
Returns a read stream for the current result set
readStreamself subclassResponsibility
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 ^self subclassResponsibility