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
268
269
270
Ë
Wñúh-eãóÒ—UdZddlmZddlZddlZddlZddlZddlZddlm    Z    ddl
m Z m Z m Z mZmZmZmZmZddlmZmZddlmZ    ddlZddlZdZd
d lmZmZm Z m!Z!m"Z"d
d l#m$Z$m%Z%m&Z&d dl'm(Z(e rd dl)m*Z*ejV«Z,dZ-dZ.ej^d«Z0e(fZ1de2d<iZ3de2d<dd„Z4                d d„Z5                        d!d„Z6d"d„Z7Gd„d«Z8Gd„d«Z9y#e$rd    ZYŒ”wxYw)#z5Implementing pooling of connections to MySQL servers.é)Ú annotationsN)Ú TracebackType)Ú TYPE_CHECKINGÚAnyÚDictÚNoReturnÚOptionalÚTupleÚTypeÚUnion)ÚUUIDÚuuid4)Ú CNX_POOL_ARGSTFé)ÚErrorÚInterfaceErrorÚNotSupportedErrorÚ    PoolErrorÚProgrammingError)ÚDEFAULT_CONFIGURATIONÚgenerate_pool_nameÚread_option_filesé)ÚMySQLConnection)ÚMySQLConnectionAbstracté é@z[^a-zA-Z0-9._:\-*$#]zUnion[type, Tuple[type, ...]]ÚMYSQL_CNX_CLASSzDict[str, MySQLConnectionPool]Ú_CONNECTION_POOLSÚPooledMySQLConnectionc‹óK—d|vr|dn
tdi|¤Ž}|tvrLtdi|¤Ž}|j«ƒd{–—†t4ƒd{–—†|t|<ddd«ƒd{–—†nAt t|t«r*t|j }d|vr|d|k7r td«‚    t|j«ƒd{–—†S7ŒŽ7Œ7Œj#1ƒd{–—†7swYŒ8xYw7Œ#t$rtd|›d«d‚wxYw­w)z!Return a pooled MySQL connection.Ú    pool_nameNÚ    pool_sizez)Size can not be changed for active pools.z%Failed getting connection from pool 'ú'©) rrÚMySQLConnectionPoolÚinitialize_poolÚCONNECTION_POOL_LOCKÚ
isinstancer#rÚget_connectionÚAttributeErrorr)Úkwargsr"ÚpoolÚ
check_sizes    úNH:\Change_password\venv_build\Lib\site-packages\mysql/connector/aio/pooling.pyÚ_get_pooled_connectionr0Ls'èø€ð +¨fÑ4ˆˆ{ÒÔ:LÑ:VÈvÑ:Vðð
Ô)Ñ)Ü"Ñ, VÑ,ˆØ×"Ñ"Ó$×$Ð$ä'÷    0ñ    0Ø+/Ô ˜iÑ (÷    0÷    0ð    0ä    Ô% iÑ0Ô2EÔ    Fä& yÑ1×;Ñ;ˆ
Ø ˜&Ñ   V¨KÑ%8¸JÒ%FÜÐGÓHÐ HðÜ& yÑ1×@Ñ@ÓB×BÐBð    %øð    0øð    0ø÷    0÷    0ñ    0úðCùÜ òÜØ3°I°;¸aÐ @ó
àð    ðüs‚‚;D½C ¾DÁ CÁ DÁ
CÁ DÁ%CÁ&ADÂ-C)ÃC'ÃC)à DÃDÃDÃC$ÃC ÃC$àDÃ'C)Ã)DÄDc‹ójK—|j«}    |d}|d=hd£}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]} t | «dz
}t!j"d|«}| j%|«}|j«}|j'|«|j%d d«    t)di|¤Žƒd{–—†ccSŒ¡td«‚#t$r td«d‚wxYw7Œ/#t*$rYŒ·wxYw­w)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>    ÚhostÚportÚuserÚdatabaseÚpasswordÚpriorityr"r#Ú unix_socketrrÚsÚz, z Unsupported connection argument z in failover: r8é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)Nr8r%©Úxs r/ú<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ÚhasattrÚgetrr)ÚintrÚsortedÚappendÚrangeÚrandomÚrandintÚpopÚupdateÚconnectr)r,Úconfigr2Úsupport_cnx_argsÚpriority_countÚserverÚdiffÚargÚlstÚserver_directoryÚserver_priority_listr8Ú failover_listÚ_ÚlastÚindexÚ
new_configs                 r/Ú_get_failover_connectionrdis½èø€ð[‰[‹]€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Ô ,ð Ü$Ñ2 zÑ2×2Ô2ñ     ð ô ÐGÓ
HÐHøôQ òEÜÐ9Ó:ÀÐDðEúðF3ùÜò áð üsY‚H3”H    ™B:H3ÃDH3Ç$H$Ç2H"Ç3H$Ç6H3È    HÈH3È"H$È$    H0È-H3È/H0È0H3cóz‡K—d‰vr‰jd«nd}t|t«s td«‚|rts td«‚d‰vr td«‚d‰vr td«‚d    ‰vr td
«‚d ‰vr t
d ‰d <    t jj‰d d «ƒd {–—†}g}|D]P}|j|jjd¬«|j|j|j dœ«ŒR|j#d„¬«|Dcgc] }|d |ddœ‘Œc}‰d    <d    ‰vrt%di‰¤Žƒd {–—†S    t'ˆfd„t(D««rt+di‰¤Žƒd {–—†S    d‰vr‰d‰d<‰jd«d‰vrt/di‰¤Ž}t1di|¤Žƒd {–—†Sd‰vr‰d=t3|i‰¤Ž}|j1«ƒd {–—†|S7Œ:#t jj$rtd‰d ›d«d ‚wxYwcc}w7ŒØ7Œ®#t,$rYŒ¶wxYw7Œ7ŒW­w)aþCreates 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`.
 
    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 a `PooledMySQLConnection` instance.
 
    Raises:
        `mysql.connector.errors.NotSupportedError`: if pooled connection is not supported
        for the Python version and OS that are being used.
 
    Examples:
        A connection with the MySQL server can be established using either the
        `mysql.connector.aio.connect()` method or a `MySQLConnectionAbstract` subclass:
        ```
        >>> from mysql.connector.aio import MySQLConnection
        >>>
        >>> cnx1 = await mysql.connector.aio.connect(user='joe', database='test')
        >>> cnx2 = MySQLConnection(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 documentationr9z<Using Unix domain sockets with DNS SRV lookup is not allowedr4z;Specifying a port number with DNS SRV lookup is not allowedr2zASpecifying multiple hostnames with DNS SRV look up is not allowedr3ÚSRVNz Unable to locate any hosts for 'r$T)Úomit_final_dot)r3r4r8Úweightcó—|d|d fS)Nr8rir%r>s r/r@zconnect.<locals>.<lambda>s€ Q z¡]°Q°x±[°LÐ$A€rA)rB)r3r4c3ó&•K—|]}|‰v–—Œ
y­w©Nr%)Ú.0rBr,s  €r/ú    <genexpr>zconnect.<locals>.<genexpr> søèø€Ò6 ˆsfŒ}Ñ6ùsƒÚread_default_fileÚ option_filesÚuse_purer%)rSr)ÚboolrÚHAVE_DNSPYTHONrÚdnsÚ asyncresolverÚqueryÚ    exceptionÚ DNSExceptionrOÚtargetÚto_textr4r8riÚsortrdÚanyrr0Ú    NameErrorrrUr)Úargsr,rfÚ srv_recordsr2ÚsrvrcÚcnxs `      r/rUrUÄs“øèø€ðH(1°FÑ':ˆfj‰j˜Ô#À€Gä gœtÔ $ÜÐGÓHÐHâÝÜ ð8óð ð
˜FÑ "Ü ØNóð ð VÑ Ü ØMóð ð ˜Ñ Ü ØSóð ð ˜Ñ Ü2°6Ñ:ˆF6‰Nð    Ü #× 1Ñ 1× 7Ñ 7¸¸v¹ÈÓ N×NˆKð ˆØò    ˆCØ O‰OàŸJ™J×.Ñ.¸dÐ.ÓCØŸH™HØ #§ ¡ Ø!Ÿj™jñ    õ ð    ð     ‰ ÑAˆ ÔBàBJö
Ø;>S˜‘[¨#¨f©+Ó 6ò
ˆˆzÑð
VÑÜ-Ñ7°Ñ7×7Ð7ð Ü Ó6¬ Ô6Ô 6Ü/Ñ9°&Ñ9×9Ð 9ð 7ð˜fÑ$Ø!'Ð(;Ñ!<ˆˆ~ÑØ
‰
Ð&Ô'à˜ÑÜ&Ñ0¨Ñ0ˆ
ÜÑ*˜zÑ*×*Ð*àVÑØ :Ð ä
˜4Ð
* 6Ñ
*€CØ
+‰+‹-×ÐØ €JðaOú܏}‰}×)Ñ)ò    Ü Ø2°6¸&±>Ð2BÀ!ÐDóàð ð    üò"
ð 8øð
:ùÜ ò á ð úð+øð úsƒBH;Â&G+Â.G(Â/G+Â3A.H;Ä!HÄ3H;Å H$Å H;Å&H(Å7H&Å8H(Å;<H;Æ7H7Æ8)H;Ç!H9Ç"H;Ç(G+Ç+1HÈ    H;È&H(È(    H4È1H;È3H4È4H;È9H;có —tj}tjdk(r+|jdk(r|j
dkr t d«‚yyy)zWRaises error if the Python version and OS combination is not
    supported for Pooling.Úntéé
zSPooled connections are not supported for Python versions lower than 3.11 on WindowsN)ÚsysÚ version_infoÚosÚnameÚmajorÚminorr)Úpy_version_infos r/Ú_check_supportr7sR€ô×&Ñ&€OÜ    ‡ww$‚˜?×0Ñ0°AÒ5¸/×:OÑ:OÐSUÒ:UÜð )ó
ð    
ð;VÐ5€rAcól—eZdZdZd
d„Zd d„Z                                d d„Zd d„Zdd„Ze    dd„«Z
e dd„«Z y    )r a˜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|t«s td«‚t|t«s td«‚||_||_y)z—Constructor.
        Args:
            pool: A `MySQLConnectionPool` instance.
            cnx: A `MySQLConnectionAbstract` subclass instance.
        z/pool must be an instance of MySQLConnectionPoolz,cnx should be an instance of MySQLConnectionN)rr)r&r+rÚ    _cnx_poolÚ_cnx)Úselfr-rs   r/Ú__init__zPooledMySQLConnection.__init__QsE€ô     Ôä˜$Ô 3Ô4Ü Ð!RÓSÐ Sܘ#œÔ/Ü Ð!OÓPÐ PØ.2ˆŒØ-0ˆ    rAcƒóK—|S­wrlr%©r’s r/Ú
