Skip to content

Support stable sorting of parsed table sections - #88

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
upstream/sort-table-sections
Oct 24, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
upstream/sort-table-sections

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

Preserving transaction table order matters when a mutation combines SQLite sessions on separate schemas and the receiving server checks references per statement. Concatenating the session outputs can put a referencing table before the table it depends on.

ParsedDiffSet::sort_tables_by_key lets the caller supply that order without rebuilding operations. Equal keys retain relative section order, so unranked tables can share a fallback key.

@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request rust Pull requests that update rust code labels Oct 24, 2026
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LucaCappelletti94
LucaCappelletti94 merged commit 3a9fa83 into main Oct 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant