versiondb-bundle-memory
v1.0.1
Published
A bundle format stored completely in memory, for versiondb
Downloads
4
Readme
VersionDB Memory Bundle
Create an in-memory bundle for use in VersionDB.
Usage
Create a new memory bundle
var memorybundle = require('versiondb-bundle-memory');
var bundle = memorybundle();
Add a product and version to the bundle
bundle.addUpdateQuery("example", "1.0.0", "CREATE SCHEMA example;");
Get products
bundle.getProducts(); // => ["example"]
Get versions
bundle.getVersions("example"); // => ["1.0.0"]
Get update query
bundle.getUpdateQuery("example", "1.0.0", function(err, query) {
// query === "CREATE SCHEMA example;"
});