« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for upserted (0.002 sec.)
Returns the number of documents upserted 11397
« MongoDB\Driver\BulkWriteCommandResult::getUpdateResults MongoDB\Driver\BulkWriteCommandResult::isAcknowledged » PHP Manual MongoDB\Driver\BulkWriteCommandResult Returns the number of documents upserted 検索 MongoDB\Driver\BulkWriteCommand ... Result::getUpsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of documents upserted ... 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the total number of documents upserted by all ... ongoDB\Driver\Exception\LogicException if the write was not acknowledged. 例 例1 MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insert ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupserted...
Returns the number of documents upserted 11397
« MongoDB\Driver\BulkWriteCommandResult::getUpdateResults MongoDB\Driver\BulkWriteCommandResult::isAcknowledged » PHP Manual MongoDB\Driver\BulkWriteCommandResult Returns the number of documents upserted 検索 MongoDB\Driver\BulkWriteCommand ... Result::getUpsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of documents upserted ... 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the total number of documents upserted by all ... ongoDB\Driver\Exception\LogicException if the write was not acknowledged. 例 例1 MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insert ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupserted...
Returns an array of identifiers for upserted documents 11156
« MongoDB\Driver\WriteResult::getUpsertedCount MongoDB\Driver\WriteResult::getWriteConcernError » PHP Manual MongoDB\Driver\WriteResult Returns an array of identifiers for upserted documents 検索 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::getUpse ... array パラメータ この関数にはパラメータはありません。 戻り値 Returns an array of identifiers (i.e. "_id" field values) for upserted documents. The array keys will correspond to the index of the write operation (from MongoDB\Driver\BulkWrite ) responsible ... 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 -> insert ([ 'x' = ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedids.html
Returns an array of identifiers for upserted documents 11156
« MongoDB\Driver\WriteResult::getUpsertedCount MongoDB\Driver\WriteResult::getWriteConcernError » PHP Manual MongoDB\Driver\WriteResult Returns an array of identifiers for upserted documents 検索 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::getUpse ... array パラメータ この関数にはパラメータはありません。 戻り値 Returns an array of identifiers (i.e. "_id" field values) for upserted documents. The array keys will correspond to the index of the write operation (from MongoDB\Driver\BulkWrite ) responsible ... 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 -> insert ([ 'x' = ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedids.html
The MongoDB\Driver\WriteResult class 10431
« MongoDB\Driver\WriteError::getMessage MongoDB\Driver\WriteResult::getDeletedCount » PHP Manual MongoDB\Driver The MongoDB\Driver\WriteResult class 検索 The MongoDB\Driver\WriteResult class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Wri ... nt $ matchedCount ; public readonly ? int $ modifiedCount ; public readonly ? int $ deletedCount ; public readonly ? int $ upsertedCount ; public readonly MongoDB\Driver\Server $ server ; public readonly array $ upsertedIds ; public readonly array $ writ ... ublic function getModifiedCount (): int final public function getServer (): MongoDB\Driver\Server final public function getUpsertedCount (): int final public function getUpsertedIds (): array final public function getWriteConcernError (): ? MongoDB\Drive ... s information. deletedCount The number of documents deleted, or null if the write concern did not request acknowledgement. upsertedCount The number of documents upserted, or null if the write concern did not request acknowledgement. server The server tha ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeresult.html
The MongoDB\Driver\WriteResult class 9328
« MongoDB\Driver\WriteError::getMessage MongoDB\Driver\WriteResult::getDeletedCount » PHP Manual MongoDB\Driver The MongoDB\Driver\WriteResult class 検索 The MongoDB\Driver\WriteResult class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Wri ... nt $ matchedCount ; public readonly ? int $ modifiedCount ; public readonly ? int $ deletedCount ; public readonly ? int $ upsertedCount ; public readonly MongoDB\Driver\Server $ server ; public readonly array $ upsertedIds ; public readonly array $ writ ... ublic function getModifiedCount (): int final public function getServer (): MongoDB\Driver\Server final public function getUpsertedCount (): int final public function getUpsertedIds (): array final public function getWriteConcernError (): ? MongoDB\Drive ... s information. deletedCount The number of documents deleted, or null if the write concern did not request acknowledgement. upsertedCount The number of documents upserted, or null if the write concern did not request acknowledgement. server The server tha ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeresult.html
Create a new BulkWrite 7966
« MongoDB\Driver\BulkWrite MongoDB\Driver\BulkWrite::count » PHP Manual MongoDB\Driver\BulkWrite Create a new BulkWrite 検索 MongoDB\Driver\BulkWrite::__construct (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::__construct — Create a new BulkWr ... (s)\n" , $result -> getInsertedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()); printf ( "Upserted %d document(s)\n" , $result -> getUpsertedCount ()); printf ( "Deleted %d document(s)\n" , $result -> getDeletedCount ()); ... ?> 上の例の出力は以下となります。 Inserted 2 document(s) Updated 1 document(s) Upserted 1 document(s) Deleted 1 document(s) 参考 MongoDB\Driver\Manager::executeBulkWrite() - Execute one or more write operations ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.construct.html
Create a new BulkWrite 7966
« MongoDB\Driver\BulkWrite MongoDB\Driver\BulkWrite::count » PHP Manual MongoDB\Driver\BulkWrite Create a new BulkWrite 検索 MongoDB\Driver\BulkWrite::__construct (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::__construct — Create a new BulkWr ... (s)\n" , $result -> getInsertedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()); printf ( "Upserted %d document(s)\n" , $result -> getUpsertedCount ()); printf ( "Deleted %d document(s)\n" , $result -> getDeletedCount ()); ... ?> 上の例の出力は以下となります。 Inserted 2 document(s) Updated 1 document(s) Upserted 1 document(s) Deleted 1 document(s) 参考 MongoDB\Driver\Manager::executeBulkWrite() - Execute one or more write operations ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.construct.html
Execute one or more write operations 7724
« MongoDB\Driver\Manager::createClientEncryption MongoDB\Driver\Manager::executeBulkWriteCommand » PHP Manual MongoDB\Driver\Manager Execute one or more write operations 検索 MongoDB\Driver\Manager::executeBulkWrite (mongodb >=1.0.0) MongoD ... t(s)\n" , $result -> getMatchedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()); printf ( "Upserted %d document(s)\n" , $result -> getUpsertedCount ()); printf ( "Deleted %d document(s)\n" , $result -> getDeletedCount ()); ... foreach ( $result -> getUpsertedIds () as $index => $id ) { printf ( 'upsertedId[%d]: ' , $index ); var_dump ( $id ); } /* If the WriteConcern could not be ... ); } ?> 上の例の出力は、 たとえば以下のようになります。 Inserted 3 document(s) Matched 1 document(s) Updated 1 document(s) Upserted 2 document(s) Deleted 1 document(s) upsertedId[3]: object(MongoDB\BSON\ObjectId)#5 (1) { ["oid"]=> string(24) "54d3adc3ce7 ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
Execute one or more write operations 7724
« MongoDB\Driver\Manager::createClientEncryption MongoDB\Driver\Manager::executeBulkWriteCommand » PHP Manual MongoDB\Driver\Manager Execute one or more write operations 検索 MongoDB\Driver\Manager::executeBulkWrite (mongodb >=1.0.0) MongoD ... t(s)\n" , $result -> getMatchedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()); printf ( "Upserted %d document(s)\n" , $result -> getUpsertedCount ()); printf ( "Deleted %d document(s)\n" , $result -> getDeletedCount ()); ... foreach ( $result -> getUpsertedIds () as $index => $id ) { printf ( 'upsertedId[%d]: ' , $index ); var_dump ( $id ); } /* If the WriteConcern could not be ... ); } ?> 上の例の出力は、 たとえば以下のようになります。 Inserted 3 document(s) Matched 1 document(s) Updated 1 document(s) Upserted 2 document(s) Deleted 1 document(s) upsertedId[3]: object(MongoDB\BSON\ObjectId)#5 (1) { ["oid"]=> string(24) "54d3adc3ce7 ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
PREV 1 2 NEXT