Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
kvstore.close(() => {
rocksdb.destroy(path, function(err){
console.log('db destroy result: '+(err || 'ok'));
db.close(() => {
shell('rm -r ' + app_data_dir);
t.end();
});
});
});
});
public constructor(file: string) {
logger('opening file', { file });
this._db = levelup(EncodingDown(RocksDB(file), { valueEncoding: 'json' }));
}