« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for getWriteErrors (0.001 sec.)
MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occu... 13360
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 パラメータ この ... 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteResult::getWriteErrors() with a single error <?php $manager = new MongoDB\Driver\Manager ; /* By default, bulk write operations are executed seri ... b.collection' , $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [0]=> object(MongoDB\Driver\WriteError)#5 (4) { ["mes ... index: _id_ dup key: { : 2 }" ["code"]=> int(11000) ["index"]=> int(2) ["info"]=> NULL } } 例2 MongoDB\Driver\WriteResult::getWriteErrors() with multiple errors <?php $manager = new MongoDB\Driver\Manager ; /* The "ordered" option may be used to allow bulk wri ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html
MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns an... 12476
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 ... CommandException::getWriteErrors (): array パラメータ この関数にはパラメータはありません。 戻り値 An array of any MongoDB\Driver\WriteError s that occurred ... p 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 ([ 'ordered' => false ... -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_dump ( $e -> getWriteErrors ()); } ?> 上の例の出力は、 たとえば以下のようになります。 array(2) { [2]=> object(MongoDB\Driver\WriteError)#5 (4) { ["mes ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the Write... 9166
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 ... \Driver\WriteResult Returns the MongoDB\Driver\WriteResult for the failed write operation. The MongoDB\Driver\WriteResult::getWriteErrors() and MongoDB\Driver\WriteResult::getWriteConcernError() methods may be used to get more details about the failure. パラメ ... nError = $writeResult -> getWriteConcernError ()) { var_dump ( $writeConcernError ); } if ( $writeErrors = $writeResult -> getWriteErrors ()) { var_dump ( $writeErrors ); } } ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [0]=> object(MongoDB\Dr ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwriteexception.getwriteresult....
MongoDB\Driver\Exception\WriteException::getWriteResult — Returns the WriteResu... 9166
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\ ... \Driver\WriteResult Returns the MongoDB\Driver\WriteResult for the failed write operation. The MongoDB\Driver\WriteResult::getWriteErrors() and MongoDB\Driver\WriteResult::getWriteConcernError() methods may be used to get more details about the failure. パラメ ... nError = $writeResult -> getWriteConcernError ()) { var_dump ( $writeConcernError ); } if ( $writeErrors = $writeResult -> getWriteErrors ()) { var_dump ( $writeErrors ); } } ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [0]=> object(MongoDB\Dr ...
https://man.mtool.work/php/8.3/mongodb-driver-writeexception.getwriteresult.html
The MongoDB\Driver\Exception\BulkWriteCommandException class | PHP 8.3 8820
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 ... lt (): ? MongoDB\Driver\BulkWriteCommandResult final public function getWriteConcernErrors (): array final public function getWriteErrors (): array /* 継承したメソッド */ final public function MongoDB\Driver\Exception\RuntimeException::hasErrorLabel ( string $ ... andException::getWriteConcernErrors — Returns any write concern errors MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns any write errors ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-bulkwritecommandex...
The MongoDB\Driver\WriteResult class | PHP 8.3 8716
The MongoDB\Driver\WriteResult class (mongodb >=1.0.0) はじめに The MongoDB\Driver\WriteResult class encapsulates information about an executed MongoDB\Driver\BulkWrite and may be returned by MongoDB\Driver\Manager::executeBulkWrite() . クラ ... ertedIds (): array final public function getWriteConcernError (): ? MongoDB\Driver\WriteConcernError final public function getWriteErrors (): array final public function isAcknowledged (): bool } プロパティ insertedCount The number of documents inserted (exclu ... ngoDB\Driver\WriteResult::getWriteConcernError — Returns any write concern error that occurred MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occurred MongoDB\Driver\WriteResult::isAcknowledged — Returns whether the write was acknow ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeresult.html
MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code | PHP ... 8161
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 パラメータ この関数にはパラメータはありません ... 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
The MongoDB\Driver\WriteError class | PHP 8.3 8057
The MongoDB\Driver\WriteError class (mongodb >=1.0.0) はじめに The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors() . クラ ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeerror.html
MongoDB\Driver\WriteError::getIndex — Returns the index of the write operation ... 8057
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 パラ ... db.collection' , $bulk ); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getIndex ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(1) 参考 MongoDB\Driver\BulkWrite 他のマニ ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getindex.html
MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message ... 8057
MongoDB\Driver\WriteError::getMessage (mongodb >=1.0.0) MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message 説明 final public function MongoDB\Driver\WriteError::getMessage (): string パラメータ この関数にはパラメ ... db.collection' , $bulk ); } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getMessage ()); } ?> 上の例の出力は、 たとえば以下のようになります。 string(70) "E11000 duplicate key error inde ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getmessage.html
PREV 1 2 NEXT