https://github.com/macournoyer/nanodb
an ultra tiny db
https://github.com/macournoyer/nanodb
Last synced: about 1 year ago
JSON representation
an ultra tiny db
- Host: GitHub
- URL: https://github.com/macournoyer/nanodb
- Owner: macournoyer
- Created: 2009-11-30T07:18:38.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-11-30T07:19:08.000Z (over 16 years ago)
- Last Synced: 2025-03-29T01:52:03.479Z (about 1 year ago)
- Homepage:
- Size: 1.44 MB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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