pub fn make_single_connection(tenant: &str, server: &str) -> PgConnection
Expand description

Creates a single connection to the PostgreSQL RDBMS, and panics if the connection could not be established.

This function needs the tenant name, which is equal to the database name, and the server endpoint for the database (e.g. localhost:5432).