4

For a project i am looking for a simple database which is written in C (or C++) for a cross platform aplication. After looking into HamsterDB (which looked promissing) i had found out, that it is dependen on boost on windows. So the alternative should not relies on STL or other libraries as the Application will be run on different Eco Systems (like arduino,symbian,android,windows) and compiled on diferent IDEs.

It will store up ton 20mil keys(but usualy below 50k keys), IO will be low.

Therefor it should be as clean C (or C++) as possible.

Can somebody show me something which will fullfill this, ready made?

4

2 回答 2

2

LevelDB是您正在寻找的。它是用 C++ 编写的,但也可以使用 C 函数。

LevelDB is a fast key-value storage library written at Google that provides
an ordered mapping from string keys to string values.
于 2013-11-14T13:14:14.650 回答
0

看起来Berkeley DB对你来说是一个选择。不确定嵌入式部分(尤其是对于 arduino)。

您可以在斯坦福的课程中找到完整的教程。

于 2013-11-14T10:23:00.433 回答