« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 67 for Inserted (0.002 sec.)
Returns the number of documents inserted 9972
« MongoDB\Driver\BulkWriteCommandResult::getDeleteResults MongoDB\Driver\BulkWriteCommandResult::getInsertResults » PHP Manual MongoDB\Driver\BulkWriteCommandResult Returns the number of documents inserted 検索 MongoDB\Driver\BulkWriteComma ... ndResult::getInsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of documents inserted ... 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getInsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the total number of documents inserted (exclud ... ongoDB\Driver\Exception\LogicException if the write was not acknowledged. 例 例1 MongoDB\Driver\BulkWriteCommandResult::getInsertedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insert ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
Returns the number of documents inserted (excluding upserts) 9972
« MongoDB\Driver\WriteResult::getDeletedCount MongoDB\Driver\WriteResult::getMatchedCount » PHP Manual MongoDB\Driver\WriteResult Returns the number of documents inserted (excluding upserts) 検索 MongoDB\Driver\WriteResult::getInsertedCount ... (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getInsertedCount — Returns the number of documents inserted (excluding upserts) 説明 final public function MongoDB\Driver\WriteResult: ... :getInsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the number of documents inserted (excluding up ... ows an exception when called for an unacknowledged write instead of returning null . 例 例1 MongoDB\Driver\WriteResult::getInsertedCount() 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.getinsertedcount.html
Returns the number of documents inserted by an upsert 9972
« MongoDB\Driver\WriteResult::getServer MongoDB\Driver\WriteResult::getUpsertedIds » PHP Manual MongoDB\Driver\WriteResult Returns the number of documents inserted by an upsert 検索 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 (): int パラメータ この関数にはパラメ ... ータはありません。 戻り値 Returns the number of documents inserted by an upsert. エラー / 例外 Throws MongoDB\Driver\Exception\LogicException if the write was not acknowledged. Throws Mongo ... he write was acknowledged 関連キーワード: MongoDB Driver WriteResult bulk Returns upsert documents getUpsertedCount number inserted write update set getUpsertedIds mongodb int パラメータ Throws Exception acknowledged ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedcount.html
Returns the number of documents inserted 9972
« MongoDB\Driver\BulkWriteCommandResult::getDeleteResults MongoDB\Driver\BulkWriteCommandResult::getInsertResults » PHP Manual MongoDB\Driver\BulkWriteCommandResult Returns the number of documents inserted 検索 MongoDB\Driver\BulkWriteComma ... ndResult::getInsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of documents inserted ... 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getInsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the total number of documents inserted (exclud ... ongoDB\Driver\Exception\LogicException if the write was not acknowledged. 例 例1 MongoDB\Driver\BulkWriteCommandResult::getInsertedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insert ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
Returns the number of documents inserted (excluding upserts) 9972
« MongoDB\Driver\WriteResult::getDeletedCount MongoDB\Driver\WriteResult::getMatchedCount » PHP Manual MongoDB\Driver\WriteResult Returns the number of documents inserted (excluding upserts) 検索 MongoDB\Driver\WriteResult::getInsertedCount ... (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getInsertedCount — Returns the number of documents inserted (excluding upserts) 説明 final public function MongoDB\Driver\WriteResult: ... :getInsertedCount (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the number of documents inserted (excluding up ... ows an exception when called for an unacknowledged write instead of returning null . 例 例1 MongoDB\Driver\WriteResult::getInsertedCount() 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.getinsertedcount.html
Returns the number of documents inserted by an upsert 9972
« MongoDB\Driver\WriteResult::getServer MongoDB\Driver\WriteResult::getUpsertedIds » PHP Manual MongoDB\Driver\WriteResult Returns the number of documents inserted by an upsert 検索 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 (): int パラメータ この関数にはパラメ ... ータはありません。 戻り値 Returns the number of documents inserted by an upsert. エラー / 例外 Throws MongoDB\Driver\Exception\LogicException if the write was not acknowledged. Throws Mongo ... hether the write was acknowledged 関連キーワード: MongoDB Driver WriteResult bulk upsert documents getUpsertedCount number inserted write update getUpsertedIds mongodb Throws Exception acknowledged manager getServer final LogicException InvalidArgumentEx ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getupsertedcount.html
Execute write operations using the bulkWrite command 9275
« MongoDB\Driver\Manager::executeBulkWrite MongoDB\Driver\Manager::executeCommand » PHP Manual MongoDB\Driver\Manager Execute write operations using the bulkWrite command 検索 MongoDB\Driver\Manager::executeBulkWriteCommand (mongodb >=2.1.0 ... coll_one' , [ '_id' => 1 ], [ '$set' => [ 'x' => 1 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); printf ( "Inserted %d document(s)\n" , $result -> getInsertedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()) ... ; ?> 上の例の出力は以下となります。 Inserted 3 document(s) Updated 1 document(s) 例2 Ordered write operations causing an error <?php $manager = new MongoDB\Driver\Mana ... ion\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_dump ( $e -> getWriteErrors ()); } printf ( "Inserted %d document(s)\n" , $result -> getInsertedCount ()); ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [3]=> o ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
The MongoDB\Driver\BulkWriteCommand class 9161
« MongoDB\Driver\BulkWrite::update MongoDB\Driver\BulkWriteCommand::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWriteCommand class 検索 The MongoDB\Driver\BulkWriteCommand class (mongodb >=2.1.0) はじめに MongoDB\Driver\B ... coll_one' , [ '_id' => 1 ], [ '$set' => [ 'x' => 1 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); printf ( "Inserted %d document(s)\n" , $result -> getInsertedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()) ... ; ?> 上の例の出力は以下となります。 Inserted 3 document(s) Updated 1 document(s) 例2 Ordered write operations causing an error <?php $manager = new MongoDB\Driver\Mana ... ion\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_dump ( $e -> getWriteErrors ()); } printf ( "Inserted %d document(s)\n" , $result -> getInsertedCount ()); ?> 上の例の出力は、 たとえば以下のようになります。 array(1) { [3]=> o ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
The MongoDB\Driver\WriteResult class 9047
« 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 ... Manager::executeBulkWrite() . クラス概要 final class MongoDB\Driver\WriteResult { /* プロパティ */ public readonly ? int $ insertedCount ; public readonly ? int $ matchedCount ; public readonly ? int $ modifiedCount ; public readonly ? int $ deletedCount ... blic readonly array $ errorReplies ; /* メソッド */ final public function getDeletedCount (): int final public function getInsertedCount (): int final public function getMatchedCount (): int final public function getModifiedCount (): int final public fun ... riteConcernError final public function getWriteErrors (): array final public function isAcknowledged (): bool } プロパティ insertedCount The number of documents inserted (excluding upserts), or null if the write concern did not request acknowledgement. m ...
https://man.mtool.work/php/8.3/class.mongodb-driver-writeresult.html
The MongoDB\Driver\BulkWrite class 8934
« MongoDB\Driver\Query::__construct MongoDB\Driver\BulkWrite::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\BulkWrite class 検索 The MongoDB\Driver\BulkWrite class (mongodb >=1.0.0) はじめに The MongoDB\Driver\BulkWrite collect ... } catch ( MongoDB\Driver\Exception\Exception $e ) { printf ( "Other error: %s\n" , $e -> getMessage ()); exit; } printf ( "Inserted %d document(s)\n" , $result -> getInsertedCount ()); printf ( "Updated %d document(s)\n" , $result -> getModifiedCount ()) ... 上の例の出力は以下となります。 Operation#7: E11000 duplicate key error index: db.collection.$_id_ dup key: { : 3 } (11000) Inserted 4 document(s) Updated 2 document(s) If the write concern could not be fulfilled, the example above would output something ... eout' => true, ) Operation#7: E11000 duplicate key error index: databaseName.collectionName.$_id_ dup key: { : 3 } (11000) Inserted 4 document(s) Updated 2 document(s) If we execute the example above, but allow for unordered writes: <?php $bulk = new Mon ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwrite.html
PREV 1 2 3 4 5 6 7 NEXT