class Sequel::Amalgalite::Dataset

Public Instance Methods

fetch_rows(sql) { |row| ... } click to toggle source
    # File lib/sequel/adapters/amalgalite.rb
151 def fetch_rows(sql)
152   execute(sql) do |stmt|
153     self.columns = cols = stmt.result_fields.map{|c| output_identifier(c)}
154     col_count = cols.size
155     stmt.each do |result|
156       row = {}
157       col_count.times{|i| row[cols[i]] = result[i]}
158       yield row
159     end
160   end
161 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
166 def literal_string_append(sql, v)
167   db.synchronize(@opts[:server]){|c| sql << c.quote(v)}
168 end