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