We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8558ee6 commit 8518911Copy full SHA for 8518911
{{cookiecutter.project_slug}}/backend/app/app/db/session.py
@@ -3,7 +3,7 @@
3
4
from app.core import config
5
6
-engine = create_engine(config.SQLALCHEMY_DATABASE_URI)
+engine = create_engine(config.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True)
7
db_session = scoped_session(
8
sessionmaker(autocommit=False, autoflush=False, bind=engine)
9
)
0 commit comments