cqrsnode.dbstore
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,3 +10,3 @@ var Tiny = require('tiny'); | ||
for(var n in cfg.names){ | ||
Tiny(cfg.names[n],function(err,db){ | ||
Tiny('dbs/'+cfg.names[n],function(err,db){ | ||
dbs[db.name] = db; | ||
@@ -17,12 +17,11 @@ }); | ||
this.remove = function(AggreName,id,callback){ | ||
dbs[AggreName].remove(id,callback) | ||
dbs['dbs/'+AggreName].remove(id,callback) | ||
} | ||
this.save = function(AggreName,data,callback){ | ||
console.log(dbs) | ||
dbs[AggreName].set(data.id,data,callback) | ||
dbs['dbs/'+AggreName].set(data.id,data,callback) | ||
} | ||
this.update = function(AggreName,id,data,callback){ | ||
dbs[AggreName].update(id,data,callback); | ||
dbs['dbs/'+AggreName].update(id,data,callback); | ||
} | ||
@@ -32,3 +31,3 @@ | ||
var name = [].shift.apply(arguments); | ||
var db = dbs[name]; | ||
var db = dbs["dbs/"+name]; | ||
return db.find.apply(db,arguments); | ||
@@ -35,0 +34,0 @@ } |
{ | ||
"name": "cqrsnode.dbstore", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "db store for cqrsnode", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3097
80