rocksdb

RocksDB client
0.2.0 released
maiha/rocksdb.cr
37 7 3
maiha

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

  1. Fork it ( https://github.com/maiha/rocksdb.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • maiha maiha - creator, maintainer
rocksdb:
  github: maiha/rocksdb.cr
  version: ~> 0.2.0
License MIT
Crystal 0.20.0

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently