18 def __init__(self, url: str, port: int, username: str, password: str, db_name: str, success: int = 0, error: int = 84, debug: bool =
False):
20 The constructor of the SQL class
22 url (str): _description_
23 port (int): _description_
24 username (str): _description_
25 password (str): _description_
26 db_name (str): _description_
27 success (int, optional): _description_. Defaults to 0.
28 error (int, optional): _description_. Defaults to 84.
29 debug (bool, optional): _description_. Defaults to False.
45 self.
disp: Disp = Disp(
50 logger=self.__class__.__name__
76 msg =
"Failed to initialise the connection pool."
77 self.
disp.log_critical(msg,
"__init__")
78 raise RuntimeError(f
"Error: {msg}")