Skip to main content

cursors

Creates, updates, deletes, gets or lists a cursors resource.

Overview

Namecursors
TypeResource
Idgoogle.pubsublite.cursors

Fields

NameDatatypeDescription
cursorobjectA cursor that describes the position of a message within a topic partition.
partitionstringThe partition this is for.

Methods

NameAccessible byRequired ParamsDescription
cursor_projects_locations_subscriptions_cursors_listSELECTlocationsId, projectsId, subscriptionsIdReturns all committed cursor information for a subscription.

SELECT examples

Returns all committed cursor information for a subscription.

SELECT
cursor,
partition
FROM google.pubsublite.cursors
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND subscriptionsId = '{{ subscriptionsId }}';