MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_vault

Method has_vault

atomic-repository/src/repository/vault.rs:18–26  ·  view source on GitHub ↗

Check if this repository has a vault initialized.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 3

vault_goal_startMethod · 0.45
vault_intent_createMethod · 0.45
recordMethod · 0.45

Calls 1

read_txnMethod · 0.80

Tested by

no test coverage detected