Class: Sequel::ADO::Dataset

Class | Sequel::ADO::Dataset
In: | lib/sequel_core/adapters/ado.rb
Parent: | Sequel::Dataset

### Methods

fetch_rows

### Public Instance methods

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

[Source]

        # File lib/sequel_core/adapters/ado.rb, line 57
    57:       def fetch_rows(sql)
    58:         execute(sql) do |s|
    59:           @columns = s.Fields.extend(Enumerable).map do |column|
    60:             name = column.Name.empty? ? '(no column name)' : column.Name
    61:             output_identifier(name)
    62:           end
    63:
    64:           unless s.eof
    65:             s.moveFirst
    66:             s.getRows.transpose.each {|r| yield hash_row(r)}
    67:           end
    68:         end
    69:         self
    70:       end

[Validate]