Don't use separate temp dir for query jsons (2) (#2803)

* Don't use temp dir for query jsons

Fixes #2663

* Return early when exclusive create fails

* Use atomic-file-write for writing query data
This commit is contained in:
Matt Fellenz
2023-10-17 11:41:30 -07:00
committed by GitHub
parent f93bbe87be
commit b16fbebf2f
5 changed files with 13 additions and 48 deletions

View File

@@ -171,7 +171,6 @@ fn run_prepare_step(ctx: &PrepareCtx, cache_dir: &Path) -> anyhow::Result<()> {
check_command
.arg("check")
.args(&ctx.cargo_args)
.env("SQLX_TMP", tmp_dir)
.env("DATABASE_URL", &ctx.connect_opts.database_url)
.env("SQLX_OFFLINE", "false")
.env("SQLX_OFFLINE_DIR", cache_dir);