MCPcopy 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
20def connection_factory(**kwargs):
21 import MySQLdb
22
23 db_kwargs = connection_kwargs(kwargs)
24 db = MySQLdb.connect(**db_kwargs)
25 return db

Callers 10

setUpMethod · 0.90
setUpMethod · 0.90
test_client_flagMethod · 0.90
test_context_managerMethod · 0.90
setUpMethod · 0.90
connectFunction · 0.90
test_binary_prefixMethod · 0.90
connectFunction · 0.90

Calls 1

connection_kwargsFunction · 0.85

Tested by 9

setUpMethod · 0.72
test_client_flagMethod · 0.72
test_context_managerMethod · 0.72
setUpMethod · 0.72
connectFunction · 0.72
test_binary_prefixMethod · 0.72
connectFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…