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

Method has_vault

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

Source from the content-addressed store, hash-verified

759 }
760
761 fn has_vault(&self) -> PristineResult<bool> {
762 let table = match self.txn.open_table(VAULT_MANIFEST) {
763 Ok(table) => table,
764 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false),
765 Err(e) => return Err(PristineError::from(e)),
766 };
767
768 match table.get("manifest")? {
769 Some(_) => Ok(true),
770 None => Ok(false),
771 }
772 }
773}
774
775// 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