1 2 3 4 5 6 7 8
/// Formats the given input to a escaped postgres string. pub(crate) fn fmt(input: &str) -> String { if input.contains('\'') { format!("'{}'", input.replace('\'', "\\'")) } else { format!("'{input}'") } }