MsSqlConnector.disconnect()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
import abc
2
from typing import Any
3
4
5
class MsSqlConnector:
6
    """
7
    Interface for classes for connecting to a MS SQL Server instances.
8
    """
9
10
    # ------------------------------------------------------------------------------------------------------------------
11
    @abc.abstractmethod
12
    def connect(self) -> Any:
13
        """
14
        Connects to a MS SQL Server instance.
15
        """
16
        raise NotImplementedError()
17
18
    # ------------------------------------------------------------------------------------------------------------------
19
    @abc.abstractmethod
20
    def disconnect(self) -> None:
21
        """
22
        Disconnects from a MS SQL Server instance.
23
        """
24
        raise NotImplementedError()
25
26
# ----------------------------------------------------------------------------------------------------------------------
27