php8.5
Home/ Manual/ monitoring / commandsucceededevent/ MongoDB\Driver\Monitoring\CommandSucceededEvent::getDatabaseName

MongoDB\Driver\Monitoring\CommandSucceededEvent::getDatabaseName

PHP function Edit on GitHub ✎

(mongodb >=1.19.0)

Returns the database on which the command was executed

Description

MongoDB\Driver\Monitoring\CommandSucceededEvent::getDatabaseName(): string

Parameters Parameters

Return Values

Returns the database on which the command was executed.

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/commandsucceededevent/getdatabasename.xml · from the official PHP manual (php/doc-en)