« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for deleteMany (0.001 sec.)
MongoDB\Driver\BulkWriteCommand::deleteMany — Add a deleteMany operation | PHP ... 14259
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 ... lter , ? array $options = null ): void Add a deleteMany operation to the MongoDB\Driver\BulkWriteCommand . All documents matching filter in the collection identified by namespace ... rows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\BulkWriteCommand::deleteMany() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.deletemany.html
The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 11535
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 ... ble { /* メソッド */ public function __construct ( ? array $options = null ) public function count (): int public function deleteMany ( string $namespace , array | object $filter , ? array $options = null ): void public function deleteOne ( string $namespa ... MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two collections $bulk -> insert ... ions causing an error <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 2 ]); $bu ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 9121
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::executeBulkWriteComm ... MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two collections $bulk -> insert ... ions causing an error <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 2 ]); $bu ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns ... 9000
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 ... e write is successful <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); try ... writes are successful <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => 1 ]); $manager -> executeBulkWriteCommand ( $bulk ); $bulk ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
MongoDB\Driver\BulkWriteCommand::deleteOne — Add a deleteOne operation | PHP 8.... 8793
MongoDB\Driver\BulkWriteCommand::deleteOne (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::deleteOne — Add a deleteOne operation 説明 public function MongoDB\Driver\BulkWriteCommand::deleteOne ( string $namespace , array | object $filter ... b.coll' , [ 'x' => 1 ]); $result = $manager -> executeBulkWriteCommand ( $bulk ); ?> 参考 MongoDB\Driver\BulkWriteCommand::deleteMany() - Add a deleteMany operation MongoDB\Driver\Manager::executeBulkWriteCommand() - Execute write operations using the bulk ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.deleteone.html
MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 8673
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 ... MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; // Delete documents from both collections $bulk -> deleteMany ( 'db.coll_one' , []); $bulk -> deleteMany ( 'db.coll_two' , []); // Insert documents into two collections $bulk -> insert ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
MongoDB\Driver\BulkWriteCommand::count — Count number of write operations in th... 8017
MongoDB\Driver\BulkWriteCommand::count (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommand::count — Count number of write operations in the BulkWriteCommand 説明 public function MongoDB\Driver\BulkWriteCommand::count (): int Returns the numbe ... db.coll' , [ '_id' => 2 , 'x' => 2 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'x' => 1 ]]); $bulk -> deleteMany ( 'db.coll' , [ 'x' => 1 ]); var_dump ( count ( $bulk )); ?> 上の例の出力は以下となります。 int(4) 他のマニュアルの関連ペー ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.count.html
MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of ... 7914
MongoDB\Driver\BulkWriteCommandResult::getDeletedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of documents deleted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::getD ... ert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $result = $manager -> executeBulkWriteCommand ( $bulk ); var_dump ( $result -> getDeletedCount ()); ?> ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getdeletedc...
MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of... 7914
MongoDB\Driver\BulkWriteCommandResult::getInsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of documents inserted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::g ... ert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $result = $manager -> executeBulkWriteCommand ( $bulk ); var_dump ( $result -> getInsertedCount ()); ?> ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of... 7914
MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount (mongodb >=2.1.0) MongoDB\Driver\BulkWriteCommandResult::getUpsertedCount — Returns the number of documents upserted 説明 final public function MongoDB\Driver\BulkWriteCommandResult::g ... ert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' , []); $result = $manager -> executeBulkWriteCommand ( $bulk ); var_dump ( $result -> getUpsertedCount ()); ?> ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getupserted...
PREV 1 2 NEXT