Database.__init__¶
-
Database.
__init__
(config_file: str = None)[source]¶ Initializes the
Database
object. If aconfiguration file name
is given, the constructor calls the methodconfig()
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.