« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 72 for bulk (0.002 sec.)
The MongoDB\Driver\BulkWrite class | PHP 8.3 10721
The MongoDB\Driver\BulkWrite class (mongodb >=1.0.0) はじめに The MongoDB\Driver\BulkWrite collects one or more write operations that should be sent to the server. After adding any number of insert, update, and delete operations, the collec ... tion may be executed via MongoDB\Driver\Manager::executeBulkWrite() . Write operations may either be ordered (default) or unordered. Ordered write operations are sent to the server, i ... rallel. Any errors that occur are reported after all operations have been attempted. クラス概要 final class MongoDB\Driver\BulkWrite implements Countable { /* メソッド */ public function __construct ( ? array $options = null ) public function count ( ... . inserts, updates, and deletes) will be assembled into typed write commands to be sent sequentially to the server. <?php $bulk = new MongoDB\Driver\BulkWrite ([ 'ordered' => true ]); $bulk -> insert ([ '_id' => 1 , 'x' => 1 ]); $bulk -> insert ([ '_ ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwrite.html
MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occu... 10637
MongoDB\Driver\WriteResult::getWriteErrors (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getWriteErrors — Returns any write errors that occurred 説明 final public function MongoDB\Driver\WriteResult::getWriteErrors (): array パラメータ この ... goDB\Driver\WriteResult::getWriteErrors() with a single error <?php $manager = new MongoDB\Driver\Manager ; /* By default, bulk write operations are executed serially in order and * execution will stop after the first error. */ $bulk = new MongoDB\Dr ... iver\BulkWrite ; $bulk -> insert ([ '_id' => 1 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk -> insert ([ '_id' => 2 ]); $bulk -> inse ... rt ([ '_id' => 3 ]); $bulk -> insert ([ '_id' => 4 ]); $bulk -> insert ([ '_id' => 4 ]); try { $result = $manager -> executeBulkWrite ( 'db.collectio ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteerrors.html
MongoDB\Driver\Manager::executeBulkWriteCommand — Execute write operations usin... 10539
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 ... and ( MongoDB\Driver\BulkWriteCommand $bulk , ? array $options = null ): MongoDB\Driver\BulkWriteCommandResult Executes one or more write operations ... on the primary server using the » bulkWrite command introduced in MongoDB 8.0. A MongoDB\Driver\BulkWriteCommand can be constructed with one or more write operat ... ll be inferred from an active transaction (indicated by the "session" option), followed by the connection URI . パラメータ bulk ( MongoDB\Driver\BulkWriteCommand ) The write(s) to execute. options options Option Type Description session MongoDB\Drive ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwritecommand.ht...
MongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult — Returns ... 10272
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 ... ongoDB\Driver\Exception\BulkWriteCommandException::getPartialResult (): ? MongoDB\Driver\BulkWriteCommandResult パラメータ この関数にはパラメータはあり ... ません。 戻り値 Returns a MongoDB\Driver\BulkWriteCommandResult reporting the result of any successful operations that were performed before the error was encountered. ... nd acknowledged). 例 例1 Partial result if at least one write is successful <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> deleteMany ( 'db.coll' , []); $bulk -> insertOne ( 'db.coll' , [ '_id' => ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getparti...
The MongoDB\Driver\BulkWriteCommand class | PHP 8.3 9558
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 o ... peration within MongoDB\Driver\BulkWriteCommand may target a different collection. Write operations may either be ordered (default) or unordered. Ordered writ ... rallel. Any errors that occur are reported after all operations have been attempted. クラス概要 final class MongoDB\Driver\BulkWriteCommand implements Countable { /* メソッド */ public function __construct ( ? array $options = null ) public function ...
https://man.mtool.work/php/8.3/class.mongodb-driver-bulkwritecommand.html
MongoDB\Driver\Manager::executeBulkWrite — Execute one or more write operations... 8983
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 ... ver\BulkWrite $bulk , ? array $options = null ): MongoDB\Driver\WriteResult Executes one or more write operations on the primary se ... rver. A MongoDB\Driver\BulkWrite can be constructed with one or more write operations of varying types (e.g. updates, deletes, and inserts). The drive ... by the connection URI . パラメータ namespace ( string ) A fully qualified namespace (e.g. "databaseName.collectionName" ). bulk ( MongoDB\Driver\BulkWrite ) The write(s) to execute. options options Option Type Description session MongoDB\Driver\Sessi ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
MongoDB\Driver\BulkWrite::count — Count number of write operations in the bulk ... 8352
MongoDB\Driver\BulkWrite::count (mongodb >=1.0.0) MongoDB\Driver\BulkWrite::count — Count number of write operations in the bulk 説明 public function MongoDB\Driver\BulkWrite::count (): int Returns the number of write operations added to th ... e MongoDB\Driver\BulkWrite object. パラメータ この関数にはパラメータはありません。 戻り値 Returns number of write operations added to the MongoD ... B\Driver\BulkWrite object. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 変更履歴 バ ... ージョン 説明 PECL mongodb 1.2.0 Returns the number of write operations added to the MongoDB\Driver\BulkWrite object. Earlier versions returned the expected number of client-to-server roundtrips required to execute all write op ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwrite.count.html
MongoDB\Driver\BulkWriteCommand::__construct — Create a new BulkWriteCommand | ... 8310
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 ... ucts a new MongoDB\Driver\BulkWriteCommand , which may be used to perform many insert, update, and delete operations on multiple collections in a single ... request using the » bulkWrite command introduced in MongoDB 8.0. This differs from MongoDB\Driver\BulkWrite , which is supported by all server vers ... le 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 ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommand.construct.html
MongoDB\Driver\BulkWriteCommandResult::getDeletedCount — Returns the number of ... 8268
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 ... nt parsing errors. Throws MongoDB\Driver\Exception\LogicException if the write was not acknowledged. 例 例1 MongoDB\Driver\BulkWriteCommandResult::getDeletedCount() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\Bulk ... WriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk ... -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' => 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getdeletedc...
MongoDB\Driver\BulkWriteCommandResult::getInsertedCount — Returns the number of... 8268
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 ... nt parsing errors. Throws MongoDB\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\Bul ... kWriteCommand ; $bulk -> insertOne ( 'db.coll' , [ 'x' => 1 ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 1 ], [ '$set' => [ 'y' => 3 ]]); $bulk ... -> updateOne ( 'db.coll' , [ 'x' => 2 ], [ '$set' => [ 'y' => 1 ]], [ 'upsert' => true ]); $bulk -> updateOne ( 'db.coll' , [ 'x' => 3 ], [ '$set' => [ 'y' => 2 ]], [ 'upsert' => true ]); $bulk -> deleteMany ( 'db.coll' ...
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandresult.getinserted...
PREV 1 2 3 4 5 6 7 8 NEXT