(path: &Path)
| 117 | } |
| 118 | |
| 119 | fn upgrade_legacy_database(path: &Path) -> PristineResult<()> { |
| 120 | let mut legacy = redb_2_6::Database::open(path).map_err(legacy_upgrade_error)?; |
| 121 | legacy.upgrade().map_err(legacy_upgrade_error)?; |
| 122 | Ok(()) |
| 123 | } |
| 124 | |
| 125 | pub(crate) fn open_database( |
| 126 | path: &Path, |
no test coverage detected