Commit 4b0d5ad0 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-64: Prototype for collection create method

parent 0c0d3348
...@@ -32,6 +32,20 @@ class Database ...@@ -32,6 +32,20 @@ class Database
$this->rp = $rp; $this->rp = $rp;
} }
/**
* Create a new collection explicitly.
*
* @see http://docs.mongodb.org/manual/reference/command/create/
* @see http://docs.mongodb.org/manual/reference/method/db.createCollection/
* @param string $collectionName
* @param array $options
* @return Result
*/
public function createCollection($collectionName, array $options = array())
{
// TODO
}
/** /**
* Select a specific collection in this database * 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