Skip to content

Instantly share code, notes, and snippets.

@tishibas
Created January 12, 2015 09:00
Show Gist options
  • Save tishibas/33588d55d44f945b908d to your computer and use it in GitHub Desktop.
Save tishibas/33588d55d44f945b908d to your computer and use it in GitHub Desktop.
Getting All keys in leveldb.
import leveldb
db = leveldb.LevelDB('./db')
db.Put('hello', 'value')
db.Put('world', 'value')
for k in db.RangeIter(include_value = False):
print 'K', k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment