mysqlengine 0.1.11.5__cp311-cp311-macosx_10_9_universal2.whl → 0.1.11.7__cp311-cp311-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-311-darwin.so +0 -0
- mysqlengine/column.cpython-311-darwin.so +0 -0
- mysqlengine/connection.c +9160 -10193
- mysqlengine/connection.cpython-311-darwin.so +0 -0
- mysqlengine/connection.py +25 -66
- mysqlengine/constant.cpython-311-darwin.so +0 -0
- mysqlengine/database.c +13436 -12308
- mysqlengine/database.cpython-311-darwin.so +0 -0
- mysqlengine/database.py +35 -1
- mysqlengine/dtype.c +140 -140
- mysqlengine/dtype.cpython-311-darwin.so +0 -0
- mysqlengine/engine.c +503 -287
- mysqlengine/engine.cpython-311-darwin.so +0 -0
- mysqlengine/engine.py +7 -0
- mysqlengine/errors.cpython-311-darwin.so +0 -0
- mysqlengine/index.cpython-311-darwin.so +0 -0
- mysqlengine/protocol.cpython-311-darwin.so +0 -0
- mysqlengine/query.c +140 -140
- mysqlengine/query.cpython-311-darwin.so +0 -0
- mysqlengine/regex.cpython-311-darwin.so +0 -0
- mysqlengine/settings.cpython-311-darwin.so +0 -0
- mysqlengine/transcode.c +140 -140
- mysqlengine/transcode.cpython-311-darwin.so +0 -0
- mysqlengine/utils.c +810 -650
- mysqlengine/utils.cpython-311-darwin.so +0 -0
- {mysqlengine-0.1.11.5.dist-info → mysqlengine-0.1.11.7.dist-info}/METADATA +2 -2
- {mysqlengine-0.1.11.5.dist-info → mysqlengine-0.1.11.7.dist-info}/RECORD +30 -30
- {mysqlengine-0.1.11.5.dist-info → mysqlengine-0.1.11.7.dist-info}/LICENSE +0 -0
- {mysqlengine-0.1.11.5.dist-info → mysqlengine-0.1.11.7.dist-info}/WHEEL +0 -0
- {mysqlengine-0.1.11.5.dist-info → mysqlengine-0.1.11.7.dist-info}/top_level.txt +0 -0
|
Binary file
|
mysqlengine/engine.py
CHANGED
|
@@ -14,6 +14,7 @@ from cython.cimports.mysqlengine.connection import Server # type: ignore
|
|
|
14
14
|
|
|
15
15
|
# Python imports
|
|
16
16
|
from typing import Any, Union
|
|
17
|
+
from mysqlengine.logs import logger
|
|
17
18
|
from mysqlengine import errors, utils
|
|
18
19
|
from mysqlengine.connection import Server
|
|
19
20
|
from mysqlengine.database import Database
|
|
@@ -239,6 +240,12 @@ class Engine:
|
|
|
239
240
|
return self._length
|
|
240
241
|
|
|
241
242
|
def __del__(self):
|
|
243
|
+
if not self._server._closed:
|
|
244
|
+
logger.error(
|
|
245
|
+
"%s is not closed properly. Please call `disconnect()` "
|
|
246
|
+
"to gracefully shutdown the Engine." % self
|
|
247
|
+
)
|
|
248
|
+
self._server._encure_closed()
|
|
242
249
|
self._server = None
|
|
243
250
|
self._databases_cls = None
|
|
244
251
|
self._databases = None
|
|
Binary file
|
|
Binary file
|
|
Binary file
|