lib/populator/adapters/sqlite.rb
def populate(table, columns, rows, name = nil)
        queries = []
        rows.each do |row|
          queries << "INSERT INTO #{table} #{columns} VALUES #{row}"
        end
        execute_batch(queries.join(';'), name)
      end
# Executes multiple SQL statements in one query when joined with ";"
Executes multiple SQL statements in one query when joined with ";"
Executes multiple SQL statements in one query when joined with " ; "
def populate(table, columns, rows, name = nil)
        queries = []
        rows.each do |row|
          queries << "INSERT INTO #{table} #{columns} VALUES #{row}"
        end
        execute_batch(queries.join(';'), name)
      end
def populate ( table , columns , rows , name = nil ) queries = [ ] rows . each do | row | queries << "INSERT INTO #{table} #{columns} VALUES #{row}" end execute_batch ( queries . join ( ';' ) , name ) end
Executes multiple SQL statements in one query when joined with ";"
Executes multiple SQL statements in one query when joined with " ; "
table
columns
rows
name