def each(&block)
      if @iterate == :each_row
        @batched ? self.each_row_batch(&block) : self.each_row(&block)
      elsif @iterate == :each_array
        @batched ? self.each_array_batch(&block) : self.each_array(&block)
      else
        @batched ? self.each_instance_batch(@type, &block) : self.each_instance(@type, &block)
      end
    end
def each(&block)
      if @iterate == :each_row
        @batched ? self.each_row_batch(&block) : self.each_row(&block)
      elsif @iterate == :each_array
        @batched ? self.each_array_batch(&block) : self.each_array(&block)
      else
        @batched ? self.each_instance_batch(@type, &block) : self.each_instance(@type, &block)
      end
    end
Public: Yields each row of the result set to the passed block

 Yields the row to the block. The row is a hash with symbolized keys.
   {colname: value, ....}

 Returns the count of rows processed