Normalize graph path to be safe for use as storage key
(graph_path: &str)
| 72 | |
| 73 | /// Normalize graph path to be safe for use as storage key |
| 74 | fn normalize_graph_path(graph_path: &str) -> String { |
| 75 | graph_path |
| 76 | .replace("/", "_") |
| 77 | .replace("\\", "_") |
| 78 | .replace(":", "_") |
| 79 | .replace(".", "_") |
| 80 | .trim_start_matches('_') |
| 81 | .to_string() |
| 82 | } |
| 83 | |
| 84 | /// Load a GraphCache for a specific graph path using provided driver connection |
| 85 | pub fn load_graph_by_path( |
nothing calls this directly
no outgoing calls
no test coverage detected