MCPcopy Create free account
hub / github.com/ActiveState/code / connect_db

Function connect_db

recipes/Python/389170_SimpleWrapper/recipe-389170.py:44–47  ·  view source on GitHub ↗
(*k)

Source from the content-addressed store, hash-verified

42 # ...
43
44 def connect_db(*k):
45 import MySQLdb
46 conn = MySQLdb.connect(*k)
47 return SimpleWrapper(globals(), conn.cursor())
48
49 def create_table(cursor):
50 pass # ...

Callers 1

mainFunction · 0.85

Calls 3

SimpleWrapperClass · 0.85
cursorMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected