Comparing version 1.0.7 to 1.0.8
12
mongo.js
@@ -93,2 +93,14 @@ const MongoDB = require('mongodb'); | ||
function PipeLines(client, cmd) { | ||
var builder = cmd.builder; | ||
var opt = builder.options; | ||
var filter = WHERE(builder, true); | ||
var col = client.db(client.$database).collection(opt.table).aggregate([ filter, cmd.value ]).toArray(function(err, response) { | ||
err && client.$opt.onerror && client.$opt.onerror(err, opt, builder); | ||
client.close(); | ||
builder.$callback(err, response); | ||
}); | ||
}; | ||
function list(client, cmd) { | ||
@@ -95,0 +107,0 @@ |
{ | ||
"name": "icorm", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Database Management System", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,2 +12,6 @@ !global.F && require('total.js'); | ||
break; | ||
case 'listCollections': | ||
WHERE(db(cmd.builder.options.table).listCollections(), cmd.builder); | ||
case 'PipeLines': | ||
WHERE(db(cmd.builder.options.table).PipeLines(), cmd.builder); | ||
case 'list': | ||
@@ -14,0 +18,0 @@ WHERE(db(cmd.builder.options.table).listing(), cmd.builder); |
Sorry, the diff of this file is too big to display
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
215583
6846