class Sequel::Amalgalite::Dataset

Public Instance Methods

fetch_rows(sql) { |row| ... } click to toggle source
    # File lib/sequel/adapters/amalgalite.rb
190 def fetch_rows(sql)
191   execute(sql) do |stmt|
192     self.columns = cols = stmt.result_fields.map{|c| output_identifier(c)}
193     col_count = cols.size
194     stmt.each do |result|
195       row = {}
196       col_count.times{|i| row[cols[i]] = result[i]}
197       yield row
198     end
199   end
200 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
205 def literal_string_append(sql, v)
206   db.synchronize(@opts[:server]){|c| sql << c.quote(v)}
207 end