« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for replicaSet (0.001 sec.)
MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 12960
MongoDB\Driver\Manager::__construct (mongodb >=1.0.0) MongoDB\Driver\Manager::__construct — Create new MongoDB Manager 説明 final public function MongoDB\Driver\Manager::__construct ( ? string $uri = null , ? array $uriOptions = null , ? ar ... a connection before timing out. Defaults to 10,000 milliseconds. directConnection bool This option can be used to control replica set discovery behavior when only a single host is provided in the connection string. By default, providing a single member in ... the connection string will establish a direct connection or discover additional members depending on whether the "replicaSet" URI option is omitted or present, respectively. Specify false to force discovery to occur (if "replicaSet" is omitted) or ... specify true to force a direct connection (if "replicaSet" is present). enableOverloadRetargeting bool When set to true it forces server selection after a SystemOverloadedError . D ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's err... 8828
MongoDB\Driver\WriteConcernError::getCode (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's error code 説明 final public function MongoDB\Driver\WriteConcernError::getCode (): int パラメータ この関 ... eConcernError::getCode() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet" ); $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ 'x' => 1 ]); $writeConcern = new MongoDB\Driver ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getcode.html
MongoDB\Driver\WriteConcernError::getInfo — Returns metadata document for the W... 8828
MongoDB\Driver\WriteConcernError::getInfo (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getInfo — Returns metadata document for the WriteConcernError 説明 final public function MongoDB\Driver\WriteConcernError::getInfo (): ? object パ ... eConcernError::getInfo() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet" ); $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ 'x' => 1 ]); $writeConcern = new MongoDB\Driver ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getinfo.html
MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's ... 8828
MongoDB\Driver\WriteConcernError::getMessage (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's error message 説明 final public function MongoDB\Driver\WriteConcernError::getMessage (): string パ ... ncernError::getMessage() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet" ); $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ 'x' => 1 ]); $writeConcern = new MongoDB\Driver ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getmessage.html
MongoDB\Driver\WriteResult::getWriteConcernError — Returns any write concern er... 8371
MongoDB\Driver\WriteResult::getWriteConcernError (mongodb >=1.0.0) MongoDB\Driver\WriteResult::getWriteConcernError — Returns any write concern error that occurred 説明 final public function MongoDB\Driver\WriteResult::getWriteConcernError ... ::getWriteConcernError() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet" ); $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ 'x' => 1 ]); $writeConcern = new MongoDB\Driver ...
https://man.mtool.work/php/8.3/mongodb-driver-writeresult.getwriteconcernerror.h...
Connection handling and persistence | PHP 8.3 6982
Connection handling and persistence 注意 : On Unix platforms, the extension is sensitive to scripts that use the fork() system call without also calling exec(). Users are advised not to re-use MongoDB\Driver\Manager instances in a forked ch ... ence" driver option. Each client contains its own database connections and a view of the server topology (e.g. standalone, replica set, shard cluster). By persisting the client between PHP requests, the extension is able to re-use established database conn ... er\Manager ( 'mongodb://127.0.0.1:27017' ), new MongoDB\Driver\Manager ( 'mongodb://rs1.example.com,rs2.example.com/' , [ 'replicaSet' => 'myReplicaSet' ]), ]; foreach ( $managers as $manager ) { $manager -> executeCommand ( 'test' , new MongoDB\Driver\Com ... 1 and one connection to each of rs1.example.com and rs2.example.com . If the extension discovers additional members of the replica set after issuing hello commands, it will open additional connections to those servers as well. If the same worker executes t ...
https://man.mtool.work/php/8.3/mongodb.connection-handling.html
PREV 1 NEXT