(&self)
| 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 |
no test coverage detected