MongoDB\Driver\CursorInterface::getId

(mongodb >=1.6.0)

MongoDB\Driver\CursorInterface::getIdReturns the ID for this cursor

Beschreibung

abstract public MongoDB\Driver\CursorInterface::getId(): MongoDB\Driver\CursorId|MongoDB\BSON\Int64

Returns the ID for this cursor, which uniquely identifies the cursor on the server.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the ID for this cursor.

Fehler/Exceptions

Changelog

Version Beschreibung
PECL mongodb 1.20.0 Added MongoDB\BSON\Int64 to the tentative return type for this method. MongoDB\Driver\CursorId will be removed from the return type in version 2.0.

Siehe auch