summaryrefslogtreecommitdiff
path: root/bin/migrateDirtyDBtoMySQL.js
blob: f2bc8efe2a25ecbc59b0bcb87b62dadff5a594b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
var dirty = require("../src/node_modules/ueberDB/node_modules/dirty")('var/dirty.db');
var db = require("../src/node/db/DB");

db.init(function() {
  db = db.db;
  dirty.on("load", function() {
    dirty.forEach(function(key, value) {
      db.set(key, value);
    });
  });
});