Skip to main content

mask_sqlx

Function mask_sqlx 

Source
pub fn mask_sqlx(sql: &str) -> Result<MaskedSqlx>
Expand description

Replace every ${...} outside --//* */ comments with a SQL-safe sentinel and record how to restore it. An interpolation that opens or continues a condition (${when(incremental(), "WHERE x > 1")}) is masked with the clause keyword beside it so the masked text still parses.