From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/mongodb/lib/operations/stats.js | 45 ---------------------------- 1 file changed, 45 deletions(-) delete mode 100644 node_modules/mongodb/lib/operations/stats.js (limited to 'node_modules/mongodb/lib/operations/stats.js') diff --git a/node_modules/mongodb/lib/operations/stats.js b/node_modules/mongodb/lib/operations/stats.js deleted file mode 100644 index ff79126..0000000 --- a/node_modules/mongodb/lib/operations/stats.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -const Aspect = require('./operation').Aspect; -const CommandOperation = require('./command'); -const defineAspects = require('./operation').defineAspects; - -/** - * Get all the collection statistics. - * - * @class - * @property {Collection} a Collection instance. - * @property {object} [options] Optional settings. See Collection.prototype.stats for a list of options. - */ -class StatsOperation extends CommandOperation { - /** - * Construct a Stats operation. - * - * @param {Collection} a Collection instance. - * @param {object} [options] Optional settings. See Collection.prototype.stats for a list of options. - */ - constructor(collection, options) { - super(collection.s.db, options, collection); - } - - _buildCommand() { - const collection = this.collection; - const options = this.options; - - // Build command object - const command = { - collStats: collection.collectionName - }; - - // Check if we have the scale value - if (options['scale'] != null) { - command['scale'] = options['scale']; - } - - return command; - } -} - -defineAspects(StatsOperation, Aspect.READ_OPERATION); - -module.exports = StatsOperation; -- cgit v1.2.3