Results of 1 - 10 of about 15 for updateOne (0.001 sec.)
- MongoDB\Driver\BulkWriteCommand::updateOne — Add an updateOne operation | PHP 8... 13027
- 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 name ... rows 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 ( ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.updateone.html
- MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of ... 9665
- MongoDB\Driver\BulkWriteCommandResult::getDeletedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of documents deleted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getD
... DB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getdeletedc...
- MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of... 9665
- MongoDB\Driver\BulkWriteCommandResult::getInsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of documents inserted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::g
... DB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
- MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of... 9665
- MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of documents upserted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::g
... DB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupserted...
- MongoDB\Driver\BulkWriteCommandResult::getMatchedCount — Returns the number of ... 9422
- MongoDB\Driver\BulkWriteCommandResult::getMatchedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getMatchedCount — Returns the number of documents selected for update 説明 final public function MongoDB\Driver\BulkWriteCommand
... DB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getmatchedc...
- MongoDB\Driver\BulkWriteCommandResult::getModifiedCount — Returns the number of... 9422
- MongoDB\Driver\BulkWriteCommandResult::getModifiedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getModifiedCount — Returns the number of existing documents updated 説明 final public function MongoDB\Driver\BulkWriteCommandR
... DB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getmodified...
- MongoDB\Driver\BulkWriteCommandResult::getDeleteResults — Returns verbose resul... 9300
- MongoDB\Driver\BulkWriteCommandResult::getDeleteResults (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getDeleteResults — Returns verbose results for successful deletes 説明 final public function MongoDB\Driver\BulkWriteCommandRes
... w MongoDB\Driver\BulkWriteCommand ([ 'verboseResults' => true ]); $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getdeletere...
- The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 9056
- 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
... ny ( string $namespace , array | object $filter , array | object $update , ? array $options = null ): void public function updateOne ( string $namespace , array | object $filter , array | object $update , ? array $options = null ): void } 例 例1 Mixed wri ... _two' , [ '_id' => 2 ]); $bulk -> insertOne ( 'db.coll_two' , [ '_id' => 3 ]); // Update a document in "coll_one" $bulk -> updateOne ( 'db.coll_one' , [ '_id' => 1 ], [ '$set' => [ 'x' => 1 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); pri ... ceOne operation MongoDB\Driver\BulkWriteCommand::updateMany — Add an updateMany operation MongoDB\Driver\BulkWriteCommand::updateOne — Add an updateOne operation 他のマニュアルの関連ページ Django 5.2.10 Django managers ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
- MongoDB\Driver\BulkWriteCommandResult::getInsertResults — Returns verbose resul... 9056
- MongoDB\Driver\BulkWriteCommandResult::getInsertResults (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getInsertResults — Returns verbose results for successful inserts 説明 final public function MongoDB\Driver\BulkWriteCommandRes
... r\BulkWriteCommand ([ 'verboseResults' => true ]); $generatedId = $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinsertre...
- MongoDB\Driver\BulkWriteCommandResult::getUpdateResults — Returns verbose resul... 8708
- MongoDB\Driver\BulkWriteCommandResult::getUpdateResults (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpdateResults — Returns verbose results for successful updates 説明 final public function MongoDB\Driver\BulkWriteCommandRes
... w MongoDB\Driver\BulkWriteCommand ([ 'verboseResults' => true ]); $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' = ... > 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupdatere...