Test changes
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ mod db_mgr {
|
|||||||
template_pool: &sqlx::PgPool,
|
template_pool: &sqlx::PgPool,
|
||||||
db_name: &str,
|
db_name: &str,
|
||||||
) -> Result<(), sqlx::Error> {
|
) -> Result<(), sqlx::Error> {
|
||||||
match sqlx::query(r#"CREATE DATABASE $1"#)
|
match sqlx::query(r#"CREATE DATABASE {}"#)
|
||||||
.bind(db_name)
|
.bind(db_name)
|
||||||
.execute(template_pool)
|
.execute(template_pool)
|
||||||
.await
|
.await
|
||||||
@@ -69,7 +69,7 @@ mod db_mgr {
|
|||||||
template_pool: &sqlx::PgPool,
|
template_pool: &sqlx::PgPool,
|
||||||
db_name: &str,
|
db_name: &str,
|
||||||
) -> Result<(), sqlx::Error> {
|
) -> Result<(), sqlx::Error> {
|
||||||
sqlx::query(r#"DROP DATABASE IF EXISTS $1 WITH (FORCE)"#)
|
sqlx::query(r#"DROP DATABASE IF EXISTS {} WITH (FORCE)"#)
|
||||||
.bind(db_name)
|
.bind(db_name)
|
||||||
.execute(template_pool)
|
.execute(template_pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user