« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 61 for executeBulkWriteCommand (0.002 sec.)
Execute write operations using the bulkWrite command 10871
« 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 ... ) MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations using the bulkWrite command 説明 final public function MongoDB\Driver\Manager::executeBulkWrite ... ument in "coll_one" $bulk -> updateOne ( 'db.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" , $ ... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 3 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_du ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
Execute write operations using the bulkWrite command 10871
« 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 ... ) MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations using the bulkWrite command 説明 final public function MongoDB\Driver\Manager::executeBulkWrite ... ument in "coll_one" $bulk -> updateOne ( 'db.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" , $ ... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 3 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_du ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
Execute write operations on this server using the bulkWrite command 10770
« MongoDB\Driver\Server::executeBulkWrite MongoDB\Driver\Server::executeCommand » PHP Manual MongoDB\Driver\Server Execute write operations on this server using the bulkWrite command 検索 MongoDB\Driver\Server::executeBulkWriteCommand (mong ... odb >=2.1.0) MongoDB\Driver\Server::executeBulkWriteCommand — Execute write operations on this server using the bulkWrite command 説明 final public function MongoDB\Driver\Server::ex ... MongoDB\Driver\BulkWriteCommand MongoDB\Driver\BulkWriteCommandResult MongoDB\Driver\WriteConcern MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command 関連キーワード: MongoDB Driver write Throws Exception operations ... command Server server using bulkWrite BulkWriteCommand Execute executeBulkWriteCommand bulk session InvalidArgumentException options BulkWriteCommandResult operation ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executebulkwritecommand.htm...
Execute write operations on this server using the bulkWrite command 10770
« MongoDB\Driver\Server::executeBulkWrite MongoDB\Driver\Server::executeCommand » PHP Manual MongoDB\Driver\Server Execute write operations on this server using the bulkWrite command 検索 MongoDB\Driver\Server::executeBulkWriteCommand (mong ... odb >=2.1.0) MongoDB\Driver\Server::executeBulkWriteCommand — Execute write operations on this server using the bulkWrite command 説明 final public function MongoDB\Driver\Server::ex ... MongoDB\Driver\BulkWriteCommand MongoDB\Driver\BulkWriteCommandResult MongoDB\Driver\WriteConcern MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command 関連キーワード: MongoDB Driver write Throws Exception operations ... command Server server using bulkWrite BulkWriteCommand Execute executeBulkWriteCommand bulk session InvalidArgumentException options BulkWriteCommandResult operation option concern more writeConcern connection ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executebulkwritecommand.htm...
Returns the result of any successful write operations 10654
« MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors » PHP Manual MongoDB\Driver\Exception\BulkWriteCommandException Returns the result of any successf ... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_ ... er\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $manager -> executeBulkWriteCommand ( $bulk ); $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = ... $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_ ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
Returns the result of any successful write operations 10552
« MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors » PHP Manual MongoDB\Driver\Exception\BulkWriteCommandException Returns the result of any successf ... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_ ... er\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $manager -> executeBulkWriteCommand ( $bulk ); $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = ... $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); } var_ ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
The MongoDB\Driver\BulkWriteCommand class 9117
« 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 ... After adding any number of insert, update, and delete operations, the command may be executed via MongoDB\Driver\Manager::executeBulkWriteCommand() . Unlike MongoDB\Driver\BulkWrite , where all write operations must target the same collection, each write operation wit ... ument in "coll_one" $bulk -> updateOne ( 'db.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" , $ ... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 3 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { $result = $e -> getPartialResult (); var_du ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
Create a new BulkWriteCommand 9016
« MongoDB\Driver\BulkWriteCommand MongoDB\Driver\BulkWriteCommand::count » PHP Manual MongoDB\Driver\BulkWriteCommand Create a new BulkWriteCommand 検索 MongoDB\Driver\BulkWriteCommand::__construct (mongodb >=2.1.0) MongoDB\Driver\BulkWrite ... a single collection. After all write operations have been added, this object may be executed with MongoDB\Driver\Manager::executeBulkWriteCommand() . パラメータ options ( array ) options Option Type Description Default bypassDocumentValidation bool If true , allows in ... ument in "coll_one" $bulk -> updateOne ( 'db.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" , $ ... fiedCount ()); ?> 上の例の出力は以下となります。 Inserted 3 document(s) Updated 1 document(s) 参考 MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command MongoDB\Driver\BulkWriteCommandResult 関連キーワード: MongoDB Dri ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
Returns whether the write was acknowledged 8798
« MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount MongoDB\BSON » PHP Manual MongoDB\Driver\BulkWriteCommandResult Returns whether the write was acknowledged 検索 MongoDB\Driver\BulkWriteCommandResult::isAcknowledged (mongodb >=2.1.0 ... ager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $result = $manager -> executeBulkWriteCommand ( $bulk ); var_dump ( $result -> isAcknowledged ()); ?> 上の例の出力は以下となります。 bool(true) 例2 MongoDB\Driver\BulkW ... ulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $writeConcern = new MongoDB\Driver\WriteConcern ( 0 ); $result = $manager -> executeBulkWriteCommand ( $bulk , [ 'writeConcern' => $writeConcern ]); var_dump ( $result -> isAcknowledged ()); ?> 上の例の出力は以下となります。 ... Result write isAcknowledged acknowledged bulk manager whether writeConcern concern Manager BulkWriteCommand insertOne coll executeBulkWriteCommand dump WriteConcern getUpsertedCount mongodb final fields available otherwise Throws ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.isacknowled...
Returns any write concern errors 8682
« MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors » PHP Manual MongoDB\Driver\Exception\BulkWriteCommandException Returns any write concern errors 検索 ... insertOne ( 'db.coll' , [ 'x' => 1 ]); $writeConcern = new MongoDB\Driver\WriteConcern ( 50 ); try { $result = $manager -> executeBulkWriteCommand ( $bulk , [ 'writeConcern' => $writeConcern ]); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_du ... { ["w"]=> int(50) ["wtimeout"]=> int(0) ["provenance"]=> string(14) "clientSupplied" } } } } 参考 MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command MongoDB\Driver\WriteConcern MongoDB\Driver\WriteConcernError 関連 ... eption write getWriteConcernErrors bulk writeConcern concern errors WriteConcernError command manager Manager WriteConcern executeBulkWriteCommand stdClass getPartialResult getWriteErrors mongodb final occurred while executing list ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
PREV 1 2 3 4 5 6 7 NEXT