Check if this repository has a vault initialized.
(&self)
| 16 | |
| 17 | /// Check if this repository has a vault initialized. |
| 18 | pub fn has_vault(&self) -> Result<bool, RepositoryError> { |
| 19 | let txn = self |
| 20 | .pristine |
| 21 | .read_txn() |
| 22 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 23 | use atomic_core::pristine::VaultTxnT; |
| 24 | txn.has_vault() |
| 25 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 26 | } |
| 27 | |
| 28 | /// Initialize the vault in this repository. |
| 29 | /// |
no test coverage detected