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

Method has_vault

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

Source from the content-addressed store, hash-verified

1363 }
1364
1365 fn has_vault(&self) -> PristineResult<bool> {
1366 let table = match self.txn.open_table(VAULT_MANIFEST) {
1367 Ok(table) => table,
1368 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false),
1369 Err(e) => return Err(PristineError::from(e)),
1370 };
1371
1372 match table.get("manifest")? {
1373 Some(_) => Ok(true),
1374 None => Ok(false),
1375 }
1376 }
1377}
1378
1379// KgTxnT Implementation

Callers 4

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

Calls 1

getMethod · 0.65

Tested by

no test coverage detected