release 1.0.0-rc.2 - #29
Merged
Merged
Conversation
- settings builders and `Migrator` now use owned `self` chains - `SettingsFileInitializer::with_*_options` take the builder by value - `MigrationStatus` fields are private; use `tag()`/`applied()` accessors - `DbKind` and `ForceMode` are now `#[non_exhaustive]` - add `--no-sync` to `apply`/`redo` to disable the advisory lock - keep `Config` on `&mut self`
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.
Pre-1.0 API cleanup for the 1.0.0-rc.2 release.
Breaking
SqliteSettingsBuilder/PostgresSettingsBuilder/MySqlSettingsBuilder) andSettingsFileInitializeruse ownedselfbuilder chains (setters take/returnSelf), unifying them with the migration builders.build(&self)is unchanged.with_*_optionstake the builder by value.Migratorsetters (direction/force/fake/all/show_output/synchronized) take/return ownedself.with_config/applyunchanged.MigrationStatusfieldstag/appliedare private; read them via thetag()andapplied()accessors.DbKindandForceModeare now#[non_exhaustive], so downstream matches need a wildcard arm. This lets future backends and force modes land without a breaking change.Configstays&mut self(it is a live-connection handle, not a builder).These are source-compatible for existing chained call sites; only two-statement builder patterns and exhaustive matches need updating.
Added
--no-synconapplyandredodisables the cross-process advisory lock, for runs serialized by an external mechanism. Onredoit covers both the down and up runs.Other
migrant_lib/README.md.v0.14.0/v0.15.0/v0.15.1git tags (resolves Missing tag for v0.14 #19).