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_user = db_info.db_user
db_pwd = db_info.db_pwd db_pwd = db_info.db_pwd
return connect_instance.from_uri_db( 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: except Exception as e:
print(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)}') raise ValueError(f"{db_info.db_name} Test connect Failure!{str(e)}")
def get_db_list(self): def get_db_list(self):
return self.storage.get_db_list() return self.storage.get_db_list()

View File

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