almost prod product

This commit is contained in:
Romulus21
2024-11-02 16:44:02 +01:00
parent 6b32f3ee05
commit bd48522b66
11 changed files with 31 additions and 22 deletions

View File

@@ -2,7 +2,6 @@ static DB: std::sync::OnceLock<sqlx::MySqlPool> = std::sync::OnceLock::new();
async fn create_pool() -> sqlx::MySqlPool {
let database_url = std::env::var("DATABASE_URL").expect("no database url specify");
dbg!(&database_url);
let pool = sqlx::mysql::MySqlPoolOptions::new()
.max_connections(4)
.connect(database_url.as_str())