Class: Sequel::OpenBase::Dataset

Class | Sequel::OpenBase::Dataset
In: | lib/sequel/adapters/openbase.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows

### Constants

SELECT_CLAUSE_METHODS | = | clause_methods(:select, %w'distinct columns from join where group having compounds order limit')

### Public Instance methods

fetch_rows(sql) {|row| ...}

[Source]

        # File lib/sequel/adapters/openbase.rb, line 42
    42:       def fetch_rows(sql)
    43:         execute(sql) do |result|
    44:           begin
    45:             @columns = result.column_infos.map{|c| output_identifier(c.name)}
    46:             result.each do |r|
    47:               row = {}
    48:               r.each_with_index {|v, i| row[@columns[i]] = v}
    49:               yield row
    50:             end
    51:           ensure
    52:             # result.close
    53:           end
    54:         end
    55:         self
    56:       end

[Validate]