class Sequel::DataObjects::Dataset

Dataset class for Sequel::DataObjects::Database objects.

def fetch_rows(sql)

with symbol keys.
Execute the SQL on the database and yield the rows as hashes
def fetch_rows(sql)
  execute(sql) do |reader|
    cols = @columns = reader.fields.map{|f| output_identifier(f)}
    while(reader.next!) do
      h = {}
      cols.zip(reader.values).each{|k, v| h[k] = v}
      yield h
    end
  end
  self
end