Included Modules

Class Index [+]

Quicksearch

Sequel::Amalgalite::Dataset

Dataset class for SQLite datasets that use the amalgalite driver.

Constants

DatasetClass

Public Instance Methods

fetch_rows(sql) click to toggle source

Yield a hash for each row in the dataset.

     # File lib/sequel/adapters/amalgalite.rb, line 164
164:       def fetch_rows(sql)
165:         execute(sql) do |stmt|
166:           @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 adapter instance method.

     # File lib/sequel/adapters/amalgalite.rb, line 179
179:       def literal_string_append(sql, v)
180:         db.synchronize{|c| sql << c.quote(v)}
181:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.