This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-blog-newsletter/cronjob/node_modules/mongodb/lib/operations/run_command.js
2024-05-26 22:54:55 +02:00

26 lines
No EOL
1,013 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RunAdminCommandOperation = exports.RunCommandOperation = void 0;
const utils_1 = require("../utils");
const command_1 = require("./command");
/** @internal */
class RunCommandOperation extends command_1.CommandOperation {
constructor(parent, command, options) {
super(parent, options);
this.options = options !== null && options !== void 0 ? options : {};
this.command = command;
}
execute(server, session, callback) {
const command = this.command;
this.executeCommand(server, session, command, callback);
}
}
exports.RunCommandOperation = RunCommandOperation;
class RunAdminCommandOperation extends RunCommandOperation {
constructor(parent, command, options) {
super(parent, command, options);
this.ns = new utils_1.MongoDBNamespace('admin');
}
}
exports.RunAdminCommandOperation = RunAdminCommandOperation;
//# sourceMappingURL=run_command.js.map