Test Failed
Push — master ( 7c9493...8a6195 )
by P.R.
09:18
created

pystratum_mysql.wrapper.MySqlRowsWithKeyWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 83.33%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 16
ccs 5
cts 6
cp 0.8333
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A MySqlRowsWithKeyWrapper._write_execute_rows() 0 2 1
1 1
from typing import Dict, Any
2
3 1
from pystratum_common.wrapper.RowsWithKeyWrapper import RowsWithKeyWrapper
4 1
from pystratum_mysql.wrapper.MySqlWrapper import MySqlWrapper
5
6
7 1
class MySqlRowsWithKeyWrapper(RowsWithKeyWrapper, MySqlWrapper):
8
    """
9
    Wrapper method generator for stored procedures whose result set must be returned using tree structure using a
10
    combination of unique columns.
11
    """
12
13
    # ------------------------------------------------------------------------------------------------------------------
14 1
    def _write_execute_rows(self, routine: Dict[str, Any]) -> None:
15
        self._write_line('rows = self.execute_sp_rows({0!s})'.format(self._generate_command(routine)))
16
17
# ----------------------------------------------------------------------------------------------------------------------
18