A bundle format stored completely in memory, for versiondb

Usage no npm install needed!

<script type="module">
  import versiondbBundleMemory from '';


VersionDB Memory Bundle

Create an in-memory bundle for use in VersionDB.

Build Status


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