We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d22d7c + fc421c2 commit d20593bCopy full SHA for d20593b
1 file changed
pymysqlpool/pool.py
@@ -78,7 +78,8 @@ def __init__(self,
78
multiple=4,
79
counter=0,
80
accumulation=0,
81
- ping_check: (int, bool) = False):
+ ping_check: (int, bool) = False,
82
+ **configs):
83
self.host = host
84
self.port = port
85
self.user = user
@@ -106,6 +107,7 @@ def __init__(self,
106
107
self.ping_check = ping_check
108
109
self.unix_socket=unix_socket
110
+ self.configs=configs
111
112
def create_conn(self):
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,
122
autocommit=self.autocommit,
- unix_socket=self.unix_socket
123
+ unix_socket=self.unix_socket,
124
+ **self.configs
125
)
126
self.unuse_list.add(c)
127
0 commit comments