Skip to content

simple leveldb manage implementation of the goleveldb

Notifications You must be signed in to change notification settings

standsun/mleveldb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

mleveldb

mleveldb wrap the syndtr/goleveldb which is a implementation of the LevelDB key/value database to simple the leveldb operate.

Install

go get github.com/standsun/mleveldb

Requirements

Need at least go1.5 or newer.

Usage

// init the leveldb
mleveldb.Init("./data")

db := mleveldb.New()

// set operate
db.Set("key_1", "value1")
db.Set("key_2", "value2")
...
db.Set("key_9", "value9")

// get operate
v, err := db.Get("key_1")
...


// find operate
r, err := db.Find("key_")
...

// range operate
r, err := db.Range("key_1", "key_5")
...

About

simple leveldb manage implementation of the goleveldb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages