pystratum_mssql.wrapper.MsSqlRow1Wrapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A MsSqlRow1Wrapper._write_result_handler() 0 2 1
1
from typing import Any, Dict
2
3
from pystratum_common.wrapper.Row1Wrapper import Row1Wrapper
4
5
from pystratum_mssql.wrapper.MsSqlWrapper import MsSqlWrapper
6
7
8
class MsSqlRow1Wrapper(MsSqlWrapper, Row1Wrapper):
9
    """
10
    Wrapper method generator for stored procedures that are selecting 1 row.
11
    """
12
13
    # ------------------------------------------------------------------------------------------------------------------
14
    def _write_result_handler(self, routine: Dict[str, Any]) -> None:
15
        self._write_line('return self.execute_sp_row1({0})'.format(self._generate_command(routine)))
16
17
# ----------------------------------------------------------------------------------------------------------------------
18