6 Star 7 Fork 4

yedf / leveldbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

leveldbd是一个nosql数据库,底层使用leveldb作为存储引擎,提供REST接口。

提供的特性包括

  • 主从同步
  • 主主同步
  • snappy压缩
  • 范围查询
  • 批量读写
  • 易于管理
  • 内置状态查看与管理

使用了C++11,需要g++4.8 在ubuntu14上测试

##编译运行

git clone https://github.com/yedf/leveldbd.git

cd leveldbd

sh bootstrap.sh

make

./leveldbd

##主从复制

https://github.com/yedf/leveldbd/blob/master/master-slave.md

##leveldbd REST接口

###Get

curl localhost/d/key1

###Set

curl -d"value1" localhost/d/key1

###Delete

curl -X"DELETE" localhost/d/key1

###Navigate 网页方式进行浏览与管理

localhost/nav-next/begin-key

###Batch-Get

localhost/batch-get/

request body data format is key-format. (format detail can be found in the end)

response data format is kv-format

###Batch-Set

curl -X"POST" localhost/batch-set/

request body data format is kv-format.

###Batch-Delete

curl -X"DELETE" localhost/batch-delete/

request body data format is key-format

###Range-Get

localhost/range-get/begin-key?end=end-key&inc=1

query 'end' is optional which specify the end key (excluded in response), default get untill end

query 'inc' is optional which specify whether the begin key should be included in response. default 0

response data format is kv-format.

###body format kv-format:'\n\n\n\n0\n\n\n-1\n\n...' value len: -1 indicate key not exist 0 value lenght is 0

key-format: '\n...'

空文件

简介

leveldbd是一个nosql数据库,底层使用leveldb作为存储引擎,提供REST接口 展开 收起
C++
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/yedf/leveldbd.git
git@gitee.com:yedf/leveldbd.git
yedf
leveldbd
leveldbd
master

搜索帮助