seex 0.1.0-beta.6

Unified Rust SDK facade for Seex.
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(crate) fn string_literal(value: &str) -> String {
    format!("'{}'", value.replace('\'', "''"))
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn string_literal_escapes_single_quotes() {
        assert_eq!(string_literal("canary's/data"), "'canary''s/data'");
    }
}