Check if a graph exists
(&self, name: &str)
| 80 | |
| 81 | /// Check if a graph exists |
| 82 | pub fn has_graph(&self, name: &str) -> bool { |
| 83 | match self.graphs.read() { |
| 84 | Ok(graphs) => graphs.contains_key(name), |
| 85 | Err(e) => { |
| 86 | warn!("Failed to check graph existence: {}", e); |
| 87 | false |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// Get all graph names |
| 93 | pub fn get_graph_names(&self) -> Result<Vec<String>, StorageError> { |
nothing calls this directly
no test coverage detected