skipdb

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

  • 所有者: stevedekorte/skipdb
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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;

}

主要指標

概覽
名稱與所有者stevedekorte/skipdb
主編程語言C
編程語言Makefile (語言數: 4)
平台
許可證
所有者活动
創建於2009-01-02 06:22:50
推送於2015-01-27 22:37:15
最后一次提交2015-01-27 14:37:15
發布數0
用户参与
星數161
關注者數21
派生數34
提交數8
已啟用問題?
問題數1
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?