lib/anonymizer/model/database/truncate.rb
# frozen_string_literal: true
# Basic class to communication with databese
class Database
# Class to anonymize static data
class Truncate
def self.query(table_name, _column_name, _info)
queries = ['SET FOREIGN_KEY_CHECKS = 0;',
"TRUNCATE #{table_name};",
'SET FOREIGN_KEY_CHECKS = 1;']
queries
end
end
end