How to use rocksdb - 2 common examples

To help you get started, we’ve selected a few rocksdb 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 byteball / ocore / test / _init_datafeeds.js View on Github external
kvstore.close(() => {
		rocksdb.destroy(path, function(err){
			console.log('db destroy result: '+(err || 'ok'));
			db.close(() => {
				shell('rm -r ' + app_data_dir);
				t.end();
			});
		});
	});
});
github LiskArchive / lisk-elements / packages / lisk-db / src / index.ts View on Github external
public constructor(file: string) {
		logger('opening file', { file });
		this._db = levelup(EncodingDown(RocksDB(file), { valueEncoding: 'json' }));
	}

rocksdb

A low-level Node.js RocksDB binding

MIT
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular rocksdb functions