update : 2015.11.03
php.shukuma.com검색:
|
MongoCursor::doQuery(PECL mongo >=0.9.0 <1.6.0) MongoCursor::doQuery — Execute the query. 설명
protected void MongoCursor::doQuery
( void
)
Warning
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. 변경점
예제
Example #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 |