Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: crossplatform
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (18 sloc) 0.51 kB
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
Jump to Line
Something went wrong with that request. Please try again.