Method | Description | |
---|---|---|
add ( array | object $item ) : boolean | Adds a write operation to a batch | |
execute ( array $writeOptions = [] ) : array | Executes a batch of write operations |
Method | Description | |
---|---|---|
__construct ( MongoCollection $collection, integer $batchType, array $writeOptions ) | Creates a new batch of write operations |
Method | Description | |
---|---|---|
addItem ( array $item ) | ||
convertWriteErrors ( MongoDB\Driver\WriteResult $result ) : array | ||
validate ( array $item ) |
protected __construct ( MongoCollection $collection, integer $batchType, array $writeOptions ) | ||
$collection | MongoCollection | |
$batchType | integer | |
$writeOptions | array |