Server IP : 162.213.251.212 / Your IP : 3.12.154.154 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/needapair.com/node_modules/mongodb/lib/operations/ |
Upload File : |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RunAdminCommandOperation = exports.RunCommandOperation = void 0; const utils_1 = require("../utils"); const operation_1 = require("./operation"); /** @internal */ class RunCommandOperation extends operation_1.AbstractOperation { constructor(parent, command, options) { super(options); this.command = command; this.options = options; this.ns = parent.s.namespace.withCollection('$cmd'); } get commandName() { return 'runCommand'; } async execute(server, session) { this.server = server; const res = await server.command(this.ns, this.command, { ...this.options, readPreference: this.readPreference, session }, this.options.responseType); return res; } } exports.RunCommandOperation = RunCommandOperation; class RunAdminCommandOperation extends operation_1.AbstractOperation { constructor(command, options) { super(options); this.command = command; this.options = options; this.ns = new utils_1.MongoDBNamespace('admin', '$cmd'); } get commandName() { return 'runCommand'; } async execute(server, session) { this.server = server; const res = await server.command(this.ns, this.command, { ...this.options, readPreference: this.readPreference, session }); return res; } } exports.RunAdminCommandOperation = RunAdminCommandOperation; //# sourceMappingURL=run_command.js.map