PrefixDOWN
LevelDB sections using key prefix as a LevelUP backend.
npm install prefixdown
By exposing a LevelDOWN compatible module, PrefixDOWN does not modify, nor set a wrapper on top of current LevelUP instance. So that it can be used on any existing LevelUP based libraries. Inspired from Subleveldown.
PrefixDOWN factory for the root LevelUP instance.
levelup(prefix, { db: prefixdown, levelup: db })
levelup(prefix, { db: prefixdown(db) })
PrefixDOWN on top of LevelUP, where location
argument defines the prefix
.
var levelup = var prefixdown = var db = //root levelup instance //location as prefixvar dbA = var dbB = dbA
options.prefix
PrefixDOWN supports options.prefix
property. A batch operation can be applied into multiple sections under the same database.
var dbA = var dbB = dbA
License
MIT