« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for upsertedId (0.001 sec.)
MongoDB\Driver\Manager::executeBulkWrite — Execute one or more write operations... 11228
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 ... ult -> 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 f ... になります。 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) "54d3adc3ce7a792f4d703756" } upsertedId[4]: int(3) 参考 Mon ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
MongoDB\Driver\BulkWriteCommandResult::getUpdateResults — Returns verbose resul... 7485
MongoDB\Driver\BulkWriteCommandResult::getUpdateResults (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpdateResults — Returns verbose results for successful updates 説明 final public function MongoDB\Driver\BulkWriteCommandRes ... (1) { ["integer"]=> string(1) "1" } ["modifiedCount"]=> object(MongoDB\BSON\Int64)#9 (1) { ["integer"]=> string(1) "0" } ["upsertedId"]=> object(MongoDB\BSON\ObjectId)#10 (1) { ["oid"]=> string(24) "67f7eb9b1f198bbcb880d575" } } ["3"]=> object(stdClass)#15 ... 1) { ["integer"]=> string(1) "1" } ["modifiedCount"]=> object(MongoDB\BSON\Int64)#13 (1) { ["integer"]=> string(1) "0" } ["upsertedId"]=> object(MongoDB\BSON\ObjectId)#14 (1) { ["oid"]=> string(24) "67f7eb9b1f198bbcb880d576" } } } 参考 MongoDB\Driver\BulkW ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupdatere...
PREV 1 NEXT