mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 16:18:27 +00:00
feat(editor): ChatExcel
🔥ChatExcel Mode Operation Manual
This commit is contained in:
parent
57d17a073c
commit
ff9ead0859
@ -153,12 +153,15 @@ class ConnectManager:
|
||||
db_user = db_info.db_user
|
||||
db_pwd = db_info.db_pwd
|
||||
return connect_instance.from_uri_db(
|
||||
host=db_host, port=db_port, user=db_user, pwd=db_pwd, db_name=db_name
|
||||
host=db_host,
|
||||
port=db_port,
|
||||
user=db_user,
|
||||
pwd=db_pwd,
|
||||
db_name=db_name,
|
||||
)
|
||||
except Exception as e:
|
||||
print(f'{db_info.db_name} Test connect Failure!{str(e)}')
|
||||
raise ValueError(f'{db_info.db_name} Test connect Failure!{str(e)}')
|
||||
|
||||
print(f"{db_info.db_name} Test connect Failure!{str(e)}")
|
||||
raise ValueError(f"{db_info.db_name} Test connect Failure!{str(e)}")
|
||||
|
||||
def get_db_list(self):
|
||||
return self.storage.get_db_list()
|
||||
|
@ -501,7 +501,6 @@ class RDBMSDatabase(BaseConnect):
|
||||
except Exception as e:
|
||||
return []
|
||||
|
||||
|
||||
def get_table_comments(self, db_name):
|
||||
cursor = self.session.execute(
|
||||
text(
|
||||
|
@ -62,4 +62,4 @@ class LearningExcelOutputParser(BaseOutputParser):
|
||||
html = f"""{html_title}\n{html_colunms}\n{html_plans}"""
|
||||
return html
|
||||
else:
|
||||
return speak
|
||||
return speak
|
||||
|
Loading…
Reference in New Issue
Block a user