All Projects → macournoyer → nanodb

macournoyer / nanodb

Licence: other
an ultra tiny db

nanodb - an ultra tiny db

nanodb is a small database engine based on:

  • tokyo cabinet B+ tree, for storage;
  • libev, for networking and
  • ragel, for parsing.

It's mostly will be a key-value store for now, but I hope to make it look more like a real db someday.

Try it (not yet working...)

nanodb yourdb.ndb 5000

$ nc localhost 5000 << EOF
PUT mykey
this is the value stored in the key.
EOF

$ echo 'GET mykey' | nc localhost 5000
this is the value stored in the key.

Building

For now, you'll need to build tokyo cabinet in vendor and install ragel. I'll automate this someday, but for now... good luck!

(c) macournoyer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].