refactor: Refactor datasource module (#1309)

This commit is contained in:
Fangyin Cheng
2024-03-18 18:06:40 +08:00
committed by GitHub
parent 84bedee306
commit 4970c9f813
108 changed files with 1194 additions and 1066 deletions

View File

@@ -20,7 +20,7 @@
import pytest
from dbgpt.datasource.rdbms.conn_mysql import MySQLConnect
from dbgpt.datasource.rdbms.conn_mysql import MySQLConnector
_create_table_sql = """
CREATE TABLE IF NOT EXISTS `test` (
@@ -31,7 +31,7 @@ _create_table_sql = """
@pytest.fixture
def db():
conn = MySQLConnect.from_uri_db(
conn = MySQLConnector.from_uri_db(
"localhost",
3307,
"root",
@@ -89,4 +89,4 @@ def test_get_users(db):
def test_get_database_lists(db):
assert db.get_database_list() == ["test"]
assert db.get_database_names() == ["test"]