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
Mostra file Open project: phalcon/incubator Class Usage Examples

Public Methods

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

Method Details

__construct() public method

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 method

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