Results of 1 - 10 of about 12 for ordered (0.003 sec.)
- The MongoDB\Driver\BulkWrite class | PHP 8.3 13831
- The MongoDB\Driver\BulkWrite class (mongodb >=1.0.0) はじめに The MongoDB\Driver\BulkWrite collects one or more write operations that should be sent to the server. After adding any number of insert, update, and delete operations, the collec
... tion 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
- MongoDB\Driver\BulkWrite::__construct — Create a new BulkWrite | PHP 8.3 9975
- MongoDB\Driver\BulkWrite::__construct (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::__construct — Create a new BulkWrite 説明 public function MongoDB\Driver\BulkWrite::__construct ( ? array $options = null ) Constructs a new MongoDB\Driver\Bu
... 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 | PHP 8.3 9816
- 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
... 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
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns an... 9516
- 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
... 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...
- MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occu... 9056
- MongoDB\Driver\WriteResult::getWriteErrors (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occurred 説明 final public function MongoDB\Driver\WriteResult::getWriteErrors (): array パラメータ この
... 例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
- MongoDB\Driver\BulkWriteCommandResult::isAcknowledged — Returns whether the wri... 8136
- MongoDB\Driver\BulkWriteCommandResult::isAcknowledged (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::isAcknowledged — Returns whether the write was acknowledged 説明 final public function MongoDB\Driver\BulkWriteCommandResult::isA
... unacknowledged write concern <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ([ 'ordered' => false ]); $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $writeConcern = new MongoDB\Driver\WriteConcern ( 0 ); $resu ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.isacknowled...
- The MongoDB\Driver\Exception\BulkWriteCommandException class | PHP 8.3 7818
- The MongoDB\Driver\Exception\BulkWriteCommandException class (mongodb >=2.1.0) はじめに Exception thrown due to failed execution of a MongoDB\Driver\BulkWriteCommand . The methods of this class provide more details of the error that occurre
... f the write operation from MongoDB\Driver\BulkWriteCommand . This map will contain at most one entry if the bulk write was ordered. 目次 MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply — Returns any top-level command error MongoDB\Driv ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-bulkwritecommandex...
- MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 7818
- 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
... 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 Whether the operations in this bulk write should be executed in the order in which they were specified. If false , wr ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
- MongoDB\Driver\Manager::startSession — Start a new client session for use with ... 7818
- MongoDB\Driver\Manager::startSession (mongodb >=1.4.0) MongoDB\Driver\Manager::startSession — Start a new client session for use with this client 説明 final public function MongoDB\Driver\Manager::startSession ( ? array $options = null ): M
... causalConsistency bool Configure causal consistency in a session. If true , each operation in the session will be causally ordered after the previous read or write operation. Set to false to disable causal consistency. See » Causal Consistency in the Mo ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.startsession.html
- QuickHashStringIntHash::loadFromFile — This factory method creates a hash from ... 7676
- QuickHashStringIntHash::loadFromFile (No version information available, might only be in Git) QuickHashStringIntHash::loadFromFile — This factory method creates a hash from a file 説明 public static function QuickHashStringIntHash::loadFrom
... gned 32 bit integer containing the number of bucket lists. After the header and the strings, the elements follow. They are ordered by bucket list so that the keys don't have to be hashed in order to restore the hash. For each bucket list, the following ...
-
https://man.mtool.work/php/8.3/quickhashstringinthash.loadfromfile.html