List all views in the repository. # Returns A vector of view names.
(&self)
| 411 | /// |
| 412 | /// A vector of view names. |
| 413 | pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> { |
| 414 | let txn = self |
| 415 | .pristine |
| 416 | .read_txn() |
| 417 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 418 | |
| 419 | txn.list_views() |
| 420 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 421 | } |
| 422 | |
| 423 | /// Return the names of all views whose change-set references `hash`. |
| 424 | pub fn views_containing_change(&self, hash: &Hash) -> Result<Vec<String>, RepositoryError> { |