MCPcopy Create free account
hub / github.com/dbcli/mycli / db_connection

Function db_connection

test/utils.py:250–253  ·  view source on GitHub ↗
(dbname=None)

Source from the content-addressed store, hash-verified

248
249
250def db_connection(dbname=None):
251 conn = pymysql.connect(user=USER, host=HOST, port=PORT, database=dbname, password=PASSWORD, charset=CHARACTER_SET, local_infile=False)
252 conn.autocommit = True
253 return conn
254
255
256try:

Callers 10

test_favorite_queryFunction · 0.90
test_watch_query_fullFunction · 0.90
test_watch_query_clearFunction · 0.90
connectionFunction · 0.90
utils.pyFile · 0.85
create_dbFunction · 0.85

Calls 1

connectMethod · 0.45

Tested by 8

test_favorite_queryFunction · 0.72
test_watch_query_fullFunction · 0.72
test_watch_query_clearFunction · 0.72
connectionFunction · 0.72