mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-21 19:31:43 +00:00
18 lines
412 B
Python
18 lines
412 B
Python
"""Module to define the data source connectors."""
|
|
|
|
from typing import Any
|
|
|
|
from .base import BaseConnector # noqa: F401
|
|
|
|
|
|
def __getattr__(name: str) -> Any:
|
|
if name == "RDBMSConnector":
|
|
from .rdbms.base import RDBMSConnector # noqa: F401
|
|
|
|
return RDBMSConnector
|
|
else:
|
|
raise AttributeError(f"Could not find: {name} in datasource")
|
|
|
|
|
|
__ALL__ = ["BaseConnector", "RDBMSConnector"]
|