/// <summary> /// Destroy the contents of the specified database. /// Be very careful using this method. /// </summary> public static void Destroy(Options options, string name) { IntPtr error; LevelDBInterop.leveldb_destroy_db(options.Handle, name, out error); Throw(error); }
/// <summary> /// Destroy the contents of the specified database. /// Be very careful using this method. /// Options should not be modified after calling this method. /// </summary> public static void Destroy(string name, Options options) { IntPtr error; LevelDBInterop.leveldb_destroy_db(options.Handle, name, out error); LevelDBException.Check(error); GC.KeepAlive(options); }