pub fn format_miette_error(report: &Report, query: Option<&str>) -> String
Format a miette Report for display, extracting database errors if present