Skip to main content

obfuscate_sql_string_normalized

Function obfuscate_sql_string_normalized 

Source
pub fn obfuscate_sql_string_normalized(s: &str) -> String
Expand description

SQL obfuscation with Go-compatible whitespace normalization for use in JSON plan obfuscation. Applies obfuscate_sql_string then:

  • Strips MySQL backtick identifiers (id) and adds spaces around adjacent . separators
  • Adds a space after ( and before )
  • Adds spaces around :: (PostgreSQL cast operator)