« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 30 for writeResult (0.001 sec.)
The MongoDB\Driver\WriteResult class | PHP 8.3 11697
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() . クラ ... ス概要 final class MongoDB\Driver\WriteResult { /* プロパティ */ public readonly ? int $ insertedCount ; public readonly ? int $ matchedCount ; public readonly ? int $ ... cuments from the server. 変更履歴 バージョン 説明 PECL mongodb 2.3.0 Added public readonly properties. 目次 MongoDB\Driver\WriteResult::getDeletedCount — Returns the number of documents deleted MongoDB\Driver\WriteResult::getInsertedCount — Returns the numb ... er of documents inserted (excluding upserts) MongoDB\Driver\WriteResult::getMatchedCount — Returns the number of documents selected for update MongoDB\Driver\WriteResult::getModifiedCount — Retu ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeresult.html
MongoDB\Driver\Exception\BulkWriteException::getWriteResult — Returns the Write... 11323
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 ... riteResult::getWriteErrors() and MongoDB\Driver\WriteResult::getWriteConcernError() methods may be used to get more details about the failure. パラメータ この関数にはパラメータはあり ... ません。 戻り値 The MongoDB\Driver\WriteResult for the failed write operation. 例 例1 MongoDB\Driver\Exception\BulkWriteException::getWriteResult() example <?php $manage ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwriteexception.getwriteresult....
MongoDB\Driver\Exception\WriteException::getWriteResult — Returns the WriteResu... 11323
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 ... riteResult::getWriteErrors() and MongoDB\Driver\WriteResult::getWriteConcernError() methods may be used to get more details about the failure. パラメータ この関数にはパラメータはあり ... ません。 戻り値 The MongoDB\Driver\WriteResult for the failed write operation. 例 例1 MongoDB\Driver\Exception\WriteException::getWriteResult() example <?php $manager = ...
https://man.mtool.work/php/8.3/mongodb-driver-writeexception.getwriteresult.html
The MongoDB\Driver\Exception\BulkWriteException class | PHP 8.3 9845
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 ... ents MongoDB\Driver\Exception\Exception { /* プロパティ */ public readonly MongoDB\Driver\WriteResult $ writeResult ; /* 継承したプロパティ */ protected ? array $ errorLabels ; protected string $ message = "" ; private strin ... int $ line ; private array $ trace = [] ; private ? Throwable $ previous = null ; /* メソッド */ final public function getWriteResult (): MongoDB\Driver\WriteResult /* 継承したメソッド */ final public function MongoDB\Driver\Exception\RuntimeException::has ... ring (): string public function Exception::__toString (): string private function Exception::__clone (): void } プロパティ writeResult The MongoDB\Driver\WriteResult associated with the failed write operation. 変更履歴 バージョン 説明 PECL mongodb 2.3.0 The ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-bulkwriteexception...
MongoDB\Driver\WriteResult::getModifiedCount — Returns the number of existing d... 9601
MongoDB\Driver\WriteResult::getModifiedCount (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getModifiedCount — Returns the number of existing documents updated 説明 final public function MongoDB\Driver\WriteResult::getModifiedCount (): int I ... tting the value of a field to its current value), the modified count may be less than the value returned by MongoDB\Driver\WriteResult::getMatchedCount() . パラメータ この関数にはパラメータはありません。 戻り値 Returns the number of existing documents updat ... s method now throws an exception when called for an unacknowledged write instead of returning null . 例 例1 MongoDB\Driver\WriteResult::getModifiedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> ... ction' , $bulk ); var_dump ( $result -> getModifiedCount ()); ?> 上の例の出力は以下となります。 int(1) 参考 MongoDB\Driver\WriteResult::getMatchedCount() - Returns the number of documents selected for update MongoDB\Driver\WriteResult::isAcknowledged() - Re ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getmodifiedcount.html
The MongoDB\Driver\Exception\WriteException class | PHP 8.3 9568
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 ... nstead. はじめに Base class for exceptions thrown by a failed write operation. The exception encapsulates a MongoDB\Driver\WriteResult object. クラス概要 abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\ServerException ... implements MongoDB\Driver\Exception\Exception { /* プロパティ */ protected MongoDB\Driver\WriteResult $ writeResult ; /* 継承したプロパティ */ protected ? array $ errorLabels ; protected string $ message = "" ; private strin ... int $ line ; private array $ trace = [] ; private ? Throwable $ previous = null ; /* メソッド */ final public function getWriteResult (): MongoDB\Driver\WriteResult /* 継承したメソッド */ final public function MongoDB\Driver\Exception\RuntimeException::has ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-writeexception.htm...
MongoDB\Driver\WriteResult::getMatchedCount — Returns the number of documents s... 9568
MongoDB\Driver\WriteResult::getMatchedCount (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getMatchedCount — Returns the number of documents selected for update 説明 final public function MongoDB\Driver\WriteResult::getMatchedCount (): int I ... ing the value of a field to its current value), the matched count may be greater than the value returned by MongoDB\Driver\WriteResult::getModifiedCount() . パラメータ この関数にはパラメータはありません。 戻り値 Returns the number of documents selected for ... s method now throws an exception when called for an unacknowledged write instead of returning null . 例 例1 MongoDB\Driver\WriteResult::getMatchedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> i ... ection' , $bulk ); var_dump ( $result -> getMatchedCount ()); ?> 上の例の出力は以下となります。 int(1) 参考 MongoDB\Driver\WriteResult::getModifiedCount() - Returns the number of existing documents updated MongoDB\Driver\WriteResult::isAcknowledged() - Retu ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getmatchedcount.html
MongoDB\Driver\WriteResult::isAcknowledged — Returns whether the write was ackn... 9325
MongoDB\Driver\WriteResult::isAcknowledged (mongodb >=1.0.0) MongoDB\Driver\WriteResult::isAcknowledged — Returns whether the write was acknowledged 説明 final public function MongoDB\Driver\WriteResult::isAcknowledged (): bool If the write ... is acknowledged, other count fields will be available on the MongoDB\Driver\WriteResult object. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the write was acknowledged, and false other ... . エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteResult::isAcknowledged() with acknowledged write concern <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver ... tion' , $bulk ); var_dump ( $result -> isAcknowledged ()); ?> 上の例の出力は以下となります。 bool(true) 例2 MongoDB\Driver\WriteResult::isAcknowledged() with unacknowledged write concern <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driv ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.isacknowledged.html
MongoDB\Driver\WriteResult::getUpsertedCount — Returns the number of documents ... 9244
MongoDB\Driver\WriteResult::getUpsertedCount (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getUpsertedCount — Returns the number of documents inserted by an upsert 説明 final public function MongoDB\Driver\WriteResult::getUpsertedCount (): ... s method now throws an exception when called for an unacknowledged write instead of returning null . 例 例1 MongoDB\Driver\WriteResult::getUpsertedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> ... ction' , $bulk ); var_dump ( $result -> getUpsertedCount ()); ?> 上の例の出力は以下となります。 int(2) 参考 MongoDB\Driver\WriteResult::getUpsertedIds() - Returns an array of identifiers for upserted documents MongoDB\Driver\WriteResult::isAcknowledged() - ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedcount.html
MongoDB\Driver\WriteResult::getUpsertedIds — Returns an array of identifiers fo... 9146
MongoDB\Driver\WriteResult::getUpsertedIds (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getUpsertedIds — Returns an array of identifiers for upserted documents 説明 final public function MongoDB\Driver\WriteResult::getUpsertedIds (): array ... . エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteResult::getUpsertedIds() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> in ... 80b" } [3]=> object(MongoDB\BSON\ObjectId)#5 (1) { ["oid"]=> string(24) "580e62a224f2302f191b880c" } } 参考 MongoDB\Driver\WriteResult::getUpsertedCount() - Returns the number of documents inserted by an upsert MongoDB\Driver\WriteResult::isAcknowledged() - ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedids.html
PREV 1 2 3 NEXT