ObfuscateSQLString quantizes and obfuscates the given input SQL query string. Quantization removes some elements such as comments and aliases and obfuscation attempts to hide sensitive information in strings and numbers by redacting them.
(in string)
| 291 | // some elements such as comments and aliases and obfuscation attempts to hide sensitive information |
| 292 | // in strings and numbers by redacting them. |
| 293 | func (o *Obfuscator) ObfuscateSQLString(in string) (*ObfuscatedQuery, error) { |
| 294 | return o.ObfuscateSQLStringWithOptions(in, &o.opts.SQL) |
| 295 | } |
| 296 | |
| 297 | // ObfuscateSQLStringWithOptions accepts an optional SQLOptions to change the behavior of the obfuscator |
| 298 | // to quantize and obfuscate the given input SQL query string. Quantization removes some elements such as comments |