MongoDB\Driver\Cursor::rewind
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result
说明
If the cursor has advanced beyond its first position, it can no longer be rewound.
参数
此函数没有参数。
返回值
null
.
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication).
- Throws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails.
- Throws MongoDB\Driver\Exception\LogicException if this method is called after the cursor has advanced beyond its first position.
参见
- Iterator::rewind() - 返回到迭代器的第一个元素
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mongodb-driver-cursor.rewind.php