PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

MongoDB\Driver\Server::executeQuery - Execute a database query on this server | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

MongoDB\Driver\Server::executeQuery

(mongodb >=1.0.0)

MongoDB\Driver\Server::executeQueryExecute a database query on this server

説明

final public MongoDB\Driver\Cursor MongoDB\Driver\Server::executeQuery ( string $namespace , MongoDB\Driver\Query $query [, MongoDB\Driver\ReadPreference $readPreference ] )

Executes query on this server.

注意:

The readPreference parameter does not control the server to which the driver issues the query; the query will always be executed on this server object. Instead, it may be used when issuing the command to a secondary (from a replica set connection, not standalone) or mongos node to ensure that the driver sets the wire protocol accordingly or adds the read preference to the query document, respectively.

パラメータ

namespace (string)

完全修飾形式の名前空間 ("databaseName.collectionName")。

query (MongoDB\Driver\Query)

実行する MongoDB\Driver\Query

readPreference (MongoDB\Driver\ReadPreference)

オプションの MongoDB\Driver\ReadPreference で、この操作の対象となるサーバーを指定します。省略した場合は、MongoDB Connection URI で設定したデフォルトの優先読み込みを使います。

返り値

成功した場合に MongoDB\Driver\Cursor を返します。

エラー / 例外


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「MongoDB\Driver\Server::executeQuery - Execute a database query on this server」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | MongoDB\Driver\Server::executeQuery - Execute a database query on this server」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: