mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
chore(deps): Replace unmaintained tempdir crate with tempfile (#3006)
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
@@ -3,10 +3,10 @@ use std::str::FromStr;
|
||||
use sqlx::sqlite::SqliteQueryResult;
|
||||
use sqlx::{query, Connection, SqliteConnection};
|
||||
use sqlx::{sqlite::SqliteConnectOptions, ConnectOptions};
|
||||
use tempdir::TempDir;
|
||||
use tempfile::TempDir;
|
||||
|
||||
async fn new_db_url() -> anyhow::Result<(String, TempDir)> {
|
||||
let dir = TempDir::new("sqlcipher_test")?;
|
||||
let dir = TempDir::new()?;
|
||||
let filepath = dir.path().join("database.sqlite3");
|
||||
|
||||
Ok((format!("sqlite://{}", filepath.display()), dir))
|
||||
|
||||
Reference in New Issue
Block a user