Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Chore: pip 불필요한 의존성 제거 DB URL 수정
Browse files Browse the repository at this point in the history
- 커넥션에 필요한 URL 수정 및 불필요한 의존성 requirements.txt에서 제거
  • Loading branch information
tomorrow9913 committed Nov 25, 2023
1 parent eae0222 commit 6a4135f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from starlette.config import Config

config = Config('.env')
DATABASE_URL = f"mariadb:///?User={config.get('USER')}&Password={config.get('PASSWORD')}&Database={config.get('DATABASE')}&Server={config.get('HOST')}&Port={config.get('PORT')}"
DATABASE_URL = f"mariadb+mariadbconnector://:{config.get('PASSWORD')}@{config.get('HOST')}:{config.get('PORT')}/{config.get('DATABASE')}"

# Craate Engin for mariadb
engine = create_engine(DATABASE_URL, echo=False)
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 6a4135f

Please sign in to comment.