12 lines
309 B
Python
12 lines
309 B
Python
from sqlalchemy import create_engine
|
|
|
|
|
|
def get_connection():
|
|
db_user = "pillar_tool"
|
|
db_password = "pillar_tool"
|
|
db_host = "127.0.0.1"
|
|
db_port = "5432"
|
|
db_name = "pillar_tool"
|
|
return create_engine(
|
|
url=f"postgresql://{db_user}:{db_password}@{db_host}:{db_port}/{db_name}"
|
|
) |