Skip to content

Commit

Permalink
💎 Travis CI image/link in readme 💎
Browse files Browse the repository at this point in the history
  • Loading branch information
travis4all committed Aug 23, 2012
1 parent c4a4bb8 commit 84ffa40
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions README.md
@@ -1,22 +1,23 @@
[![build status](https://secure.travis-ci.org/a4a881d4/fileKVDB.png)](http://travis-ci.org/a4a881d4/fileKVDB)
# ***FileKVDB***
* 文件名为K
* 文件内容为V
* �ļ���ΪK
* �ļ�����ΪV

**FileKVDB是**
* 小型
* 超轻量级
* 基于操作系统文件系统
**FileKVDB��**
* ��
* ��������
* ���ڲ���ϵͳ�ļ�ϵͳ
* KV
* 数据库
* ���ݿ�

**FileKVDB不是**
* 大型的
* 关系型的
* 高效的
数据库的项数受一个目录下最大文件数目限制。
**FileKVDB����**
* ���͵�
* ��ϵ�͵�
* ����
���ݿ���������һ��Ŀ¼�������ļ���Ŀ���ơ�

## javascript 调用接口
### 基本使用
## javascript ���ýӿ�
### ����ʹ��
`kv=require('filekvdb');`
`kv.root('/kvdb')`
`kv.DB('myDB')`
Expand All @@ -25,11 +26,11 @@
`V=kv.get(K);`
`keys=kv.list();`
`kv.del(K);`
### 新建DB和表
### �½�DB�ͱ�
`kv.newDB('yourDB')`
`kv.DB('yourDB')`
`kv.newTable('yourTable')`
### 查询
### ��ѯ
`root = kv.root()`
`DB = kv.DB()`
`Tab = kv.Table()`
Expand All @@ -38,7 +39,7 @@
`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'})`
Expand All @@ -47,30 +48,30 @@
`kv.clearTable('table')`
`kv.clearTable('table','DB')`

## C++ 调用接口
### 基本使用
## 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和表
### �½�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++ 测试
## C++ ����
`mkdir work`
`make Test`
`mkdir kvdb`
Expand Down

0 comments on commit 84ffa40

Please sign in to comment.