bump: sqlx #26

Merged
phoenix merged 8 commits from sqlx_bump into alot_of_changes 2026-06-20 23:11:15 -04:00
Showing only changes of commit 78dfe082e0 - Show all commits
+5 -4
View File
@@ -31,7 +31,8 @@ mod db_mgr {
template_pool: &sqlx::PgPool,
db_name: &str,
) -> Result<(), sqlx::Error> {
match sqlx::query(r#"CREATE DATABASE {}"#)
// let query = format!("CREATE DATABASE {}", db_name);
match sqlx::query(r#"CREATE DATABASE $1"#)
.bind(db_name)
.execute(template_pool)
.await
@@ -67,10 +68,10 @@ mod db_mgr {
// Function to drop a database
pub async fn drop_database(
template_pool: &sqlx::PgPool,
db_name: &str,
_db_name: &str,
) -> Result<(), sqlx::Error> {
sqlx::query(r#"DROP DATABASE IF EXISTS {} WITH (FORCE)"#)
.bind(db_name)
sqlx::query(r#"DROP DATABASE IF EXISTS $1 WITH (FORCE)"#)
.bind(_db_name)
.execute(template_pool)
.await?;
Ok(())