MongoDeleteBatch
PHP Manual

MongoDeleteBatch::__construct

(PECL mongo >= 1.5.0)

MongoDeleteBatch::__constructDescription

説明

public MongoDeleteBatch::__construct ( MongoCollection $collection [, array $write_options ] )

Constructs a batch of DELETE operations. See MongoWriteBatch.

パラメータ

collection

バッチを実行する MongoCollection。確認付き書き込みのデフォルトは WriteConcern をコピーします。$write_options で指定したり、MongoWriteBatch::execute() で指定したりすることもできます。

write_options

書き込みオプションの配列。

キー
w (int|string)WriteConcern の値
wtimeout (int)レプリケーションを待つ時間の最大値
orderedMongoDB にこのバッチを順番どおりに実行させるのか、あるいは並べ替えを許すのかを指定する。デフォルトは TRUE
j (bool)プライマリーへのジャーナリングを待つかどうか。これは非推奨なので、かわりに確認付き書き込みを使うこと
fsync (bool)プライマリーへの fsync を待つかどうか。これは非推奨なので、かわりに確認付き書き込みを使うこと

返り値

A new MongoDeleteBatch.


MongoDeleteBatch
PHP Manual