Returns the database on which the command was executed

# MongoDB\Driver\Monitoring\CommandFailedEvent::getDatabaseName

(mongodb >=1.19.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getDatabaseName — Returns the database on which the command was executed

### 説明

final public function MongoDB\Driver\Monitoring\CommandFailedEvent::getDatabaseName(): string

### パラメータ

この関数にはパラメータはありません。

### 戻り値

Returns the database on which the command was executed.

### エラー / 例外

- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

### 参考

- Application Performance Monitoring (APM)

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open