MongoDB\Driver\Cursor::rewind
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result
説明
public MongoDB\Driver\Cursor::rewind ( ) : void
If the cursor has advanced beyond its first position, it can no longer be rewound.
パラメータ
この関数にはパラメータはありません。
返り値
null
.
エラー / 例外
- 引数のパースに失敗した場合に MongoDB\Driver\Exception\InvalidArgumentException をスローします。
- サーバーへの接続が認証以外の理由で失敗した場合に MongoDB\Driver\Exception\ConnectionException をスローします。
- 認証が必要な場面で認証に失敗した場合に MongoDB\Driver\Exception\AuthenticationException をスローします。
- Throws MongoDB\Driver\Exception\LogicException if this method is called after the cursor has advanced beyond its first position.