debug: print db url
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2024-07-14 21:46:35 +05:30
parent c1eeff81d5
commit 53239dd55e
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -39,6 +39,7 @@ pub struct PostgresDatabase;
#[async_trait::async_trait]
impl super::create_database::CreateDatabase for PostgresDatabase {
async fn create_database(&self, url: &url::Url) {
println!("Trying to connect to: {}", url.as_str());
sqlx::Postgres::create_database(url.as_str()).await.unwrap();
}
}