Results of 1 - 10 of about 26 for executeBulkWriteCommand (0.003 sec.)
- MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 12447
- 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::executeBulkWriteCommand
... 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 ... 考 MongoDB\Driver\BulkWriteCommand MongoDB\Driver\BulkWriteCommandResult MongoDB\Driver\WriteConcern MongoDB\Driver\Server::executeBulkWriteCommand() - Execute write operations on this server using the bulkWrite command 他のマニュアルの関連ページ Django 5.2.10 Django 1. ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
- MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns ... 11952
- MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns the result of any successful write operations 説明 final public function M
... -> 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...
- MongoDB\Driver\Server::executeBulkWriteCommand — Execute write operations on th... 11952
- MongoDB\Driver\Server::executeBulkWriteCommand (mongodb >=2.1.0) MongoDB\Driver\Server::executeBulkWriteCommand — Execute write operations on this server using the bulkWrite command 説明 final public function MongoDB\Driver\Server::executeBulkWriteCommand
... MongoDB\Driver\BulkWriteCommand MongoDB\Driver\BulkWriteCommandResult MongoDB\Driver\WriteConcern MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command 他のマニュアルの関連ページ Django 5.2.10 DuckDB Security DuckDB P ...
-
https://man.mtool.work/php/8.3/mongodb-driver-server.executebulkwritecommand.htm...
- The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 9836
- The MongoDB\Driver\BulkWriteCommand class (mongodb >=2.1.0) はじめに MongoDB\Driver\BulkWriteCommand collects one or more write operations that should be sent to the server using the » bulkWrite command introduced in MongoDB 8.0. After addi
... ng 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
- MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 9521
- MongoDB\Driver\BulkWriteCommand::__construct (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand 説明 public function MongoDB\Driver\BulkWriteCommand::__construct ( ? array $options = null ) Constr
... 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 他のマニュアルの関連ページ ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
- MongoDB\Driver\BulkWriteCommandResult::isAcknowledged — Returns whether the wri... 8860
- MongoDB\Driver\BulkWriteCommandResult::isAcknowledged (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::isAcknowledged — Returns whether the write was acknowledged 説明 final public function MongoDB\Driver\BulkWriteCommandResult::isA
... 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 ()); ?> 上の例の出力は以下となります。 ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.isacknowled...
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Ret... 8695
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Returns any write concern errors 説明 final public function MongoDB\Driv
... 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 他の ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation | PHP 8... 8546
- MongoDB\Driver\BulkWriteCommand::insertOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::insertOne — Add an insertOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::insertOne ( string $namespace , array | object $docum
... b.coll' , $doc2 ); $id3 = $bulk -> insertOne ( 'db.coll' , $doc3 ); var_dump ( $id1 , $id2 , $id3 ); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) " ... m-id" object(MongoDB\BSON\ObjectId)#4 (1) { ["oid"]=> string(24) "0123456789abcdef01234567" } 参考 MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command MongoDB\Driver\BulkWriteCommandResult MongoDB\BSON\ObjectId ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.insertone.html
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns an... 8381
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteErrors — Returns any write errors 説明 final public function MongoDB\Driver\Exception\BulkWrite
... -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try { $result = $manager -> executeBulkWriteCommand ( $bulk ); } catch ( MongoDB\Driver\Exception\BulkWriteCommandException $e ) { var_dump ( $e -> getWriteErrors ()); } ?> 上 ... _id: 1 }" ["code"]=> int(11000) ["index"]=> int(3) ["info"]=> object(stdClass)#8 (0) { } } } 参考 MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulkWrite command MongoDB\Driver\WriteError ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- MongoDB\Driver\BulkWriteCommand::deleteMany — Add a deleteMany operation | PHP ... 8215
- MongoDB\Driver\BulkWriteCommand::deleteMany (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::deleteMany — Add a deleteMany operation 説明 public function MongoDB\Driver\BulkWriteCommand::deleteMany ( string $namespace , array | object $fi
... = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , [ 'x' => [ '$gt' => 1 ]]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::deleteOne() - Add a deleteOne operation MongoDB\Driver\Manager::execut ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.deletemany.html