Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PyMySQL/mysqlclient
/ connection_factory
Function
connection_factory
tests/configdb.py:20–25 ·
view source on GitHub ↗
(**kwargs)
Source
from the content-addressed store, hash-verified
18
19
20
def
connection_factory(**kwargs):
21
import
MySQLdb
22
23
db_kwargs = connection_kwargs(kwargs)
24
db = MySQLdb.connect(**db_kwargs)
25
return
db
Callers
10
test_multi_statements_default_true
Function · 0.90
test_multi_statements_false
Function · 0.90
setUp
Method · 0.90
setUp
Method · 0.90
test_client_flag
Method · 0.90
test_context_manager
Method · 0.90
setUp
Method · 0.90
connect
Function · 0.90
test_binary_prefix
Method · 0.90
connect
Function · 0.90
Calls
1
connection_kwargs
Function · 0.85
Tested by
9
test_multi_statements_default_true
Function · 0.72
test_multi_statements_false
Function · 0.72
setUp
Method · 0.72
test_client_flag
Method · 0.72
test_context_manager
Method · 0.72
setUp
Method · 0.72
connect
Function · 0.72
test_binary_prefix
Method · 0.72
connect
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…