diff --git a/lib/database.js b/lib/database.js index 2cdfa89..96e5f7f 100644 --- a/lib/database.js +++ b/lib/database.js @@ -65,6 +65,8 @@ Database.prototype = commands; */ Database.prototype.selectDB = function(index){ + // TODO: these should be their own objects + // that we can easily swap out in SELECT this.data = this.dbs[index] = this.dbs[index] || {}; this.types = this._types[index] = this._types[index] || {}; };