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