| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from typing import Any, Dict |
||
| 2 | |||
| 3 | from pystratum_common.wrapper.TableWrapper import TableWrapper |
||
| 4 | |||
| 5 | from pystratum_mssql.wrapper.MsSqlWrapper import MsSqlWrapper |
||
| 6 | |||
| 7 | |||
| 8 | class MsSqlTableWrapper(MsSqlWrapper, TableWrapper): |
||
| 9 | """ |
||
| 10 | Wrapper method generator for printing the result set of stored procedures in a table format. |
||
| 11 | """ |
||
| 12 | |||
| 13 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 14 | def _write_result_handler(self, routine: Dict[str, Any]) -> None: |
||
| 15 | self._write_line('return self.execute_table({0})'.format(self._generate_command(routine))) |
||
| 16 | |||
| 18 |