Initial commit
This commit is contained in:
22
node_modules/mongodb/lib/operations/indexes.js
generated
vendored
Normal file
22
node_modules/mongodb/lib/operations/indexes.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
const OperationBase = require('./operation').OperationBase;
|
||||
const indexInformation = require('./common_functions').indexInformation;
|
||||
|
||||
class IndexesOperation extends OperationBase {
|
||||
constructor(collection, options) {
|
||||
super(options);
|
||||
|
||||
this.collection = collection;
|
||||
}
|
||||
|
||||
execute(callback) {
|
||||
const coll = this.collection;
|
||||
let options = this.options;
|
||||
|
||||
options = Object.assign({}, { full: true }, options);
|
||||
indexInformation(coll.s.db, coll.collectionName, options, callback);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = IndexesOperation;
|
||||
Reference in New Issue
Block a user