|
MongoCursor::doQueryExecute the query 説明
protected void MongoCursor::doQuery
( void
)
警告
Please do not use me. This function actually queries the database. All queries and commands go through this function. Thus, this function can be overridden to provide custom query handling. This handles serializing your query, sending it to the database, receiving a response, and deserializing it. Thus, if you are planning to override this, your code should probably call out to the original to use the existing functionality (see the example below). パラメータこの関数にはパラメータはありません。 返り値
エラー / 例外Throws MongoConnectionException if it cannot reach the database. 変更履歴
例
例1 MongoCursor::doQuery example You could override this function to attempt a query on a secondary and, if that fails, try it again on the primary.
<?php |