requirements.txt

This commit is contained in:
2024-07-09 11:57:02 +08:00
parent 6af866fda9
commit 2bbfadb420
2 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import psycopg2
import logging
from src.My_Logger.project_logger import LoggerClass
@@ -6,7 +7,7 @@ class DatabaseHandler:
def __init__(self, config, logger=None):
if not logger:
log = LoggerClass()
self.logger = log.get_log()
self.logger = log.get_log(logging.DEBUG)
self.config = config
# {database="postgres", user="postgres", password="123456", host="localhost", port="5432"}
self.connection = psycopg2.connect(database=config['database'], user=config['user'],