Results of 1 - 10 of about 24 for ordered (0.002 sec.)
- The MongoDB\Driver\BulkWrite class 13110
- « MongoDB\Driver\Query::__construct MongoDB\Driver\BulkWrite::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWrite class 検索 The MongoDB\Driver\BulkWrite class (mongodb >=1.0.0) はじめに The MongoDB\Driver\BulkWrite collect
... operations, the collection may be executed via MongoDB\Driver\Manager::executeBulkWrite() . Write operations may either be ordered (default) or unordered. Ordered write operations are sent to the server, in the order provided, for serial execution. If a ... write fails, any remaining operations will be aborted. Unordered operations are sent to the server in an arbitrary order where they may be executed in parallel. Any errors that occur are ... assembled into typed write commands to be sent sequentially to the server. <?php $bulk = new MongoDB\Driver\BulkWrite ([ 'ordered' => true ]); $bulk -> insert ([ '_id' => 1 , 'x' => 1 ]); $bulk -> insert ([ '_id' => 2 , 'x' => 2 ]); $bulk -> update ([ ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwrite.html
- The MongoDB\Driver\BulkWrite class 13110
- « MongoDB\Driver\Query::__construct MongoDB\Driver\BulkWrite::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWrite class 検索 The MongoDB\Driver\BulkWrite class (mongodb >=1.0.0) はじめに The MongoDB\Driver\BulkWrite collect
... operations, the collection may be executed via MongoDB\Driver\Manager::executeBulkWrite() . Write operations may either be ordered (default) or unordered. Ordered write operations are sent to the server, in the order provided, for serial execution. If a ... write fails, any remaining operations will be aborted. Unordered operations are sent to the server in an arbitrary order where they may be executed in parallel. Any errors that occur are ... assembled into typed write commands to be sent sequentially to the server. <?php $bulk = new MongoDB\Driver\BulkWrite ([ 'ordered' => true ]); $bulk -> insert ([ '_id' => 1 , 'x' => 1 ]); $bulk -> insert ([ '_id' => 2 , 'x' => 2 ]); $bulk -> update ([ ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwrite.html
- Returns any write errors 9958
- « MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors MongoDB\Driver\Exception\CommandException » PHP Manual MongoDB\Driver\Exception\BulkWriteCommandException Returns any write errors 検索 MongoDB\Driver\Exception\Bul
... f the write operation from MongoDB\Driver\BulkWriteCommand . This map will contain at most one entry if the bulk write was ordered. 例 例1 MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors() example <?php $manager = new MongoDB\Driver\M ... anager ; $bulk = new MongoDB\Driver\BulkWriteCommand ([ 'ordered' => false ]); $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ... ion write BulkWriteCommandException bulk coll getWriteErrors index WriteError errors insertOne operations BulkWriteCommand ordered manager Manager executeBulkWriteCommand message duplicate collection code info stdClass getWriteConcernErrors ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- Create a new BulkWrite 9190
- « MongoDB\Driver\BulkWrite MongoDB\Driver\BulkWrite::count » PHP Manual MongoDB\Driver\BulkWrite Create a new BulkWrite 検索 MongoDB\Driver\BulkWrite::__construct (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::__construct — Create a new BulkWr
... n is available in MongoDB 5.0+ and will result in an exception at execution time if specified for an older server version. ordered bool Ordered operations ( true ) are executed serially on the MongoDB server, while unordered operations ( false ) are sen ... tValidation" option. 例 例1 MongoDB\Driver\BulkWrite::__construct() example <?php $bulk = new MongoDB\Driver\BulkWrite ([ 'ordered' => true ]); $bulk -> delete ([]); $bulk -> insert ([ '_id' => 1 , 'x' => 1 ]); $bulk -> insert ([ '_id' => 2 , 'x' => 2 ] ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.construct.html
- Create a new BulkWrite 9190
- « MongoDB\Driver\BulkWrite MongoDB\Driver\BulkWrite::count » PHP Manual MongoDB\Driver\BulkWrite Create a new BulkWrite 検索 MongoDB\Driver\BulkWrite::__construct (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::__construct — Create a new BulkWr
... n is available in MongoDB 5.0+ and will result in an exception at execution time if specified for an older server version. ordered bool Ordered operations ( true ) are executed serially on the MongoDB server, while unordered operations ( false ) are sen ... tValidation" option. 例 例1 MongoDB\Driver\BulkWrite::__construct() example <?php $bulk = new MongoDB\Driver\BulkWrite ([ 'ordered' => true ]); $bulk -> delete ([]); $bulk -> insert ([ '_id' => 1 , 'x' => 1 ]); $bulk -> insert ([ '_id' => 2 , 'x' => 2 ] ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.construct.html
- The MongoDB\Driver\BulkWriteCommand class 8940
- « MongoDB\Driver\BulkWrite::update MongoDB\Driver\BulkWriteCommand::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWriteCommand class 検索 The MongoDB\Driver\BulkWriteCommand class (mongodb >=2.1.0) はじめに MongoDB\Driver\B
... h write operation within MongoDB\Driver\BulkWriteCommand may target a different collection. Write operations may either be ordered (default) or unordered. Ordered write operations are sent to the server, in the order provided, for serial execution. If a ... write fails, any remaining operations will be aborted. Unordered operations are sent to the server in an arbitrary order where they may be executed in parallel. Any errors that occur are ... )\n" , $result -> getModifiedCount ()); ?> 上の例の出力は以下となります。 Inserted 3 document(s) Updated 1 document(s) 例2 Ordered write operations causing an error <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteComman ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
- The MongoDB\Driver\BulkWriteCommand class 8940
- « MongoDB\Driver\BulkWrite::update MongoDB\Driver\BulkWriteCommand::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWriteCommand class 検索 The MongoDB\Driver\BulkWriteCommand class (mongodb >=2.1.0) はじめに MongoDB\Driver\B
... h write operation within MongoDB\Driver\BulkWriteCommand may target a different collection. Write operations may either be ordered (default) or unordered. Ordered write operations are sent to the server, in the order provided, for serial execution. If a ... write fails, any remaining operations will be aborted. Unordered operations are sent to the server in an arbitrary order where they may be executed in parallel. Any errors that occur are ... )\n" , $result -> getModifiedCount ()); ?> 上の例の出力は以下となります。 Inserted 3 document(s) Updated 1 document(s) 例2 Ordered write operations causing an error <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteComman ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
- Returns any write errors 8690
- « MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors MongoDB\Driver\Exception\CommandException » PHP Manual MongoDB\Driver\Exception\BulkWriteCommandException Returns any write errors 検索 MongoDB\Driver\Exception\Bul
... f the write operation from MongoDB\Driver\BulkWriteCommand . This map will contain at most one entry if the bulk write was ordered. 例 例1 MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors() example <?php $manager = new MongoDB\Driver\M ... anager ; $bulk = new MongoDB\Driver\BulkWriteCommand ([ 'ordered' => false ]); $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- Returns any write errors that occurred 8323
- « MongoDB\Driver\WriteResult::getWriteConcernError MongoDB\Driver\WriteResult::isAcknowledged » PHP Manual MongoDB\Driver\WriteResult Returns any write errors that occurred 検索 MongoDB\Driver\WriteResult::getWriteErrors (mongodb >=1.0.0) M
... 例2 MongoDB\Driver\WriteResult::getWriteErrors() with multiple errors <?php $manager = new MongoDB\Driver\Manager ; /* The "ordered" option may be used to allow bulk write operations to continue * executing after the first error is encountered. */ $bulk ... = new MongoDB\Driver\BulkWrite ([ 'ordered' => false ]); $bulk -> insert ([ '_id' => 1 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html
- Returns any write errors that occurred 8323
- « MongoDB\Driver\WriteResult::getWriteConcernError MongoDB\Driver\WriteResult::isAcknowledged » PHP Manual MongoDB\Driver\WriteResult Returns any write errors that occurred 検索 MongoDB\Driver\WriteResult::getWriteErrors (mongodb >=1.0.0) M
... 例2 MongoDB\Driver\WriteResult::getWriteErrors() with multiple errors <?php $manager = new MongoDB\Driver\Manager ; /* The "ordered" option may be used to allow bulk write operations to continue * executing after the first error is encountered. */ $bulk ... = new MongoDB\Driver\BulkWrite ([ 'ordered' => false ]); $bulk -> insert ([ '_id' => 1 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html