|
MongoDB\Driver\Cursor::isDeadChecks if the cursor is still open on the server Beschreibung
final public bool MongoDB\Driver\Cursor::isDead
( void
)
Returns whether the cursor is still open on the server (i.e. the server has more results that have yet to be sent to the client). A cursor being "dead" does not mean that it cannot be iterated further. The database sends responses in batches of documents (up to 4MB of documents per response). The client's cursor may still have results to be iterated even if the server has no more batches to send. Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
Returns Fehler/Exceptions
BeispieleBeispiel #1 MongoDB\Driver\Cursor::isDead example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: bool(false) bool(true) |