Home/
Manual/
monitoring / commandstartedevent/ MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName
MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Returns the database on which the command was executed
Description
MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName(): string
Parameters Parameters
Return Values
Returns the database on which the command was executed.