(&self)
| 759 | } |
| 760 | |
| 761 | fn has_vault(&self) -> PristineResult<bool> { |
| 762 | let table = match self.txn.open_table(VAULT_MANIFEST) { |
| 763 | Ok(table) => table, |
| 764 | Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false), |
| 765 | Err(e) => return Err(PristineError::from(e)), |
| 766 | }; |
| 767 | |
| 768 | match table.get("manifest")? { |
| 769 | Some(_) => Ok(true), |
| 770 | None => Ok(false), |
| 771 | } |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | // KgTxnT Implementation |