Skip to content

Commit 528a713

Browse files
committed
add config connect to postgresql
1 parent fea4be7 commit 528a713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/db_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from sqlalchemy import create_engine
2+
3+
def connect_to_db():
4+
database_url = "postgresql://postgres:123456@localhost:5432/lol"
5+
return create_engine(database_url)

0 commit comments

Comments
 (0)