php教程

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__construct创建一个新的集合

说明

public MongoCollection::__construct ( MongoDB $db , string $name )

参数

MongoDB db

所属的父数据库。

name

集合的名称。

返回值

返回一个新的集合对象。

错误/异常

如果集合名称无效,将会抛出一个默认的异常。

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788