« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 19 for BulkWriteException (0.002 sec.)
MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the Write... 14616
MongoDB\Driver\Exception\BulkWriteException::getWriteResult (mongodb >= 1.0.0) MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the WriteResult for the failed write operation 説明 final public function MongoDB\Driver\Ex ... ception\BulkWriteException::getWriteResult (): MongoDB\Driver\WriteResult Returns the MongoDB\Driver\WriteResult for the failed write operation. The ... ラメータはありません。 戻り値 The MongoDB\Driver\WriteResult for the failed write operation. 例 例1 MongoDB\Driver\Exception\BulkWriteException::getWriteResult() example <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost' ); $bulk = new MongoDB\Drive ... nsert ([ '_id' => 1 ]); try { $manager -> executeBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { $writeResult = $e -> getWriteResult (); if ( $writeConcernError = $writeResult -> getWriteConcernError ()) { var_du ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwriteexception.getwriteresult....
The MongoDB\Driver\Exception\BulkWriteException class | PHP 8.3 11338
The MongoDB\Driver\Exception\BulkWriteException class (mongodb >= 1.0.0) はじめに Thrown when a bulk write operation fails. クラス概要 class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\ServerException implem ... ongoDB\Driver\Exception\ServerException instead of MongoDB\Driver\Exception\WriteException . 目次 MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the WriteResult for the failed write operation 他のマニュアルの関連ページ Vim vim9class ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-bulkwriteexception...
MongoDB\Driver\Server::executeBulkWrite — Execute one or more write operations ... 8947
MongoDB\Driver\Server::executeBulkWrite (mongodb >=1.0.0) MongoDB\Driver\Server::executeBulkWrite — Execute one or more write operations on this server 説明 final public function MongoDB\Driver\Server::executeBulkWrite ( string $namespace , ... ws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails. Throws MongoDB\Driver\Exception\BulkWriteException on any write failure (e.g. write error, failure to apply a write concern) Throws MongoDB\Driver\Exception\RuntimeException ... validArgumentException is now thrown if bulk does not contain any write operations. Previously, a MongoDB\Driver\Exception\BulkWriteException was thrown. 注意 注意 : It is the caller's responsibility to ensure that the server is capable of executing the write oper ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executebulkwrite.html
MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occu... 8810
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 パラメータ この ... _id' => 4 ]); try { $result = $manager -> executeBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array ... _id' => 4 ]); try { $result = $manager -> executeBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html
Exception classes | PHP 8.3 8657
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 Exception Class Tree | PHP 8.3 8349
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 ... B\Driver\Exception\ExecutionTimeoutException MongoDB\Driver\Exception\WriteException (deprecated) MongoDB\Driver\Exception\BulkWriteException 他のマニュアルの関連ページ Python exceptions Linux JM makemap(8) ...
https://man.mtool.work/php/8.3/mongodb.exceptions.tree.html
MongoDB\Driver\Manager::executeBulkWrite — Execute one or more write operations... 8213
MongoDB\Driver\Manager::executeBulkWrite (mongodb >=1.0.0) MongoDB\Driver\Manager::executeBulkWrite — Execute one or more write operations 説明 final public function MongoDB\Driver\Manager::executeBulkWrite ( string $namespace , MongoDB\Dri ... ws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails. Throws MongoDB\Driver\Exception\BulkWriteException on any write failure (e.g. write error, failure to apply a write concern) Throws MongoDB\Driver\Exception\RuntimeException ... validArgumentException is now thrown if bulk does not contain any write operations. Previously, a MongoDB\Driver\Exception\BulkWriteException was thrown. 例 例1 MongoDB\Driver\Manager::executeBulkWrite() example <?php $bulk = new MongoDB\Driver\BulkWrite (); $bulk ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code | PHP ... 8213
MongoDB\Driver\WriteError::getCode (mongodb >=1.0.0) MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code 説明 final public function MongoDB\Driver\WriteError::getCode (): int パラメータ この関数にはパラメータはありません ... insert ([ '_id' => 1 ]); try { $manager -> executeBulkWrite ( 'db.collection' , $bulk ); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getCode ()); } ?> 上の例の出力は、 たとえば以下のよう ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getcode.html
MongoDB Extension | PHP 8.3 8059
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 ... er\Exception\AuthenticationException — The MongoDB\Driver\Exception\AuthenticationException class MongoDB\Driver\Exception\BulkWriteException — The MongoDB\Driver\Exception\BulkWriteException class MongoDB\Driver\Exception\BulkWriteCommandException — The MongoDB\D ...
https://man.mtool.work/php/8.3/book.mongodb.html
MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's err... 8059
MongoDB\Driver\WriteConcernError::getCode (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's error code 説明 final public function MongoDB\Driver\WriteConcernError::getCode (): int パラメータ この関 ... er -> executeBulkWrite ( 'db.collection' , $bulk , [ 'writeConcern' => $writeConcern ]); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getCode ()); } ?> 上の例の出力は、 たとえば以下のよう ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getcode.html
PREV 1 2 NEXT