[−][src]Function dhb_postgres_heroku::get_client
pub fn get_client(database_url: &str) -> Client
Get a working client from a postgres url.
Example:
let database_url = "postgres://username:password@host:port/db_name"; let mut client = dhb_postgres_heroku::get_client(&database_url);
Panics
This will panic if it can't connect.
That could be because your database_url is wrong, because your database is down, because your internet connection is failing, etc.