chemicalchecker.util.psql.psql.qstring

qstring(query, dbname)[source]

Method to query a PSQL DB.

Parameters:

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

Returns:

the data queried in row format

Return type:

rows