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

Method save_graph_binary

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

Source from the content-addressed store, hash-verified

88 }
89
90 fn save_graph_binary(&self, project_id: &str, graph: &PetCodeGraph) -> io::Result<()> {
91 let project_dir = self.project_dir(project_id);
92 let graph_file = project_dir.join("graph.bin");
93
94 PetGraphStorageManager::save_to_binary(graph, &graph_file)
95 .map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
96
97 Ok(())
98 }
99
100 pub fn load_graph(&self, project_id: &str) -> io::Result<Option<PetCodeGraph>> {
101 match self.storage_mode {

Callers 1

save_graphMethod · 0.80

Calls 1

project_dirMethod · 0.80

Tested by

no test coverage detected