BulkInsert
Inherits Reference < Object
Constants
DEFAULT_MAX_ARGS = 999
VERSION = "0.1.0"
Constructors
new(nr_columns, sql_prefix, sql_suffix = "", max_args = DEFAULT_MAX_ARGS)
Example:
BulkInsert.new(2, "INSERT INTO table (col1, col2) VALUES")
Instance methods
exec(db, row)
Sourceexec_many(db, rows, &)
Example:
[["foo", 4], ["bar", 5]] bulk.exec_many(db, rows) do |nr_rows, result| update_progress(nr_rows) end
exec_many(db, rows)
Source