MCPcopy Create free account
hub / github.com/apache/cloudstack / connect

Method connect

python/lib/cloudutils/db.py:31–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 self.db = db
30
31 def connect(self):
32 return mysql.connector.connect(host=self.host,
33 user=self.username,
34 password=self.password,
35 database=self.db)
36
37 def execute(self, statement):
38 txn = None

Callers 2

executeMethod · 0.95
testConnectionMethod · 0.95

Calls 1

connectMethod · 0.65

Tested by

no test coverage detected