Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | 1 | from typing import Dict, Any |
|
2 | |||
3 | 1 | from pystratum_common.wrapper.FunctionsWrapper import FunctionsWrapper |
|
4 | 1 | from pystratum_mysql.wrapper.MySqlWrapper import MySqlWrapper |
|
5 | |||
6 | |||
7 | 1 | class MySqlFunctionsWrapper(MySqlWrapper, FunctionsWrapper): |
|
8 | """ |
||
9 | Wrapper method generator for stored functions. |
||
10 | """ |
||
11 | |||
12 | # ------------------------------------------------------------------------------------------------------------------ |
||
13 | 1 | def _write_result_handler(self, routine: Dict[str, Any]) -> None: |
|
14 | self._write_line('return self.execute_singleton1({0!s})'.format(self._generate_command(routine))) |
||
15 | |||
17 |