requirements.txt
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user