PHP Class Phalcon\Db\Adapter\MongoDB\Operation\DropDatabase

See also: MongoDB\Client::dropDatabase()
See also: MongoDB\Database::drop()
See also: http://docs.mongodb.org/manual/reference/command/dropDatabase/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Afficher le fichier Open project: phalcon/incubator Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $databaseName, array $options = [] ) Constructs a dropDatabase command.
execute ( MongoDB\Driver\Server $server ) : array | object Execute the operation.

Method Details

__construct() public méthode

Supported options: * typeMap (array): Type map for BSON deserialization. This will be used for the returned command result document.
public __construct ( string $databaseName, array $options = [] )
$databaseName string Database name
$options array Command options

execute() public méthode

Execute the operation.
See also: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : array | object
$server MongoDB\Driver\Server
Résultat array | object Command result document