Methods

Class Index [+]

Quicksearch

Sequel::DataObjects::Dataset

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

Constants

DatasetClass

Public Instance Methods

fetch_rows(sql) click to toggle source

Execute the SQL on the database and yield the rows as hashes with symbol keys.

     # File lib/sequel/adapters/do.rb, line 157
157:       def fetch_rows(sql)
158:         execute(sql) do |reader|
159:           cols = @columns = reader.fields.map{|f| output_identifier(f)}
160:           while(reader.next!) do
161:             h = {}
162:             cols.zip(reader.values).each{|k, v| h[k] = v}
163:             yield h
164:           end
165:         end
166:         self
167:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.