|
| __construct (string $databaseName, Explainable $explainable, array $options=[]) |
| Constructs an explain command for explainable operations.
|
|
| execute (Server $server) |
| Execute the operation.
|
|
|
const | VERBOSITY_ALL_PLANS = 'allPlansExecution' |
|
const | VERBOSITY_EXEC_STATS = 'executionStats' |
|
const | VERBOSITY_QUERY = 'queryPlanner' |
|
◆ __construct()
MongoDB\Operation\Explain::__construct |
( |
string | $databaseName, |
|
|
Explainable | $explainable, |
|
|
array | $options = [] ) |
Constructs an explain command for explainable operations.
Supported options:
- Parameters
-
string | $databaseName | Database name |
Explainable | $explainable | Operation to explain |
array | $options | Command options |
- Exceptions
-
InvalidArgumentException | for parameter/option parsing errors |
◆ execute()
MongoDB\Operation\Explain::execute |
( |
Server | $server | ) |
|
Execute the operation.
- See also
- Executable\execute()
- Return values
-
- Exceptions
-
UnsupportedException | if the server does not support explaining the operation |
DriverRuntimeException | for other driver errors (e.g. connection errors) |
Implements MongoDB\Operation\Executable.
The documentation for this class was generated from the following file:
- cache/stores/mongodb/MongoDB/Operation/Explain.php