Spaces:
Runtime error
Runtime error
Download static/node_modules/mongodb/lib/explain.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/lib/explain.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongodb/lib/explain.js
-
curl -L -o explain.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/lib/explain.js
1.17 kB
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.Explain = exports.ExplainVerbosity = void 0; | |
| const error_1 = require("./error"); | |
| /** @public */ | |
| exports.ExplainVerbosity = Object.freeze({ | |
| queryPlanner: 'queryPlanner', | |
| queryPlannerExtended: 'queryPlannerExtended', | |
| executionStats: 'executionStats', | |
| allPlansExecution: 'allPlansExecution' | |
| }); | |
| /** @internal */ | |
| class Explain { | |
| constructor(verbosity) { | |
| if (typeof verbosity === 'boolean') { | |
| this.verbosity = verbosity | |
| ? exports.ExplainVerbosity.allPlansExecution | |
| : exports.ExplainVerbosity.queryPlanner; | |
| } | |
| else { | |
| this.verbosity = verbosity; | |
| } | |
| } | |
| static fromOptions(options) { | |
| if (options?.explain == null) | |
| return; | |
| const explain = options.explain; | |
| if (typeof explain === 'boolean' || typeof explain === 'string') { | |
| return new Explain(explain); | |
| } | |
| throw new error_1.MongoInvalidArgumentError('Field "explain" must be a string or a boolean'); | |
| } | |
| } | |
| exports.Explain = Explain; | |
| //# sourceMappingURL=explain.js.map |