Results of 1 - 10 of about 24 for preference (0.001 sec.)
- MongoDB\Driver\Manager::selectServer — Select a server matching a read preferen... 12543
- MongoDB\Driver\Manager::selectServer (mongodb >=1.0.0) MongoDB\Driver\Manager::selectServer — Select a server matching a read preference 説明 final public function MongoDB\Driver\Manager::selectServer ( ? MongoDB\Driver\ReadPreference $read
... Preference = null ): MongoDB\Driver\Server Selects a MongoDB\Driver\Server matching readPreference . If readPreference is null or omitted, the primary server will be selected by default. This may be used to preselect a se ... perform server discovery if necessary. See the » Server Selection Specification for additional information. パラメータ readPreference ( MongoDB\Driver\ReadPreference ) The read preference to use for selecting a server. If null or omitted, the primary serve ... r will be selected by default. 戻り値 Returns a MongoDB\Driver\Server matching the read preference. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. Throws MongoDB\Driver\ ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.selectserver.html
- MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference | PHP ... 11809
- MongoDB\Driver\ReadPreference::__construct (mongodb >=1.0.0) MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference 説明 final public function MongoDB\Driver\ReadPreference::__construct ( string $mode , ? array $tagSets =
... null , ? array $options = null ) Constructs a new MongoDB\Driver\ReadPreference , which is an immutable value object. パラメータ mode Read preference mode Value Description "primary" All operations read ... from the current replica set primary. This is the default read preference for MongoDB. "primaryPreferred" In most situations, operations read from the primary but if it is unavailable, operations ... eads , which are supported by MongoDB 4.4+ for sharded queries. Server hedged reads are available for all non-primary read preferences and are enabled by default when using the "nearest" mode. This option allows explicitly enabling server hedged reads for ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
- MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON seria... 11209
- MongoDB\Driver\ReadPreference::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\ReadPreference::bsonSerialize (): stdClass パラ
... メータ この関数にはパラメータはありません。 戻り値 Returns an object for serializing the ReadPreference as BSON. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB ... \Driver\ReadPreference::bsonSerialize() with primary read preference <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreferenc ... 下のようになります。 object(stdClass)#2 (1) { ["mode"]=> string(7) "primary" } { "mode" : "primary" } 例2 MongoDB\Driver\ReadPreference::bsonSerialize() with secondary read preference and tag sets <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Drive ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
- The MongoDB\Driver\ReadPreference class | PHP 8.3 10158
- The MongoDB\Driver\ReadPreference class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable , Serializable { /* プロパティ */ public readonly string $ mode ; public readonly ?
... : int final public function getModeString (): string final public function getTagSets (): array } プロパティ mode The read preference mode as a string (e.g. "primary" , "secondary" ). tags The tag set list used by the read preference, or null if no tag set ... s were specified. maxStalenessSeconds The maximum staleness in seconds for reads, or MongoDB\Driver\ReadPreference::NO_MAX_STALENESS if no maximum staleness was specified. hedge A document specifying the hedge options for the read prefer ... specified. 警告 This property is deprecated as hedged reads are deprecated in MongoDB 8.0. 定義済み定数 MongoDB\Driver\ReadPreference::PRIMARY All operations read from the current replica set primary. This is the default read preference for MongoDB. MongoD ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
- MongoDB\Driver\TopologyDescription::hasReadableServer — Returns whether the top... 10158
- MongoDB\Driver\TopologyDescription::hasReadableServer (mongodb >=1.13.0) MongoDB\Driver\TopologyDescription::hasReadableServer — Returns whether the topology has a readable server 説明 final public function MongoDB\Driver\TopologyDescriptio
... n::hasReadableServer ( ? MongoDB\Driver\ReadPreference $readPreference = null ): bool Returns whether the topology has a readable server or, if readPreference is specified, a se ... rver matching the specified read preference. パラメータ この関数にはパラメータはありません。 戻り値 Returns whether the topology has a readable server or, if readPref ... erence is specified, a server matching the specified read preference. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. ...
-
https://man.mtool.work/php/8.3/mongodb-driver-topologydescription.hasreadableser...
- MongoDB\Driver\Server::executeCommand — Execute a database command on this serv... 9257
- MongoDB\Driver\Server::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Server::executeCommand — Execute a database command on this server 説明 final public function MongoDB\Driver\Server::executeCommand ( string $db , MongoDB\Driver\Command
... Executes the command on this server. This method applies no special logic to the command. The Default values for the "readPreference" , "readConcern" , and "writeConcern" options will be inferred from an active transaction (indicated by the "session" opti ... on). If there is no active transaction, a primary read preference will be used for server selection. Default values will not be inferred from the connection URI . Users are therefore encou ... raged to use specific read and/or write command methods if possible. 注意 : The "readPreference" option does not control the server to which the driver issues the operation; it will always be executed on this server ob ...
-
https://man.mtool.work/php/8.3/mongodb-driver-server.executecommand.html
- MongoDB\Driver\ReadPreference::getTagSets — Returns the ReadPreference's "tagSe... 8673
- MongoDB\Driver\ReadPreference::getTagSets (mongodb >=1.0.0) MongoDB\Driver\ReadPreference::getTagSets — Returns the ReadPreference's "tagSets" option 説明 final public function MongoDB\Driver\ReadPreference::getTagSets (): array パラメータ
... この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "tagSets" option. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 ... 例1 MongoDB\Driver\ReadPreference::getTagSets() example <?php $mode = MongoDB\Driver\ReadPreference :: SECONDARY_PREFERRED ; /* Null and an empty array both ... denote no tag set preference. */ $rp = new MongoDB\Driver\ReadPreference ( $mode , null ); var_dump ( $rp -> getTagSets ()); $rp = new MongoDB\Driver\R ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.gettagsets.html
- MongoDB\Driver\Server::executeQuery — Execute a database query on this server |... 8673
- MongoDB\Driver\Server::executeQuery (mongodb >=1.0.0) MongoDB\Driver\Server::executeQuery — Execute a database query on this server 説明 final public function MongoDB\Driver\Server::executeQuery ( string $namespace , MongoDB\Driver\Query $q
... uery , ? array $options = null ): MongoDB\Driver\Cursor Executes the query on this server. Default values for the "readPreference" option and Query's "readConcern" option will be inferred from an active transaction (indicated by the "session" option), ... followed by the connection URI . 注意 : The "readPreference" option does not control the server to which the driver issues the operation; it will always be executed on this server ob ... t connection, not standalone) or mongos node to ensure that the driver sets the wire protocol accordingly or adds the read preference to the operation, respectively. パラメータ namespace ( string ) A fully qualified namespace (e.g. "databaseName.collection ...
-
https://man.mtool.work/php/8.3/mongodb-driver-server.executequery.html
- MongoDB\Driver\Manager::executeCommand — Execute a database command | PHP 8.3 8373
- MongoDB\Driver\Manager::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Manager::executeCommand — Execute a database command 説明 final public function MongoDB\Driver\Manager::executeCommand ( string $db , MongoDB\Driver\Command $command ,
... ? array $options = null ): MongoDB\Driver\Cursor Selects a server according to the "readPreference" option and executes the command on that server. This method applies no special logic to the command. The Default values f ... or the "readPreference" , "readConcern" , and "writeConcern" options will be inferred from an active transaction (indicated by the "session" opti ... on). If there is no active transaction, a primary read preference will be used for server selection. Default values will not be inferred from the connection URI . Users are therefore encou ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executecommand.html
- MongoDB\Driver\Server::executeReadCommand — Execute a database command that rea... 8373
- MongoDB\Driver\Server::executeReadCommand (mongodb >=1.4.0) MongoDB\Driver\Server::executeReadCommand — Execute a database command that reads on this server 説明 final public function MongoDB\Driver\Server::executeReadCommand ( string $db ,
... $command , ? array $options = null ): MongoDB\Driver\Cursor Executes the command on this server, irrespective of the "readPreference" option. This method will apply logic that is specific to commands that read (e.g. » distinct ). Default values for the "r ... eadPreference" and "readConcern" options will be inferred from an active transaction (indicated by the "session" option), followed by th ... e connection URI . 注意 : The "readPreference" option does not control the server to which the driver issues the operation; it will always be executed on this server ob ...
-
https://man.mtool.work/php/8.3/mongodb-driver-server.executereadcommand.html