skipdb

C based ordered key-value ACID DB using skiplist datastructure.

  • Owner: stevedekorte/skipdb
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

A Berkeley DB style database implemented with a skip list instead of a b-tree. It's small, portable and supports ACID transactions (with true durability).

The license is Revised BSD.

Example:

#include "SkipDB.h"

int main(void)
{
Datum key;
Datum value;
int count;

// open

SkipDB *db = SkipDB_new();
SkipDB_setPath_(db, "test.skipdb");
SkipDB_open(db);

// write

SkipDB_beginTransaction(db);
key = Datum_FromCString_("testKey");
value = Datum_FromCString_("testValue");
SkipDB_at_put_(db, key, value);
SkipDB_commitTransaction(db);

// read

value = SkipDB_at_(db, key);

// count

count = SkipDB_count(db);

// remove

SkipDB_beginTransaction(db);
SkipDB_removeAt_(db, key);
SkipDB_commitTransaction(db);

// there's also a cursor API
// not shown in this example code

// close

SkipDB_close(db);

return 0;

}

Main metrics

Overview
Name With Ownerstevedekorte/skipdb
Primary LanguageC
Program languageMakefile (Language Count: 4)
Platform
License:
所有者活动
Created At2009-01-02 06:22:50
Pushed At2015-01-27 22:37:15
Last Commit At2015-01-27 14:37:15
Release Count0
用户参与
Stargazers Count161
Watchers Count21
Fork Count34
Commits Count8
Has Issues Enabled
Issues Count1
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private