MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / __init__

Method __init__

database/db.py:7–16  ·  view source on GitHub ↗
(self, dbname:str, connectionsettings:Connection)

Source from the content-addressed store, hash-verified

5
6class 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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected