def each(&block)
      if @iterate == :each_row
        @batched ? each_row_batch(&block) : each_row(&block)
      elsif @iterate == :each_array
        @batched ? each_array_batch(&block) : each_array(&block)
      else
        @batched ? each_instance_batch(@type, &block) : 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