class Sequel::Amalgalite::Dataset
Public Instance Methods
fetch_rows(sql) { |row| ... }
click to toggle 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
Private Instance Methods
literal_string_append(sql, v)
click to toggle source
Quote the string using the connection instance method.
# File lib/sequel/adapters/amalgalite.rb 164 def literal_string_append(sql, v) 165 db.synchronize(@opts[:server]){|c| sql << c.quote(v)} 166 end