« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for setCappedCollection (0.054 sec.)
The MongoDB\Driver\Command class | PHP 8.3 9414
The MongoDB\Driver\Command class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Command class is a value object that represents a database command. To provide Command Helpers the MongoDB\Driver\Command object should be composed. クラス概要 f ... md = array(); function __construct ( $collectionName ) { $this -> cmd [ "create" ] = (string) $collectionName ; } function setCappedCollection ( $maxBytes , $maxDocuments = false ) { $this -> cmd [ "capped" ] = true ; $this -> cmd [ "size" ] = (int) $maxBytes ; if ... ger ( "mongodb://localhost:27017" ); $createCollection = new CreateCollection ( "cappedCollection" ); $createCollection -> setCappedCollection ( 64 * 1024 ); try { $command = $createCollection -> getCommand (); $cursor = $manager -> executeCommand ( "databaseName" ...
https://man.mtool.work/php/8.3/class.mongodb-driver-command.html
PREV 1 NEXT