/fishdb

A key-value storage based on b-tree model.

Primary LanguageC++

FishDB is a key-value storage based on b-tree model.

Install

make all

API

Instance operations:

BTree *bt = BTre::Open(dbfile);
...
bt->Close();
delete bt;

Key-value operations:

bt->Put('key', 'value');

Iterating over key space:

auto iter = bt->NewIterator();
for (iter->SeekToFirst(); iter->Valid(); iter->Next())
{
	std::cout << iter->Key() << ": " << iter->Value() << std::endl;
}
delete iter;