flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
30
VISUALIZACION/node_modules/mongodb/lib/operations/search_indexes/drop.js
generated
vendored
Executable file
30
VISUALIZACION/node_modules/mongodb/lib/operations/search_indexes/drop.js
generated
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DropSearchIndexOperation = void 0;
|
||||
const operation_1 = require("../operation");
|
||||
/** @internal */
|
||||
class DropSearchIndexOperation extends operation_1.AbstractCallbackOperation {
|
||||
constructor(collection, name) {
|
||||
super();
|
||||
this.collection = collection;
|
||||
this.name = name;
|
||||
}
|
||||
executeCallback(server, session, callback) {
|
||||
const namespace = this.collection.fullNamespace;
|
||||
const command = {
|
||||
dropSearchIndex: namespace.collection
|
||||
};
|
||||
if (typeof this.name === 'string') {
|
||||
command.name = this.name;
|
||||
}
|
||||
server.command(namespace, command, { session }, err => {
|
||||
if (err) {
|
||||
callback(err);
|
||||
return;
|
||||
}
|
||||
callback();
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.DropSearchIndexOperation = DropSearchIndexOperation;
|
||||
//# sourceMappingURL=drop.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue