This repository was archived by the owner on Nov 8, 2026. It is now read-only.
Repository navigation
Consume streaming results through typed SDK requests - #25
Merged
Merged
Conversation
This was referenced Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.