« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 175 for Manager (0.001 sec.)
The MongoDB\Driver\Manager class | PHP 8.3 10234
The MongoDB\Driver\Manager class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Manager is the main entry point to the extension. It is responsible for maintaining connections to MongoDB (be it standalone server, replica set, or sharded clus ... ter). No connection to MongoDB is made upon instantiating the Manager. This means the MongoDB\Driver\Manager can always be constructed, even though one or more MongoDB servers are down. Any wr ... B server may also become unavailable during the life time of the script. It is therefore important that all actions on the Manager to be wrapped in try/catch statements. クラス概要 final class MongoDB\Driver\Manager { /* メソッド */ final public functio ... iver\Server final public function startSession ( ? array $options = null ): MongoDB\Driver\Session } 例 例1 MongoDB\Driver\Manager::__construct() basic example var_dump() ing a MongoDB\Driver\Manager will print out various details about the manager that ...
https://man.mtool.work/php/8.3/class.mongodb-driver-manager.html
MongoDB\Driver\Manager::getReadConcern — Return the ReadConcern for the Manager... 9306
MongoDB\Driver\Manager::getReadConcern (mongodb >=1.1.0) MongoDB\Driver\Manager::getReadConcern — Return the ReadConcern for the Manager 説明 final public function MongoDB\Driver\Manager::getReadConcern (): MongoDB\Driver\ReadConcern Return ... s the MongoDB\Driver\ReadConcern for the Manager, which is derived from its URI options. This is the default read concern for queries and commands executed on the Manager. ... パラメータ この関数にはパラメータはありません。 戻り値 The MongoDB\Driver\ReadConcern for the Manager. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\ ... Manager::getReadConcern() example <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:27017' ); var_dump ( $manager -> getReadConcern ()); $manager = new Mo ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.getreadconcern.html
MongoDB\Driver\Manager::getWriteConcern — Return the WriteConcern for the Manag... 9272
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 -> getWriteConcern ()); $manager = new M ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.getwriteconcern.html
MongoDB\Driver\Manager::getReadPreference — Return the ReadPreference for the M... 9138
MongoDB\Driver\Manager::getReadPreference (mongodb >=1.0.0) MongoDB\Driver\Manager::getReadPreference — Return the ReadPreference for the Manager 説明 final public function MongoDB\Driver\Manager::getReadPreference (): MongoDB\Driver\ReadPr ... eference Returns the MongoDB\Driver\ReadPreference for the Manager, which is derived from its URI options. This is the default read preference for queries and commands executed on the Manag ... er. パラメータ この関数にはパラメータはありません。 戻り値 The MongoDB\Driver\ReadPreference for the Manager. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\ ... Manager::getReadPreference() example <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:27017' ); var_dump ( $manager -> getReadPreference ()); $manager = new ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.getreadpreference.html
MongoDB\Driver\Manager::getServers — Return the servers to which this manager i... 8925
MongoDB\Driver\Manager::getServers (mongodb >=1.0.0) MongoDB\Driver\Manager::getServers — Return the servers to which this manager is connected 説明 final public function MongoDB\Driver\Manager::getServers (): array Returns an array of Mong ... oDB\Driver\Server instances to which this manager is connected. 注意 : Since the driver connects to the database lazily, this method may return an empty array if called bef ... ore executing an operation on the MongoDB\Driver\Manager . パラメータ この関数にはパラメータはありません。 戻り値 Returns an array of MongoDB\Driver\Server instances to which this ... manager is connected. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 Mo ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.getservers.html
MongoDB\Driver\Manager::addSubscriber — Registers a monitoring event subscriber... 8825
MongoDB\Driver\Manager::addSubscriber (mongodb >=1.10.0) MongoDB\Driver\Manager::addSubscriber — Registers a monitoring event subscriber with this Manager 説明 final public function MongoDB\Driver\Manager::addSubscriber ( MongoDB\Driver\Mon ... itoring\Subscriber $subscriber ): void Registers a monitoring event subscriber with this Manager. The subscriber will be notified of all events for this Manager. 注意 : If subscriber is already registered with this Mana ... function is a no-op. If subscriber is also registered globally, it will still only be notified once of each event for this Manager. パラメータ subscriber ( MongoDB\Driver\Monitoring\Subscriber ) A monitoring event subscriber to register with this Manage ... bscriber is a MongoDB\Driver\Monitoring\LogSubscriber , since loggers can only be registered globally. 参考 MongoDB\Driver\Manager::removeSubscriber() - Unregisters a monitoring event subscriber with this Manager MongoDB\Driver\Monitoring\Subscriber Mon ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.addsubscriber.html
MongoDB\Driver\WriteConcern::isDefault — Checks if this is the default write co... 8757
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 ... e 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 wil ... l not include a default write concern in its write operations (e.g. MongoDB\Driver\Manager::executeBulkWrite() ) in order to allow the server to apply its own default, which may have been » modified . Libraries th ... at access the Manager's write concern to include it in their own write commands should use this method to ensure that default write concerns are ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.isdefault.html
MongoDB\Driver\ReadConcern::isDefault — Checks if this is the default read conc... 8724
MongoDB\Driver\ReadConcern::isDefault (mongodb >=1.3.0) MongoDB\Driver\ReadConcern::isDefault — Checks if this is the default read concern 説明 final public function MongoDB\Driver\ReadConcern::isDefault (): bool Returns whether this is the ... d concern (i.e. no options are specified). This method is primarily intended to be used in conjunction with MongoDB\Driver\Manager::getReadConcern() to determine whether the Manager has been constructed without any read concern options. The driver will ... not include a default read concern in its read operations (e.g. MongoDB\Driver\Manager::executeQuery() ) in order to allow the server to apply its own default. Libraries that access the Manager's read concern ... lt ()); $rc = new MongoDB\Driver\ReadConcern ( MongoDB\Driver\ReadConcern :: MAJORITY ); var_dump ( $rc -> isDefault ()); $manager = new MongoDB\Driver\Manager ( 'mongodb://127.0.0.1/?readConcernLevel=majority' ); $rc = $manager -> getReadConcern (); va ...
https://man.mtool.work/php/8.3/mongodb-driver-readconcern.isdefault.html
MongoDB\Driver\Manager::removeSubscriber — Unregisters a monitoring event subsc... 8545
MongoDB\Driver\Manager::removeSubscriber (mongodb >=1.10.0) MongoDB\Driver\Manager::removeSubscriber — Unregisters a monitoring event subscriber with this Manager 説明 final public function MongoDB\Driver\Manager::removeSubscriber ( MongoDB ... \Driver\Monitoring\Subscriber $subscriber ): void Unregisters a monitoring event subscriber with this Manager. 注意 : If subscriber is not already registered with this Manager, this function is a no-op. パラメータ subscriber ( Mongo ... DB\Driver\Monitoring\Subscriber ) A monitoring event subscriber to unregister with this Manager. 戻り値 値を返しません。 エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors ... . 参考 MongoDB\Driver\Manager::addSubscriber() - Registers a monitoring event subscriber with this Manager MongoDB\Driver\Monitoring\Subscriber MongoDB\ ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.removesubscriber.html
MongoDB\Driver\Manager::executeCommand — Execute a database command | PHP 8.3 8478
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 , ... or backwards compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object. 例 例1 MongoDB\Driver\Manager::executeCommand() with a command returning a single result document <?php $manager = new MongoDB\Driver\Manager ( 'mongodb ... ://localhost:27017' ); $command = new MongoDB\Driver\Command ([ 'ping' => 1 ]); try { $cursor = $manager -> executeCommand ( 'admin' , $command ); } catch( MongoDB\Driver\Exception $e ) { echo $e -> getMessage (), "\n" ; exit; ... Array ()[ 0 ]; var_dump ( $response ); ?> 上の例の出力は以下となります。 array(1) { ["ok"]=> float(1) } 例2 MongoDB\Driver\Manager::executeCommand() with a command returning a cursor <?php $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:270 ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executecommand.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT