import abc
from typing import Any
[docs]class MsSqlConnector:
"""
Interface for classes for connecting to a MS SQL Server instances.
"""
# ------------------------------------------------------------------------------------------------------------------
[docs] @abc.abstractmethod
def connect(self) -> Any:
"""
Connects to a MS SQL Server instance.
"""
raise NotImplementedError()
# ------------------------------------------------------------------------------------------------------------------
[docs] @abc.abstractmethod
def disconnect(self) -> None:
"""
Disconnects from a MS SQL Server instance.
"""
raise NotImplementedError()
# ----------------------------------------------------------------------------------------------------------------------