Conditions | 1 |
Total Lines | 14 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | 1 | from typing import Dict, Optional, Union |
|
14 | 1 | def __init__(self, params: Dict[str, Union[str, int]]): |
|
15 | """ |
||
16 | Object constructor. |
||
17 | |||
18 | :param params: The connection parameters. |
||
19 | """ |
||
20 | |||
21 | 1 | self._params: Dict[str, Union[str, int]] = params |
|
22 | """ |
||
23 | The connection parameters. |
||
24 | """ |
||
25 | |||
26 | 1 | self._connection: Optional[MySQLConnection] = None |
|
27 | 1 | """ |
|
28 | The connection between Python and the MySQL instance. |
||
50 |