Database.__init__

Database.__init__(config_file: str = None)[source]

Initializes the Database object. If a configuration file name is given, the constructor calls the method config() and overrides the default attributes

Parameters

config_file (str, optional) – Configuration file name, default is None. See here for a configuration file example

Raises

configparser.Error – If a configuration file name was given, the method config() can fail raising this exception.