mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-06 02:46:40 +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_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()
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user