MongoWriteBatch
class MongoWriteBatch (View source)
Constants
COMMAND_INSERT |
|
COMMAND_UPDATE |
|
COMMAND_DELETE |
|
Methods
__construct(MongoCollection $collection, string $batch_type, array $write_options)
(PECL mongo >= 1.5.0)
MongoWriteBatch constructor.
bool
array
Details
protected
__construct(MongoCollection $collection, string $batch_type, array $write_options)
(PECL mongo >= 1.5.0)
MongoWriteBatch 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