pub fn sql_escape_formatter(
out: &mut Output<'_>,
state: &State<'_, '_>,
value: &Value,
) -> Result<(), Error>Expand description
Custom formatter that escapes values for safe PostgreSQL interpolation.
This formatter is invoked when auto-escape is enabled (for .sql templates).
It delegates to format_value_for_postgres for type-specific handling.
ยงBypass Mechanisms
- Values marked as safe (via
|safefilter) are output without escaping - Only applies when
state.auto_escape()matches our custom format