MCPcopy Index your code
hub / github.com/clips/pattern / create_db_mysql

Function create_db_mysql

test/test_db.py:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15DB_SQLITE = DB_SQLITE_EXCEPTION = None
16
17def create_db_mysql():
18 global DB_MYSQL
19 global DB_MYSQL_EXCEPTION
20 try:
21 DB_MYSQL = db.Database(
22 type = db.MYSQL,
23 name = "pattern_unittest_db",
24 host = HOST,
25 port = PORT,
26 username = USERNAME,
27 password = PASSWORD)
28 except ImportError, e:
29 DB_MYSQL_EXCEPTION = None # "No module named MySQLdb"
30 except Exception, e:
31 DB_MYSQL_EXCEPTION = e
32
33def create_db_sqlite():
34 global DB_SQLITE

Callers 1

suiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…