How to use the leveldown.destroy function in leveldown

To help you get started, we’ve selected a few leveldown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitpay / bitcore-node / lib / services / address / index.js View on Github external
function(next) {
      // Flush any existing mempool index
      if (fs.existsSync(self.mempoolIndexPath)) {
        leveldown.destroy(self.mempoolIndexPath, next);
      } else {
        setImmediate(next);
      }
    },
    function(next) {
github maxogden / blockplot / tests / helpers.js View on Github external
server.doorknob.db.close(function() {
    leveldown.destroy(path.join(__dirname, 'test.db'), cb)
  })
}
github mappum / webcoin / test / transactionStore.js View on Github external
function deleteStore (store, cb) {
  if (leveldown) {
    return leveldown.destroy(store.store.location, cb)
  }
  cb(null)
}
github mappum / webcoin / test / blockchain.js View on Github external
function deleteStore (store, cb) {
  if (leveldown) {
    return leveldown.destroy(store.store.location, cb)
  }
  cb(null)
}
github pouchdb / pouchdb / packages / node_modules / pouchdb-adapter-leveldb / src / migrate.js View on Github external
done.forEach(function (item) {
            leveldown.destroy(item, function () {
              if (++todo === done.length) {
                fs.rmdir(base, callback);
              }
            });
          });
        }
github gardr / validator-web / lib / storage.js View on Github external
function destroyDatabase(callback) {
    db.close();
    require('leveldown').destroy(DB_NAME, callback);
    db = null;
    generalDb = null;
}
github numenta / numenta-apps / unicorn / app / main / DatabaseService.js View on Github external
destroy(callback) {
    leveldown.destroy(this.levelup.location, callback);
  }
github bitpay / insight-api / lib / TransactionDb.js View on Github external
db.close(function() {
    require('leveldown').destroy(path, function() {
      db = levelup(path, {
        maxOpenFiles: 500
      });
      return cb();
    });
  });
};
github stockulus / pouchdb-react-native / packages / pouchdb-adapter-leveldb-core-rn / lib / index.js View on Github external
done.forEach(function (item) {
            leveldown.destroy(item, function () {
              if (++todo === done.length) {
                fs.rmdir(base, callback);
              }
            });
          });
        }

leveldown

A low-level Node.js LevelDB binding

MIT
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis