public void Repair() { Native.leveldb_close(Database); Database = IntPtr.Zero; var options = Native.leveldb_options_create(); Native.leveldb_repair_db(options, DatabasePath); Native.leveldb_options_destroy(options); }
public static void Repair(Options options, string path) { if (path == null) { throw new ArgumentNullException("path"); } if (options == null) { options = new Options(); } Native.leveldb_repair_db(options.Handle, path); }