Sync from docs: document composite-key JOIN support in Sync Streams (powersync-docs #395)#39
Merged
Merged
Conversation
michaelbarnes
approved these changes
Jun 4, 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 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.
Source docs PR: powersync-ja/powersync-docs#395
What changed in docs
The Sync Streams compiler now supports joining two tables on multiple columns (composite keys) — queries that previously failed with an internal circular reference error are now valid. The docs added a composite-key example to the JOIN Syntax reference in
sync/supported-sql.mdx.Skill updates in this PR
skills/powersync/references/sync-config.md— added a composite-key JOIN example under the### JOINcommon pattern, showing implicit join syntax with multipleWHEREequality conditions.Notes for reviewer
The docs PR also mentions a "Multi-column join conditions" subsection was added to the Writing Queries page, but the diff only touched
sync/supported-sql.mdx(6 additions, 1 file). The skill edit mirrors what is in the diff: a valid composite-key example. If the Writing Queries page change surfaces in a follow-up docs PR, a further skill update may be warranted.Generated by Claude Code