chemicalchecker.util.psql.psql.get_connection

get_connection(dbname=None)[source]

Return the connection to a PSQL DB.

Parameters:

dbname (str) – The name of DB to connect. If none, the name from config file is used.

Returns:

connection