MongoDB\Driver\CursorInterface::isDead
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::isDead — Checks if the cursor may have additional results
说明
Checks whether the cursor may have additional results available to read. A cursor is initially "alive" but may become "dead" for any of the following reasons:
- Advancing a non-tailable cursor did not return a document
 - The cursor encountered an error
 - The cursor read its last batch to completion
 - The cursor reached its configured limit
 
参数
此函数没有参数。
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
 
参见
- MongoDB\Driver\Cursor::isDead() - Checks if the cursor is exhausted or may have additional results
 
  +添加备注
  
 用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mongodb-driver-cursorinterface.isdead.php