MongoCollection::__construct
(PECL mongo >=0.9.0)
MongoCollection::__construct — Creates a new collection
Опис
public MongoCollection::__construct
(
MongoDB $db
,
string $name
)
Параметри
-
MongoDB
db
-
Parent database.
-
name
-
Name for this collection.
Значення, що повертаються
Returns a new collection object.
Помилки/Винятки
Throws default exception if the collection name is invalid.