MongoDB::createCollection
(PECL mongo >=0.9.0)
MongoDB::createCollection — コレクションを作成する
説明
public MongoCollection MongoDB::createCollection
( string $name
[, bool $capped = FALSE
[, int $size = 0
[, int $max = 0
]]] )
パラメータ
- name
-
コレクションの名前。
- capped
-
コレクションが固定サイズかどうか。
- size
-
コレクションが固定サイズの場合にそのバイト数を指定します。
- max
-
コレクションが固定サイズのばあいに、コレクション内に格納できる要素の最大数。
返り値
新しいコレクションをあらわすコレクションオブジェクトを返します。
MongoDB::createCollection
There are no user contributed notes for this page.
