add mysql2postgres

This commit is contained in:
Ember Moth
2026-07-05 20:43:52 +08:00
parent 67bfc9bd72
commit 5d0b790aa1
5 changed files with 622 additions and 286 deletions
+19
View File
@@ -0,0 +1,19 @@
[package]
name = "mysql2postgres"
version = "0.1.0"
edition = "2021"
description = "Copy data from MySQL to PostgreSQL for ppanel-backend migrations"
[[bin]]
name = "mysql2postgres"
path = "src/main.rs"
[dependencies]
anyhow = "1"
chrono = "0.4"
clap = { version = "4", features = ["derive", "env"] }
sqlx = { version = "0.9", features = ["runtime-tokio", "mysql", "postgres", "chrono", "any"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
futures = "0.3"