agenthink 0.1.17__py3-none-any.whl → 0.1.18__py3-none-any.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.
- agenthink/connection.py +13 -12
- {agenthink-0.1.17.dist-info → agenthink-0.1.18.dist-info}/METADATA +1 -1
- agenthink-0.1.18.dist-info/RECORD +8 -0
- agenthink-0.1.17.dist-info/RECORD +0 -8
- {agenthink-0.1.17.dist-info → agenthink-0.1.18.dist-info}/WHEEL +0 -0
- {agenthink-0.1.17.dist-info → agenthink-0.1.18.dist-info}/top_level.txt +0 -0
agenthink/connection.py
CHANGED
|
@@ -252,18 +252,19 @@ class DBConnector:
|
|
|
252
252
|
return None
|
|
253
253
|
|
|
254
254
|
if database_type == "mysql":
|
|
255
|
-
try:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
255
|
+
# try:
|
|
256
|
+
cursor = database_connection.cursor()
|
|
257
|
+
cursor.execute(query)
|
|
258
|
+
results = cursor.fetchall()
|
|
259
|
+
logger.info("Executed query on MySQL database '%s': %s", db_name, query)
|
|
260
|
+
# return f"{results}"
|
|
261
|
+
return f"{cursor}, {results}"
|
|
262
|
+
# except Exception as e:
|
|
263
|
+
# logger.exception("Failed to execute query on MySQL database '%s': %s", db_name, e)
|
|
264
|
+
# return None
|
|
265
|
+
# finally:
|
|
266
|
+
# if cursor:
|
|
267
|
+
# cursor.close()
|
|
267
268
|
elif database_type == "mssql":
|
|
268
269
|
try:
|
|
269
270
|
cursor = database_connection.cursor()
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
agenthink/__init__.py,sha256=6oUldrZgE76j8OhwsQgVY5vdaPTDFyChOljske-so8U,78
|
|
2
|
+
agenthink/connection.py,sha256=ngnRP-5qrIssl8Xeib0aD9yHUuDiC0WWaQcKRax6mfc,13108
|
|
3
|
+
agenthink/models.py,sha256=PhXEMmfU31MTt1IwXxXV9DVPl5PLroQFHjRgRDs8iTo,251
|
|
4
|
+
agenthink/utils.py,sha256=r5o74RbenFhQ7E3N7naoLJ-fYEe9otz0nkcvwKHDTaU,911
|
|
5
|
+
agenthink-0.1.18.dist-info/METADATA,sha256=Qj9Eg1TtdoE5JpU8zXgdFhnmy0caMtHq601rj1kXKJk,1722
|
|
6
|
+
agenthink-0.1.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
agenthink-0.1.18.dist-info/top_level.txt,sha256=rYw4Lx2uqOzbGCSoJEaikme7vS9NvgbVMc26QUIZoZM,10
|
|
8
|
+
agenthink-0.1.18.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
agenthink/__init__.py,sha256=6oUldrZgE76j8OhwsQgVY5vdaPTDFyChOljske-so8U,78
|
|
2
|
-
agenthink/connection.py,sha256=ua-kGLYGDy3YPb8AETNm5JHqNbWX2pvY8xGF9y1yK64,13069
|
|
3
|
-
agenthink/models.py,sha256=PhXEMmfU31MTt1IwXxXV9DVPl5PLroQFHjRgRDs8iTo,251
|
|
4
|
-
agenthink/utils.py,sha256=r5o74RbenFhQ7E3N7naoLJ-fYEe9otz0nkcvwKHDTaU,911
|
|
5
|
-
agenthink-0.1.17.dist-info/METADATA,sha256=65Qdwa7Y8FkpK9P0moyH1PyINIy-e34o3GcpJ_e5e-U,1722
|
|
6
|
-
agenthink-0.1.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
agenthink-0.1.17.dist-info/top_level.txt,sha256=rYw4Lx2uqOzbGCSoJEaikme7vS9NvgbVMc26QUIZoZM,10
|
|
8
|
-
agenthink-0.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|