List all views in the repository. # Returns A vector of view names.
(&self)
| 435 | /// |
| 436 | /// A vector of view names. |
| 437 | pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> { |
| 438 | let txn = self |
| 439 | .pristine |
| 440 | .read_txn() |
| 441 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 442 | |
| 443 | txn.list_views() |
| 444 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 445 | } |
| 446 | |
| 447 | /// Return the names of all views whose change-set references `hash`. |
| 448 | pub fn views_containing_change(&self, hash: &Hash) -> Result<Vec<String>, RepositoryError> { |