| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
MongoWriteBatch::execute(PECL mongo >= 1.5.0) MongoWriteBatch::execute — Executes a batch of write operations 説明
final public array MongoWriteBatch::execute
( array
$write_options
)Executes the batch of write operations. パラメータ
返り値Returns an array containing statistical information for the full batch. If the batch had to be split into multiple batches, the return value will aggregate the values from individual batches and return only the totals.
If the batch was empty, an array containing only the 'ok' field is returned (as
エラー / 例外A MongoWriteConcernException exception is thrown on failure. 例例1 MongoWriteBatch::add() example Batching up multiple insert operations
<?php 上の例の出力は以下となります。 array(2) { ["nInserted"]=> int(3) ["ok"]=> bool(true) } 例2 MongoWriteBatch::add() example Batching up multiple update operations
<?php 上の例の出力は以下となります。 array(4) { ["nMatched"]=> int(18) ["nModified"]=> int(2) ["nUpserted"]=> int(0) ["ok"]=> bool(true) } 例3 MongoWriteBatch::add() example Batching up multiple delete operations
<?php 上の例の出力は以下となります。 array(2) { ["nRemoved"]=> int(1) ["ok"]=> bool(true) } |
![]() |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「MongoWriteBatch::execute - Executes a batch of write operations」をGoogle検索
|