Yield a hash for each row in the dataset.
# File lib/sequel/adapters/sqlite.rb, line 187 def fetch_rows(sql) execute(sql) do |result| i = -1 cols = result.columns.map{|c| [output_identifier(c), i+=1]} @columns = cols.map{|c| c.first} result.each do |values| row = {} cols.each{|n,i| row[n] = values[i]} yield row end end end
Prepare the given type of query with the given name and store it in the database. Note that a new native prepared statement is created on each call to this prepared statement.
# File lib/sequel/adapters/sqlite.rb, line 203 def prepare(type, name=nil, *values) ps = to_prepared_statement(type, values) ps.extend(PreparedStatementMethods) db.prepared_statements[name] = ps if name ps.prepared_sql ps end
Generated with the Darkfish Rdoc Generator 2.