Methods

Class/Module Index [+]

Quicksearch

Sequel::DBI::Dataset

Public Instance Methods

fetch_rows(sql, &block) click to toggle source
# File lib/sequel/adapters/dbi.rb, line 91
def fetch_rows(sql, &block)
  execute(sql) do |s|
    begin
      @columns = s.column_names.map{|c| output_identifier(c)}
      s.fetch{|r| yield hash_row(s, r)}
    ensure
      s.finish rescue nil
    end
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.