Database.__init__¶
-
Database.
__init__
(config_file: str = None, host: str = None, port: int = None, database: str = None, user: str = None, passfile: str = None)[source]¶ Initializes the
Database
object. If aconfiguration file name
is given, the constructor calls the methodconfig()
and overrides the default attributes- Parameters
- Raises
configparser.Error – If a configuration file name was given, the method
config()
can fail raising this exception.