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 161
161:       def fetch_rows(sql)
162:         execute(sql) do |stmt|
163:           self.columns = cols = stmt.result_fields.map{|c| output_identifier(c)}
164:           col_count = cols.size
165:           stmt.each do |result|
166:             row = {}
167:             col_count.times{|i| row[cols[i]] = result[i]}
168:             yield row
169:           end
170:         end
171:       end

[Validate]