List all views in the repository. # Returns A vector of view names.
(&self)
| 356 | /// |
| 357 | /// A vector of view names. |
| 358 | pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> { |
| 359 | let txn = self |
| 360 | .pristine |
| 361 | .read_txn() |
| 362 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 363 | |
| 364 | txn.list_views() |
| 365 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 366 | } |
| 367 | |
| 368 | /// Return the names of all views whose change-set references `hash`. |
| 369 | pub fn views_containing_change(&self, hash: &Hash) -> Result<Vec<String>, RepositoryError> { |