Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from typing import Any, Dict |
||
2 | |||
3 | from pystratum_common.wrapper.RowsWithKeyWrapper import RowsWithKeyWrapper |
||
4 | |||
5 | from pystratum_mssql.wrapper.MsSqlWrapper import MsSqlWrapper |
||
6 | |||
7 | |||
8 | class MsSqlRowsWithKeyWrapper(RowsWithKeyWrapper, MsSqlWrapper): |
||
9 | """ |
||
10 | Wrapper method generator for stored procedures whose result set must be returned using tree structure using a |
||
11 | combination of unique columns. |
||
12 | """ |
||
13 | |||
14 | # ------------------------------------------------------------------------------------------------------------------ |
||
15 | def _write_execute_rows(self, routine: Dict[str, Any]) -> None: |
||
16 | self._write_line('rows = self.execute_sp_rows({0})'.format(self._generate_command(routine))) |
||
17 | |||
19 |