Repository navigation
v7.1.0
馃殌 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
--localto 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, andexit_codefields 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
postgresmaintenance database before dropping target databases, fixing the PostgreSQL error that prevented database recreation. -
Windows build for sqlite-watcher: Added
bundled-windowsfeature to rusqlite dependency in sqlite-watcher, fixing Windows builds that failed due to missingsqlite3.lib.
馃摝 Installation
From crates.io:
cargo install database-replicatorDownload 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
- Documentation: https://github.com/serenorg/database-replicator#readme
- Crates.io: https://crates.io/crates/database-replicator
- Issues: https://github.com/serenorg/database-replicator/issues
License
Apache License 2.0