MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / wipeSensitiveData

Method wipeSensitiveData

src/Common/SensitiveDataMasker.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225size_t SensitiveDataMasker::wipeSensitiveData(std::string & data) const
226{
227 size_t matches = 0;
228 for (const auto & rule : all_masking_rules)
229 matches += rule->applyNoThrow(data);
230
231 if (matches)
232 ProfileEvents::increment(ProfileEvents::QueryMaskingRulesMatch, matches);
233
234 return matches;
235}
236
237#ifndef NDEBUG
238void SensitiveDataMasker::printStats()

Callers 4

MessageMaskedMethod · 0.80
TESTFunction · 0.80
getCleanQueryAstFunction · 0.80

Calls 2

applyNoThrowMethod · 0.80
incrementFunction · 0.70

Tested by 1

TESTFunction · 0.64