In-memory bundle for VersionDB
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Gruntfile.js
LICENSE.md
README.md
index.js
package.json

README.md

VersionDB Memory Bundle

Create an in-memory bundle for use in VersionDB.

Build Status

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;"
});