Cloud Datastore Client - Class Cursor (1.28.2)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Datastore Client class Cursor.
Represents a Cursor value.
A cursor points to a position within a set of entities. Cloud Datastore uses Cursors for paginating query results.
Example:
use Google\Cloud\Datastore\DatastoreClient;
$datastore = new DatastoreClient();
$cursor = $datastore->cursor($cursorValue);
$query = $datastore->gqlQuery('SELECT * FROM Companies OFFSET @cursor', [
'bindings' => [
'cursor' => $cursor
]
]);
Namespace
Google \ Cloud \ DatastoreMethods
__construct
| Parameter | |
|---|---|
| Name | Description |
cursor |
string|int
The cursor value. |
cursor
| Returns | |
|---|---|
| Type | Description |
string|int |
|