rorm_sql/db_specific/
mysql.rs

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