« MongoDB\Driver\Server::executeBulkWrite
MongoDB\Driver\Server::executeCommand »

MongoDB\Driver\Server::executeBulkWriteCommand

(mongodb >=2.1.0)

MongoDB\Driver\Server::executeBulkWriteCommand — Execute write operations on this server using the bulkWrite command

説明

final public function MongoDB\Driver\Server::executeBulkWriteCommand(MongoDB\Driver\BulkWriteCommand $bulk, ?array $options = null): MongoDB\Driver\BulkWriteCommandResult

Executes one or more write operations on this server using the » bulkWrite command introduced in MongoDB 8.0.

A MongoDB\Driver\BulkWriteCommand can be constructed with one or more write operations of varying types (e.g. inserts, updates, and deletes). Each write operation may target a different collection.

The default value for the "writeConcern" option will be inferred from an active transaction (indicated by the "session" option), followed by the connection URI.

パラメータ

bulk (MongoDB\Driver\BulkWriteCommand)

The write(s) to execute.

options

options
Option Type Description
session MongoDB\Driver\Session A session to associate with the operation.
writeConcern MongoDB\Driver\WriteConcern A write concern to apply to the operation.

戻り値

Returns MongoDB\Driver\BulkWriteCommandResult on success.

エラー / 例外

関連キーワード:
MongoDB   Driver   write   Throws   Exception   operations   command   Server   server   using   bulkWrite   BulkWriteCommand   Execute   executeBulkWriteCommand   bulk   session   InvalidArgumentException   options   BulkWriteCommandResult   operation   option   concern   more   writeConcern   connection
関連する関数・ページ:
mongodb-driver-manager.executebulkwritecommand   mongodb-driver-server.executebulkwrite   mongodb-driver-server.executewritecommand   mongodb-driver-server.executecommand   mongodb-driver-server.executereadwritecommand   mongodb-driver-bulkwritecommand.construct