Results of 1 - 10 of about 55 for coll (0.001 sec.)
- MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 12048
- 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::executeBulkWriteComm
... r 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 "sess ... <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two ... collections $bulk -> insertOne ( 'db.coll_one' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll_two' , [ '_id' => 2 ]); $bulk -> insertOne ( 'db.coll_two' , [ '_id' ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
- The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 11841
- 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
... ver\Manager::executeBulkWriteCommand() . Unlike MongoDB\Driver\BulkWrite , where all write operations must target the same collection, each write operation within MongoDB\Driver\BulkWriteCommand may target a different collection. Write operations may ... <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two ... collections $bulk -> insertOne ( 'db.coll_one' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll_two' , [ '_id' => 2 ]); $bulk -> insertOne ( 'db.coll_two' , [ '_id' ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
- MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 9742
- 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
... new MongoDB\Driver\BulkWriteCommand , which may be used to perform many insert, update, and delete operations on multiple collections in a single request using the » bulkWrite command introduced in MongoDB 8.0. This differs from MongoDB\Driver\BulkW ... rite , which is supported by all server versions but limited to a single collection. After all write operations have been added, this object may be executed with MongoDB\Driver\Manager::executeBulkWri ... <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
- MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns ... 9668
- MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns the result of any successful write operations 説明 final public function M
... sful <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result ... sful <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $manager -> executeBulkWriteCommand ( $bulk ); $bulk = new Mongo ... DB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\Bulk ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns an... 9609
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns any write errors 説明 final public function MongoDB\Driver\Exception\BulkWrite
... w MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ([ 'ordered' => false ]); $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> inser ... tOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\Bulk ... になります。 array(2) { [2]=> object(MongoDB\Driver\WriteError)#5 (4) { ["message"]=> string(78) "E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: 1 }" ["code"]=> int(11000) ["index"]=> int(2) ["info"]=> object(stdClass)#6 (0) ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of ... 9328
- 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
... ample <?php $manager = new MongoDB\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' , []); $result = $manag ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getdeletedc...
- MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of... 9328
- 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
... ample <?php $manager = new MongoDB\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' , []); $result = $manag ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
- MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of... 9328
- 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
... ample <?php $manager = new MongoDB\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' , []); $result = $manag ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupserted...
- MongoDB\Driver\BulkWriteCommandResult::getMatchedCount — Returns the number of ... 9062
- 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
... ample <?php $manager = new MongoDB\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' , []); $result = $manag ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getmatchedc...
- MongoDB\Driver\BulkWriteCommandResult::getModifiedCount — Returns the number of... 9062
- 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
... ample <?php $manager = new MongoDB\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' , []); $result = $manag ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getmodified...