Method: Masking::DataMaskProcessor#process

Defined in:
lib/masking/data_mask_processor.rb

#processObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/masking/data_mask_processor.rb', line 21

def process
  return raw_line unless target_table?

  column_indexes_mask_methods.each do |column_index, mask_method|
    next if column_index.nil?

    insert_statement.mask_value(
      column_index: column_index,
      mask_method: mask_method
    )
  end

  insert_statement.sql
end