blob
This commit is contained in:
parent
6f1192a73c
commit
fd06408962
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations");
|
||||||
|
|
||||||
pub fn establish_connection(db_url: &str) -> PgConnection {
|
pub fn establish_connection(db_url: &str) -> PgConnection {
|
||||||
//SqliteConnection::establish(db_url).unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e))
|
//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));
|
.unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e));
|
||||||
// TODO: Add migrations here
|
// TODO: Add migrations here
|
||||||
conn
|
conn
|
||||||
|
|
Loading…
Reference in a new issue