Repository navigation
feat(migrate): add offline v1 planner - #41
Merged
Merged
Conversation
Add a pure offline planner so SQL Server migrations can be planned without a registered database dialect. engine.PlanRequest gains a Using field that supplies the dialect directly, and Plan rejects a Using dialect whose Name differs from Dialect. Adds the v1 Plan, BuildArtifact and ValidateArtifact API. Artifacts are hashed over their snapshots and plan, so edited SQL is refused. BuildArtifact rejects snapshots outside the declared schema scope. Also adds rspress docs config and tsconfig.json for the documentation site. Claude-Session-Id: aac3359c-0751-4548-86ed-cf84a8c20d9a
moshloop
enabled auto-merge (rebase)
November 26, 2026 04:37
|
🎉 This PR is included in version 1.6.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Gavel summary
Totals: 32 passed · 0 failed · 0 skipped · 4.1s |
Gavel summary
Totals: 34 passed · 0 failed · 0 skipped · 1m54s |
Gavel summary
Totals: 4622 passed · 1 failed · 8 skipped · 15.5s Failing testssqlglot — migration filesystem confinement > plans --label sources that each start with the same schema block |
Gavel summary
Totals: 1 passed · 0 failed · 0 skipped · 2m32s |
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.
What
engine.PlanRequest.Usingto supply the dialect directly;Planrejects aUsingdialect whoseNamediffers fromDialect.Plan,BuildArtifact, andValidateArtifactAPI.tsconfig.jsonfor the documentation site.Why
Notes
BuildArtifactrejects snapshots outside the declared schema scope.