ezKit 1.10.7__py3-none-any.whl → 1.10.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ezKit/database.py +3 -8
- {ezKit-1.10.7.dist-info → ezKit-1.10.9.dist-info}/METADATA +1 -1
- {ezKit-1.10.7.dist-info → ezKit-1.10.9.dist-info}/RECORD +6 -6
- {ezKit-1.10.7.dist-info → ezKit-1.10.9.dist-info}/LICENSE +0 -0
- {ezKit-1.10.7.dist-info → ezKit-1.10.9.dist-info}/WHEEL +0 -0
- {ezKit-1.10.7.dist-info → ezKit-1.10.9.dist-info}/top_level.txt +0 -0
ezKit/database.py
CHANGED
@@ -44,9 +44,9 @@ class Database():
|
|
44
44
|
info = "Database connect test"
|
45
45
|
try:
|
46
46
|
logger.info(f"{info} ......")
|
47
|
-
self.engine.connect()
|
48
|
-
|
49
|
-
|
47
|
+
with self.engine.connect() as _:
|
48
|
+
logger.success(f"{info} [success]")
|
49
|
+
return True
|
50
50
|
except Exception as e:
|
51
51
|
logger.error(f"{info} [failed]")
|
52
52
|
logger.exception(e)
|
@@ -259,11 +259,6 @@ class Database():
|
|
259
259
|
|
260
260
|
# ------------------------------------------------------------------------------------------
|
261
261
|
|
262
|
-
if not self.connect_test():
|
263
|
-
return None
|
264
|
-
|
265
|
-
# ------------------------------------------------------------------------------------------
|
266
|
-
|
267
262
|
# 创建一个连接
|
268
263
|
with self.engine.connect() as connection:
|
269
264
|
|
@@ -2,7 +2,7 @@ ezKit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
ezKit/bottle.py,sha256=usKK1wVaZw4_D-4VwMYmOIc8jtz4TrpM30nck59HMFw,180178
|
3
3
|
ezKit/bottle_extensions.py,sha256=3reEQVZuHklXTl6r7F8kiBFFPb0RaAGc3mYJJnrMDjQ,1129
|
4
4
|
ezKit/cipher.py,sha256=0T_StbjiNI4zgrjVgcfU-ffKgu1waBA9UDudAnqFcNM,2896
|
5
|
-
ezKit/database.py,sha256=
|
5
|
+
ezKit/database.py,sha256=r5YNoEzeOeVTlEWI99xXtHTmPZ73_DopS8DTzZk8Lts,12432
|
6
6
|
ezKit/http.py,sha256=ysXzqXFi9zmuVKINbYGwmf9Q5xDVW_DZWrSh6HSVq8M,1800
|
7
7
|
ezKit/mongo.py,sha256=l3jRMmoGrTm16OG4daSCn0JLU1nbYAmTtHokwjLXzoA,2390
|
8
8
|
ezKit/qywx.py,sha256=X_H4fzP-iEqeDEbumr7D1bXi6dxczaxfO8iyutzy02s,7171
|
@@ -11,8 +11,8 @@ ezKit/sendemail.py,sha256=tRXCsJm_RfTJ9xEWe_lTQ5kOs2JxHGPXvq0oWA7prq0,7263
|
|
11
11
|
ezKit/token.py,sha256=HKREyZj_T2S8-aFoFIrBXTaCKExQq4zE66OHXhGHqQg,1750
|
12
12
|
ezKit/utils.py,sha256=YE8JFePsnWYxne_a70jwr26Wc04-0sAFHk0LNOXpEJA,41906
|
13
13
|
ezKit/xftp.py,sha256=XyIdr_2rxRVLqPofG6fIYWhAMVsFwTyp46dg5P9FLW4,7774
|
14
|
-
ezKit-1.10.
|
15
|
-
ezKit-1.10.
|
16
|
-
ezKit-1.10.
|
17
|
-
ezKit-1.10.
|
18
|
-
ezKit-1.10.
|
14
|
+
ezKit-1.10.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
15
|
+
ezKit-1.10.9.dist-info/METADATA,sha256=0OJjFfx6zjQTU1SOqFQWc7jE5CNWmcE3qD1fVy114R8,191
|
16
|
+
ezKit-1.10.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
17
|
+
ezKit-1.10.9.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
|
18
|
+
ezKit-1.10.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|