class Sequel::Swift::Dataset

Constants

DatasetClass

Public Instance Methods

fetch_rows(sql) { |h| ... } click to toggle source

Set the columns and yield the hashes to the block.

# File lib/sequel/adapters/swift.rb, line 139
def fetch_rows(sql)
  execute(sql) do |res|
    @columns = res.fields
    res.each{|h| yield h}
  end
  self
end