versiondb-bundle-memory

A bundle format stored completely in memory, for versiondb

VersionDB Memory Bundle

Create an in-memory bundle for use in VersionDB.

var memorybundle = require('versiondb-bundle-memory');
var bundle = memorybundle();
bundle.addUpdateQuery("example", "1.0.0", "CREATE SCHEMA example;");
bundle.getProducts(); // => ["example"]
bundle.getVersions("example"); // => ["1.0.0"]
bundle.getUpdateQuery("example", "1.0.0", function(err, query) {
    // query === "CREATE SCHEMA example;"
});