Skip to content
This repository was archived by the owner on Nov 8, 2026. It is now read-only.

Consume streaming results through typed SDK requests - #25

Merged
liran merged 4 commits into
mainfrom
randy/streaming-responses
Sep 20, 2026
Merged

liran merged 4 commits into
mainfrom
randy/streaming-responses

Conversation

@liran

@liran liran commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Consume Read, Write, Query and Scan as streams through typed request structs. Client and Dataset calls accept context plus one request, with constructors and chainable helpers for common fields. Unset completion modes default to APPLIED for writes/deletes; Query defaults to page 1 with 100 documents and Scan to 100 documents. Helpers and struct literals share defaults. OnResult and OnDocument consume without collection; nil callbacks collect results, while Query/Scan retain page metadata. Preserve partial acknowledgements, cancellation, safe read retries and unknown mutation outcomes. Coordinate this breaking upgrade with Sink #113 and qualification #29.

Validated with local race tests, coverage gates, vet, staticcheck and integration-tag compilation. Regressions check actual RPC defaults, explicit overrides, rejection of invalid values, callback/result exclusivity and partial outcomes. Examples and qualification callers use the new requests. No production access or long-running tests were performed.

@liran liran changed the title Consume streaming results with optional callbacks Consume streaming results through typed SDK requests Sep 20, 2026
@liran
liran merged commit 1425153 into main Sep 20, 2026
2 checks passed
@liran
liran deleted the randy/streaming-responses branch September 20, 2026 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant