(&self)
| 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 |