Class: Sequel::DBI::Dataset

Class | Sequel::DBI::Dataset
In: | lib/sequel/adapters/dbi.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows

### Public Instance methods

fetch_rows(sql) {|hash_row(s, r)}| ...}

[Source]

        # File lib/sequel/adapters/dbi.rb, line 88
    88:       def fetch_rows(sql, &block)
    89:         execute(sql) do |s|
    90:           begin
    91:             @columns = s.column_names.map{|c| output_identifier(c)}
    92:             s.fetch{|r| yield hash_row(s, r)}
    93:           ensure
    94:             s.finish rescue nil
    95:           end
    96:         end
    97:         self
    98:       end

[Validate]