pystratum_pgsql.wrapper.PgSqlRowsWithIndexWrapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

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