List all views in the repository. # Returns A vector of view names.
(&self)
| 339 | /// |
| 340 | /// A vector of view names. |
| 341 | pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> { |
| 342 | let txn = self |
| 343 | .pristine |
| 344 | .read_txn() |
| 345 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 346 | |
| 347 | txn.list_views() |
| 348 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 349 | } |
| 350 | |
| 351 | /// Check if a view exists. |
| 352 | /// |