Results of 1 - 10 of about 38 for WriteConcern (0.002 sec.)
- The MongoDB\Driver\WriteConcern class | PHP 8.3 11572
- The MongoDB\Driver\WriteConcern class (mongodb >=1.0.0) はじめに MongoDB\Driver\WriteConcern describes the level of acknowledgement requested from MongoDB for write operations to a standalone mongod or to replica sets or to sharded clusters
... . In sharded clusters, mongos instances will pass the write concern on to the shards. クラス概要 final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable , Serializable ... string | int | null final public function getWtimeout (): int final public function isDefault (): bool } プロパティ w The write concern value (integer number of nodes, the string "majority" , or a custom write concern tag name), or null if not set. j Whethe ... e committed to the journal before acknowledged, or null if not specified. wtimeout The timeout in milliseconds to wait for write concern acknowledgement. A value of 0 means to wait indefinitely. 定義済み定数 MongoDB\Driver\WriteConcern::MAJORITY Majority of ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-writeconcern.html
- MongoDB\Driver\WriteConcern::getW — Returns the WriteConcern's "w" option | PHP... 11148
- MongoDB\Driver\WriteConcern::getW (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::getW — Returns the WriteConcern's "w" option 説明 final public function MongoDB\Driver\WriteConcern::getW (): string | int | null パラメータ この関数にはパラメ
... ータはありません。 戻り値 Returns the WriteConcern's "w" option. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 Mo ... ngoDB\Driver\WriteConcern::getW() example <?php $wc = new MongoDB\Driver\WriteConcern ( 1 ); var_dump ( $wc -> getW ()); $wc = new MongoDB\Driver\Wr ... iteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY ); var_dump ( $wc -> getW ()); ?> 上の例の出力は以下となります。 int(1) string(8) "majority" 参考 » Write Conc ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.getw.html
- MongoDB\Driver\WriteConcern::getWtimeout — Returns the WriteConcern's "wtimeout... 10928
- MongoDB\Driver\WriteConcern::getWtimeout (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::getWtimeout — Returns the WriteConcern's "wtimeout" option 説明 final public function MongoDB\Driver\WriteConcern::getWtimeout (): int パラメータ この関
... 数にはパラメータはありません。 戻り値 Returns the WriteConcern's "wtimeout" option. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 変 ... truncate the wTimeout value if it exceeds the 32-bit range. In that case, a warning will be emitted. 例 例1 MongoDB\Driver\WriteConcern::getWtimeout() example <?php $wc = new MongoDB\Driver\WriteConcern ( 1 ); var_dump ( $wc -> getWtimeout ()); $wc = new Mon ... goDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: MAJORITY , 3000 ); var_dump ( $wc -> getWtimeout ()); ?> 上の例の出力は以下となります。 i ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.getwtimeout.html
- MongoDB\Driver\WriteConcern::getJournal — Returns the WriteConcern's "journal" ... 10880
- MongoDB\Driver\WriteConcern::getJournal (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::getJournal — Returns the WriteConcern's "journal" option 説明 final public function MongoDB\Driver\WriteConcern::getJournal (): ? bool パラメータ この関数
... にはパラメータはありません。 戻り値 Returns the WriteConcern's "journal" option. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 ... 例1 MongoDB\Driver\WriteConcern::getJournal() example <?php $wc = new MongoDB\Driver\WriteConcern ( 1 ); var_dump ( $wc -> getJournal ()); $wc = new Mongo ... DB\Driver\WriteConcern ( 1 , 0 , true ); var_dump ( $wc -> getJournal ()); $wc = new MongoDB\Driver\WriteConcern ( 1 , 0 , false ); var_dump ( $w ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.getjournal.html
- MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON seriali... 10236
- MongoDB\Driver\WriteConcern::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\WriteConcern::bsonSerialize (): stdClass パラメータ
... この関数にはパラメータはありません。 戻り値 Returns an object for serializing the WriteConcern as BSON. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB ... \Driver\WriteConcern::bsonSerialize() with majority write concern <?php $wc = new MongoDB\Driver\WriteConcern ( MongoDB\Driver\WriteConcern :: ... とえば以下のようになります。 object(stdClass)#2 (1) { ["w"]=> string(8) "majority" } { "w" : "majority" } 例2 MongoDB\Driver\WriteConcern::bsonSerialize() with wtimeout and journal <?php $wc = new MongoDB\Driver\WriteConcern ( 2 , 1000 , true ); var_dump ( $wc ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.bsonserialize.html
- MongoDB\Driver\WriteConcern::__construct — Create a new WriteConcern | PHP 8.3 9906
- MongoDB\Driver\WriteConcern::__construct (mongodb >=1.0.0) MongoDB\Driver\WriteConcern::__construct — Create a new WriteConcern 説明 final public function MongoDB\Driver\WriteConcern::__construct ( string | int $w , ? int $wtimeout = null ,
... ? bool $journal = null ) Constructs a new MongoDB\Driver\WriteConcern , which is an immutable value object. パラメータ w Write concern Value Description 1 Requests acknowledgement that the wri ... te operation has propagated to the standalone mongod or the primary in a replica set. This is the default write concern for MongoDB. 0 Requests no acknowledgment of the write operation. However, this may return information about socket excep ... d only for replica sets to request acknowledgement from specified number of members, including the primary. MongoDB\Driver\WriteConcern::MAJORITY Requests acknowledgment that write operations have propagated to the majority of voting nodes, including the pri ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.construct.html
- MongoDB\Driver\Manager::executeBulkWrite — Execute one or more write operations... 9623
- 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
... erations of the same type to the server in as few requests as possible to optimize round trips. The default value for the "writeConcern" option will be inferred from an active transaction (indicated by the "session" option), followed by the connection URI . ... execute. options options Option Type Description session MongoDB\Driver\Session A session to associate with the operation. writeConcern MongoDB\Driver\WriteConcern A write concern to apply to the operation. 戻り値 Returns MongoDB\Driver\WriteResult on succes ... ws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. Throws MongoDB\Driver\Exception\Con ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executebulkwrite.html
- MongoDB\Driver\Manager::getWriteConcern — Return the WriteConcern for the Manag... 9308
- MongoDB\Driver\Manager::getWriteConcern (mongodb >=1.0.0) MongoDB\Driver\Manager::getWriteConcern — Return the WriteConcern for the Manager 説明 final public function MongoDB\Driver\Manager::getWriteConcern (): MongoDB\Driver\WriteConcern R
... eturns the MongoDB\Driver\WriteConcern for the Manager, which is derived from its URI options. This is the default write concern for writes and commands executed ... on the Manager. パラメータ この関数にはパラメータはありません。 戻り値 The MongoDB\Driver\WriteConcern for the Manager. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 ... MongoDB\Driver\Manager::getWriteConcern() example <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:27017' ); var_dump ( $manager -> getWriteConc ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.getwriteconcern.html
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Ret... 8569
- MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors (mongodb >=2.1.0) MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors — Returns any write concern errors 説明 final public function MongoDB\Driv
... er\Exception\BulkWriteCommandException::getWriteConcernErrors (): array パラメータ この関数にはパラメータはありません。 戻り値 An array of any MongoDB\Driver\WriteConcernError s ... n one server command was required to execute the bulk write. 例 例1 MongoDB\Driver\Exception\BulkWriteCommandException::getWriteConcernErrors() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWriteCommand ; $bulk -> inser ... tOne ( 'db.coll' , [ 'x' => 1 ]); $writeConcern = new MongoDB\Driver\WriteConcern ( 50 ); try { $result = $manager -> executeBulkWriteCommand ( $bulk , [ 'writeConcern' = ...
-
https://man.mtool.work/php/8.3/mongodb-driver-bulkwritecommandexception.getwrite...
- MongoDB\Driver\WriteConcern::isDefault — Checks if this is the default write co... 8428
- MongoDB\Driver\WriteConcern::isDefault (mongodb >=1.3.0) MongoDB\Driver\WriteConcern::isDefault — Checks if this is the default write concern 説明 final public function MongoDB\Driver\WriteConcern::isDefault (): bool Returns whether this is
... the default write concern (i.e. no options are specified). This method is primarily intended to be used in conjunction with MongoDB\Driver\Manager: ... :getWriteConcern() to determine whether the Manager has been constructed without any write concern options. The driver will not include a d ... efault write concern in its write operations (e.g. MongoDB\Driver\Manager::executeBulkWrite() ) in order to allow the server to apply its own ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.isdefault.html