rocksdb
rocksdb.cr
RocksDB client for Crystal.
- crystal: 0.20.0
Installation
Add this to your application's shard.yml
:
dependencies:
rocksdb:
github: maiha/rocksdb.cr
Usage
require "rocksdb"
db = RocksDB::DB.new("tmp/db1")
db.put("foo", "1")
db.get("foo") # => "1"
db.delete("foo")
db.get("foo") # => ""
db.get?("foo") # => nil
db.get!("foo") # raise RocksDB::NotFound.new("foo")
db.close
Roadmap
0.2.0
- [x]
get
,put
- [x]
delete
Testing
- Manual test has passed in local with
librocksdb-dev
- Unfortunately, we can't run ci on TravisCI which doesn't support ubuntu-16.04.
Contributing
- Fork it ( https://github.com/maiha/rocksdb.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer