hyb
2026-01-30 15bc7727b58bf9ca0c8f21702fa893daac232b8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
Ë
Wñúhbãóø—UdZddlmZddlZddlZddlZddlZddlmZddl    m
Z
m Z m Z m Z mZmZmZmZddlmZ    ddlZddlZdZ    d    d
lmZd    d lmZd    d lmZmZd    d l m!Z!m"Z"m#Z#m$Z$m%Z%d    dl&m'Z'e
rd    dl(m)Z)ejT«Z+dZ,dZ-ej\d«Z/dZ0e€eneefZ1de2d<iZ3de2d<d d„Z4                d!d„Z5                        d"d„Z6d#d„Z7Gd„d«Z8Gd„d«Z9y#e$rdZYŒ¦wxYw#e$rdZYŒ¬wxYw)$z5Implementing pooling of connections to MySQL servers.é)Ú annotationsN)Ú TracebackType)Ú TYPE_CHECKINGÚAnyÚDictÚNoReturnÚOptionalÚTupleÚTypeÚUnion)Úuuid4TFé)ÚCMySQLConnection)ÚMySQLConnection)Ú CNX_POOL_ARGSÚDEFAULT_CONFIGURATION)ÚErrorÚInterfaceErrorÚNotSupportedErrorÚ    PoolErrorÚProgrammingError)Úread_option_files)ÚMySQLConnectionAbstracté é@z[^a-zA-Z0-9._:\-*$#]z0MySQL Connector/Python C Extension not availablezUnion[type, Tuple[type, ...]]ÚMYSQL_CNX_CLASSzDict[str, MySQLConnectionPool]Ú_CONNECTION_POOLSÚPooledMySQLConnectionc óÒ—d|vr|dn
td    i|¤Ž}|jd«durt€tt«‚t
5|t vrtd    i|¤Žt |<nAtt |t«r*t |j}d|vr|d|k7r td«‚ddd«    t |j«S#1swYŒ!xYw#t$rtd|›d«d‚wxYw)
z!Return a pooled MySQL connection.Ú    pool_nameÚuse_pureFNÚ    pool_sizez)Size can not be changed for active pools.z%Failed getting connection from pool 'ú'©)Úgenerate_pool_nameÚgetrÚ ImportErrorÚ ERROR_NO_CEXTÚCONNECTION_POOL_LOCKrÚMySQLConnectionPoolÚ
isinstancer"rÚget_connectionÚAttributeErrorr)Úkwargsr Ú
check_sizes   úJH:\Change_password\venv_build\Lib\site-packages\mysql/connector/pooling.pyÚ_get_pooled_connectionr1Ps€ð +¨fÑ4ˆˆ{ÒÔ:LÑ:VÈvÑ:Vðð‡zz*Ó Ñ&Ô+;Ð+CÜœ-Ó(Ð(ô
ñMØ Ô-Ñ -Ü+>Ñ+HÀÑ+HÔ ˜iÒ (Ü Ô)¨)Ñ4Ô6IÔ Jä*¨9Ñ5×?Ñ?ˆJؘfÑ$¨° Ñ)<À
Ò)JÜРKÓLÐL÷MðÜ  Ñ+×:Ñ:Ó<Ð<÷MðMûô òÜØ3°I°;¸aÐ @ó
àð    ðúsÁACÂ)C ÃC    à C&c ó`—|j«}    |d}|d=tgd¢«}d}|D]¿}t|j    ««|z
}|r4t |«dkDrdnd}d    j |«}td
|›d |›«‚t|d «r|dz }|jd d «|d <|d dks|d d kDrtd|d ›«‚t|d t«rŒ°td|d ›«‚d|cxkrt |«kr td«‚i}    g}
t|d„d¬«D]>}|d |    vr|g|    |d <|
j|d «Œ(|    |d j|«Œ@|
D]—} |    | } tt | ««D]y} t | «dz
}t!j"d|«}| j%|«}|j«}|j'|«|j%d d«    t)di|¤ŽccSŒ™td«‚#t$r td«d‚wxYw#t*$rYŒ­wxYw)aªReturn a MySQL connection and try to failover if needed.
 
    An InterfaceError is raise when no MySQL is available. ValueError is
    raised when the failover server configuration contains an illegal
    connection argument. Supported arguments are user, password, host, port,
    unix_socket and database. ValueError is also raised when the failover
    argument was not provided.
 
    Returns MySQLConnection instance.
    Úfailoverzfailover argument not providedN)    ÚuserÚpasswordÚhostÚportÚ unix_socketÚdatabaser r"ÚpriorityrrÚsÚz, z Unsupported connection argument z in failover: r:édz9Priority value should be in the range of 0 to 100, got : zDPriority value should be an integer in the range of 0 to 100, got : z\You must either assign no priority to any of the routers or give a priority for every routercó —|dS)Nr:r$©Úxs r0ú<lambda>z*_get_failover_connection.<locals>.<lambda>±s
€°°:±€óT)ÚkeyÚreversez,Unable to connect to any of the target hostsr$)ÚcopyÚKeyErrorÚ
ValueErrorÚsetÚkeysÚlenÚjoinÚhasattrr&rr+ÚintrÚsortedÚappendÚrangeÚrandomÚrandintÚpopÚupdateÚconnectr)r.Úconfigr3Úsupport_cnx_argsÚpriority_countÚserverÚdiffÚargÚlstÚserver_directoryÚserver_priority_listr:Ú failover_listÚ_ÚlastÚindexÚ
new_configs                 r0Ú_get_failover_connectionrdms»€ð[‰[‹]€FðEؘ*Ñ%ˆð    ˆzÐäò
    
ó Ðð€NØòˆÜ6—;‘;“=Ó!Ð$4Ñ4ˆÙ ܘT› Qš‘#¨BˆCØ—)‘)˜D“/ˆCÜØ2°3°%°~ÀcÀUÐKóð ô 6˜:Ô &Ø ˜aÑ ˆNà#ŸZ™Z¨
°CÓ8ˆˆzÑØ *Ñ  Ò ! V¨JÑ%7¸#Ò%=Ü ðØ 
Ñ+Ð,ð.óð ô˜& Ñ,¬cÕ2Ü ðØ$ ZÑ0Ð1ð3óð ð%ð.    ˆ>Ô)œC ›MÒ)Üð ó
ð    
ð*ðÐØÐܘÑ'>ÈÔMò@ˆØ *Ñ Ð%5Ñ 5Ø4:°8Ð ˜V JÑ/Ñ 0Ø  × 'Ñ '¨¨zÑ(:Õ ;à ˜V JÑ/Ñ 0× 7Ñ 7¸Õ ?ð @ð)ò ˆØ(¨Ñ2ˆ Ü”s˜=Ó)Ó*ò     ˆAܐ}Ó%¨Ñ)ˆDÜ—N‘N 1 dÓ+ˆEØ"×&Ñ& uÓ-ˆFØŸ™›ˆJØ × Ñ ˜fÔ %Ø N‰N˜: tÔ ,ð ÜÑ, Ñ,Ô,ñ     ð ô ÐGÓ
HÐHøôU òEÜÐ9Ó:ÀÐDðEûôLò áð ús’HÇ+
H!ÈHÈ!    H-È,H-có^‡—d‰vr‰jd«nd}t|t«s td«‚|røts td«‚d‰vr td«‚d‰vr td«‚d    ‰vr td
«‚d ‰vr t
d ‰d <    t jj‰d d «}g}|D]P}|j|jjd¬«|j|j|j dœ«ŒR|j#d„¬«|Dcgc] }|d |ddœ‘Œc}‰d    <d‰vr‰d‰d<‰jd«d‰vrt%di‰¤Ž}t'di|¤ŽSd    ‰vr t)di‰¤ŽS    t+ˆfd„t,D««r t/di‰¤ŽS    ‰j3dd«}d‰vr‰d=|st4€t7t8«‚t4r |s t5|i‰¤ŽSt;|i‰¤ŽS#t jj$rtd ‰d ›d«d‚wxYwcc}w#t0$rYŒ’wxYw)aáCreates or gets a MySQL connection object.
 
    In its simpliest form, `connect()` will open a connection to a
    MySQL server and return a `MySQLConnectionAbstract` subclass
    object such as `MySQLConnection` or `CMySQLConnection`.
 
    When any connection pooling arguments are given, for example `pool_name`
    or `pool_size`, a pool is created or a previously one is used to return
    a `PooledMySQLConnection`.
 
    Args:
        *args: N/A.
        **kwargs: For a complete list of possible arguments, see [1]. If no arguments
                  are given, it uses the already configured or default values.
 
    Returns:
        A `MySQLConnectionAbstract` subclass instance (such as `MySQLConnection` or
        `CMySQLConnection`) or a `PooledMySQLConnection` instance.
 
    Examples:
        A connection with the MySQL server can be established using either the
        `mysql.connector.connect()` method or a `MySQLConnectionAbstract` subclass:
        ```
        >>> from mysql.connector import MySQLConnection, HAVE_CEXT
        >>>
        >>> cnx1 = mysql.connector.connect(user='joe', database='test')
        >>> cnx2 = MySQLConnection(user='joe', database='test')
        >>>
        >>> cnx3 = None
        >>> if HAVE_CEXT:
        >>>     from mysql.connector import CMySQLConnection
        >>>     cnx3 = CMySQLConnection(user='joe', database='test')
        ```
 
    References:
        [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
    Údns_srvFz(The value of 'dns-srv' must be a booleanztMySQL host configuration requested DNS SRV. This requires the Python dnspython module. Please refer to documentationr8z<Using Unix domain sockets with DNS SRV lookup is not allowedr7z;Specifying a port number with DNS SRV lookup is not allowedr3zASpecifying multiple hostnames with DNS SRV look up is not allowedr6ÚSRVz Unable to locate any hosts for 'r#NT)Úomit_final_dot)r6r7r:Úweightcó—|d|d fS)Nr:rir$r?s r0rAzconnect.<locals>.<lambda> s€ Q z¡]°Q°x±[°LÐ$A€rB)rC)r6r7Úread_default_fileÚ option_filesc3ó&•K—|]}|‰v–—Œ
y­w©Nr$)Ú.0rCr.s  €r0ú    <genexpr>zconnect.<locals>.<genexpr>4søèø€Ò6 ˆsfŒ}Ñ6ùsƒr!r$)rSr+ÚboolrÚHAVE_DNSPYTHONrÚdnsÚresolverÚqueryÚ    exceptionÚ DNSExceptionrOÚtargetÚto_textr7r:riÚsortrrUrdÚanyrr1Ú    NameErrorr&rr'r(r)Úargsr.rfÚ srv_recordsr3Úsrvrcr!s `      r0rUrUÊs‘ø€ðR(1°FÑ':ˆfj‰j˜Ô#À€Gä gœtÔ $ÜÐGÓHÐHáÝÜ ð8óð ð
˜FÑ "Ü ØNóð ð VÑ Ü ØMóð ð ˜Ñ Ü ØSóð ð ˜Ñ Ü2°6Ñ:ˆF6‰Nð    ÜŸ,™,×,Ñ,¨V°F©^¸UÓCˆKð ˆØò    ˆCØ O‰OàŸJ™J×.Ñ.¸dÐ.ÓCØŸH™HØ #§ ¡ Ø!Ÿj™jñ    õ ð    ð     ‰ ÑAˆ ÔBàBJö
Ø;>S˜‘[¨#¨f©+Ó 6ò
ˆˆzÑð
˜fÑ$Ø!'Ð(;Ñ!<ˆˆ~ÑØ
‰
Ð&Ô'à˜ÑÜ&Ñ0¨Ñ0ˆ
ÜÑ$˜Ñ$Ð$ðVÑÜ'Ñ1¨&Ñ1Ð1ð Ü Ó6¬ Ô6Ô 6Ü)Ñ3¨FÑ3Ð 3ð 7ðz‰z˜* eÓ,€HؐVÑØ :Ð ÙÔ,Ð4ÜœmÓ,Ð ,å¡Ü Ð0¨Ñ0Ð0Ü ˜DÐ + FÑ +Ð+øôg}‰}×)Ñ)ò    Ü Ø2°6¸&±>Ð2BÀ!ÐDóàð ð    üò"
øô* ò á ð ús$Â#G'ÄHÅ5"H Ç'1HÈ     H,È+H,c óª—g}dD] }    |jt||««Œ"|s td«‚dj    |«S#t$rYŒLwxYw)zøGenerate a pool name
 
    This function takes keyword arguments, usually the connection
    arguments for MySQLConnection, and tries to generate a name for
    a pool.
 
    Raises PoolError when no name can be generated.
 
    Returns a string.
    )r6r7r4r9z.Failed generating pool name; specify pool_namer`)rOÚstrrFrrK)r.ÚpartsrCs   r0r%r%Fse€ð €EØ3òˆð    Ø L‰Lœ˜V C™[Ó)Õ *ðñ ÜÐHÓIÐIà 8‰8E‹?Ðøô ò    Ù ð    ús‰AÁ    AÁAcól—eZdZdZd
d„Zd d„Z                                d d„Zd d„Zdd„Ze    dd„«Z
e dd„«Z y    )raœClass holding a MySQL Connection in a pool
 
    PooledMySQLConnection is used by MySQLConnectionPool to return an
    instance holding a MySQL connection. It works like a MySQLConnection
    except for methods like close() and config().
 
    The close()-method will add the connection back to the pool rather
    than disconnecting from the MySQL server.
 
    Configuring the connection have to be done through the MySQLConnectionPool
    method set_config(). Using config() on pooled connection will raise a
    PoolError.
 
    Attributes:
        pool_name (str): Returns the name of the connection pool to which the
                         connection belongs.
    cóŒ—t|t«s td«‚t|t«s td«‚||_||_y)z˜Constructor.
 
        Args:
            pool: A `MySQLConnectionPool` instance.
            cnx: A `MySQLConnectionAbstract` subclass instance.
        z$pool should be a MySQLConnectionPoolzcnx should be a MySQLConnectionN)r+r*r-rÚ    _cnx_poolÚ_cnx)ÚselfÚpoolÚcnxs   r0Ú__init__zPooledMySQLConnection.__init__qs?€ô˜$Ô 3Ô4Ü Ð!GÓHÐ Hܘ#œÔ/Ü Ð!BÓCÐ CØ.2ˆŒØ-0ˆ    rBcó—|Srnr$©r‡s r0Ú    __enter__zPooledMySQLConnection.__enter__s€Øˆ rBcó$—|j«yrn)Úclose)r‡Úexc_typeÚ    exc_valueÚ    tracebacks    r0Ú__exit__zPooledMySQLConnection.__exit__‚s €ð      
‰
 rBcó.—t|j|«S)z0Calls attributes of the MySQLConnection instance)Úgetattrr†)r‡Úattrs  r0Ú __getattr__z!PooledMySQLConnection.__getattr__Šs€ät—y‘y $Ó'Ð'rBcóü—    |j}|jjr|j«|jj|«d|_y#|jj«d|_wxYw)a¼Do not close, but adds connection back to pool.
 
        For a pooled connection, close() does not actually close it but returns it
        to the pool and makes it available for subsequent connection requests. If the
        pool configuration parameters are changed, a returned connection is closed
        and reopened with the new configuration before being returned from the pool
        again in response to a connection request.
        N)r†r…Ú reset_sessionÚadd_connection©r‡r‰s  r0rzPooledMySQLConnection.closeŽs_€ð    Ø—)‘)ˆC؏~‰~×+Ò+Ø×!Ñ!Ô#à N‰N× )Ñ )¨#Ô .؈DIøð N‰N× )Ñ )¨#Ô .؈DIús ‚2AÁ$A;c ó—td«‚)zâConfiguration is done through the pool.
 
        For pooled connections, the `config()` method raises a `PoolError`
        exception. Configuration for pooled connections should be done
        using the pool object.
        zKConfiguration for pooled connections should be done through the pool itself)r)r.s r0rVzPooledMySQLConnection.configŸs€ôð ó
ð    
rBcó.—|jjS)zHReturns the name of the connection pool to which the connection belongs.)r…r rŒs r0r zPooledMySQLConnection.pool_name¬s€ð~‰~×'Ñ'Ð'rBN)rˆr*r‰rÚreturnÚNone©ržr)rzType[BaseException]r‘Ú BaseExceptionr’rržrŸ)r–rržr)ržrŸ)r.rržr©ržr) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rŠrr“r—rÚ staticmethodrVÚpropertyr r$rBr0rr^sn„ñó$ 1óðà%ðð!ðð!ð    ð
 
ó ó(óð"ò
 
óð
 
ðò(óñ(rBcó¢—eZdZdZ            d                                    dd„Zedd„«Zedd„«Zedd„«Zdd„Z    dd„Z
dd    „Z dd
„Z ddd „Z dd „Zdd „Zy)r*z*Class defining a pool of MySQL connectionsNc ó˜—d|_d|_||_|j|«|j    |xs t di|¤Ž«i|_tj|j«|_    t«|_ |rJ|jdi|¤Žd}||jkr&|j«|dz }||jkrŒ%yyy)a£Constructor.
 
        Initialize a MySQL connection pool with a maximum number of
        connections set to `pool_size`. The rest of the keywords
        arguments, kwargs, are configuration arguments for MySQLConnection
        instances.
 
        Args:
            pool_name: The pool name. If this argument is not given, Connector/Python
                       automatically generates the name, composed from whichever of
                       the host, port, user, and database connection arguments are
                       given in kwargs, in that order.
            pool_size:  The pool size. If this argument is not given, the default is 5.
            pool_reset_session: Whether to reset session variables when the connection
                                is returned to the pool.
            **kwargs: Optional additional connection arguments, as described in [1].
 
        Examples:
            ```
            >>> dbconfig = {
            >>>     "database": "test",
            >>>     "user":     "joe",
            >>> }
            >>> cnxpool = mysql.connector.pooling.MySQLConnectionPool(pool_name = "mypool",
            >>>                                                       pool_size = 3,
            >>>                                                       **dbconfig)
            ```
 
        References:
            [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
        Nrrr$)Ú
_pool_sizeÚ
_pool_nameÚ_reset_sessionÚ_set_pool_sizeÚ_set_pool_namer%Ú _cnx_configÚqueueÚQueueÚ
_cnx_queuer Ú_config_versionÚ
set_configrš)r‡r"r Úpool_reset_sessionr.Úcnts      r0rŠzMySQLConnectionPool.__init__µs¾€ðL*.ˆŒØ)-ˆŒØ0ˆÔØ ×јIÔ&Ø ×јIÒEÔ);Ñ)E¸fÑ)EÔFØ+-ˆÔÜ@EÇ Á Ø O‰OóA
ˆŒô %›wˆÔá Ø ˆDO‰OÑ %˜fÒ %؈CؘŸ™Ò'Ø×#Ñ#Ô%ؐq‘ð˜Ÿ™Õ'ð rBcó—|jS)z(Returns the name of the connection pool.)r¬rŒs r0r zMySQLConnectionPool.pool_nameíó€ð‰ÐrBcó—|jS)z2Returns number of connections managed by the pool.)r«rŒs r0r"zMySQLConnectionPool.pool_sizeòr¹rBcó—|jS)z!Returns whether to reset session.)r­rŒs r0r™z!MySQLConnectionPool.reset_session÷s€ð×"Ñ"Ð"rBc óè—|syt5    t«}|jdi|¤Ž||_t    «|_    ddd«y#t $r}td|›«|‚d}~wwxYw#1swYyxYw)a´Set the connection configuration for `MySQLConnectionAbstract` subclass instances.
 
        This method sets the configuration used for creating `MySQLConnectionAbstract`
        subclass instances such as `MySQLConnection`. See [1] for valid
        connection arguments.
 
        Args:
            **kwargs: Connection arguments - for a complete list of possible
                      arguments, see [1].
 
        Raises:
            PoolError: When a connection argument is not valid, missing
                       or not supported by `MySQLConnectionAbstract`.
 
        References:
            [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
        Nz$Connection configuration not valid: r$)r)rUrVr°r r´r-r)r‡r.Útest_cnxÚerrs    r0rµzMySQLConnectionPool.set_configüs†€ñ$Ø ä !ñ    Wð WÜ"›9Ø—‘Ñ) &Ò)Ø#)Ô Ü',£wÕ$÷     Wð    Wøô "ò WÜÐ"FÀsÀeРLÓMÐSVÐVûð Wú÷     Wð    Wús(ŠA(Œ2AÁ    A%ÁA Á A%Á%A(Á(A1cóR—|dks    |tkDrtdt›«‚||_y)aSet the size of the pool
 
        This method sets the size of the pool but it will not resize the pool.
 
        Raises an AttributeError when the pool_size is not valid. Invalid size
        is 0, negative or higher than pooling.CNX_POOL_MAXSIZE.
        rz8Pool size should be higher than 0 and lower or equal to N)ÚCNX_POOL_MAXSIZEr-r«)r‡r"s  r0r®z"MySQLConnectionPool._set_pool_sizes7€ð ˜Š>˜YÔ)9Ò9Ü ØJÜ#Ð$ð&óð ð$ˆrBcóœ—tj|«rtd|›d«‚t|«tkDrtd|›d«‚||_y)aSet the name of the pool.
 
        This method checks the validity and sets the name of the pool.
 
        Raises an AttributeError when pool_name contains illegal characters
        ([^a-zA-Z0-9._\-*$#]) or is longer than pooling.CNX_POOL_MAXNAMESIZE.
        z Pool name 'z' contains illegal charactersz ' is too longN)ÚCNX_POOL_NAMEREGEXÚsearchr-rJÚCNX_POOL_MAXNAMESIZEr¬)r‡r s  r0r¯z"MySQLConnectionPool._set_pool_name)sO€ô × $Ñ $ YÔ /Ü  ;¨y¨kÐ9VÐ!WÓXÐ XÜ ˆy‹>Ô0Ò 0Ü  ;¨y¨k¸Ð!GÓHÐ HØ#ˆrBcóėt|t«s td«‚    |jj    |d¬«y#t
j $r}td«|‚d}~wwxYw)zöPut connection back in the queue
 
        This method is putting a connection back in the queue. It will not
        acquire a lock as the methods using _queue_connection() will have it
        set.
 
        Raises `PoolError` on errors.
        ú;Connection instance not subclass of MySQLConnectionAbstractF©Úblockú'Failed adding connection; queue is fullN)r+rrr³Úputr±ÚFull©r‡r‰r¾s   r0Ú_queue_connectionz%MySQLConnectionPool._queue_connection7s_€ô˜#œÔ/ÜØMóð ð    PØ O‰O× Ñ  ¨5Ð Õ 1øÜz‰zò    PÜÐEÓFÈCÐ Oûð    Pús;»AÁ AÁAcóæ—t5|js td«‚|jj    «r td«‚|s]t di|j¤Ž}    |j r)|jdr|jdkr td«‚|j|_ nt|t«s td«‚|j|«ddd«y#t$rYŒRwxYw#1swYyxYw)    aùAdds a connection to the pool.
 
        This method instantiates a `MySQLConnection` using the configuration
        passed when initializing the `MySQLConnectionPool` instance or using
        the `set_config()` method.
        If cnx is a `MySQLConnection` instance, it will be added to the
        queue.
 
        Args:
            cnx: The `MySQLConnectionAbstract` subclass object to be added to
                 the pool. If this argument is missing (aka `None`), the pool
                 creates a new connection and adds it.
 
        Raises:
            PoolError: When no configuration is set, when no more
                       connection can be added (maximum reached) or when the connection
                       can not be instantiated.
        z&Connection configuration not availablerÉÚcompress)éééz^Pool reset session is not supported with compression for MySQL server version 5.7.2 or earlierrÆNr$)r)r°rr³ÚfullrUr­Úserver_versionrrFr´Úpool_config_versionr+rrÍr›s  r0ršz"MySQLConnectionPool.add_connectionJsò€ô&"ñ    (Ø×#Ò#ÜРHÓIÐIà‰×#Ñ#Ô%ÜРIÓJÐJáÜÑ1 × 0Ñ 0Ñ1ð à×+Ò+Ø ×,Ñ,¨ZÒ8Ø×.Ñ.°Ò:ä/ð)óðð+/×*>Ñ*>Õ'ä! #¤Ô7Ü#ØUóðð × "Ñ " 3Ô '÷=    (ð    (øô( òÙðú÷)    (ð    (ús0‡AC'Á5CÂ>C'à   C$Ã!C'Ã#C$Ã$C'Ã'C0cóæ—t5    |jjd¬«}|j «r|j|jk7r>|jdi|j¤Ž    |j«|j|_t||«cddd«S#tj$r}t d«|‚d}~wwxYw#t$r|j|«‚wxYw#1swYyxYw)a–Gets a connection from the pool.
 
        This method returns an PooledMySQLConnection instance which
        has a reference to the pool that created it, and the next available
        MySQL connection.
 
        When the MySQL connection is not connect, a reconnect is attempted.
 
        Returns:
            A `PooledMySQLConnection` instance.
 
        Raises:
            PoolError: On errors.
        FrÇz)Failed getting connection; pool exhaustedNr$)r)r³r&r±ÚEmptyrÚ is_connectedr´rÕrVr°Ú    reconnectrrÍrrÌs   r0r,z"MySQLConnectionPool.get_connection}sç€ô"ñ    4ð VØ—o‘o×)Ñ)°Ð)Ó6ð
×$Ñ$Ô&Ø×'Ñ'¨3×+BÑ+BÒBà—
‘
Ñ.˜T×-Ñ-Ò.ðØ—M‘M”Oð
+/×*>Ñ*>Ô'ä(¨¨sÓ3÷'    4ñ    4øô—;‘;ò VÜРKÓLÐRUÐUûð Vûô&òà×*Ñ*¨3Ô/Øðú÷    4ð    4úsF‡C'‰B!¥AC'Á+CÁ;C'Â!CÂ4 CÃCÃC'ÃC$Ã$C'Ã'C0cóZ—t5d}|j}|j«r9    |jd¬«}|j    «|dz }|j«rŒ9|cddd«S#t
j $r|cYcddd«St$r‚t$rYŒOwxYw#1swYyxYw)z¹Close all connections
 
        This method closes all connections. It returns the number
        of connections it closed.
 
        Used mostly for tests.
 
        Returns int.
        rFrÇrN)    r)r³Úqsizer&Ú
disconnectr±r×rr)r‡r·Úcnxqr‰s    r0Ú_remove_connectionsz'MySQLConnectionPool._remove_connections¡s¬€ô"ñ    ØˆCØ—?‘?ˆDØ—*‘*”,ð
ØŸ(™(¨˜(Ó/CØ—N‘NÔ$ؘ1‘HCð    —*‘*•,ð÷!    ñ    øô—{‘{òØ‘J÷    ñ    ô!òØÜòáðú÷    ð    ús@‡B!§'A*ÁB!ÁB!Á*BÁ?B!Â
BÂB!ÂBÂB!Â!B*)rÐNT)
r"rMr z Optional[str]r¶rqr.rržrŸr¢)ržrM)ržrq)r.rržrŸ)r"rMržrŸ)r rržrŸ)r‰rržrŸrn)r‰z!Optional[MySQLConnectionAbstract]ržrŸr )r£r¤r¥r¦rŠr¨r r"r™rµr®r¯rÍršr,rÞr$rBr0r*r*²s©„Ù4ðØ#'Ø#'ð    6àð6ð!ð6ð!ð    6ð
ð 6ð
ó 6ðpòóððòóððò#óð#óWó< $ó $óPô&1(óf"4ôHrBr*)r.rržr)r.rržú5Union[PooledMySQLConnection, MySQLConnectionAbstract])r}rr.rržrß)r.rržr):r¦Ú
__future__rr±rQÚreÚ    threadingÚtypesrÚtypingrrrrr    r
r r Úuuidr Ú dns.exceptionrsÚ dns.resolverrrr'Úconnection_cextrÚ
connectionrÚ    constantsrrÚerrorsrrrrrÚ optionfilesrÚ    abstractsrÚRLockr)rÀrÄÚcompilerÂr(rÚ__annotations__rr1rdrUr%rr*r$rBr0ú<module>rñsJðò:<Ý"ã Û Û    ÛåßS×SÓSÝðÛÛð€NðÝ1õ(ß;÷õõ+áÝ2à&y—‘Ó(ÐØÐØÐØR—Z‘ZР7Ó8ÐØB€ à'Ð/O°oÐGWÐ5XðÐ.óð57ÐÐ1Ó6óð:ZIØðZIà:óZIðzy,Ø ðy,Øðy,à:óy,óx÷0Q(ñQ(÷hIòIøðM òØ‚NðûðòØÒðús#»C"ÁC/Ã"C,Ã+C,Ã/C9Ã8C9