MongoDB\Driver\Monitoring\CommandStartedEvent::getDatabaseName

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

Description

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

Parameters

This function has no parameters.

Return Values

Returns the database on which the command was executed.

Errors/Exceptions