Datenbankabfrage für Benutzer aktualisieren

This commit is contained in:
2025-02-05 21:27:05 +01:00
parent 580c2e7dc9
commit 42f7001b78
5 changed files with 44 additions and 54 deletions

View File

@@ -8,10 +8,7 @@ use sea_orm::Database;
#[tokio::main]
async fn main() -> Result<(), AppError> {
dotenvy::dotenv().unwrap();
// Datenbankverbindung herstellen
// let root = Path::new("/");
// env::set_current_dir(root);
//
let db = Database::connect(env::var("DATABASE_URL").unwrap()).await?;
// Service initialisieren