« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for executeQuery (0.001 sec.)
MongoDB\Driver\Manager::executeQuery — Execute a database query | PHP 8.3 13602
MongoDB\Driver\Manager::executeQuery (mongodb >=1.0.0) MongoDB\Driver\Manager::executeQuery — Execute a database query 説明 final public function MongoDB\Driver\Manager::executeQuery ( string $namespace , MongoDB\Driver\Query $query , ? arr ... rds compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object. 例 例1 MongoDB\Driver\Manager::executeQuery() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://localhost:27017" ); $bulk = new MongoDB\Driver\BulkWrit ... '_id' => 0 ], 'sort' => [ 'x' => - 1 ], ]; $query = new MongoDB\Driver\Query ( $filter , $options ); $cursor = $manager -> executeQuery ( 'db.collection' , $query ); foreach ( $cursor as $document ) { var_dump ( $document ); } ?> 上の例の出力は以下となります ... ]]; $options = [ 'maxTimeMS' => 1000 , ]; $query = new MongoDB\Driver\Query ( $filter , $options ); $cursor = $manager -> executeQuery ( 'db.collection' , $query ); foreach ( $cursor as $document ) { var_dump ( $document ); } ?> If the query fails to comple ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executequery.html
MongoDB\Driver\Server::executeQuery — Execute a database query on this server |... 11523
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 ... adPreference object. 参考 MongoDB\Driver\Cursor MongoDB\Driver\Query MongoDB\Driver\ReadPreference MongoDB\Driver\Manager::executeQuery() - Execute a database query 他のマニュアルの関連ページ DuckDB Security DuckDB C++ API DuckDB Catch C/C++ Tests DuckDB CON ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executequery.html
MongoDB\Driver\Cursor::__construct — Create a new Cursor (not used) | PHP 8.3 9963
MongoDB\Driver\Cursor::__construct (mongodb >=1.0.0) MongoDB\Driver\Cursor::__construct — Create a new Cursor (not used) 説明 final private function MongoDB\Driver\Cursor::__construct () MongoDB\Driver\Cursor objects are returned as the res ... パラメータはありません。 参考 MongoDB\Driver\Manager::executeCommand() - Execute a database command MongoDB\Driver\Manager::executeQuery() - Execute a database query MongoDB\Driver\Server::executeCommand() - Execute a database command on this server MongoDB\D ... river\Server::executeQuery() - Execute a database query on this server 他のマニュアルの関連ページ DuckDB PREPARE, EXECUTE, and DEALLOCATE Statements ...
https://man.mtool.work/php/8.3/mongodb-driver-cursor.construct.html
The MongoDB\Driver\Cursor class | PHP 8.3 9444
The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsulates the results of a MongoDB command or query and may be returned by MongoDB\Driver\Manager::executeCommand() or MongoDB\Driver\Manager::executeQuery ... ich extends Traversable . 例 例1 Reading a result set MongoDB\Driver\Manager::executeCommand() and MongoDB\Driver\Manager::executeQuery() both return their result(s) as a MongoDB\Driver\Cursor object. This object can be used to iterate over the result set of ... ery = new MongoDB\Driver\Query ( [] ); /* Query the "asteroids" collection of the "test" database */ $cursor = $manager -> executeQuery ( "test.asteroids" , $query ); /* $cursor now contains an object that wraps around the result set. Use * foreach() to iter ... er\Manager ; $query = new MongoDB\Driver\Query ([], [ 'tailable' => true , 'awaitData' => true , ]); $cursor = $manager -> executeQuery ( 'test.asteroids' , $query ); $iterator = new IteratorIterator ( $cursor ); $iterator -> rewind (); while ( true ) { if ( ...
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
Application Performance Monitoring (APM) | PHP 8.3 9305
Application Performance Monitoring (APM) The extension contains an event subscriber API, which allows applications to monitor commands and internal activity pertaining to the » Server Discovery and Monitoring Specification . This tutorial w ... ery = new \MongoDB\Driver\Query ( [ 'region_slug' => 'scotland-highlands' , 'age' => [ '$gte' => 20 ] ] ); $cursor = $m -> executeQuery ( 'dramio.whisky' , $query ); $query = new \MongoDB\Driver\Query ( [ 'region_slug' => 'scotland-lowlands' , 'age' => [ '$g ... te' => 15 ] ] ); $cursor = $m -> executeQuery ( 'dramio.whisky' , $query ); $query = new \MongoDB\Driver\Query ( [ 'region_slug' => 'scotland-lowlands' ] ); $cursor = $ ... m -> executeQuery ( 'dramio.whisky' , $query ); ?> ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
MongoDB\Driver\Query::__construct — Create a new Query | PHP 8.3 8404
MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function MongoDB\Driver\Query::__construct ( array | object $filter , ? array $queryOptions = null ) Constructs a n ... is an immutable value object that represents a database query. The query may then be executed with MongoDB\Driver\Manager::executeQuery() . パラメータ filter ( array | object ) The » query predicate . An empty predicate will match all documents in the collec ... ); $readPreference = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: PRIMARY ); $cursor = $manager -> executeQuery ( 'databaseName.collectionName' , $query , [ 'readPreference' => $readPreference ]); foreach( $cursor as $document ) { var ... _dump ( $document ); } ?> 参考 MongoDB\Driver\Manager::executeQuery() - Execute a database query MongoDB\Driver\Cursor 他のマニュアルの関連ページ Linux JM batch(1) DuckDB Legacy Parser Exten ...
https://man.mtool.work/php/8.3/mongodb-driver-query.construct.html
The MongoDB\Driver\Manager class | PHP 8.3 8265
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 ... nd ( string $db , MongoDB\Driver\Command $command , ? array $options = null ): MongoDB\Driver\Cursor final public function executeQuery ( string $namespace , MongoDB\Driver\Query $query , ? array $options = null ): MongoDB\Driver\Cursor final public function ... ns using the bulkWrite command MongoDB\Driver\Manager::executeCommand — Execute a database command MongoDB\Driver\Manager::executeQuery — Execute a database query MongoDB\Driver\Manager::executeReadCommand — Execute a database command that reads MongoDB\Driv ...
https://man.mtool.work/php/8.3/class.mongodb-driver-manager.html
The MongoDB\Driver\Server class | PHP 8.3 8023
The MongoDB\Driver\Server class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\Server { /* 定数 */ const int TYPE_UNKNOWN = 0 ; const int TYPE_STANDALONE = 1 ; const int TYPE_MONGOS = 2 ; const int TYPE_POSSIBLE_PRIMARY = ... nd ( string $db , MongoDB\Driver\Command $command , ? array $options = null ): MongoDB\Driver\Cursor final public function executeQuery ( string $namespace , MongoDB\Driver\Query $query , ? array $options = null ): MongoDB\Driver\Cursor final public function ... bulkWrite command MongoDB\Driver\Server::executeCommand — Execute a database command on this server MongoDB\Driver\Server::executeQuery — Execute a database query on this server MongoDB\Driver\Server::executeReadCommand — Execute a database command that read ...
https://man.mtool.work/php/8.3/class.mongodb-driver-server.html
MongoDB\Driver\Cursor::setTypeMap — Sets a type map to use for BSON unserializa... 7763
MongoDB\Driver\Cursor::setTypeMap (mongodb >=1.0.0) MongoDB\Driver\Cursor::setTypeMap — Sets a type map to use for BSON unserialization 説明 final public function MongoDB\Driver\Cursor::setTypeMap ( array $typemap ): void Sets the type map ... executeBulkWrite ( 'db.collection' , $bulk ); $query = new MongoDB\Driver\Query ([ '_id' => $id ]); $cursor = $manager -> executeQuery ( 'db.collection' , $query ); $cursor -> setTypeMap ([ 'root' => 'array' ]); foreach ( $cursor as $document ) { var_dump ( ...
https://man.mtool.work/php/8.3/mongodb-driver-cursor.settypemap.html
MongoDB\Driver\CursorId::__toString — String representation of the cursor ID | ... 7763
MongoDB\Driver\CursorId::__toString (mongodb >=1.0.0) MongoDB\Driver\CursorId::__toString — String representation of the cursor ID 説明 final public function MongoDB\Driver\CursorId::__toString (): string Returns the string representation o ... ' => 2 ]); $bulk -> insert ([ 'x' => 3 ]); $manager -> executeBulkWrite ( 'db.collection' , $bulk ); $cursor = $manager -> executeQuery ( 'db.collection' , $query ); var_dump ((string) $cursor -> getId ()); ?> 上の例の出力は、 たとえば以下のようになります。 ...
https://man.mtool.work/php/8.3/mongodb-driver-cursorid.tostring.html
PREV 1 2 NEXT