class Sequel::Amalgalite::Dataset

Public Instance Methods

fetch_rows(sql) { |row| ... } click to toggle 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

literal_string_append(sql, v) click to toggle source

Quote the string using the connection instance method.

    # 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