连接模块#
In order to interact more conveniently with users’ private environments, the project has designed a connection module, which can support connection to databases, Excel, knowledge bases, and other environments to achieve information and data exchange.
DB-GPT提供了基础连接模块,你可以继承这个类,然后实现get_session(), get_table_names(), get_index_info(), get_database_list() and run()这些方法即可,如果你的数据库是关系型数据库,可以直接继承RDBMSDatabase即可
mysql connection使用方法