Repository navigation
docs(examples): query the demo's log with a snapshot, not litelink - #107
Merged
Merged
Conversation
The examples README opened the trades log with litelink.open. It now reads the same table through Stream.snapshot on the stream's metadata file. The main README said a snapshot given broker= reads the buffer too; it needs as_of_offset=LATEST as well, and now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FsSDkeb5rVAxA1FSmKKfQi
This was referenced Oct 6, 2026
Closed
Merged
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
litelink.open(...)snippet that queries the trades demo's log is replaced withStream.snapshotonstreamcast-data/trades.metadata.json. It runs the samesqlandscan. A new note says that, while the broker is running,as_of_offset=streamcast.LATEST, broker="ws://127.0.0.1:8765/trades"adds the rows not yet published.broker=reads across both". A snapshot also needsas_of_offset=LATESTto read past the published end, so the sentence now says that.I ran both against a demo-shaped stream with 6 published rows and 4 unpublished. A plain snapshot returned 6 rows, and
LATESTwithbroker=returned 10. Thesqlandscanin the snippet returned the expected rows.🤖 Generated with Claude Code
https://claude.ai/code/session_01FsSDkeb5rVAxA1FSmKKfQi