This commit is contained in:
mStar aka a person 2023-12-31 16:38:59 +00:00
parent 6f1192a73c
commit fd06408962

View file

@ -17,7 +17,7 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations");
pub fn establish_connection(db_url: &str) -> PgConnection {
//SqliteConnection::establish(db_url).unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e))
let conn = PgConnection::establish(db_url)
let mut conn = PgConnection::establish(db_url)
.unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e));
// TODO: Add migrations here
conn