Skip to content

Commit

Permalink
backend: db 연결 함수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtaejin3 committed Dec 13, 2024
1 parent 1968296 commit e34926a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified backend/__pycache__/database.cpython-313.pyc
Binary file not shown.
Binary file modified backend/__pycache__/main.cpython-313.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion backend/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

engine = create_engine(
DATABASE_URL,
connect_args={"options": "-c client_encoding=utf8"}
connect_args={
"sslmode": "disable",
"connect_timeout": 30
}
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()
Expand Down

0 comments on commit e34926a

Please sign in to comment.