Commit 786471a7 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-69: Prototypes for index drop methods

parent 27543788
......@@ -64,6 +64,32 @@ class Collection
list($this->dbname, $this->collname) = explode(".", $ns, 2);
}
/**
* Drop a single index in the collection.
*
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
* @see http://docs.mongodb.org/manual/reference/method/db.collection.dropIndex/
* @param string $indexName
* @return Result
* @throws InvalidArgumentException if "*" is specified
*/
public function dropIndex($indexName)
{
// TODO
}
/**
* Drop all indexes in the collection.
*
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
* @see http://docs.mongodb.org/manual/reference/method/db.collection.dropIndexes/
* @return Result
*/
public function dropIndexes()
{
// TODO
}
/**
* Performs a find (query) on the collection
*
......
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