Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

OS file system beased simple KVDB

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 main.js
Octocat-spinner-32 package.json
README.md

build status

FileKVDB

  • �ļ���ΪK
  • �ļ�����ΪV

FileKVDB��

  • С��
  • ��������
  • ���ڲ���ϵͳ�ļ�ϵͳ
  • KV
  • ���ݿ�

FileKVDB����

  • ���͵�
  • ��ϵ�͵�
  • ��Ч��
    ���ݿ���������һ��Ŀ¼�������ļ���Ŀ���ơ�

javascript ���ýӿ�

����ʹ��

kv=require('filekvdb');
kv.root('/kvdb')
kv.DB('myDB')
kv.Table('USER')
kv.set(K,V);
V=kv.get(K);
keys=kv.list();
kv.del(K);

�½�DB�ͱ�

kv.newDB('yourDB')
kv.DB('yourDB')
kv.newTable('yourTable')

��ѯ

root = kv.root()
DB = kv.DB()
Tab = kv.Table()
kv.hasDB('DB',function(ret) { if(ret==true) do some has DB })
kv.hasTable('tabel', function(ret) { if(ret==true) do some has table }) kv.has(K, function(ret) { if(ret==true) do some if K exist }) kv.has(K) //if K exist return true
Tree = kv.Tree()

����\�ָ�\����

kv.backup({'DB':'myDB','Table':'myTable'})
kv.backup({'DB':'myDB'})
kv.restore({'DB':'myDB','Table':'myTable'})
kv.restore({'DB':'myDB'})
kv.clearDB('DB')
kv.clearTable('table')
kv.clearTable('table','DB')

C++ ���ýӿ�

����ʹ��

FileKVDB kv("kvdb");
kv.DB('myDB')
kv.Table('USER')
kv.set(K,V);
string V=kv.get(K);
vector<string> keys=kv.list();
kv.del(K);

�½�DB�ͱ�

kv.newDB("yourDB")
kv.DB("yourDB")
kv.newTable("yourTable")

��ѯ

DB = kv.DB()
Tab = kv.Table()
kv.hasDB("DB")
kv.hasTable("tabel")
kv.has(K)

����

kv.clearDB('DB')
kv.clearTable('table','DB')

C++ ����

mkdir work
make Test
mkdir kvdb
work/Test

Something went wrong with that request. Please try again.