goatdb
v1.0.1
Published
log structured merge tree in pure js, for goatscale
Downloads
4
Readme
GoatDb
a log-structured-merge-tree, implemented in pure node.js. GOATSCALE!!!
Another goatscale db locket
var GoatDB = require('goatdb')
GoatDB('/tmp/goatdb-example').open(function (err, db) {
db.put('hello', 'I am a goat', function (err) {
db.put('whatevs', 'GOAT GOAT GOAT', function (err) {
db.get('hello', function (err, value) {
console.log(value)
})
})
})
})
everything is just line separated json!
cat /tmp/goatdb-example/log-00000001.json
contains this.
{"key":"hello","value":"I am a goat","type":"put"}
{"key":"whatevs","value":"GOAT GOAT GOAT","type":"put"}
put more data in there and you'll get sst
files too.
features
- GOATS
- crude pass at the leveldown api.
- probably lots of bugs.
TODO
- add more goats
- be leveldown compatible
- contrive benchmarks that goatdb will do really well at.