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