class Sequel::Amalgalite::Dataset

  1. lib/sequel/adapters/amalgalite.rb
Superclass: Dataset

Methods

Public Instance

  1. fetch_rows

Public Instance methods

fetch_rows(sql)
[show source]
    # File lib/sequel/adapters/amalgalite.rb
149 def fetch_rows(sql)
150   execute(sql) do |stmt|
151     self.columns = cols = stmt.result_fields.map{|c| output_identifier(c)}
152     col_count = cols.size
153     stmt.each do |result|
154       row = {}
155       col_count.times{|i| row[cols[i]] = result[i]}
156       yield row
157     end
158   end
159 end