Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
|
Public Member Functions | |
__construct (string $databaseName, array $options=[]) | |
Constructs a dropDatabase command. | |
execute (Server $server) | |
Execute the operation. | |
MongoDB\Operation\DropDatabase::__construct | ( | string | $databaseName, |
array | $options = [] ) |
Constructs a dropDatabase command.
Supported options:
comment (mixed): BSON value to attach as a comment to this command.
This is not supported for servers versions < 4.4.
string | $databaseName | Database name |
array | $options | Command options |
InvalidArgumentException | for parameter/option parsing errors |
MongoDB\Operation\DropDatabase::execute | ( | Server | $server | ) |
Execute the operation.
array|object | Command result document |
DriverRuntimeException | for other driver errors (e.g. connection errors) |
Implements MongoDB\Operation\Executable.