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