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

Method __init__

dbConnector.py:7–23  ·  view source on GitHub ↗
(self,*argv, **kwargs)

Source from the content-addressed store, hash-verified

5
6class DbConnector:
7 def __init__(self,*argv, **kwargs) -> None:
8 arguments = None
9 if len(kwargs) == 0:
10 arguments = argv[0]
11 else:
12 arguments = Connection()
13 for key,value in kwargs.items():
14 setattr(arguments, key, value)
15
16 self._delimiter = arguments.delimiter if hasattr(arguments, "delimiter") else ","
17 self._table= arguments.table if hasattr(arguments, "table") else None
18 self._database = arguments.database if hasattr(arguments, "database") else None
19 self._host = arguments.host
20 self._username = arguments.username
21 self._password = arguments.password
22 self._connection = Connection(server=arguments.host,username=arguments.username,password=arguments.password)
23 self._dbms = arguments.dbms
24
25
26 def _createDBEngine(self, database=None, connection=None):

Callers

nothing calls this directly

Calls 1

ConnectionClass · 0.90

Tested by

no test coverage detected