MongoUpdateBatch
class MongoUpdateBatch extends MongoWriteBatch (View source)
Constants
COMMAND_INSERT |
|
COMMAND_UPDATE |
|
COMMAND_DELETE |
|
Methods
__construct(MongoCollection $collection, array $write_options)
(PECL mongo >= 1.5.0)
MongoUpdateBatch constructor.
array
from
MongoWriteBatch
Details
__construct(MongoCollection $collection, array $write_options)
(PECL mongo >= 1.5.0)
MongoUpdateBatch constructor.
bool
add(array $item)
(PECL mongo >= 1.5.0)
Adds a write operation to a batch
final array
execute(array $write_options)
(PECL mongo >= 1.5.0)
Executes a batch of write operations