Methods

Class/Module Index [+]

Quicksearch

Sequel::Oracle::Dataset

Public Instance Methods

fetch_rows(sql, &block) click to toggle source
# File lib/sequel/adapters/oracle.rb, line 103
def fetch_rows(sql, &block)
  execute(sql) do |cursor|
    begin
      @columns = cursor.get_col_names.map{|c| output_identifier(c)}
      while r = cursor.fetch
        row = {}
        r.each_with_index {|v, i| row[@columns[i]] = v unless @columns[i] == :raw_rnum_}
        yield row
      end
    ensure
      cursor.close
    end
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.