Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
main
Function · 0.85
Calls
3
SimpleWrapper
Class · 0.85
cursor
Method · 0.80
connect
Method · 0.45
Tested by
no test coverage detected