Version 2.0.0 Beta 1 #257
cljoly
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version 2.0.0 Beta 1
Features
Migrations::from_slice
constructor, which isconst
and takes a slice, so that it can be constructed in global constant, without usingLazyLock
or similar. Internally, this is possible because we now use aCow
structure to hold migrations.Migrations::pending_migrations
which returns the number of migrations that would be applied. This is mostly useful to take a backup of the database prior to applying migrations (and do nothing if no migrations will be applied).Warning
See also the release notes for Version 2.0.0 Alpha 1 for the full list of changes since the last version, including breaking changes.
What's Changed
Cow
instead ofVec
by @cljoly in refactor: Keep migrations inCow
instead ofVec
#252Migrations::from_slice
documentation by @MonterraByte in docs: improveMigrations::from_slice
documentation #253Full Changelog: v2.0.0-alpha.1...v2.0.0-beta.1
This discussion was created from the release Version 2.0.0 Beta 1.
Beta Was this translation helpful? Give feedback.
All reactions