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

Method has_vault

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

Source from the content-addressed store, hash-verified

915 }
916
917 fn has_vault(&self) -> PristineResult<bool> {
918 let table = match self.txn.open_table(VAULT_MANIFEST) {
919 Ok(table) => table,
920 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false),
921 Err(e) => return Err(PristineError::from(e)),
922 };
923
924 match table.get("manifest")? {
925 Some(_) => Ok(true),
926 None => Ok(false),
927 }
928 }
929}
930
931// 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