The easiest way to work with sublevels through multilevel.
MIT License
The easiest way to work with sublevels through multilevel.
db.sublevel('foo')
, multilevelmanifest.json
.The same method can be used to install level-key on
the server, the method will be written to the manifest.json
.
var multilevel = require('multilevel');
var net = require('net');
var key = require('level-key');
var db = multilevel.client();
var con = net.connect(3000);
con.pipe(db.createRpcStream()).pipe(con);
var k = key('reports', 'yearly', 'today');
var val = {};
client.put(k, val, function(err) {
/* ... */
});
client
.createReadStream({ gte: k, lte: k + '~' })
.on('data', function(d) {
/* ... */
});