rorm-sql 0.10.2

The sql abstraction layer.
Documentation
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}'")
    }
}