codebase-graph 1.1.5

Native codebaseGraph CLI and MCP server for local code knowledge graphs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(super) fn quote_identifier(value: &str) -> String {
    format!("`{}`", value.replace('`', "``"))
}

fn cypher_string(value: &str) -> String {
    value.replace('\\', "\\\\").replace('\'', "\\'")
}

pub(super) fn cypher_string_list(values: &[String]) -> String {
    values
        .iter()
        .map(|value| format!("'{}'", cypher_string(value)))
        .collect::<Vec<_>>()
        .join(", ")
}