Included modules
Public Instance methods
fetch_rows(sql)
[show source]
# File lib/sequel/adapters/amalgalite.rb 164 def fetch_rows(sql) 165 execute(sql) do |stmt| 166 self.columns = cols = stmt.result_fields.map{|c| output_identifier(c)} 167 col_count = cols.size 168 stmt.each do |result| 169 row = {} 170 col_count.times{|i| row[cols[i]] = result[i]} 171 yield row 172 end 173 end 174 end