Skip to content

v7.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Jan 07:53
· 13 commits to main since this release
a353b7f

馃殌 database-replicator v7.1.0

[7.1.0] - 2025-12-31

Added

  • COPY FROM STDIN for 5-10x faster JSONB migrations (closes #92): SQLite, MongoDB, and MySQL migrations now use PostgreSQL's COPY protocol instead of batch INSERT statements. This provides massive throughput improvements for large datasets - a 7.2M row migration that took ~70 minutes now completes in ~10-15 minutes.

  • Better error information on remote job failures: When a remote replication job fails, the CLI now displays exit code, stderr, logs, and stdout (if returned by the API). When no detailed error info is available, provides troubleshooting guidance including common causes and suggests running with --local to debug.

  • Warning when all tables are schema-only: Interactive mode now warns users when ALL selected tables are marked as schema-only (no data transfer). This prevents accidental configurations where users expect data to be replicated but only schema structures are transferred.

  • Extended JobStatus fields: Added stdout, stderr, logs, and exit_code fields to capture detailed error information from remote job execution.

Fixed

  • DROP DATABASE error "cannot drop the currently open database": The init command now connects to the postgres maintenance database before dropping target databases, fixing the PostgreSQL error that prevented database recreation.

  • Windows build for sqlite-watcher: Added bundled-windows feature to rusqlite dependency in sqlite-watcher, fixing Windows builds that failed due to missing sqlite3.lib.

馃摝 Installation

From crates.io:

cargo install database-replicator

Download binaries:

  • Linux (x64): database-replicator-linux-x64-binary
  • macOS (Intel): database-replicator-macos-x64-binary
  • macOS (Apple Silicon): database-replicator-macos-arm64-binary
chmod +x database-replicator-*-binary
./database-replicator-*-binary --version

馃敆 Links

License

Apache License 2.0