versiondb-bundle-memory

A bundle format stored completely in memory, for versiondb

npm install versiondb-bundle-memory
8 downloads in the last month

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