Results of 1 - 4 of about 4 for buildInfo (0.003 sec.)
- The MongoDB\Driver\ServerApi class 11095
- « MongoDB\Driver\ClientEncryption::rewrapManyDataKey MongoDB\Driver\ServerApi::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ServerApi class 検索 The MongoDB\Driver\ServerApi class (mongodb >=1.10.0) はじめに クラス概要 final
... nager = new Manager ( 'mongodb://localhost:27017' , [], [ 'serverApi' => $v1 ]); $command = new MongoDB\Driver\Command ([ 'buildInfo' => 1 ]); try { $cursor = $manager -> executeCommand ( 'admin' , $command ); } catch( MongoDB\Driver\Exception $e ) { echo ... $e -> getMessage (), "\n" ; exit; } /* The buildInfo command returns a single result document, so we need to access * the first result in the cursor. */ $buildInfo = $cursor - ... > toArray ()[ 0 ]; echo $buildInfo -> version , "\n" ; ?> 上の例の出力は以下となります。 4.9.0-alpha7-49-gb968ca0 例2 Declare a strict API version on a manag ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-serverapi.html
- The MongoDB\Driver\ServerApi class 11095
- « MongoDB\Driver\ClientEncryption::rewrapManyDataKey MongoDB\Driver\ServerApi::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ServerApi class 検索 The MongoDB\Driver\ServerApi class (mongodb >=1.10.0) はじめに クラス概要 final
... nager = new Manager ( 'mongodb://localhost:27017' , [], [ 'serverApi' => $v1 ]); $command = new MongoDB\Driver\Command ([ 'buildInfo' => 1 ]); try { $cursor = $manager -> executeCommand ( 'admin' , $command ); } catch( MongoDB\Driver\Exception $e ) { echo ... $e -> getMessage (), "\n" ; exit; } /* The buildInfo command returns a single result document, so we need to access * the first result in the cursor. */ $buildInfo = $cursor - ... > toArray ()[ 0 ]; echo $buildInfo -> version , "\n" ; ?> 上の例の出力は以下となります。 4.9.0-alpha7-49-gb968ca0 例2 Declare a strict API version on a manag ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-serverapi.html
- Create a new Command 7397
- « MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f
... ?php $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:27017" ); $command = new MongoDB\Driver\Command (array( "buildinfo" => 1 )); try { $cursor = $manager -> executeCommand ( "admin" , $command ); $response = $cursor -> toArray ()[ 0 ]; } cat ...
-
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
- Create a new Command 7397
- « MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f
... ?php $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:27017" ); $command = new MongoDB\Driver\Command (array( "buildinfo" => 1 )); try { $cursor = $manager -> executeCommand ( "admin" , $command ); $response = $cursor -> toArray ()[ 0 ]; } cat ...
-
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
PREV
1
NEXT