Skip to content

build and maintain a tree from the sublevels in a leveldb instance

Notifications You must be signed in to change notification settings

heapwolf/level-subtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

Build and maintain a javascript tree from the sublevels in a leveldb instance. Faster than a full scan.

USAGE

To initialize level-subtree

var Tree = require('level-subtree')
var db = require('level')('./db')
var tree = Tree(db)

var handle = tree.init(function(err, tree) {
  // creates a tree from the existing keys.
})

To update the tree...

handle.update(key) // use when adding a new sublevel.

About

build and maintain a tree from the sublevels in a leveldb instance

Resources

Stars

Watchers

Forks

Packages

No packages published