[][src]Function dhb_heroku_postgres_client::postgres_client

pub fn postgres_client(database_url: &str) -> Client

Example:

use dhb_heroku_postgres_client:postgres_client;

let database_url = "postgres://username:password@host:port/db_name";
let mut client = postgres_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.