Wraps a leveldown-compatible module as such as no changes are made on the original
database instance. Instead it writes all
put/del to memory. When performing
it first checks the memory and only fetched from the original source if it's not
in memory. This means when using
virtualdown it looks like the original database
is changed, but in reality nothing is.
npm install virtualdown
You can get your leveldown drop-in by wrapping it around another leveldown module:
var myVirtualDown = somethingDOWN
It is a generalisation of the virtual-leveldown module.
var virtualDown =var leveldown =var virtualLevelDown =var db = // filled with catsdb