mysqlengine 0.1.11.6__cp312-cp312-macosx_10_9_universal2.whl → 0.1.11.7__cp312-cp312-macosx_10_9_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mysqlengine might be problematic. Click here for more details.
- mysqlengine/charset.cpython-312-darwin.so +0 -0
- mysqlengine/column.cpython-312-darwin.so +0 -0
- mysqlengine/connection.c +9074 -8874
- mysqlengine/connection.cpython-312-darwin.so +0 -0
- mysqlengine/connection.py +16 -8
- mysqlengine/constant.cpython-312-darwin.so +0 -0
- mysqlengine/database.c +13436 -12308
- mysqlengine/database.cpython-312-darwin.so +0 -0
- mysqlengine/database.py +35 -1
- mysqlengine/dtype.c +140 -140
- mysqlengine/dtype.cpython-312-darwin.so +0 -0
- mysqlengine/engine.c +503 -287
- mysqlengine/engine.cpython-312-darwin.so +0 -0
- mysqlengine/engine.py +7 -0
- mysqlengine/errors.cpython-312-darwin.so +0 -0
- mysqlengine/index.cpython-312-darwin.so +0 -0
- mysqlengine/protocol.cpython-312-darwin.so +0 -0
- mysqlengine/query.c +140 -140
- mysqlengine/query.cpython-312-darwin.so +0 -0
- mysqlengine/regex.cpython-312-darwin.so +0 -0
- mysqlengine/settings.cpython-312-darwin.so +0 -0
- mysqlengine/transcode.c +140 -140
- mysqlengine/transcode.cpython-312-darwin.so +0 -0
- mysqlengine/utils.c +810 -650
- mysqlengine/utils.cpython-312-darwin.so +0 -0
- {mysqlengine-0.1.11.6.dist-info → mysqlengine-0.1.11.7.dist-info}/METADATA +2 -2
- {mysqlengine-0.1.11.6.dist-info → mysqlengine-0.1.11.7.dist-info}/RECORD +30 -30
- {mysqlengine-0.1.11.6.dist-info → mysqlengine-0.1.11.7.dist-info}/LICENSE +0 -0
- {mysqlengine-0.1.11.6.dist-info → mysqlengine-0.1.11.7.dist-info}/WHEEL +0 -0
- {mysqlengine-0.1.11.6.dist-info → mysqlengine-0.1.11.7.dist-info}/top_level.txt +0 -0
|
Binary file
|
mysqlengine/connection.py
CHANGED
|
@@ -37,11 +37,10 @@ from re import compile, Match, IGNORECASE, DOTALL
|
|
|
37
37
|
from _collections_abc import dict_values, dict_keys
|
|
38
38
|
from struct import pack as struct_pack, unpack as struct_unpack
|
|
39
39
|
from socket import SOL_SOCKET, SO_KEEPALIVE, IPPROTO_TCP, TCP_NODELAY
|
|
40
|
-
from asyncio import get_running_loop, get_event_loop
|
|
41
|
-
from asyncio import gather, wait_for, create_task, sleep
|
|
42
40
|
from asyncio import CancelledError, IncompleteReadError
|
|
43
41
|
from asyncio import Condition, StreamWriter, WriteTransport, BaseProtocol
|
|
44
42
|
from asyncio import AbstractEventLoop, StreamReader, StreamReaderProtocol
|
|
43
|
+
from asyncio import gather, wait_for, create_task, sleep, get_running_loop
|
|
45
44
|
from numpy import record, ndarray
|
|
46
45
|
from pandas import DataFrame, Series, DatetimeIndex, TimedeltaIndex
|
|
47
46
|
from mysqlengine.logs import logger
|
|
@@ -3584,6 +3583,17 @@ class Pool:
|
|
|
3584
3583
|
if self.get_invalid_size() > 0:
|
|
3585
3584
|
for conn in self._invlid_conn:
|
|
3586
3585
|
conn.force_close()
|
|
3586
|
+
self._ssl_context = None
|
|
3587
|
+
self._cursorclass = None
|
|
3588
|
+
self._free_conn = None
|
|
3589
|
+
self._used_conn = None
|
|
3590
|
+
self._invlid_conn = None
|
|
3591
|
+
self._condition = None
|
|
3592
|
+
self._closed = True
|
|
3593
|
+
|
|
3594
|
+
def force_close(self) -> None:
|
|
3595
|
+
"""Force close the Pool (exception free & internal use only)."""
|
|
3596
|
+
self._encure_closed()
|
|
3587
3597
|
|
|
3588
3598
|
# Special Methods ----------------------------------------------------------------------------
|
|
3589
3599
|
async def __aenter__(self) -> Pool:
|
|
@@ -3610,13 +3620,11 @@ class Pool:
|
|
|
3610
3620
|
|
|
3611
3621
|
def __del__(self):
|
|
3612
3622
|
if not self._closed:
|
|
3623
|
+
logger.error(
|
|
3624
|
+
"%s is not closed properly. Please call `close()` "
|
|
3625
|
+
"to gracefully shutdown the Pool/Server." % self
|
|
3626
|
+
)
|
|
3613
3627
|
self._encure_closed()
|
|
3614
|
-
self._ssl_context = None
|
|
3615
|
-
self._cursorclass = None
|
|
3616
|
-
self._free_conn = None
|
|
3617
|
-
self._used_conn = None
|
|
3618
|
-
self._invlid_conn = None
|
|
3619
|
-
self._condition = None
|
|
3620
3628
|
|
|
3621
3629
|
|
|
3622
3630
|
# Server =======================================================================================
|
|
Binary file
|