MongoDB\Driver\Monitoring\CommandStartedEvent
PHP Manual

MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseNameReturns the database on which the command was executed

Description

final public string MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName ( void )

Parameters

This function has no parameters.

Return Values

Returns the database on which the command was executed.

Errors/Exceptions

See Also


MongoDB\Driver\Monitoring\CommandStartedEvent
PHP Manual