pub fn redact_sql_for_logging(sql: &str) -> StringExpand description
Renders SQL for statement arrival logging: parsed and displayed with its
literals redacted, which is the same redaction the statement log applies,
and capped by truncate_sql_for_logging.
When the text does not parse or exceeds the statement batch size limit, a
placeholder with the byte length is returned. Raw text is never returned,
so a statement that crashes the parser is not captured, an accepted
limitation.