Get all graph names
(&self)
| 91 | |
| 92 | /// Get all graph names |
| 93 | pub fn get_graph_names(&self) -> Result<Vec<String>, StorageError> { |
| 94 | let graphs = self |
| 95 | .graphs |
| 96 | .read() |
| 97 | .map_err(|e| StorageError::LockError(format!("Failed to acquire read lock: {}", e)))?; |
| 98 | |
| 99 | Ok(graphs.keys().cloned().collect()) |
| 100 | } |
| 101 | |
| 102 | /// Remove a graph by name |
| 103 | pub fn remove_graph(&self, name: &str) -> Result<(), StorageError> { |
no outgoing calls