feat(editor): ChatExcel

🔥ChatExcel Mode Operation Manual
This commit is contained in:
yhjun1026 2023-08-31 20:30:44 +08:00
parent 57d17a073c
commit ff9ead0859
3 changed files with 8 additions and 6 deletions

View File

@ -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()

View File

@ -501,7 +501,6 @@ class RDBMSDatabase(BaseConnect):
except Exception as e:
return []
def get_table_comments(self, db_name):
cursor = self.session.execute(
text(

View File

@ -62,4 +62,4 @@ class LearningExcelOutputParser(BaseOutputParser):
html = f"""{html_title}\n{html_colunms}\n{html_plans}"""
return html
else:
return speak
return speak