0.3.0 • Published 11 years ago

skv v0.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
11 years ago

level-skv

Build Status

Simple key-value Datastore Server (skv)

skv exposes the levelUp interface via upnode or dnode.

skv is a key-value store that has four commands:

  • get
  • put
  • del
  • change
  • query

It uses the upnode/dnode protocol as a client.

server example

npm install skv -g
skv 4321 --dbname=foo --secret=bar --debug=true

client example

require('upnode').connect('skv.example.com', 4321, function (remote) {
  remote.auth('bar', ready);
});

function ready(err, db) {
  db.put('mydoc', {sync: true}, {content: 'hello world'});
  db.get('mydoc', function (err, doc) {
    console.log(doc);
  });
  // emit all kv's
  db.query(function(data) {
    console.log(data);
  }, function() {
    console.log('end');
  });
}

Try the REPL

cd repl
./skv-client --port=4321 --secret=foo

Status

Still in development mode

Test

npm test
0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago