mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-01-29 21:49:35 +00:00
Implemented a new multi-scenario dialogue architecture
This commit is contained in:
@@ -277,6 +277,7 @@ class Database:
|
||||
|
||||
def run(self, session, command: str, fetch: str = "all") -> List:
|
||||
"""Execute a SQL command and return a string representing the results."""
|
||||
print("sql run:" + command)
|
||||
cursor = session.execute(text(command))
|
||||
if cursor.returns_rows:
|
||||
if fetch == "all":
|
||||
|
||||
Reference in New Issue
Block a user