blob: 85683e9527b6877b75269153892eedbcfe6abbe9 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use mysql;
use errors::*;
pub fn get_database_pool() -> Result<mysql::Pool> {
let connection_url = env!("DATABASE_URL");
let pool = mysql::Pool::new_manual(4, 15, connection_url)?;
Ok(pool)
}
|