feat: internationalization #43

Merged
matous-volf merged 8 commits from feat/internationalization into main 2024-09-10 14:44:47 +00:00
Showing only changes of commit 587ed9e2d7 - Show all commits

View File

@ -4,9 +4,9 @@ use dotenvy::dotenv;
use std::env;
pub(crate) fn establish_database_connection() -> ConnectionResult<PgConnection> {
dotenv().ok();
dotenv().expect("Could not load environment variables.");
let database_url =
env::var("DATABASE_URL").expect("The environment variable DATABASE_URL must be set.");
env::var("DATABASE_URL").expect("The environment variable DATABASE_URL has to be set.");
PgConnection::establish(&database_url)
}