Skip to content

dominictarr/goatdb

 
 

Repository files navigation

GoatDb

a log-structured-merge-tree, implemented in pure node.js. GOATSCALE!!!

dedicated to @luk

img

BUT DOES IT SCALE?

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%