« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for getWriteResult (0.001 sec.)
MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the Write... 12905
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 MongoDB\Driver\W ... 戻り値 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\Driver\BulkWrite ; $b ... teBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { $writeResult = $e -> getWriteResult (); if ( $writeConcernError = $writeResult -> getWriteConcernError ()) { var_dump ( $writeConcernError ); } if ( $writeErr ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwriteexception.getwriteresult....
MongoDB\Driver\Exception\WriteException::getWriteResult — Returns the WriteResu... 12905
MongoDB\Driver\Exception\WriteException::getWriteResult (mongodb >= 1.0.0) MongoDB\Driver\Exception\WriteException::getWriteResult — Returns the WriteResult for the failed write operation 説明 final public function MongoDB\Driver\Exception\ ... WriteException::getWriteResult (): MongoDB\Driver\WriteResult Returns the MongoDB\Driver\WriteResult for the failed write operation. The MongoDB\Driver\W ... せん。 戻り値 The MongoDB\Driver\WriteResult for the failed write operation. 例 例1 MongoDB\Driver\Exception\WriteException::getWriteResult() example <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost' ); $bulk = new MongoDB\Driver\BulkWrite ; $b ... xecuteBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\WriteException $e ) { $writeResult = $e -> getWriteResult (); if ( $writeConcernError = $writeResult -> getWriteConcernError ()) { var_dump ( $writeConcernError ); } if ( $writeErr ...
https://man.mtool.work/php/8.3/mongodb-driver-writeexception.getwriteresult.html
The MongoDB\Driver\Exception\BulkWriteException class | PHP 8.3 9230
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 ... ted int $ line ; private array $ trace = [] ; private ? Throwable $ previous = null ; /* メソッド */ final public function getWriteResult (): MongoDB\Driver\WriteResult /* 継承したメソッド */ final public function MongoDB\Driver\Exception\RuntimeException::has ... ion\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...
The MongoDB\Driver\Exception\WriteException class | PHP 8.3 9021
The MongoDB\Driver\Exception\WriteException class (mongodb >= 1.0.0) 警告 This exception class is DEPRECATED as of extension version 1.20.0 and was removed in 2.0. This exception was never directly thrown by the extension. Applications shou ... ted int $ line ; private array $ trace = [] ; private ? Throwable $ previous = null ; /* メソッド */ final public function getWriteResult (): MongoDB\Driver\WriteResult /* 継承したメソッド */ final public function MongoDB\Driver\Exception\RuntimeException::has ... ption\ServerException instead of MongoDB\Driver\Exception\RuntimeException . 目次 MongoDB\Driver\Exception\WriteException::getWriteResult — Returns the WriteResult for the failed write operation 他のマニュアルの関連ページ Vim vim9class ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-writeexception.htm...
MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occu... 8568
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 パラメータ この ... xecuteBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [0]=> object(MongoDB\Driver\Write ... xecuteBulkWrite ( 'db.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(2) { [0]=> object(MongoDB\Driver\Write ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html
MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code | PHP ... 8133
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 パラメータ この関数にはパラメータはありません ... executeBulkWrite ( 'db.collection' , $bulk ); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getCode ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(11000) ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getcode.html
MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's err... 8011
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 パラメータ この関 ... $bulk , [ 'writeConcern' => $writeConcern ]); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getCode ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(64) 参考 » Write Conc ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getcode.html
MongoDB\Driver\WriteConcernError::getInfo — Returns metadata document for the W... 8011
MongoDB\Driver\WriteConcernError::getInfo (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getInfo — Returns metadata document for the WriteConcernError 説明 final public function MongoDB\Driver\WriteConcernError::getInfo (): ? object パ ... $bulk , [ 'writeConcern' => $writeConcern ]); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getInfo ()); } ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#1 (1) { ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getinfo.html
MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's ... 8011
MongoDB\Driver\WriteConcernError::getMessage (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's error message 説明 final public function MongoDB\Driver\WriteConcernError::getMessage (): string パ ... $bulk , [ 'writeConcern' => $writeConcern ]); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getMessage ()); } ?> 上の例の出力は、 たとえば以下のようになります。 string(33) "waiting fo ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getmessage.html
MongoDB\Driver\WriteError::getIndex — Returns the index of the write operation ... 8011
MongoDB\Driver\WriteError::getIndex (mongodb >=1.0.0) MongoDB\Driver\WriteError::getIndex — Returns the index of the write operation corresponding to this WriteError 説明 final public function MongoDB\Driver\WriteError::getIndex (): int パラ ... executeBulkWrite ( 'db.collection' , $bulk ); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getIndex ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(1) 参考 MongoDB\Drive ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getindex.html
PREV 1 2 NEXT