Initial commit

This commit is contained in:
Arnaud Nelissen
2021-07-16 10:18:13 +02:00
commit 3af7ddab06
5894 changed files with 590836 additions and 0 deletions

23
node_modules/mongodb/lib/operations/drop_indexes.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
const Aspect = require('./operation').Aspect;
const defineAspects = require('./operation').defineAspects;
const DropIndexOperation = require('./drop_index');
const handleCallback = require('../utils').handleCallback;
class DropIndexesOperation extends DropIndexOperation {
constructor(collection, options) {
super(collection, '*', options);
}
execute(callback) {
super.execute(err => {
if (err) return handleCallback(callback, err, false);
handleCallback(callback, null, true);
});
}
}
defineAspects(DropIndexesOperation, Aspect.WRITE_OPERATION);
module.exports = DropIndexesOperation;