« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 31 for BulkWriteCommand (0.001 sec.)
The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 12391
The MongoDB\Driver\BulkWriteCommand class (mongodb >=2.1.0) はじめに MongoDB\Driver\BulkWriteCommand collects one or more write operations that should be sent to the server using the » bulkWrite command introduced in MongoDB 8.0. After addi ... ng any number of insert, update, and delete operations, the command may be executed via MongoDB\Driver\Manager::executeBulkWriteCommand() . Unlike MongoDB\Driver\BulkWrite , where all write operations must target the same collection, each write operation wit ... hin MongoDB\Driver\BulkWriteCommand may target a different collection. Write operations may either be ordered (default) or unordered. Ordered write operations ... rallel. Any errors that occur are reported after all operations have been attempted. クラス概要 final class MongoDB\Driver\BulkWriteCommand implements Countable { /* メソッド */ public function __construct ( ? array $options = null ) public function count (): in ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
MongoDB\Driver\BulkWriteCommand::count — Count number of write operations in th... 11437
MongoDB\Driver\BulkWriteCommand::count (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::count — Count number of write operations in the BulkWriteCommand 説明 public function MongoDB\Driver\BulkWriteCommand::count (): int Returns the numbe ... r of write operations added to the MongoDB\Driver\BulkWriteCommand object. パラメータ この関数にはパラメータはありません。 戻り値 Returns number of write operations added to the MongoDB\Dri ... ver\BulkWriteCommand object. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\ ... Driver\BulkWriteCommand::count() example <?php $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 , 'x' = ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.count.html
MongoDB\Driver\BulkWriteCommand::replaceOne — Add a replaceOne operation | PHP ... 10110
MongoDB\Driver\BulkWriteCommand::replaceOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::replaceOne — Add a replaceOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::replaceOne ( string $namespace , array | object $fi ... lter , array | object $replacement , ? array $options = null ): void Add a replaceOne operation to the MongoDB\Driver\BulkWriteCommand . The first document matching filter in the collection identified by namespace will be replaced. パラメータ namespace ( st ... 。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::replaceOne() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> ... replaceOne ( 'db.coll' , [ 'x' => 1 ], [ 'x' => 1 , 'y' => 2 ]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::updateOne() - Add an updateOne operation MongoDB\Driver\BulkWriteComma ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.replaceone.html
MongoDB\Driver\BulkWriteCommand::updateMany — Add an updateMany operation | PHP... 9997
MongoDB\Driver\BulkWriteCommand::updateMany (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::updateMany — Add an updateMany operation 説明 public function MongoDB\Driver\BulkWriteCommand::updateMany ( string $namespace , array | object $f ... ilter , array | object $update , ? array $options = null ): void Add an updateMany operation to the MongoDB\Driver\BulkWriteCommand . All documents matching filter in the collection identified by namespace will be updated. パラメータ namespace ( string ) ... 。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::updateMany() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> ... updateMany ( 'db.coll' , [ 'x' => [ '$gt' => 1 ]], [ '$set' => [ 'y' => 2 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::replaceOne() - Add a replaceOne operation MongoDB\Driver\BulkWriteComm ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.updatemany.html
MongoDB\Driver\BulkWriteCommand::updateOne — Add an updateOne operation | PHP 8... 9949
MongoDB\Driver\BulkWriteCommand::updateOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::updateOne — Add an updateOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::updateOne ( string $namespace , array | object $filte ... r , array | object $update , ? array $options = null ): void Add an updateOne operation to the MongoDB\Driver\BulkWriteCommand . The first document matching filter in the collection identified by namespace will be updated. パラメータ namespace ( str ... 。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::updateOne() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> ... updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 2 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::replaceOne() - Add a replaceOne operation MongoDB\Driver\BulkWriteComm ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.updateone.html
MongoDB\Driver\BulkWriteCommand::deleteMany — Add a deleteMany operation | PHP ... 9835
MongoDB\Driver\BulkWriteCommand::deleteMany (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::deleteMany — Add a deleteMany operation 説明 public function MongoDB\Driver\BulkWriteCommand::deleteMany ( string $namespace , array | object $fi ... lter , ? array $options = null ): void Add a deleteMany operation to the MongoDB\Driver\BulkWriteCommand . All documents matching filter in the collection identified by namespace will be deleted. パラメータ namespace ( string ) ... 。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::deleteMany() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> ... deleteMany ( 'db.coll' , [ 'x' => [ '$gt' => 1 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::deleteOne() - Add a deleteOne operation MongoDB\Driver\Manager::execut ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.deletemany.html
MongoDB\Driver\BulkWriteCommand::deleteOne — Add a deleteOne operation | PHP 8.... 9835
MongoDB\Driver\BulkWriteCommand::deleteOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::deleteOne — Add a deleteOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::deleteOne ( string $namespace , array | object $filter ... , ? array $options = null ): void Add a deleteOne operation to the MongoDB\Driver\BulkWriteCommand . The first document matching filter in the collection identified by namespace will be deleted. パラメータ namespace ( str ... 。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::deleteOne() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> ... deleteOne ( 'db.coll' , [ 'x' => 1 ]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::deleteMany() - Add a deleteMany operation MongoDB\Driver\Manager::exec ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.deleteone.html
MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 9577
MongoDB\Driver\BulkWriteCommand::__construct (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand 説明 public function MongoDB\Driver\BulkWriteCommand::__construct ( ? array $options = null ) Constr ... ucts a new MongoDB\Driver\BulkWriteCommand , which may be used to perform many insert, update, and delete operations on multiple collections in a single request usin ... g the » bulkWrite command introduced in MongoDB 8.0. This differs from MongoDB\Driver\BulkWrite , which is supported by all server versions but lim ... le collection. After all write operations have been added, this object may be executed with MongoDB\Driver\Manager::executeBulkWriteCommand() . パラメータ options ( array ) options Option Type Description Default bypassDocumentValidation bool If true , allows in ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation | PHP 8... 9577
MongoDB\Driver\BulkWriteCommand::insertOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::insertOne ( string $namespace , array | object $docum ... ent ): mixed Add an insertOne operation to the MongoDB\Driver\BulkWriteCommand . The document will be inserted into the collection identified by namespace . パラメータ namespace ( string ) A fully qual ... . エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::insertOne() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $doc1 = [ ... , $doc2 ); $id3 = $bulk -> insertOne ( 'db.coll' , $doc3 ); var_dump ( $id1 , $id2 , $id3 ); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) " ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.insertone.html
MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 8994
MongoDB\Driver\Manager::executeBulkWriteCommand (mongodb >=2.1.0) MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations using the bulkWrite command 説明 final public function MongoDB\Driver\Manager::executeBulkWriteCommand ... and ( MongoDB\Driver\BulkWriteCommand $bulk , ? array $options = null ): MongoDB\Driver\BulkWriteCommandResult Executes one or more write operations on the prim ... ary server using the » bulkWrite command introduced in MongoDB 8.0. A MongoDB\Driver\BulkWriteCommand can be constructed with one or more write operations of vary ... 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 w ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
PREV 1 2 3 4 NEXT