• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

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

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

leveldbd

开源软件地址:

https://gitee.com/yedf/leveldbd

开源软件介绍:

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 formatkv-format:'\n\n\n\n0\n\n\n-1\n\n...'value len:-1 indicate key not exist0 value lenght is 0

key-format: '\n...'


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap