Sha256: 783bd67568ef81f23c22a2f64f9bddf1913e6f281019e3dacf34a644e3f085f1
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
module MassInsert module Adapters module Helpers module Sanitizer # Update the array with the columns names according to the options # and prepare the columns array with only valid columns. def sanitized_columns columns = table_columns columns.delete(primary_key) if primary_key_mode == :auto columns end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mass_insert-0.0.2 | lib/mass_insert/adapters/helpers/sanitizer.rb |
mass_insert-0.0.1 | lib/mass_insert/adapters/helpers/sanitizer.rb |