Class Sequel::Amalgalite::Dataset
In: lib/sequel/adapters/amalgalite.rb
Parent: Sequel::Dataset

Dataset class for SQLite datasets that use the amalgalite driver.

Methods

Included Modules

::Sequel::SQLite::DatasetMethods

Constants

DatasetClass = self

Public Instance methods

Yield a hash for each row in the dataset.

[Source]

     # File lib/sequel/adapters/amalgalite.rb, line 159
159:       def fetch_rows(sql)
160:         execute(sql) do |stmt|
161:           @columns = cols = stmt.result_fields.map{|c| output_identifier(c)}
162:           col_count = cols.size
163:           stmt.each do |result|
164:             row = {}
165:             col_count.times{|i| row[cols[i]] = result[i]}
166:             yield row
167:           end
168:         end
169:       end

[Validate]