MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / save_graph_json

Method save_graph_json

rust-core/src/storage/persistence.rs:80–88  ·  view source on GitHub ↗
(&self, project_id: &str, graph: &PetCodeGraph)

Source from the content-addressed store, hash-verified

78 }
79
80 fn save_graph_json(&self, project_id: &str, graph: &PetCodeGraph) -> io::Result<()> {
81 let project_dir = self.project_dir(project_id);
82 let graph_file = project_dir.join("graph.json");
83
84 PetGraphStorageManager::save_to_file(graph, &graph_file)
85 .map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
86
87 Ok(())
88 }
89
90 fn save_graph_binary(&self, project_id: &str, graph: &PetCodeGraph) -> io::Result<()> {
91 let project_dir = self.project_dir(project_id);

Callers 1

save_graphMethod · 0.80

Calls 1

project_dirMethod · 0.80

Tested by

no test coverage detected