__aenter__z PooledMySQLConnection.__aenter__`s èø€Øˆ ùs‚cƒó@K—|j«ƒd{–—†y7Œ­wrl)Úclose)r’Úexc_typeÚ    exc_valueÚ    tracebacks    r/Ú    __aexit__zPooledMySQLConnection.__aexit__csèø€ð j‰j‹l×Òús ‚–—có.—t|j|«S)z0Calls attributes of the MySQLConnection instance)Úgetattrr‘)r’Úattrs  r/Ú __getattr__z!PooledMySQLConnection.__getattr__ks€ät—y‘y $Ó'Ð'rAcƒórK—|j}    |jjr0|j«ƒd{–—†r|j    «ƒd{–—†|jj |«ƒd{–—†d|_y7ŒG7Œ17Œ#|jj |«ƒd{–—†7d|_wxYw­w)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Úcan_reset_sessionÚ is_connectedÚ reset_sessionÚadd_connection©r’rs  r/r˜zPooledMySQLConnection.closeos’èø€ði‰iˆð    Ø~‰~×/Ò/¸#×:JÑ:JÓ:L×4LÐ4LØ×'Ñ'Ó)×)Ð)à—.‘.×/Ñ/°Ó4× 4Ð 4؈DIð    5MøØ)øà 4ù$—.‘.×/Ñ/°Ó4× 4Ñ 4؈DIüs\‚ B7)B¹BºBÁBÁBÁB7Á4BÁ5 B7ÂBÂBÂB7ÂB4Â&B)Â' B4Â4B7c ó—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 r/rVzPooledMySQLConnection.configs€ôð ó
ð    
rAcó.—|jjS)zHReturns the name of the connection pool to which the connection belongs.)rr"r•s r/r"zPooledMySQLConnection.pool_name‹s€ð~‰~×'Ñ'Ð'rAN)r-r&rrÚreturnÚNone©r©r )r™zType[BaseException]ršÚ BaseExceptionr›rr©rª)rŸrr©r©r©rª)r,rr©r©r©Ústr) Ú__name__Ú
__module__Ú __qualname__Ú__doc__r“r–rœr r˜Ú staticmethodrVÚpropertyr"r%rAr/r r Bsn„ñ ó 1óðà%ðð!ðð!ð    ð
 
ó ó(óð ò    
óð    
ðò(óñ(rAcóº—eZdZdZ            d                                    dd„Zdd„Zedd„«Zedd„«Zedd„«Z    dd„Z
dd    „Z dd
„Z dd „Z     d            dd „Zdd „Zdd„Zdd„Zy)r&z*Class defining a pool of MySQL connectionsNc óþ—t«d|_d|_||_|j    |«|r|j |«||_tj|j«|_    t«|_ y)aŸConstructor.
 
        Initialize a MySQL connection pool with a maximum number of
        connections set to `pool_size`.
 
        NOTE: The coroutine `await cnxpool.initialize_pool(**dbconfig)` must be called
        after initializing this class to open up the pool of required number of database
        connections and making the instance of MySQLConnectionPool ready-to-use.
        Contents of `dbconfig` is described in [1].
 
        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.
 
        Examples:
            ```
            >>> dbconfig = {
            >>>     "database": "test",
            >>>     "user":     "joe",
            >>> }
            >>> # initialize the MySQLConnectionPool instance
            >>> cnxpool = mysql.connector.aio.pooling.MySQLConnectionPool(
            >>>             pool_name = "mypool",
            >>>             pool_size = 3,
            >>> )
            >>> # Open up the pool of connections
            >>> await cnxpool.initialize_pool(**dbconfig)
            >>> # cnxpool is ready to be used ...
            ```
        References:
            [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
        N) rÚ
_pool_sizeÚ
_pool_nameÚ_reset_sessionÚ_set_pool_sizeÚ_set_pool_nameÚ _cnx_configÚasyncioÚQueueÚ
_cnx_queuerÚ_config_version)r’r#r"Úpool_reset_sessionr,s     r/r“zMySQLConnectionPool.__init__”sl€ôX    Ôà)-ˆŒØ)-ˆŒØ$6ˆÔØ ×јIÔ&Ù Ø × Ñ      Ô *Ø+1ˆÔÜBIÇ-Á-Ø O‰OóC
ˆŒô&+£WˆÕrAcƒóÄK—|jsCt4ƒd{–—†|jtdi|j¤Ž«ddd«ƒd{–—†|jrd|j
di|j¤Žƒd{–—†d}||j kr.|j«ƒd{–—†|dz }||j krŒ-yyy7Œ©7Œw#1ƒd{–—†7swYŒ‡xYw7Œ^7Œ7­w)aÉOpens the connection pool and fill with MySQL database connections.
 
        This coroutine must be called after initializing an instance of MySQLConnectionPool
        to make the build the pool of connections and make the instance ready to be used.
 
        Args:
            **kwargs: Connection arguments, as described in [1].
 
        References:
            [1]: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
        Nrrr%)r¹r(r¼rr½Ú
set_configr¸r¥)r’Úcnts  r/r'z#MySQLConnectionPool.initialize_poolÎsØèø€ðŠÜ+÷ Lñ LØ×#Ñ#Ô$6Ñ$J¸×9IÑ9IÑ$JÔK÷ L÷ Là × Ò Ø!$—/‘/Ñ5 D×$4Ñ$4Ñ5× 5Ð 5؈CؘŸ™Ò'Ø×)Ñ)Ó+×+Ð+ؐq‘ð˜Ÿ™Õ'ð ð Løð Lø÷ L÷ Lñ Lúð 6øð,úsh‚C ™CšC %CÁ C Á CÁ/C Á=CÁ>(C Â&CÂ'C ÃC ÃC ÃCà C ÃCÃC ÃC có—|jS)z(Returns the name of the connection pool.)r¹r•s r/r"zMySQLConnectionPool.pool_nameäó€ð‰ÐrAcó—|jS)z2Returns number of connections managed by the pool.)r¸r•s r/r#zMySQLConnectionPool.pool_sizeérÇrAcó—|jS)z!Returns whether to reset session.)rºr•s r/r¢z%MySQLConnectionPool.can_reset_sessionîs€ð×"Ñ"Ð"rAc‹óNK—|sy    tdi|¤Žƒd{–—†}|j«ƒd{–—†t4ƒd{–—†||_t    «|_ddd«ƒd{–—†y7ŒR7Œ<7Œ/7Œ #1ƒd{–—†7swYyxYw#t $r}td|›«|‚d}~wwxYw­w)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%)rUÚ
disconnectr(r½rrÁÚ    Exceptionr)r’r,rÚerrs    r/rÄzMySQLConnectionPool.set_configós¯èø€ñØ ð    SäÑ) &Ñ)×)ˆCØ—.‘.Ó"× "Ð "Ü+÷ /ñ /Ø#)Ô Ü',£wÔ$÷ /÷ /ð /ð*øØ "øð /øð /ø÷ /÷ /ñ /ûôò    SÜÐBÀ3À%ÐHÓIÈsÐ Rûð    Süsš‚B%‡B•A(–B­A*®B¼A,½BÁA0Á BÁ"A.Á#BÁ'B%Á(BÁ*BÁ,BÁ.BÁ0BÁ6A9 Á7BÁ>BÂB%ÂB    B"ÂBÂB"Â"B%cóR—|dks    |tkDrtdt›«‚||_y)zÿSet 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  r/r»z"MySQLConnectionPool._set_pool_sizes7€ð ˜Š>˜YÔ)9Ò9Ü ØJÜ#Ð$ð&óð ð$ˆrAcóœ—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+rIÚCNX_POOL_MAXNAMESIZEr¹)r’r"s  r/r¼z"MySQLConnectionPool._set_pool_namesO€ô × $Ñ $ YÔ /Ü  ;¨y¨kÐ9VÐ!WÓXÐ XÜ ˆy‹>Ô0Ò 0Ü  ;¨y¨k¸Ð!GÓHÐ HØ#ˆrAcóÀ—t|t«s td«‚    |jj    |«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 MySQLConnectionAbstractú'Failed adding connection; queue is fullN)r)rrrÀÚ
put_nowaitr¾Ú    QueueFull©r’rrÍs   r/Ú_queue_connectionz%MySQLConnectionPool._queue_connection's\€ô˜#œÔ/ÜØMóð ð    PØ O‰O× &Ñ & sÕ +øÜ× Ñ ò    PÜÐEÓFÈCÐ Oûð    Pús9¹AÁ AÁAcƒóÔK—|js td«‚|jj«r td«‚|sit    di|j¤Žƒd{–—†}    |j
r-|jdr|j «dkr td«‚|j|_
nt|t«s td«‚|j|«y7Œ}#t$rYŒLwxYw­w)    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ÖNÚcompress)éér„z^Pool reset session is not supported with compression for MySQL server version 5.7.2 or earlierrÕr%)r½rrÀÚfullrUrºÚget_server_versionrrErÁÚpool_config_versionr)rrÚr¦s  r/r¥z"MySQLConnectionPool.add_connection8sãèø€ð$×ÒÜÐDÓEÐ Eà ?‰?× Ñ Ô !ÜÐEÓFÐ FáÜÑ3 $×"2Ñ"2Ñ3×3ˆCð à×'Ò'Ø×(Ñ(¨Ò4Ø×.Ñ.Ó0°9Ò<ä+ð%óðð'+×&:Ñ&:ˆCÕ #ä˜c¤?Ô3ÜØQóðð     ×јsÕ#ð-4ùôò Ùð üs7‚AC(ÁCÁC(Á9CÂAC(à   C%Ã"C(Ã$C%Ã%C(cƒóÚK—    |jj«}|j «ƒd{–—†r|j |jk7rF    |jdi|j¤Ž|j«ƒd{–—†|j |_t||«S#tj$r}t    d«|‚d}~wwxYw7Œ–7ŒJ#t$r|j|«‚wxYw­w)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.
        z)Failed getting connection; pool exhaustedNr%)rÀÚ
get_nowaitr¾Ú
QueueEmptyrr£rÁráÚ_set_connection_optionsr½Ú    reconnectrrÚr rÙs   r/r*z"MySQLConnectionPool.get_connectionisâèø€ð    RØ—/‘/×,Ñ,Ó.ˆCð
×&Ñ&Ó(×(Ð(Ø×#Ñ# s×'>Ñ'>Ò>ð Ø+×+Ñ+Ñ?¨d×.>Ñ.>Ò?Ø—m‘m“o×%Ð%ð'+×&:Ñ&:ˆCÔ #ä$ T¨3Ó/Ð/øô×!Ñ!ò    RÜÐGÓHÈcÐ Qûð    Rúð)øð
&ùÜ!ò Ø×&Ñ& sÔ+Øð üs[‚C+„B!žC+±C²C+Á/C Á?C
ÂC ÂC+Â!CÂ4 CÃCÃC+Ã
C à C(Ã(C+cƒó(K—d}|j}|j«r?    |j«}|j«ƒd{–—†|dz }|j«rŒ?|S7Œ#tj
$r|cYSt $r‚t$rYŒ?wxYw­w)a$Close all connections
        This method closes all connections and returns the number of connections it closed.
        This method should be used internally while cleaning-up the connection pool by closing each
        and every active connection objects currently residing in the pool.
 
        Returns:
            An integer defining the number of open connections closed during clean-up.
        Raises:
            PoolError: On errors while fetching connections from the pool or while disconnecting
            an open connection.
        rNr)rÀÚqsizerãrËr¾rärr)r’rÅÚcnxqrs    r/Ú_remove_connectionsz'MySQLConnectionPool._remove_connectionsˆsèø€ðˆØ‰ˆØj‰jŒlð
Ø—o‘oÓ'Ø—n‘nÓ&×&Ð&ؐq‘ð    j‰jlðˆ
ð'ùä×%Ñ%ò Ø’
Üò ØÜò áð üsL‚B¢#A$ÁA"Á    A$ÁBÁ BÁ"A$Á$BÁ9BÁ;B BÂBÂBcƒó>K—|j«ƒd{–—†S7Œ­w)aÅCleans up the connection pool
        This public method gracefully shuts down the connection pool by disconnecting all of the
        open connections currently active in the pool.
 
        Returns:
            An integer defining the number of open connections closed while shutting down the pool.
        Raises:
            PoolError: On errors while fetching connections from the pool or while disconnecting
            an open connection.
        N)rêr•s r/Ú
close_poolzMySQLConnectionPool.close_pool¥sèø€ð×-Ñ-Ó/×/Ð/Ð/ús ‚–—)rÝNT)
r#rMr"z Optional[str]rÂrrr,rr©rªr­r®)r©rM)r©rr)r,rr©rª)r#rMr©rª)r"r¯r©rª)rrr©rªrl)rz!Optional[MySQLConnectionAbstract]r©rªr«)r°r±r²r³r“r'rµr"r#r¢rÄr»r¼rÚr¥r*rêrìr%rAr/r&r&‘sDŽÙ4ðØ#'Ø#'ð    8-àð8-ð!ð8-ð!ð    8-ð
ð 8-ð
ó 8-ótð,òóððòóððò#óð#óSó6 $ó
$óPð$8<ð/$Ø4ð/$à     ó/$ób0ó>ô: 0rAr&)r,rr©r )r,rr©ú5Union[PooledMySQLConnection, MySQLConnectionAbstract])r~rr,rr©rír­):r³Ú
__future__rr¾rˆrQÚrer†ÚtypesrÚtypingrrrrr    r
r r Úuuidr rÚmysql.connector.constantsrÚdns.asyncresolverrtÚ dns.exceptionrsÚ ImportErrorÚerrorsrrrrrÚpoolingrrrÚ
connectionrÚ    abstractsrÚLockr(rÏrÓÚcompilerÑrÚ__annotations__rr0rdrUrr r&r%rAr/ú<module>rþsðò:<å"ãÛ    Û Û    Û
åßS×SÓSßå3ðÛÛð€N÷õ÷SÑRÝ'áÝ2ð$w—|‘|“~ÐØÐØÐØR—Z‘ZР7Ó8ÐØ2AÐ1C€Ð.ÓCà46ÐÐ1Ó6óð:XIØðXIà:óXIðvpØ ðpØðpà:ópóf
÷L(ñL(÷^_0ò_0øðC òØ‚NðúsÁCÃC&Ã%C&