(self, dbname:str, connectionsettings:Connection)
| 5 | |
| 6 | class DataBase: |
| 7 | def __init__(self, dbname:str, connectionsettings:Connection): |
| 8 | if connectionsettings is not None: |
| 9 | self.username = connectionsettings.username |
| 10 | self.password = connectionsettings.password |
| 11 | self.host = connectionsettings.server |
| 12 | |
| 13 | self._database = dbname.lower() if dbname else None |
| 14 | self._status_handler = None |
| 15 | self._hashcolumn = Settings.checksum_column |
| 16 | self._tables = [] |
| 17 | |
| 18 | @property |
| 19 | def principal_database(self)->str: |
nothing calls this directly
no outgoing calls
no test coverage detected