« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for BulkWriteCommandException (0.002 sec.)
The MongoDB\Driver\Exception\BulkWriteCommandException class | PHP 8.3 11249
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 ... d, including the error reply and partial results from the bulk write. クラス概要 class MongoDB\Driver\Exception\BulkWriteCommandException extends MongoDB\Driver\Exception\ServerException implements MongoDB\Driver\Exception\Exception { /* プロパティ */ private ... er\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\Driver\Exception\BulkWriteCommandException::getPartialResult ... — Returns the result of any successful write operations MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Returns any write concern errors MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErro ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-bulkwritecommandex...
MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Ret... 11161
MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Returns any write concern errors 説明 final public function MongoDB\Driv ... er\Exception\BulkWriteCommandException::getWriteConcernErrors (): array パラメータ この関数にはパラメータはありません。 戻り値 An array of any MongoDB\Driver\Wri ... ave multiple items if more than one server command was required to execute the bulk write. 例 例1 MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ... t = $manager -> executeBulkWriteCommand ( $bulk , [ 'writeConcern' => $writeConcern ]); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_dump ( $e -> getWriteConcernErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [0]=> o ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns ... 10807
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 ... ongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult (): ? MongoDB\Driver\BulkWriteCommandResult パラメータ この関数にはパラメータはありません。 戻り値 Retur ... coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_dump ( $result ?-> getInsertedCount ()); ?> 上の例の出力は以下となります ... coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_dump ( $result ?-> getInsertedCount ()); ?> 上の例の出力は以下となります ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns an... 10807
MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns any write errors 説明 final public function MongoDB\Driver\Exception\BulkWriteCommandException ... \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\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ([ 'or ... coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_dump ( $e -> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(2) { [2]=> object(M ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply — Returns any... 10471
MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply — Returns any top-level command error 説明 final public function MongoDB\Driver\Exception\ ... alue may be null if the exception was thrown due to errors occurring on individual writes. 例 例1 MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply() example <?php $manager = new MongoDB\Driver\Manager ; // This example uses configureFailPoint to simulate ... b.coll' , [ 'x' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_dump ( $e -> getErrorReply ()?-> toPHP ()); } ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClas ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.geterror...
Exception classes | PHP 8.3 7694
Exception classes 目次 MongoDB\Driver\Exception\AuthenticationException MongoDB\Driver\Exception\BulkWriteException MongoDB\Driver\Exception\BulkWriteCommandException MongoDB\Driver\Exception\CommandException MongoDB\Driver\Exception\Connec ...
https://man.mtool.work/php/8.3/mongodb.exceptions.html
MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 7605
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 ... ws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails. Throws MongoDB\Driver\Exception\BulkWriteCommandException on any write failure (e.g. command failure, write or write concern error) Throws MongoDB\Driver\Exception\RuntimeException ... coll' , [ '_id' => 3 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_dump ( $e -> getWriteErrors ()); } printf ( "Inserted %d document(s)\n" , ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 7517
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 ... coll' , [ '_id' => 3 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_dump ( $e -> getWriteErrors ()); } printf ( "Inserted %d document(s)\n" , ... t(s) 参考 MongoDB\Driver\Manager::executeBulkWriteCommand() MongoDB\Driver\BulkWriteCommandResult MongoDB\Driver\Exception\BulkWriteCommandException MongoDB\Driver\WriteConcern MongoDB\Driver\WriteConcernError MongoDB\Driver\WriteError 目次 MongoDB\Driver\BulkWriteComman ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
MongoDB Exception Class Tree | PHP 8.3 7517
MongoDB Exception Class Tree The class hierarchy for MongoDB exceptions is modeled after that of the SPL Exceptions . Base classes extend their SPL counterpart and all exception classes in the extension implement the MongoDB\Driver\Exceptio ... deprecated) MongoDB\Driver\Exception\EncryptionException MongoDB\Driver\Exception\ServerException MongoDB\Driver\Exception\BulkWriteCommandException MongoDB\Driver\Exception\CommandException MongoDB\Driver\Exception\ExecutionTimeoutException MongoDB\Driver\Exception\Writ ...
https://man.mtool.work/php/8.3/mongodb.exceptions.tree.html
MongoDB Extension | PHP 8.3 7358
MongoDB Extension This extension is developed atop the » libmongoc and » libbson libraries. It provides a minimal API for core driver functionality: commands , queries , writes , connection management , and BSON serialization . Userland PHP ... ngoDB\Driver\Exception\BulkWriteException — The MongoDB\Driver\Exception\BulkWriteException class MongoDB\Driver\Exception\BulkWriteCommandException — The MongoDB\Driver\Exception\BulkWriteCommandException class MongoDB\Driver\Exception\CommandException — The MongoDB\Dri ...
https://man.mtool.work/php/8.3/book.mongodb.html
PREV 1 2 NEXT