mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-23 18:31:22 +00:00
19 lines
394 B
Python
19 lines
394 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import pymysql
|
|
from pilot.connections.rdbms.rdbms_connect import RDBMSDatabase
|
|
|
|
|
|
class MySQLConnect(RDBMSDatabase):
|
|
"""Connect MySQL Database fetch MetaData For LLM Prompt
|
|
Args:
|
|
Usage:
|
|
"""
|
|
|
|
type:str = "MySQL"
|
|
connect_url = "mysql+pymysql://"
|
|
|
|
default_db = ["information_schema", "performance_schema", "sys", "mysql"]
|
|
|