Commit b51e1b3c authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-65: Prototypes for database drop methods

parent 4b0d5ad0
......@@ -2,9 +2,10 @@
namespace MongoDB;
use MongoDB\Driver\Manager;
use MongoDB\Database;
use MongoDB\Collection;
use MongoDB\Database;
use MongoDB\Driver\Manager;
use MongoDB\Driver\Result;
class Client
{
......@@ -29,6 +30,17 @@ class Client
$this->manager = new Manager($uri, $options, $driverOptions);
}
/**
* Drop a database.
*
* @param string $databaseName
* @return Result
*/
public function dropDatabase($databaseName)
{
// TODO
}
/**
* Select a database
*
......
......@@ -2,8 +2,9 @@
namespace MongoDB;
use MongoDB\Driver\Manager;
use MongoDB\Collection;
use MongoDB\Driver\Manager;
use MongoDB\Driver\Result;
class Database
{
......@@ -46,6 +47,16 @@ class Database
// TODO
}
/**
* Drop this database.
*
* @return Result
*/
public function drop()
{
// TODO
}
/**
* Select a specific collection in this database
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment