MongoCollection クラス
導入
データベース接続を表します。
コレクション名に "$" を使うことはできませんが、 それ以外なら ASCII セット内の任意の文字を使用できます。たとえば ""、"..."、"my collection" そして "*&#@" といった名前をつけることができます。
クラス概要
MongoCollection
MongoCollection
{
/* メソッド */
public array group
( array $keys
, array $initial
, string $reduce
[, array $condition = array()
] )
}目次
- MongoCollection::batchInsert — 複数のドキュメントをコレクションに追加する
- MongoCollection::__construct — 新しいコレクションを作成する
- MongoCollection::count — コレクション内のドキュメント数を数える
- MongoCollection::createDBRef — データベースへの参照を作成する
- MongoCollection::deleteIndex — コレクションからインデックスを削除する
- MongoCollection::deleteIndexes — コレクションのすべてのインデックスを削除する
- MongoCollection::drop — コレクションを削除する
- MongoCollection::ensureIndex — 指定したフィールドにインデックスを作成する (すでに存在する場合は何もしない)
- MongoCollection::find — コレクションに問い合わせる
- MongoCollection::findOne — コレクションに問い合わせ、単一の要素を返す
- MongoCollection::getDBRef — データベース参照が指すドキュメントを取得する
- MongoCollection::getIndexInfo — コレクションのインデックス名の配列を返す
- MongoCollection::getName — コレクションの名前を返す
- MongoCollection::group — SQL の GROUP BY コマンドと似た処理を行う
- MongoCollection::insert — 配列をコレクションに追加する
- MongoCollection::remove — レコードをコレクションから削除する
- MongoCollection::save — オブジェクトをコレクションに保存する
- MongoCollection::__toString — このコレクションの文字列表現
- MongoCollection::update — 指定した条件にもとづいてレコードを更新する
- MongoCollection::validate — コレクションを検証する
MongoCollection
There are no user contributed notes for this page.
