Closed minshao closed 2 months ago
This update introduces the review-migrate
tool for managing database migrations in the REview project. It allows configuration via environment variables or a TOML file, enabling users to specify settings such as data_dir
, backup_dir
, database_url
, and ca_certs
. The Cargo.toml
file reflects the addition of a new optional dependency and a binary target for the migration tool. The src/migrate.rs
file implements the migration utility, facilitating data transfer from PostgreSQL to RocksDB with robust configuration handling.
File | Change Summary |
---|---|
CHANGELOG.md | Added a summary of the new review-migrate tool for database migrations and its configuration. |
Cargo.toml | Updated package version to 0.30.1-alpha.1 , added optional dependency config , and introduced a binary target review-migrate with required features. |
src/migrate.rs | Implemented the migration utility for transferring data from PostgreSQL to RocksDB, including configuration loading and command-line parsing. |
.github/workflows/ci.yml | Modified CI workflow to include --all-features flag for cargo build and cargo test to ensure comprehensive testing. |
review-migrate
, which performs database migrations based on configurations, aligning with the objectives of this issue.In fields of code where rabbits play,
A tool for migrations has come our way.
With settings to guide and paths to find,
Our databases dance, perfectly aligned.
So hop along, let the migrations flow,
Withreview-migrate
, watch our data grow! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 0%
with 77 lines
in your changes missing coverage. Please review.
Project coverage is 66.47%. Comparing base (
a91d90c
) to head (03196df
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
src/migrate.rs | 0.00% | 77 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Resolves #345
Summary by CodeRabbit
New Features
review-migrate
tool for managing database migrations.Improvements
CI Enhancements
Version Update
review-database
package version to0.30.1-alpha.1
.