Skip to content

jun930/leveldb-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LevelDB Ruby bindings.

Do this:

  gem install leveldb-ruby


And then run this:

  require 'rubygems' # on ruby < 1.9
  require 'leveldb'

  db = LevelDB::DB.new "/tmp/asdf"
  db.put "it", "works"
  db.get "it"

Only a very few operations are supported right now:

  DB.new    # creates or loads as necessary
  DB.create # dies if it already exists
  DB.load   # dies unless it alread exists

  DB#get    # alias: DB#[]
  DB#put    # alias: DB#[]=
  DB#delete

  DB#each
  ... and all the enumerable methods

About

Ruby bindings for LevelDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published