File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ def __init__(self,
78
78
multiple = 4 ,
79
79
counter = 0 ,
80
80
accumulation = 0 ,
81
- ping_check : (int , bool ) = False ):
81
+ ping_check : (int , bool ) = False ,
82
+ ** configs ):
82
83
self .host = host
83
84
self .port = port
84
85
self .user = user
@@ -106,6 +107,7 @@ def __init__(self,
106
107
self .ping_check = ping_check
107
108
108
109
self .unix_socket = unix_socket
110
+ self .configs = configs
109
111
110
112
def create_conn (self ):
111
113
"""Create mysql connection by pymysql and to add unuse_list"""
@@ -118,7 +120,8 @@ def create_conn(self):
118
120
charset = self .charset ,
119
121
cursorclass = self .cursorclass ,
120
122
autocommit = self .autocommit ,
121
- unix_socket = self .unix_socket
123
+ unix_socket = self .unix_socket ,
124
+ ** self .configs
122
125
)
123
126
self .unuse_list .add (c )
124
127
You can’t perform that action at this time.
0 commit comments