Expand description
Cursor persistence for Jetstream consumer.
Stores the last processed event timestamp (time_us) so the consumer
can resume from where it left off after restart.
Constants§
- CREATE_
CURSOR_ TABLE_ POSTGRES - SQL for creating the cursor table (PostgreSQL).
- CREATE_
CURSOR_ TABLE_ SQLITE - SQL for creating the cursor table (SQLite).
Functions§
- ensure_
cursor_ table - Ensure the cursor table exists for the active backend.
- load_
cursor - Load the last stored cursor for a consumer.
Returns
Noneif no cursor has been stored yet. - save_
cursor - Save the cursor position for a consumer.