MongoCursor::dead

(PECL mongo >=0.9.6)

MongoCursor::deadChecks if there are results that have not yet been sent from the database

说明

public MongoCursor::dead ( void ) : bool

The database sends responses in batches of documents, up to 4MB of documents per response. This method checks if the database has more batches or if the result set has been exhausted.

A cursor being "dead" does not mean that MongoCursor::hasNext() will return FALSE, it only means that the database is done sending results to the client. The client should continue iterating through results until MongoCursor::hasNext() is FALSE.

参数

此函数没有参数。

返回值

Returns TRUE if there are more results that have not yet been sent to the client, and FALSE otherwise.

参见

相关文章
php domnode checks if the specified namespaceuri is the default namespace or notphp dbx 函数 send a query and fetch all results if any php maxdb 函数 check if there any more query results from a multi queryphp oci8 函数 returns the next child statement resource from a parent statement resource that has oracle database 12c implicit result setsphp odbc 函数 checks if multiple results are availablephp sqlite 函数 opens an sqlite database and create the database if it does not existphp sqlite 函数 opens a persistent handle to an sqlite database and create the database if it does not existphp wincache 函数 checks if a variable exists in the user cachephp mongocommandcursor checks if there are results that have not yet been sent from the databasephp mongocursor checks if there are results that have not yet been sent from the databasephp mongocursor checks if there are any more elements in this cursorphp mongocursor if this query should fetch partial results from mongos if a shard is downphp mongocursor checks if the cursor is reading a valid resultphp mongocursorinterface checks if there are results that have not yet been sent from the databasephp mongodb driver cursor checks if the cursor may have additional resultsphp mysqli stmt check if there are more query results from a multiple queryphp mysqlnduhconnection check if there are any more query results from a multi queryphp pharfileinfo returns crc32 code or throws an exception if crc has not been verifiedphp reflectionclassconstant checks if class constant is publicphp solrquery if true solr includes the number of groups that have matched the query in the results
关注编程学问公众号