환경변수 호출 및 db 조회 리팩토링

This commit is contained in:
2024-10-03 21:26:06 +09:00
parent 4d1fd7a5be
commit 019a1419d1
5 changed files with 84 additions and 8 deletions

12
main.py
View File

@ -1,4 +1,12 @@
import package as pkg
from package import GetConfig
from package import MariaDB
# 2024-10-03 환경 변수 호출
config = GetConfig.GetConfig()
dict_data = config.get_config_as_dict()
# 2024-10-03 db에서 url정보 호출
db = MariaDB.MariaDB(dict_data)
url = db.fetch_data_from_mariadb()['url']
url = pkg.get_url.fetch_data_from_mariadb()