RecoverFile recovers and opens a DB with missing or corrupted manifest files for the given path. It will ignore any manifest files, valid or not. The DB must already exist or it will returns an error. Also, Recover will ignore ErrorIfMissing and ErrorIfExist options.

RecoverFile uses standard file-system backed storage implementation as desribed in the leveldb/storage package.

The returned DB instance is goroutine-safe. The DB must be closed after use, by calling Close method.

RecoverFile is referenced in 1 repository