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

Method has_vault

atomic-core/src/pristine/txn/read.rs:872–883  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

870 }
871
872 fn has_vault(&self) -> PristineResult<bool> {
873 let table = match self.txn.open_table(VAULT_MANIFEST) {
874 Ok(table) => table,
875 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false),
876 Err(e) => return Err(PristineError::from(e)),
877 };
878
879 match table.get("manifest")? {
880 Some(_) => Ok(true),
881 None => Ok(false),
882 }
883 }
884}
885
886// KgTxnT Implementation

Callers 4

runMethod · 0.45
runMethod · 0.45
run_asyncMethod · 0.45
run_asyncMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected