added memory data store

This commit is contained in:
Kevin Jahns
2015-06-28 01:42:17 +02:00
parent 7ec409e09f
commit 75793d0ced
3 changed files with 55 additions and 1 deletions

View File

@@ -8,4 +8,13 @@ class Y { //eslint-disable-line no-unused-vars
transact (generator) {
this.db.requestTransaction(generator);
}
destroy () {
this.connector.disconnect();
this.db.removeDatabase();
this.connector = null;
this.db = null;
this.transact = function(){
throw new Error("Remember?, you destroyed this type ;)");
};
}
}