I have found these related issues/pull requests
#788
Description
cargo sqlx prepare removes some files (without adding the same amount) in .sqlx/ when changing a query in the codebase. cargo clean does fix the issue, but it seems like running cargo sqlx prepare multiple times ends up producing the correct output as well.
Reproduction steps
cargo sqlx prepare
SQLx version
0.8.6
Enabled SQLx features
"runtime-tokio", "postgres", "chrono", "ipnetwork", "json"
Database server and version
Postgres
Operating system
asahi linux
Rust version
rustc 1.89.0 (29483883e 2025-08-04)