agenthink 0.1.17__tar.gz → 0.1.18__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenthink
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: A unified agent framework for connecting workflows, databases, and agents
5
5
  Author: Ritobroto
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agenthink"
3
- version = "0.1.17"
3
+ version = "0.1.18"
4
4
  description = "A unified agent framework for connecting workflows, databases, and agents"
5
5
  authors = [
6
6
  { name = "Ritobroto" }
@@ -252,18 +252,19 @@ class DBConnector:
252
252
  return None
253
253
 
254
254
  if database_type == "mysql":
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
- except Exception as e:
262
- logger.exception("Failed to execute query on MySQL database '%s': %s", db_name, e)
263
- return None
264
- finally:
265
- if cursor:
266
- cursor.close()
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenthink
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: A unified agent framework for connecting workflows, databases, and agents
5
5
  Author: Ritobroto
6
6
  Requires-Python: >=3.10
File without changes
File without changes