Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/level-subtree
build and maintain a tree from the sublevels in a leveldb instance
https://github.com/heapwolf/level-subtree
Last synced: about 3 hours ago
JSON representation
build and maintain a tree from the sublevels in a leveldb instance
- Host: GitHub
- URL: https://github.com/heapwolf/level-subtree
- Owner: heapwolf
- Created: 2013-08-30T11:11:50.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-15T04:58:46.000Z (over 9 years ago)
- Last Synced: 2024-04-27T11:32:15.269Z (7 months ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 17
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - heapwolf/level-subtree - build and maintain a tree from the sublevels in a leveldb instance (others)
README
# SYNOPSIS
Build and maintain a javascript tree from the sublevels in a leveldb instance. Faster than a full scan.# USAGE
To initialize level-subtree
```js
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...
```js
handle.update(key) // use when adding a new sublevel.
```